/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ExpressionElseBranchV3, ExpressionElseBranchV3$inboundSchema, ExpressionElseBranchV3$Outbound, ExpressionElseBranchV3$outboundSchema, } from "./expressionelsebranchv3.js"; import { ExpressionOperationV3, ExpressionOperationV3$inboundSchema, ExpressionOperationV3$Outbound, ExpressionOperationV3$outboundSchema, } from "./expressionoperationv3.js"; import { ReturnsMetaV2, ReturnsMetaV2$inboundSchema, ReturnsMetaV2$Outbound, ReturnsMetaV2$outboundSchema, } from "./returnsmetav2.js"; export type ExpressionV3 = { elseBranch?: ExpressionElseBranchV3 | undefined; /** * The human readable label of the expression */ label: string; operations: Array; /** * A short ID that can be used to reference the expression */ reference: string; returns: ReturnsMetaV2; /** * The root reference for this expression (i.e. where the expression starts) */ rootReference: string; }; /** @internal */ export const ExpressionV3$inboundSchema: z.ZodType< ExpressionV3, z.ZodTypeDef, unknown > = z.object({ else_branch: ExpressionElseBranchV3$inboundSchema.optional(), label: z.string(), operations: z.array(ExpressionOperationV3$inboundSchema), reference: z.string(), returns: ReturnsMetaV2$inboundSchema, root_reference: z.string(), }).transform((v) => { return remap$(v, { "else_branch": "elseBranch", "root_reference": "rootReference", }); }); /** @internal */ export type ExpressionV3$Outbound = { else_branch?: ExpressionElseBranchV3$Outbound | undefined; label: string; operations: Array; reference: string; returns: ReturnsMetaV2$Outbound; root_reference: string; }; /** @internal */ export const ExpressionV3$outboundSchema: z.ZodType< ExpressionV3$Outbound, z.ZodTypeDef, ExpressionV3 > = z.object({ elseBranch: ExpressionElseBranchV3$outboundSchema.optional(), label: z.string(), operations: z.array(ExpressionOperationV3$outboundSchema), reference: z.string(), returns: ReturnsMetaV2$outboundSchema, rootReference: z.string(), }).transform((v) => { return remap$(v, { elseBranch: "else_branch", rootReference: "root_reference", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ExpressionV3$ { /** @deprecated use `ExpressionV3$inboundSchema` instead. */ export const inboundSchema = ExpressionV3$inboundSchema; /** @deprecated use `ExpressionV3$outboundSchema` instead. */ export const outboundSchema = ExpressionV3$outboundSchema; /** @deprecated use `ExpressionV3$Outbound` instead. */ export type Outbound = ExpressionV3$Outbound; }