Skip to content

@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";
Name Summary
webhooksEvents Publish entitlements events to @xtandard/webhooks.
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).
Name Summary
ENTITLEMENTS_EVENT_TYPES Event types this bridge publishes (for the webhooks catalog: upsertEventType).