feat: add audit log viewing for vendor and tenant personas
All checks were successful
CI / build (push) Successful in 52s
CI / docker (push) Successful in 40s

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:
hsiegeln
2026-04-10 13:07:18 +02:00
parent 1750fe64a2
commit 8b94937d38
13 changed files with 557 additions and 3 deletions

View File

@@ -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;
}