/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: a5c6ed903f84 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UserIdentityApiKey = { id: string; name: string | null; }; /** @internal */ export const UserIdentityApiKey$inboundSchema: z.ZodType< UserIdentityApiKey, unknown > = z.object({ id: z.string(), name: z.nullable(z.string()), }); export function userIdentityApiKeyFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UserIdentityApiKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserIdentityApiKey' from JSON`, ); }