@mstaicu/entitlements-contracts
v0.3.2
Published
Public event contracts emitted by the entitlements domain.
Readme
Entitlements Contracts
Public event contracts emitted by the entitlements domain.
| CloudEvents type | Schema | Example |
| --- | --- | --- |
| entitlements.account_entitlements.updated.v1 | src/events/entitlements.account_entitlements.updated.v1.mjs | examples/events/entitlements.account_entitlements.updated.v1.json |
Events use the CloudEvents JSON shape:
specversionis1.0.sourceidentifies the producing domain.typeis the versioned event name.datacontains the domain fact.data.versionis the entitlement snapshot state version used by consumers to ignore stale messages.
Producers should use the exported buildAccountEntitlementsUpdatedV1Event helper
so the published event matches the contract.
Potential future tooling:
cloudeventscan help create and parse CloudEvents if runtime bindings become useful.- AsyncAPI is the future event catalog/docs layer. Add it when event discovery, generated docs, or event API diffing becomes useful. TypeBox remains the active schema source.
