feat(client): expose Rocket.Chat channel

Refs #3821
This commit is contained in:
Marcos Paulo Diniz committed 2026-08-02 01:59:34 -03:00
1 parent 750fc9e238
commit 5774cb0e06
6 files changed
+34 -2

No files matched your search

+13
View File
@@ -30,6 +30,18 @@ const webhookSchema = baseSchema.extend({
address: z.string().min(1, "Webhook URL is required").url("Please enter a valid URL"),
});
const rocketChatSchema = baseSchema.extend({
type: z.literal("rocket_chat"),
address: z
.string()
.min(1, "Webhook URL is required")
.url("Please enter a valid URL")
.refine(
(url) => /^https?:\/\//i.test(url),
"Rocket.Chat webhook URL must use HTTP or HTTPS"
),
});
const pagerDutySchema = baseSchema.extend({
type: z.literal("pager_duty"),
address: z.string().min(1, "Integration key is required"),
@@ -81,6 +93,7 @@ export const notificationSchema = z.discriminatedUnion("type", [
slackSchema,
discordSchema,
webhookSchema,
rocketChatSchema,
pagerDutySchema,
matrixSchema,
teamsSchema,