Skip to content

AuditElysiaOptions

Defined in: src/adapters/elysia-shared.ts:32

Options for auditElysia.

Property Type Description Inherited from Defined in
actions? ActionMap Typed action catalog from defineActions. Ignored with core. AuditPanelOptions.actions src/server/create-fetch-handler.ts:89
auth? AuthProvider Authentication provider. Default: anonymous (no auth). AuditPanelOptions.auth src/server/create-fetch-handler.ts:48
authorization? AuthorizationProvider Authorization provider. Default: allow all. AuditPanelOptions.authorization src/server/create-fetch-handler.ts:50
basePath? string Mount prefix, e.g. "/audit". Default "" (root). AuditPanelOptions.basePath 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. AuditPanelOptions.core 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. AuditPanelOptions.cors 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. AuditPanelOptions.hooks src/server/create-fetch-handler.ts:77
logoUrl? string Logo image URL shown in the navbar in place of the title wordmark. AuditPanelOptions.logoUrl 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). AuditPanelOptions.maintenance src/server/create-fetch-handler.ts:115
onHookError? HookErrorReporter Reporter for errors thrown by after hooks. Default: console.warn. Ignored with core. AuditPanelOptions.onHookError 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. AuditPanelOptions.portal src/server/create-fetch-handler.ts:56
prefix? string Mount prefix; also used as the panel basePath. Default "/audit". - src/adapters/elysia-shared.ts:34
readonly? boolean Block all mutating operations (423) when true. AuditPanelOptions.readonly 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. AuditPanelOptions.retention src/server/create-fetch-handler.ts:85
signer? AuditSigner Checkpoint signer (ed25519Signer / hmacSigner). Ignored with core. AuditPanelOptions.signer 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). AuditPanelOptions.storage 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. AuditPanelOptions.streamRunner 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. AuditPanelOptions.streams src/server/create-fetch-handler.ts:103
title? string UI title shown in the page and bootstrap config. AuditPanelOptions.title src/server/create-fetch-handler.ts:60
transforms? AuditTransform[] Redact / mask / hash / omit before chaining. Ignored with core. AuditPanelOptions.transforms src/server/create-fetch-handler.ts:91
uiDir? string Override the directory the bundled UI is served from (defaults to ./ui beside this module). AuditPanelOptions.uiDir src/server/create-fetch-handler.ts:64