Skip to content

WebhooksBridgeOptions

Defined in: src/bridges/webhooks.ts:36

Options for webhooksBridge.

Property Type Description Defined in
application? (tenant) => string | null Map a tenant to a webhooks application key (null = don’t publish). Default: identity. src/bridges/webhooks.ts:39
clicks? boolean Publish link.clicked for every non-bot click. Default false (clicks are hot). src/bridges/webhooks.ts:41
onError? (error) => void Errors from publish (missing application, unknown event type, …). Default console.warn. src/bridges/webhooks.ts:45
prefix? string Prefix for event types, e.g. "links.". Default "". src/bridges/webhooks.ts:43
webhooks WebhooksPublisher - src/bridges/webhooks.ts:37