data-retention
Resolves the effective retention policy for any entity using a 3-layer stack: entity-level default → tenant preset (dsgvo-basic, dsgvo-hgb, swiss-dsg) → per-tenant override stored in tenantRetentionOverride. Other features query the resolved policy via the retention.policyFor cross-feature API — most notably user-data-rights, which uses it to decide whether to anonymize instead of hard-delete a record that is still within a mandatory retention window.
Dependencies
Section titled “Dependencies”- Requires: none
- Activation: always on (not toggleable)
Extensions & cross-feature APIs
Section titled “Extensions & cross-feature APIs”- Exposes API:
retention.policyFor