/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { EngineParamBindingV3, EngineParamBindingV3$inboundSchema, EngineParamBindingV3$Outbound, EngineParamBindingV3$outboundSchema, } from "./engineparambindingv3.js"; export type StepConfig = { /** * Reference to the loop variable to run this step over */ forEach?: string | undefined; /** * Unique ID of this step in a workflow */ id: string; /** * Human readable identifier for this step */ label: string; /** * Unique name of the step in the engine */ name: string; /** * Bindings for the step parameters */ paramBindings: Array; }; /** @internal */ export const StepConfig$inboundSchema: z.ZodType< StepConfig, z.ZodTypeDef, unknown > = z.object({ for_each: z.string().optional(), id: z.string(), label: z.string(), name: z.string(), param_bindings: z.array(EngineParamBindingV3$inboundSchema), }).transform((v) => { return remap$(v, { "for_each": "forEach", "param_bindings": "paramBindings", }); }); /** @internal */ export type StepConfig$Outbound = { for_each?: string | undefined; id: string; label: string; name: string; param_bindings: Array; }; /** @internal */ export const StepConfig$outboundSchema: z.ZodType< StepConfig$Outbound, z.ZodTypeDef, StepConfig > = z.object({ forEach: z.string().optional(), id: z.string(), label: z.string(), name: z.string(), paramBindings: z.array(EngineParamBindingV3$outboundSchema), }).transform((v) => { return remap$(v, { forEach: "for_each", paramBindings: "param_bindings", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace StepConfig$ { /** @deprecated use `StepConfig$inboundSchema` instead. */ export const inboundSchema = StepConfig$inboundSchema; /** @deprecated use `StepConfig$outboundSchema` instead. */ export const outboundSchema = StepConfig$outboundSchema; /** @deprecated use `StepConfig$Outbound` instead. */ export type Outbound = StepConfig$Outbound; }