/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 4cf12aed277b */ 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 { AnswerResult, AnswerResult$inboundSchema } from "./answerresult.js"; export type ListAnswersResponse = { /** * List of answers with tracking tokens. */ answerResults: Array; }; /** @internal */ export const ListAnswersResponse$inboundSchema: z.ZodType< ListAnswersResponse, z.ZodTypeDef, unknown > = z.object({ answerResults: z.array(AnswerResult$inboundSchema), }); export function listAnswersResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListAnswersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAnswersResponse' from JSON`, ); }