/* * 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 UpdateCostsheetRequest = { description?: string | undefined; lookupKey?: string | undefined; metadata?: { [k: string]: string } | undefined; name?: string | undefined; }; /** @internal */ export type UpdateCostsheetRequest$Outbound = { description?: string | undefined; lookup_key?: string | undefined; metadata?: { [k: string]: string } | undefined; name?: string | undefined; }; /** @internal */ export const UpdateCostsheetRequest$outboundSchema: z.ZodMiniType< UpdateCostsheetRequest$Outbound, UpdateCostsheetRequest > = 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.optional(z.string()), }), z.transform((v) => { return remap$(v, { lookupKey: "lookup_key", }); }), ); export function updateCostsheetRequestToJSON( updateCostsheetRequest: UpdateCostsheetRequest, ): string { return JSON.stringify( UpdateCostsheetRequest$outboundSchema.parse(updateCostsheetRequest), ); }