/* * 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 UpdateEntryRequestBody = { /** * Optional aliases that can be used to reference this entry */ aliases?: Array | undefined; /** * Values of this entry */ attributeValues: { [k: string]: EngineParamBindingPayloadV2 }; /** * 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 UpdateEntryRequestBody$inboundSchema: z.ZodType< UpdateEntryRequestBody, z.ZodTypeDef, unknown > = z.object({ aliases: z.array(z.string()).optional(), attribute_values: z.record(EngineParamBindingPayloadV2$inboundSchema), external_id: z.string().optional(), name: z.string(), rank: z.number().int().optional(), }).transform((v) => { return remap$(v, { "attribute_values": "attributeValues", "external_id": "externalId", }); }); /** @internal */ export type UpdateEntryRequestBody$Outbound = { aliases?: Array | undefined; attribute_values: { [k: string]: EngineParamBindingPayloadV2$Outbound }; external_id?: string | undefined; name: string; rank?: number | undefined; }; /** @internal */ export const UpdateEntryRequestBody$outboundSchema: z.ZodType< UpdateEntryRequestBody$Outbound, z.ZodTypeDef, UpdateEntryRequestBody > = z.object({ aliases: z.array(z.string()).optional(), attributeValues: z.record(EngineParamBindingPayloadV2$outboundSchema), externalId: z.string().optional(), name: z.string(), rank: z.number().int().optional(), }).transform((v) => { return remap$(v, { attributeValues: "attribute_values", 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 UpdateEntryRequestBody$ { /** @deprecated use `UpdateEntryRequestBody$inboundSchema` instead. */ export const inboundSchema = UpdateEntryRequestBody$inboundSchema; /** @deprecated use `UpdateEntryRequestBody$outboundSchema` instead. */ export const outboundSchema = UpdateEntryRequestBody$outboundSchema; /** @deprecated use `UpdateEntryRequestBody$Outbound` instead. */ export type Outbound = UpdateEntryRequestBody$Outbound; }