/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { EngineParamBindingPayloadV2, EngineParamBindingPayloadV2$inboundSchema, EngineParamBindingPayloadV2$Outbound, EngineParamBindingPayloadV2$outboundSchema, } from "./engineparambindingpayloadv2.js"; export type CreateEntryRequestBody = { /** * Optional aliases that can be used to reference this entry */ aliases?: Array | undefined; /** * Values of this entry */ attributeValues: { [k: string]: EngineParamBindingPayloadV2 }; /** * ID of this catalog type */ catalogTypeId: string; /** * An optional alternative ID for this entry, which is ensured to be unique for the type */ externalId?: string | undefined; /** * Name is the human readable name of this entry */ name: string; /** * When catalog type is ranked, this is used to help order things */ rank?: number | undefined; }; /** @internal */ export const CreateEntryRequestBody$inboundSchema: z.ZodType< CreateEntryRequestBody, z.ZodTypeDef, unknown > = z.object({ aliases: z.array(z.string()).optional(), attribute_values: z.record(EngineParamBindingPayloadV2$inboundSchema), catalog_type_id: z.string(), external_id: z.string().optional(), name: z.string(), rank: z.number().int().optional(), }).transform((v) => { return remap$(v, { "attribute_values": "attributeValues", "catalog_type_id": "catalogTypeId", "external_id": "externalId", }); }); /** @internal */ export type CreateEntryRequestBody$Outbound = { aliases?: Array | undefined; attribute_values: { [k: string]: EngineParamBindingPayloadV2$Outbound }; catalog_type_id: string; external_id?: string | undefined; name: string; rank?: number | undefined; }; /** @internal */ export const CreateEntryRequestBody$outboundSchema: z.ZodType< CreateEntryRequestBody$Outbound, z.ZodTypeDef, CreateEntryRequestBody > = z.object({ aliases: z.array(z.string()).optional(), attributeValues: z.record(EngineParamBindingPayloadV2$outboundSchema), catalogTypeId: z.string(), externalId: z.string().optional(), name: z.string(), rank: z.number().int().optional(), }).transform((v) => { return remap$(v, { attributeValues: "attribute_values", catalogTypeId: "catalog_type_id", externalId: "external_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreateEntryRequestBody$ { /** @deprecated use `CreateEntryRequestBody$inboundSchema` instead. */ export const inboundSchema = CreateEntryRequestBody$inboundSchema; /** @deprecated use `CreateEntryRequestBody$outboundSchema` instead. */ export const outboundSchema = CreateEntryRequestBody$outboundSchema; /** @deprecated use `CreateEntryRequestBody$Outbound` instead. */ export type Outbound = CreateEntryRequestBody$Outbound; }