/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type CreateCostsheetRequest = { description?: string | undefined; lookupKey?: string | undefined; metadata?: { [k: string]: string } | undefined; name: string; }; /** @internal */ export type CreateCostsheetRequest$Outbound = { description?: string | undefined; lookup_key?: string | undefined; metadata?: { [k: string]: string } | undefined; name: string; }; /** @internal */ export const CreateCostsheetRequest$outboundSchema: z.ZodMiniType< CreateCostsheetRequest$Outbound, CreateCostsheetRequest > = z.pipe( z.object({ description: z.optional(z.string()), lookupKey: z.optional(z.string()), metadata: z.optional(z.record(z.string(), z.string())), name: z.string(), }), z.transform((v) => { return remap$(v, { lookupKey: "lookup_key", }); }), ); export function createCostsheetRequestToJSON( createCostsheetRequest: CreateCostsheetRequest, ): string { return JSON.stringify( CreateCostsheetRequest$outboundSchema.parse(createCostsheetRequest), ); }