/* * 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 CreateRequestBody2 = { /** * ID of the custom field this option belongs to */ customFieldId: string; /** * 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 CreateRequestBody2$inboundSchema: z.ZodType< CreateRequestBody2, z.ZodTypeDef, unknown > = z.object({ custom_field_id: z.string(), sort_key: z.number().int().default(1000), value: z.string(), }).transform((v) => { return remap$(v, { "custom_field_id": "customFieldId", "sort_key": "sortKey", }); }); /** @internal */ export type CreateRequestBody2$Outbound = { custom_field_id: string; sort_key: number; value: string; }; /** @internal */ export const CreateRequestBody2$outboundSchema: z.ZodType< CreateRequestBody2$Outbound, z.ZodTypeDef, CreateRequestBody2 > = z.object({ customFieldId: z.string(), sortKey: z.number().int().default(1000), value: z.string(), }).transform((v) => { return remap$(v, { customFieldId: "custom_field_id", 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 CreateRequestBody2$ { /** @deprecated use `CreateRequestBody2$inboundSchema` instead. */ export const inboundSchema = CreateRequestBody2$inboundSchema; /** @deprecated use `CreateRequestBody2$outboundSchema` instead. */ export const outboundSchema = CreateRequestBody2$outboundSchema; /** @deprecated use `CreateRequestBody2$Outbound` instead. */ export type Outbound = CreateRequestBody2$Outbound; }