UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

36 lines (31 loc) 1.02 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type V2IdentitiesCreateIdentityResponseData = { /** * The unique identifier of the created identity. */ identityId: string; }; /** @internal */ export const V2IdentitiesCreateIdentityResponseData$inboundSchema: z.ZodType< V2IdentitiesCreateIdentityResponseData, z.ZodTypeDef, unknown > = z.object({ identityId: z.string(), }); export function v2IdentitiesCreateIdentityResponseDataFromJSON( jsonString: string, ): SafeParseResult<V2IdentitiesCreateIdentityResponseData, SDKValidationError> { return safeParse( jsonString, (x) => V2IdentitiesCreateIdentityResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V2IdentitiesCreateIdentityResponseData' from JSON`, ); }