notification provider
This commit is contained in:
1 parent
a0ebf7d224
commit
cff5508614
5 files changed
+38
-7
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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";
|
||||
Reference in new issue
Block a user