diff --git a/docs/models/components/channeltypeenum.md b/docs/models/components/channeltypeenum.md new file mode 100644 index 00000000..b5dc0c7f --- /dev/null +++ b/docs/models/components/channeltypeenum.md @@ -0,0 +1,15 @@ +# ChannelTypeEnum + +## Example Usage + +```typescript +import { ChannelTypeEnum } from "@novu/api/models/components"; + +let value: ChannelTypeEnum = "email"; +``` + +## Values + +```typescript +"in_app" | "email" | "sms" | "chat" | "push" +``` \ No newline at end of file diff --git a/src/models/components/channeltypeenum.ts b/src/models/components/channeltypeenum.ts new file mode 100644 index 00000000..dda6c6e3 --- /dev/null +++ b/src/models/components/channeltypeenum.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { ClosedEnum } from "../../types/enums.js"; + +export const ChannelTypeEnum = { + InApp: "in_app", + Email: "email", + Sms: "sms", + Chat: "chat", + Push: "push", +} as const; +export type ChannelTypeEnum = ClosedEnum; + +/** @internal */ +export const ChannelTypeEnum$inboundSchema: z.ZodNativeEnum< + typeof ChannelTypeEnum +> = z.nativeEnum(ChannelTypeEnum); + +/** @internal */ +export const ChannelTypeEnum$outboundSchema: z.ZodNativeEnum< + typeof ChannelTypeEnum +> = ChannelTypeEnum$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ChannelTypeEnum$ { + /** @deprecated use `ChannelTypeEnum$inboundSchema` instead. */ + export const inboundSchema = ChannelTypeEnum$inboundSchema; + /** @deprecated use `ChannelTypeEnum$outboundSchema` instead. */ + export const outboundSchema = ChannelTypeEnum$outboundSchema; +}