/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { ClosedEnum } from "../../types/enums.js"; export const IntervalType = { Hourly: "hourly", Daily: "daily", Weekly: "weekly", } as const; export type IntervalType = ClosedEnum; export type ScheduleRotationHandoverV2 = { interval?: number | undefined; intervalType?: IntervalType | undefined; }; /** @internal */ export const IntervalType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(IntervalType); /** @internal */ export const IntervalType$outboundSchema: z.ZodNativeEnum = IntervalType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace IntervalType$ { /** @deprecated use `IntervalType$inboundSchema` instead. */ export const inboundSchema = IntervalType$inboundSchema; /** @deprecated use `IntervalType$outboundSchema` instead. */ export const outboundSchema = IntervalType$outboundSchema; } /** @internal */ export const ScheduleRotationHandoverV2$inboundSchema: z.ZodType< ScheduleRotationHandoverV2, z.ZodTypeDef, unknown > = z.object({ interval: z.number().int().optional(), interval_type: IntervalType$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "interval_type": "intervalType", }); }); /** @internal */ export type ScheduleRotationHandoverV2$Outbound = { interval?: number | undefined; interval_type?: string | undefined; }; /** @internal */ export const ScheduleRotationHandoverV2$outboundSchema: z.ZodType< ScheduleRotationHandoverV2$Outbound, z.ZodTypeDef, ScheduleRotationHandoverV2 > = z.object({ interval: z.number().int().optional(), intervalType: IntervalType$outboundSchema.optional(), }).transform((v) => { return remap$(v, { intervalType: "interval_type", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ScheduleRotationHandoverV2$ { /** @deprecated use `ScheduleRotationHandoverV2$inboundSchema` instead. */ export const inboundSchema = ScheduleRotationHandoverV2$inboundSchema; /** @deprecated use `ScheduleRotationHandoverV2$outboundSchema` instead. */ export const outboundSchema = ScheduleRotationHandoverV2$outboundSchema; /** @deprecated use `ScheduleRotationHandoverV2$Outbound` instead. */ export type Outbound = ScheduleRotationHandoverV2$Outbound; }