This commit is contained in:
Fred KISSIE
2026-08-07 20:57:54 +02:00
parent 3f305e4d5c
commit 403b8a12e4
2 changed files with 58 additions and 6 deletions
+3 -2
View File
@@ -125,14 +125,14 @@ export interface AlertContext {
data: Record<string, unknown>;
}
type EmailAlertAction = {
export type EmailAlertAction = {
type: "email";
userIds?: string[];
roleIds?: string[];
emails?: string[];
};
type WebhookAlertAction = {
export type WebhookAlertAction = {
type: "webhook";
webhookUrl: string;
enabled: boolean;
@@ -143,6 +143,7 @@ type AlertAction = EmailAlertAction | WebhookAlertAction;
export interface TestAlertContext {
eventType: AlertEventType;
actions: AlertAction[];
orgId: string;
/** Human-readable context data included in emails and webhook payloads */
data: Record<string, unknown>;
}