@xtandard/entitlements/bridges/webhooks
Webhooks bridge (ADR 0013): webhooksEvents(webhooks) publishes plan
changes, trials, grants, overrides and usage thresholds through
@xtandard/webhooks — structural types, no runtime dependency.
import { … } from "@xtandard/entitlements/bridges/webhooks";Functions
Section titled “Functions”| Name | Summary |
|---|---|
webhooksEvents |
Publish entitlements events to @xtandard/webhooks. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
WebhooksEventsBridge |
What webhooksEvents returns: wire hooks, onThreshold (and onUsage) into the engine. |
WebhooksEventsOptions |
Options for webhooksEvents. |
WebhooksPublisherLike |
Anything with an @xtandard/webhooks-compatible publish. |
WebhooksPublishInputLike |
What the bridge passes to webhooks.publish (structural subset of @xtandard/webhooks’s PublishInput). |
Variables
Section titled “Variables”| Name | Summary |
|---|---|
ENTITLEMENTS_EVENT_TYPES |
Event types this bridge publishes (for the webhooks catalog: upsertEventType). |