/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 2bbd46bcc025 */ 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"; import { Verification, Verification$inboundSchema } from "./verification.js"; export type VerificationFeed = { /** * List of document infos that include verification related information for them. */ documents?: Array | undefined; }; /** @internal */ export const VerificationFeed$inboundSchema: z.ZodType< VerificationFeed, z.ZodTypeDef, unknown > = z.object({ documents: z.array(Verification$inboundSchema).optional(), }); export function verificationFeedFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => VerificationFeed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerificationFeed' from JSON`, ); }