/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type UpdateRequestBody2 = { /** * Sort key used to order the custom field options correctly */ sortKey?: number | undefined; /** * Human readable name for the custom field option */ value: string; }; /** @internal */ export const UpdateRequestBody2$inboundSchema: z.ZodType< UpdateRequestBody2, z.ZodTypeDef, unknown > = z.object({ sort_key: z.number().int().default(1000), value: z.string(), }).transform((v) => { return remap$(v, { "sort_key": "sortKey", }); }); /** @internal */ export type UpdateRequestBody2$Outbound = { sort_key: number; value: string; }; /** @internal */ export const UpdateRequestBody2$outboundSchema: z.ZodType< UpdateRequestBody2$Outbound, z.ZodTypeDef, UpdateRequestBody2 > = z.object({ sortKey: z.number().int().default(1000), value: z.string(), }).transform((v) => { return remap$(v, { sortKey: "sort_key", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace UpdateRequestBody2$ { /** @deprecated use `UpdateRequestBody2$inboundSchema` instead. */ export const inboundSchema = UpdateRequestBody2$inboundSchema; /** @deprecated use `UpdateRequestBody2$outboundSchema` instead. */ export const outboundSchema = UpdateRequestBody2$outboundSchema; /** @deprecated use `UpdateRequestBody2$Outbound` instead. */ export type Outbound = UpdateRequestBody2$Outbound; }