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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
before | readonly | number | Date | Drop 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) => void | Optional 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? | readonly | number | Minimum 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 |