RetentionRule
Defined in: src/core.ts:116
One retention rule. When both fields are set an event is kept if either
rule keeps it (union of keeps, the sibling packages’ semantics): pruned only
when it is outside the keepLast most recent AND older than maxAge.
Retention always removes a prefix of a tenant’s chain (by seq), anchored
by a base checkpoint, so what remains still verifies (ADR 0004).
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
keepLast? |
number |
Keep at most the N most recent events per tenant. | src/core.ts:118 |
maxAge? |
AuditDuration |
Keep events recorded within this age (e.g. "365d"). |
src/core.ts:120 |