/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CrudCreateInputBody = { /** * 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 CrudCreateInputBody$Outbound = { description?: string | undefined; name: string; query: string; }; /** @internal */ export const CrudCreateInputBody$outboundSchema: z.ZodType< CrudCreateInputBody$Outbound, z.ZodTypeDef, CrudCreateInputBody > = z.object({ description: z.string().optional(), name: z.string(), query: z.string(), }); export function crudCreateInputBodyToJSON( crudCreateInputBody: CrudCreateInputBody, ): string { return JSON.stringify( CrudCreateInputBody$outboundSchema.parse(crudCreateInputBody), ); }