@xtandard/entitlements/bridges/audit
Audit bridge (ADR 0013): auditHooks(audit) records entitlements changes
into @xtandard/audit — structural types, no runtime dependency.
import { … } from "@xtandard/entitlements/bridges/audit";Functions
Section titled “Functions”| Name | Summary |
|---|---|
auditHooks |
after hooks that record entitlements changes as audit events (entitlements.<event type>, the customer and the changed object as targets, a compact metadata summary). Recording errors are isolated by the engine’s hook runner (onHookError). |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
AuditActorLike |
An audit actor (structural subset of @xtandard/audit’s AuditActor). |
AuditHooksOptions |
Options for auditHooks. |
AuditRecorderLike |
Anything with an @xtandard/audit-compatible record. |
AuditRecordInputLike |
What the bridge passes to audit.record (structural subset of @xtandard/audit’s RecordInput). |
AuditTargetLike |
An audit target (structural subset of @xtandard/audit’s AuditTarget). |