/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 29de41a36d75 */ 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 { ChatFile, ChatFile$inboundSchema } from "./chatfile.js"; export type UploadChatFilesResponse = { /** * Files uploaded for chat. */ files?: Array | undefined; }; /** @internal */ export const UploadChatFilesResponse$inboundSchema: z.ZodType< UploadChatFilesResponse, z.ZodTypeDef, unknown > = z.object({ files: z.array(ChatFile$inboundSchema).optional(), }); export function uploadChatFilesResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UploadChatFilesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UploadChatFilesResponse' from JSON`, ); }