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