/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type EscalationPathNodeRepeatV2 = { /** * How many times to repeat these steps */ repeatTimes: number; /** * Which node ID we begin repeating from */ toNode: string; }; /** @internal */ export const EscalationPathNodeRepeatV2$inboundSchema: z.ZodType< EscalationPathNodeRepeatV2, z.ZodTypeDef, unknown > = z.object({ repeat_times: z.number().int(), to_node: z.string(), }).transform((v) => { return remap$(v, { "repeat_times": "repeatTimes", "to_node": "toNode", }); }); /** @internal */ export type EscalationPathNodeRepeatV2$Outbound = { repeat_times: number; to_node: string; }; /** @internal */ export const EscalationPathNodeRepeatV2$outboundSchema: z.ZodType< EscalationPathNodeRepeatV2$Outbound, z.ZodTypeDef, EscalationPathNodeRepeatV2 > = z.object({ repeatTimes: z.number().int(), toNode: z.string(), }).transform((v) => { return remap$(v, { repeatTimes: "repeat_times", toNode: "to_node", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EscalationPathNodeRepeatV2$ { /** @deprecated use `EscalationPathNodeRepeatV2$inboundSchema` instead. */ export const inboundSchema = EscalationPathNodeRepeatV2$inboundSchema; /** @deprecated use `EscalationPathNodeRepeatV2$outboundSchema` instead. */ export const outboundSchema = EscalationPathNodeRepeatV2$outboundSchema; /** @deprecated use `EscalationPathNodeRepeatV2$Outbound` instead. */ export type Outbound = EscalationPathNodeRepeatV2$Outbound; }