/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { EscalationPathV2, EscalationPathV2$inboundSchema, EscalationPathV2$Outbound, EscalationPathV2$outboundSchema, } from "./escalationpathv2.js"; export type CreatePathResponseBody = { escalationPath: EscalationPathV2; }; /** @internal */ export const CreatePathResponseBody$inboundSchema: z.ZodType< CreatePathResponseBody, z.ZodTypeDef, unknown > = z.object({ escalation_path: EscalationPathV2$inboundSchema, }).transform((v) => { return remap$(v, { "escalation_path": "escalationPath", }); }); /** @internal */ export type CreatePathResponseBody$Outbound = { escalation_path: EscalationPathV2$Outbound; }; /** @internal */ export const CreatePathResponseBody$outboundSchema: z.ZodType< CreatePathResponseBody$Outbound, z.ZodTypeDef, CreatePathResponseBody > = z.object({ escalationPath: EscalationPathV2$outboundSchema, }).transform((v) => { return remap$(v, { escalationPath: "escalation_path", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreatePathResponseBody$ { /** @deprecated use `CreatePathResponseBody$inboundSchema` instead. */ export const inboundSchema = CreatePathResponseBody$inboundSchema; /** @deprecated use `CreatePathResponseBody$outboundSchema` instead. */ export const outboundSchema = CreatePathResponseBody$outboundSchema; /** @deprecated use `CreatePathResponseBody$Outbound` instead. */ export type Outbound = CreatePathResponseBody$Outbound; }