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