/* * 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 EscalationPathRoundRobinConfigV2 = { /** * Whether round robin is enabled for this level */ enabled: boolean; /** * How long should we wait before rotating to the next target in a round robin, if not set will stick with a single target per level. */ rotateAfterSeconds?: number | undefined; }; /** @internal */ export const EscalationPathRoundRobinConfigV2$inboundSchema: z.ZodType< EscalationPathRoundRobinConfigV2, z.ZodTypeDef, unknown > = z.object({ enabled: z.boolean(), rotate_after_seconds: z.number().int().optional(), }).transform((v) => { return remap$(v, { "rotate_after_seconds": "rotateAfterSeconds", }); }); /** @internal */ export type EscalationPathRoundRobinConfigV2$Outbound = { enabled: boolean; rotate_after_seconds?: number | undefined; }; /** @internal */ export const EscalationPathRoundRobinConfigV2$outboundSchema: z.ZodType< EscalationPathRoundRobinConfigV2$Outbound, z.ZodTypeDef, EscalationPathRoundRobinConfigV2 > = z.object({ enabled: z.boolean(), rotateAfterSeconds: z.number().int().optional(), }).transform((v) => { return remap$(v, { rotateAfterSeconds: "rotate_after_seconds", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EscalationPathRoundRobinConfigV2$ { /** @deprecated use `EscalationPathRoundRobinConfigV2$inboundSchema` instead. */ export const inboundSchema = EscalationPathRoundRobinConfigV2$inboundSchema; /** @deprecated use `EscalationPathRoundRobinConfigV2$outboundSchema` instead. */ export const outboundSchema = EscalationPathRoundRobinConfigV2$outboundSchema; /** @deprecated use `EscalationPathRoundRobinConfigV2$Outbound` instead. */ export type Outbound = EscalationPathRoundRobinConfigV2$Outbound; }