28 lines
794 B
TypeScript
28 lines
794 B
TypeScript
import { z } from "zod";
|
|
|
|
import {
|
|
DiscordConfigSchema,
|
|
IMessageConfigSchema,
|
|
MSTeamsConfigSchema,
|
|
SignalConfigSchema,
|
|
SlackConfigSchema,
|
|
TelegramConfigSchema,
|
|
} from "./zod-schema.providers-core.js";
|
|
import { WhatsAppConfigSchema } from "./zod-schema.providers-whatsapp.js";
|
|
|
|
export * from "./zod-schema.providers-core.js";
|
|
export * from "./zod-schema.providers-whatsapp.js";
|
|
|
|
export const ChannelsSchema = z
|
|
.object({
|
|
whatsapp: WhatsAppConfigSchema.optional(),
|
|
telegram: TelegramConfigSchema.optional(),
|
|
discord: DiscordConfigSchema.optional(),
|
|
slack: SlackConfigSchema.optional(),
|
|
signal: SignalConfigSchema.optional(),
|
|
imessage: IMessageConfigSchema.optional(),
|
|
msteams: MSTeamsConfigSchema.optional(),
|
|
})
|
|
.catchall(z.unknown())
|
|
.optional();
|