/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetBatchIdentityItem = { /** * A unique Prove-generated identifier for the enrolled identity. This is a UUID that can be used to reference the identity in future requests. */ proveId?: string | undefined; }; /** @internal */ export const GetBatchIdentityItem$inboundSchema: z.ZodType< GetBatchIdentityItem, z.ZodTypeDef, unknown > = z.object({ proveId: z.string().optional(), }); /** @internal */ export type GetBatchIdentityItem$Outbound = { proveId?: string | undefined; }; /** @internal */ export const GetBatchIdentityItem$outboundSchema: z.ZodType< GetBatchIdentityItem$Outbound, z.ZodTypeDef, GetBatchIdentityItem > = z.object({ proveId: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace GetBatchIdentityItem$ { /** @deprecated use `GetBatchIdentityItem$inboundSchema` instead. */ export const inboundSchema = GetBatchIdentityItem$inboundSchema; /** @deprecated use `GetBatchIdentityItem$outboundSchema` instead. */ export const outboundSchema = GetBatchIdentityItem$outboundSchema; /** @deprecated use `GetBatchIdentityItem$Outbound` instead. */ export type Outbound = GetBatchIdentityItem$Outbound; } export function getBatchIdentityItemToJSON( getBatchIdentityItem: GetBatchIdentityItem, ): string { return JSON.stringify( GetBatchIdentityItem$outboundSchema.parse(getBatchIdentityItem), ); } export function getBatchIdentityItemFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetBatchIdentityItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetBatchIdentityItem' from JSON`, ); }