/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: a49b06a4b6b5 */ 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"; export type Summary = { text?: string | undefined; /** * Follow-up prompts based on the summarized doc */ followUpPrompts?: Array | undefined; }; /** @internal */ export const Summary$inboundSchema: z.ZodType = z.object({ text: z.string().optional(), followUpPrompts: z.array(z.string()).optional(), }); export function summaryFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Summary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Summary' from JSON`, ); }