/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type AlertEventsV2NumberCreateHTTPRequest = { /** * Token used to authenticate the request, generated when configuring the alert source. Will be consumed via a URL query string parameter */ token?: string | undefined; /** * Which alert source config produced this alert */ alertSourceConfigId: string; createHTTPRequestBody: components.CreateHTTPRequestBody; }; /** @internal */ export const AlertEventsV2NumberCreateHTTPRequest$inboundSchema: z.ZodType< AlertEventsV2NumberCreateHTTPRequest, z.ZodTypeDef, unknown > = z.object({ token: z.string().optional(), alert_source_config_id: z.string(), CreateHTTPRequestBody: components.CreateHTTPRequestBody$inboundSchema, }).transform((v) => { return remap$(v, { "alert_source_config_id": "alertSourceConfigId", "CreateHTTPRequestBody": "createHTTPRequestBody", }); }); /** @internal */ export type AlertEventsV2NumberCreateHTTPRequest$Outbound = { token?: string | undefined; alert_source_config_id: string; CreateHTTPRequestBody: components.CreateHTTPRequestBody$Outbound; }; /** @internal */ export const AlertEventsV2NumberCreateHTTPRequest$outboundSchema: z.ZodType< AlertEventsV2NumberCreateHTTPRequest$Outbound, z.ZodTypeDef, AlertEventsV2NumberCreateHTTPRequest > = z.object({ token: z.string().optional(), alertSourceConfigId: z.string(), createHTTPRequestBody: components.CreateHTTPRequestBody$outboundSchema, }).transform((v) => { return remap$(v, { alertSourceConfigId: "alert_source_config_id", createHTTPRequestBody: "CreateHTTPRequestBody", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace AlertEventsV2NumberCreateHTTPRequest$ { /** @deprecated use `AlertEventsV2NumberCreateHTTPRequest$inboundSchema` instead. */ export const inboundSchema = AlertEventsV2NumberCreateHTTPRequest$inboundSchema; /** @deprecated use `AlertEventsV2NumberCreateHTTPRequest$outboundSchema` instead. */ export const outboundSchema = AlertEventsV2NumberCreateHTTPRequest$outboundSchema; /** @deprecated use `AlertEventsV2NumberCreateHTTPRequest$Outbound` instead. */ export type Outbound = AlertEventsV2NumberCreateHTTPRequest$Outbound; }