/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 151d731eaef9 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type DocumentURLChunk = { type?: "document_url" | undefined; documentUrl: string; /** * The filename of the document */ documentName?: string | null | undefined; }; /** @internal */ export type DocumentURLChunk$Outbound = { type: "document_url"; document_url: string; document_name?: string | null | undefined; }; /** @internal */ export const DocumentURLChunk$outboundSchema: z.ZodType< DocumentURLChunk$Outbound, DocumentURLChunk > = z.object({ type: z.literal("document_url").default("document_url" as const), documentUrl: z.string(), documentName: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { documentUrl: "document_url", documentName: "document_name", }); }); export function documentURLChunkToJSON( documentURLChunk: DocumentURLChunk, ): string { return JSON.stringify( DocumentURLChunk$outboundSchema.parse(documentURLChunk), ); }