/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { EngineParamBindingValueV2, EngineParamBindingValueV2$inboundSchema, EngineParamBindingValueV2$Outbound, EngineParamBindingValueV2$outboundSchema, } from "./engineparambindingvaluev2.js"; export type EngineParamBindingV2 = { /** * If array_value is set, this helps render the values */ arrayValue?: Array | undefined; value?: EngineParamBindingValueV2 | undefined; }; /** @internal */ export const EngineParamBindingV2$inboundSchema: z.ZodType< EngineParamBindingV2, z.ZodTypeDef, unknown > = z.object({ array_value: z.array(EngineParamBindingValueV2$inboundSchema).optional(), value: EngineParamBindingValueV2$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "array_value": "arrayValue", }); }); /** @internal */ export type EngineParamBindingV2$Outbound = { array_value?: Array | undefined; value?: EngineParamBindingValueV2$Outbound | undefined; }; /** @internal */ export const EngineParamBindingV2$outboundSchema: z.ZodType< EngineParamBindingV2$Outbound, z.ZodTypeDef, EngineParamBindingV2 > = z.object({ arrayValue: z.array(EngineParamBindingValueV2$outboundSchema).optional(), value: EngineParamBindingValueV2$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 EngineParamBindingV2$ { /** @deprecated use `EngineParamBindingV2$inboundSchema` instead. */ export const inboundSchema = EngineParamBindingV2$inboundSchema; /** @deprecated use `EngineParamBindingV2$outboundSchema` instead. */ export const outboundSchema = EngineParamBindingV2$outboundSchema; /** @deprecated use `EngineParamBindingV2$Outbound` instead. */ export type Outbound = EngineParamBindingV2$Outbound; }