/* * 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"; /** * The deduplication key that the event has been processed with */ export const DeduplicationKey = { UniqueKey: "unique-key", } as const; /** * The deduplication key that the event has been processed with */ export type DeduplicationKey = ClosedEnum; /** * Human readable message giving detail about the event */ export const Message = { EventAcceptedForProcessing: "Event accepted for processing", } as const; /** * Human readable message giving detail about the event */ export type Message = ClosedEnum; /** * Status of the event */ export const AlertResultStatus = { Success: "success", } as const; /** * Status of the event */ export type AlertResultStatus = ClosedEnum; export type AlertResult = { /** * The deduplication key that the event has been processed with */ deduplicationKey: DeduplicationKey; /** * Human readable message giving detail about the event */ message: Message; /** * Status of the event */ status: AlertResultStatus; }; /** @internal */ export const DeduplicationKey$inboundSchema: z.ZodNativeEnum< typeof DeduplicationKey > = z.nativeEnum(DeduplicationKey); /** @internal */ export const DeduplicationKey$outboundSchema: z.ZodNativeEnum< typeof DeduplicationKey > = DeduplicationKey$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace DeduplicationKey$ { /** @deprecated use `DeduplicationKey$inboundSchema` instead. */ export const inboundSchema = DeduplicationKey$inboundSchema; /** @deprecated use `DeduplicationKey$outboundSchema` instead. */ export const outboundSchema = DeduplicationKey$outboundSchema; } /** @internal */ export const Message$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Message); /** @internal */ export const Message$outboundSchema: z.ZodNativeEnum = Message$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Message$ { /** @deprecated use `Message$inboundSchema` instead. */ export const inboundSchema = Message$inboundSchema; /** @deprecated use `Message$outboundSchema` instead. */ export const outboundSchema = Message$outboundSchema; } /** @internal */ export const AlertResultStatus$inboundSchema: z.ZodNativeEnum< typeof AlertResultStatus > = z.nativeEnum(AlertResultStatus); /** @internal */ export const AlertResultStatus$outboundSchema: z.ZodNativeEnum< typeof AlertResultStatus > = AlertResultStatus$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace AlertResultStatus$ { /** @deprecated use `AlertResultStatus$inboundSchema` instead. */ export const inboundSchema = AlertResultStatus$inboundSchema; /** @deprecated use `AlertResultStatus$outboundSchema` instead. */ export const outboundSchema = AlertResultStatus$outboundSchema; } /** @internal */ export const AlertResult$inboundSchema: z.ZodType< AlertResult, z.ZodTypeDef, unknown > = z.object({ deduplication_key: DeduplicationKey$inboundSchema, message: Message$inboundSchema, status: AlertResultStatus$inboundSchema, }).transform((v) => { return remap$(v, { "deduplication_key": "deduplicationKey", }); }); /** @internal */ export type AlertResult$Outbound = { deduplication_key: string; message: string; status: string; }; /** @internal */ export const AlertResult$outboundSchema: z.ZodType< AlertResult$Outbound, z.ZodTypeDef, AlertResult > = z.object({ deduplicationKey: DeduplicationKey$outboundSchema, message: Message$outboundSchema, status: AlertResultStatus$outboundSchema, }).transform((v) => { return remap$(v, { deduplicationKey: "deduplication_key", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace AlertResult$ { /** @deprecated use `AlertResult$inboundSchema` instead. */ export const inboundSchema = AlertResult$inboundSchema; /** @deprecated use `AlertResult$outboundSchema` instead. */ export const outboundSchema = AlertResult$outboundSchema; /** @deprecated use `AlertResult$Outbound` instead. */ export type Outbound = AlertResult$Outbound; }