basalt / audit-viewer/src / AuditViewerRoutesOptions
Interface: AuditViewerRoutesOptions
Defined in: audit-viewer/src/plugin.ts:49
Extends
Properties
allowAnyAuthenticated?
> optional allowAnyAuthenticated?: boolean
Defined in: audit-viewer/src/plugin.ts:68
Explicitly lets any logged-in user of the tenant read the whole trail. Only for apps where every user is an administrator.
apiBase?
> optional apiBase?: string
Defined in: audit-viewer/src/html.ts:5
Base path where the audit JSON API is mounted. Default '' (same origin).
Inherited from
AuditViewerHtmlOptions.apiBase
csp?
> optional csp?: string | false
Defined in: audit-viewer/src/plugin.ts:54
Content-Security-Policy for the HTML page. Default: the hash-locked auditViewerCsp. Pass a string to override, or false to send none.
meta?
> optional meta?: Record<string, unknown>
Defined in: audit-viewer/src/plugin.ts:63
The authorization guard merged into every route's meta — e.g. { can: 'audit:read' } (@basaltkit/permissions) or { teamRole: 'admin' } (@basaltkit/teams). auth: true is always added on top.
Required unless allowAnyAuthenticated is set: the trail holds every user's actions, emails and event payloads, so it is an admin surface.
title?
> optional title?: string
Defined in: audit-viewer/src/html.ts:6