/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 81d5c35b87ee */ 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 { PinDocument, PinDocument$inboundSchema } from "./pindocument.js"; export type ListPinsResponse = { /** * List of pinned documents. */ pins: Array; }; /** @internal */ export const ListPinsResponse$inboundSchema: z.ZodType< ListPinsResponse, z.ZodTypeDef, unknown > = z.object({ pins: z.array(PinDocument$inboundSchema), }); export function listPinsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListPinsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPinsResponse' from JSON`, ); }