notification provider

This commit is contained in:
Alex Holliday committed 2026-01-18 16:34:20 +00:00
1 parent a0ebf7d224
commit cff5508614
5 files changed
+38 -7

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import { NotificationChannel } from "@/types/index.js";
export interface AlertWebhookPayload {
body: Record<string, unknown>;
}
export interface AlertPagerDutyPayload {
routingKey: string;
monitorUrl?: string;
}
export interface AlertMatrixPayload {
friendlyName?: string;
homeserverUrl: string;
accessToken: string;
roomId: string;
monitorName: string;
}
export interface Alert {
channel: NotificationChannel;
address?: string;
subject: string;
message: string;
html?: string;
discordContent?: Record<string, unknown> | null;
webhook?: AlertWebhookPayload | null;
pagerDuty?: AlertPagerDutyPayload | null;
matrix?: AlertMatrixPayload | null;
}
+1
View File
@@ -8,3 +8,4 @@ export * from "@/types/invite.js";
export * from "@/types/recoveryToken.js";
export * from "@/types/settings.js";
export * from "@/types/notification.js";
export * from "@/types/alert.js";