/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { EngineParamBindingPayloadV2, EngineParamBindingPayloadV2$inboundSchema, EngineParamBindingPayloadV2$Outbound, EngineParamBindingPayloadV2$outboundSchema, } from "./engineparambindingpayloadv2.js"; export type ConditionPayloadV2 = { /** * The name of the operation on the subject */ operation: string; /** * List of parameter bindings */ paramBindings: Array; /** * The reference of the subject in the trigger scope */ subject: string; }; /** @internal */ export const ConditionPayloadV2$inboundSchema: z.ZodType< ConditionPayloadV2, z.ZodTypeDef, unknown > = z.object({ operation: z.string(), param_bindings: z.array(EngineParamBindingPayloadV2$inboundSchema), subject: z.string(), }).transform((v) => { return remap$(v, { "param_bindings": "paramBindings", }); }); /** @internal */ export type ConditionPayloadV2$Outbound = { operation: string; param_bindings: Array; subject: string; }; /** @internal */ export const ConditionPayloadV2$outboundSchema: z.ZodType< ConditionPayloadV2$Outbound, z.ZodTypeDef, ConditionPayloadV2 > = z.object({ operation: z.string(), paramBindings: z.array(EngineParamBindingPayloadV2$outboundSchema), subject: z.string(), }).transform((v) => { return remap$(v, { 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 ConditionPayloadV2$ { /** @deprecated use `ConditionPayloadV2$inboundSchema` instead. */ export const inboundSchema = ConditionPayloadV2$inboundSchema; /** @deprecated use `ConditionPayloadV2$outboundSchema` instead. */ export const outboundSchema = ConditionPayloadV2$outboundSchema; /** @deprecated use `ConditionPayloadV2$Outbound` instead. */ export type Outbound = ConditionPayloadV2$Outbound; }