/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 9e1e08f0b245 */ import * as z from "zod/v3"; /** * Describes text content or base64 encoded binary content */ export type ContentDefinition = { mimeType: string; /** * text content. Only one of textContent or binary content can be specified */ textContent?: string | undefined; /** * base64 encoded binary content. Only one of textContent or binary content can be specified */ binaryContent?: string | undefined; }; /** @internal */ export type ContentDefinition$Outbound = { mimeType: string; textContent?: string | undefined; binaryContent?: string | undefined; }; /** @internal */ export const ContentDefinition$outboundSchema: z.ZodType< ContentDefinition$Outbound, z.ZodTypeDef, ContentDefinition > = z.object({ mimeType: z.string(), textContent: z.string().optional(), binaryContent: z.string().optional(), }); export function contentDefinitionToJSON( contentDefinition: ContentDefinition, ): string { return JSON.stringify( ContentDefinition$outboundSchema.parse(contentDefinition), ); }