🚧 process test alert

This commit is contained in:
Fred KISSIE
2026-08-07 20:52:25 +02:00
parent 6689a8d93e
commit 3f305e4d5c
5 changed files with 89 additions and 11 deletions
+22
View File
@@ -124,3 +124,25 @@ export interface AlertContext {
/** Human-readable context data included in emails and webhook payloads */
data: Record<string, unknown>;
}
type EmailAlertAction = {
type: "email";
userIds?: string[];
roleIds?: string[];
emails?: string[];
};
type WebhookAlertAction = {
type: "webhook";
webhookUrl: string;
enabled: boolean;
config?: string | undefined;
};
type AlertAction = EmailAlertAction | WebhookAlertAction;
export interface TestAlertContext {
eventType: AlertEventType;
actions: AlertAction[];
/** Human-readable context data included in emails and webhook payloads */
data: Record<string, unknown>;
}