auth/audit_log_routes.ts view source
AuditLogRouteOptions Options for audit log route specs.
required_role
Role required to access audit routes. Default 'admin'.
stringstream
When provided, includes an SSE route at /audit/stream for realtime audit events.
The subscribe function receives the stream, channels, and the subscriber's account_id
as an identity key — enabling close_by_identity() for auth revocation.
{
subscribe: (stream: SseStream<SseNotification>, options?: SubscribeOptions) => () => void;
log: Logger;
}