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