29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
import type { SecurityAlert, SecurityAlertSeverity, SecurityAlertStatus } from '../models/security.model';
|
|
export declare function createAlert(input: {
|
|
userId?: string | null;
|
|
severity: SecurityAlertSeverity;
|
|
alertType: string;
|
|
title: string;
|
|
details?: string;
|
|
metadata?: Record<string, unknown>;
|
|
}): Promise<SecurityAlert>;
|
|
export declare function listAlerts(opts: {
|
|
status?: SecurityAlertStatus;
|
|
userId?: string;
|
|
limit?: number;
|
|
offset?: number;
|
|
}): Promise<{
|
|
items: SecurityAlert[];
|
|
total: number;
|
|
}>;
|
|
export declare function findById(id: string): Promise<SecurityAlert | null>;
|
|
/** True if an open FIM alert already exists for the same root/path/issue (stops alert storms). */
|
|
export declare function hasOpenFileIntegrityAlert(input: {
|
|
rootKey: string;
|
|
relativePath: string;
|
|
issue: string;
|
|
}): Promise<boolean>;
|
|
export declare function updateAlertStatus(id: string, status: SecurityAlertStatus, resolvedBy: string | null, resolutionNote?: string): Promise<SecurityAlert | null>;
|
|
export declare function setAlertEmails(emails: string[]): Promise<void>;
|
|
export declare function getAlertEmailsDecrypted(): Promise<string[]>;
|
|
//# sourceMappingURL=securityAlertRepository.d.ts.map
|