34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
/**
|
|
* Processes PostgreSQL trigger-captured unauthorized database changes.
|
|
* Raises security alerts, emails, and in-app notifications.
|
|
*/
|
|
export declare function processDbTamperEvents(): Promise<number>;
|
|
export declare function listDbTamperEvents(opts: {
|
|
limit?: number;
|
|
offset?: number;
|
|
tableName?: string;
|
|
}): Promise<{
|
|
items: {
|
|
id: string;
|
|
tableName: string;
|
|
operation: "DELETE" | "INSERT" | "UPDATE";
|
|
rowId: string | null;
|
|
oldData: Record<string, unknown> | null;
|
|
newData: Record<string, unknown> | null;
|
|
changedColumns: string[] | null;
|
|
sourceHint: string;
|
|
severity: "low" | "medium" | "high" | "critical";
|
|
processedAt: Date | null;
|
|
securityAlertId: string | null;
|
|
createdAt: Date;
|
|
}[];
|
|
total: number;
|
|
}>;
|
|
export declare function getTamperCheckIntervalMs(): number;
|
|
export declare function buildDbTamperEventsCsv(opts?: {
|
|
tableName?: string;
|
|
from?: Date;
|
|
to?: Date;
|
|
limit?: number;
|
|
}): Promise<string>;
|
|
//# sourceMappingURL=dbTamperService.d.ts.map
|