AuditPanelOptions
Defined in: src/server/create-fetch-handler.ts:39
Options for the panel handler (shared by every framework adapter).
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
actions? |
ActionMap |
Typed action catalog from defineActions. Ignored with core. |
src/server/create-fetch-handler.ts:89 |
auth? |
AuthProvider |
Authentication provider. Default: anonymous (no auth). | src/server/create-fetch-handler.ts:48 |
authorization? |
AuthorizationProvider |
Authorization provider. Default: allow all. | src/server/create-fetch-handler.ts:50 |
basePath? |
string |
Mount prefix, e.g. "/audit". Default "" (root). |
src/server/create-fetch-handler.ts:46 |
core? |
AuditCore<any> |
Reuse an existing core instead of constructing one — typed (createAuditCore({ actions })) or not. The panel only records untyped input over HTTP (validated at runtime by the core’s catalog), so any action map is accepted here. |
src/server/create-fetch-handler.ts:72 |
cors? |
CorsOptions |
Enable CORS on the handler itself — answers OPTIONS preflights and attaches Access-Control-* headers to every response, so a cross-origin portal embed works regardless of the host framework. See ./cors.AuditCorsOptions. |
src/server/create-fetch-handler.ts:97 |
hooks? |
AuditHooksInput |
Control-plane hooks (see ../hooks/contract.AuditHooks). Ignored when core is supplied — configure hooks on that core instead. |
src/server/create-fetch-handler.ts:77 |
logoUrl? |
string |
Logo image URL shown in the navbar in place of the title wordmark. | src/server/create-fetch-handler.ts:62 |
maintenance? |
| false | { interval?: AuditDuration; } |
Periodic retention: run core.prune() every interval (default "1h") when the core has a retention policy. false disables the timer (prune from a cron with xtandard-audit prune instead). |
src/server/create-fetch-handler.ts:115 |
onHookError? |
HookErrorReporter |
Reporter for errors thrown by after hooks. Default: console.warn. Ignored with core. |
src/server/create-fetch-handler.ts:79 |
portal? |
AuditPortalOptions |
Portal-token composition: requests bearing a valid audpt_… token act as a portal principal scoped to the token’s tenant and view filter. Mint tokens server-side with createPortalToken. See ./routes.AuditPortalOptions. |
src/server/create-fetch-handler.ts:56 |
readonly? |
boolean |
Block all mutating operations (423) when true. |
src/server/create-fetch-handler.ts:58 |
retention? |
RetentionOptions |
Retention policy (see ../core.RetentionOptions). Ignored when a prebuilt core is supplied — configure it on that core instead. Pruning runs on the maintenance timer and via POST /api/prune. |
src/server/create-fetch-handler.ts:85 |
signer? |
AuditSigner |
Checkpoint signer (ed25519Signer / hmacSigner). Ignored with core. |
src/server/create-fetch-handler.ts:87 |
storage? |
KvStorage |
Where the log lives. Required unless a prebuilt core is supplied (which carries its own storage as the source of truth). |
src/server/create-fetch-handler.ts:44 |
streamRunner? |
| false | Omit<StreamRunnerOptions, "streams"> |
Stream-runner tuning, or false to not start it in this process (split deployments where xtandard-audit serve elsewhere runs the streams). The runner is still created so the UI shows lag and errors. |
src/server/create-fetch-handler.ts:109 |
streams? |
StreamDefinition[] |
SIEM / archive streams (ADR 0008). The panel creates a stream runner over them (status + retry in the UI) and starts it unless streamRunner is false. |
src/server/create-fetch-handler.ts:103 |
title? |
string |
UI title shown in the page and bootstrap config. | src/server/create-fetch-handler.ts:60 |
transforms? |
AuditTransform[] |
Redact / mask / hash / omit before chaining. Ignored with core. |
src/server/create-fetch-handler.ts:91 |
uiDir? |
string |
Override the directory the bundled UI is served from (defaults to ./ui beside this module). |
src/server/create-fetch-handler.ts:64 |