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