33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
export type DbTamperEventRow = {
|
|
id: string;
|
|
table_name: string;
|
|
operation: 'INSERT' | 'UPDATE' | 'DELETE';
|
|
row_id: string | null;
|
|
old_data: Record<string, unknown> | null;
|
|
new_data: Record<string, unknown> | null;
|
|
changed_columns: string[] | null;
|
|
source_hint: string;
|
|
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
processed_at: Date | null;
|
|
security_alert_id: string | null;
|
|
created_at: Date;
|
|
};
|
|
export declare function listUnprocessedEvents(limit?: number): Promise<DbTamperEventRow[]>;
|
|
export declare function markEventProcessed(eventId: string, securityAlertId: string | null): Promise<void>;
|
|
/** Marks spurious tamper events as processed without raising a security alert. */
|
|
export declare function markEventIgnored(eventId: string): Promise<void>;
|
|
export declare function listRecentEvents(opts: {
|
|
limit?: number;
|
|
offset?: number;
|
|
tableName?: string;
|
|
}): Promise<{
|
|
items: DbTamperEventRow[];
|
|
total: number;
|
|
}>;
|
|
export declare function listEventsForExport(opts?: {
|
|
tableName?: string;
|
|
from?: Date;
|
|
to?: Date;
|
|
limit?: number;
|
|
}): Promise<DbTamperEventRow[]>;
|
|
//# sourceMappingURL=dbTamperRepository.d.ts.map
|