feat: add audit log viewing for vendor and tenant personas
Vendor sees all audit events with tenant filter at /vendor/audit. Tenant admin sees only their own events at /tenant/audit. Both support pagination, action/result filters, and text search. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -93,3 +93,35 @@ export interface TenantSettings {
|
||||
serverEndpoint: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
// Audit log types
|
||||
export interface AuditLogEntry {
|
||||
id: string;
|
||||
actorEmail: string | null;
|
||||
tenantId: string | null;
|
||||
action: string;
|
||||
resource: string | null;
|
||||
environment: string | null;
|
||||
result: string;
|
||||
sourceIp: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface AuditLogPage {
|
||||
content: AuditLogEntry[];
|
||||
page: number;
|
||||
size: number;
|
||||
totalElements: number;
|
||||
totalPages: number;
|
||||
}
|
||||
|
||||
export interface AuditLogFilters {
|
||||
action?: string;
|
||||
result?: string;
|
||||
search?: string;
|
||||
from?: string;
|
||||
to?: string;
|
||||
tenantId?: string;
|
||||
page?: number;
|
||||
size?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user