/* * 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 CreatePlanRequest = { description?: string | undefined; displayOrder?: number | undefined; lookupKey?: string | undefined; metadata?: { [k: string]: string } | undefined; name: string; }; /** @internal */ export type CreatePlanRequest$Outbound = { description?: string | undefined; display_order?: number | undefined; lookup_key?: string | undefined; metadata?: { [k: string]: string } | undefined; name: string; }; /** @internal */ export const CreatePlanRequest$outboundSchema: z.ZodMiniType< CreatePlanRequest$Outbound, CreatePlanRequest > = z.pipe( z.object({ description: z.optional(z.string()), displayOrder: z.optional(z.int()), lookupKey: z.optional(z.string()), metadata: z.optional(z.record(z.string(), z.string())), name: z.string(), }), z.transform((v) => { return remap$(v, { displayOrder: "display_order", lookupKey: "lookup_key", }); }), ); export function createPlanRequestToJSON( createPlanRequest: CreatePlanRequest, ): string { return JSON.stringify( CreatePlanRequest$outboundSchema.parse(createPlanRequest), ); }