Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / PruneAuditOptions

Interface: PruneAuditOptions

Defined in: packages/security/src/audit/prune.ts:26

Options for pruneAudit(...).

Stable

Properties

PropertyModifierTypeDescriptionDefined in
beforereadonlynumber | DateDrop entries older than this Date / epoch ms. Required so the helper never silently truncates the audit chain.packages/security/src/audit/prune.ts:31
logger?readonly(event) => voidOptional structured log sink invoked exactly once per prune run. The framework logger ships in a follow-on phase; until then, consumers can wire console.info (or a custom logger) here so the operational signal is not lost.packages/security/src/audit/prune.ts:43
retain?readonlynumberMinimum number of entries that must survive. The helper refuses to leave the chain emptier than this. Defaults to 1.packages/security/src/audit/prune.ts:36