/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CrudUpdateInputBody = { /** * description of the collection */ description?: string | undefined; /** * name of the collection */ name: string; /** * query string to search upon to build the collection */ query: string; }; /** @internal */ export type CrudUpdateInputBody$Outbound = { description?: string | undefined; name: string; query: string; }; /** @internal */ export const CrudUpdateInputBody$outboundSchema: z.ZodType< CrudUpdateInputBody$Outbound, z.ZodTypeDef, CrudUpdateInputBody > = z.object({ description: z.string().optional(), name: z.string(), query: z.string(), }); export function crudUpdateInputBodyToJSON( crudUpdateInputBody: CrudUpdateInputBody, ): string { return JSON.stringify( CrudUpdateInputBody$outboundSchema.parse(crudUpdateInputBody), ); }