/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { CatalogEntryEngineParamBindingValueV2, CatalogEntryEngineParamBindingValueV2$inboundSchema, CatalogEntryEngineParamBindingValueV2$Outbound, CatalogEntryEngineParamBindingValueV2$outboundSchema, } from "./catalogentryengineparambindingvaluev2.js"; export type CatalogEntryEngineParamBindingV2 = { /** * If array_value is set, this helps render the values */ arrayValue?: Array | undefined; value?: CatalogEntryEngineParamBindingValueV2 | undefined; }; /** @internal */ export const CatalogEntryEngineParamBindingV2$inboundSchema: z.ZodType< CatalogEntryEngineParamBindingV2, z.ZodTypeDef, unknown > = z.object({ array_value: z.array(CatalogEntryEngineParamBindingValueV2$inboundSchema) .optional(), value: CatalogEntryEngineParamBindingValueV2$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "array_value": "arrayValue", }); }); /** @internal */ export type CatalogEntryEngineParamBindingV2$Outbound = { array_value?: | Array | undefined; value?: CatalogEntryEngineParamBindingValueV2$Outbound | undefined; }; /** @internal */ export const CatalogEntryEngineParamBindingV2$outboundSchema: z.ZodType< CatalogEntryEngineParamBindingV2$Outbound, z.ZodTypeDef, CatalogEntryEngineParamBindingV2 > = z.object({ arrayValue: z.array(CatalogEntryEngineParamBindingValueV2$outboundSchema) .optional(), value: CatalogEntryEngineParamBindingValueV2$outboundSchema.optional(), }).transform((v) => { return remap$(v, { arrayValue: "array_value", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CatalogEntryEngineParamBindingV2$ { /** @deprecated use `CatalogEntryEngineParamBindingV2$inboundSchema` instead. */ export const inboundSchema = CatalogEntryEngineParamBindingV2$inboundSchema; /** @deprecated use `CatalogEntryEngineParamBindingV2$outboundSchema` instead. */ export const outboundSchema = CatalogEntryEngineParamBindingV2$outboundSchema; /** @deprecated use `CatalogEntryEngineParamBindingV2$Outbound` instead. */ export type Outbound = CatalogEntryEngineParamBindingV2$Outbound; }