feat(notifications): add Rocket.Chat provider

Refs #3821
This commit is contained in:
Marcos Paulo Diniz committed 2026-08-02 01:59:11 -03:00
1 parent 3646af9c04
commit 750fc9e238
8 files changed
+306

No files matched your search

@@ -23,6 +23,14 @@ export const createNotificationBodyValidation = z.discriminatedUnion("type", [
roomId: z.union([z.string(), z.literal("")]).optional(),
accessToken: z.union([z.string(), z.literal("")]).optional(),
}),
// Rocket.Chat notification
z.object({
notificationName: z.string().min(1, "Notification name is required"),
type: z.literal("rocket_chat"),
address: z
.url({ message: "Please enter a valid Rocket.Chat webhook URL" })
.refine((url) => /^https?:\/\//i.test(url), { message: "Rocket.Chat webhook URL must use HTTP or HTTPS" }),
}),
// Slack notification
z.object({
notificationName: z.string().min(1, "Notification name is required"),