Skip to main content

Module webhook

Module webhook 

Source
Expand description

Webhook registration for messaging providers during setup.

Provider packs implement the setup_webhook WASM operation to register webhooks with external APIs (e.g. Telegram setWebhook, Slack manifest update, Webex webhook management). The setup engine invokes this operation generically via invoke_provider_op("setup_webhook", ...).

This module provides the register_webhook entry point which checks for declared ops in config before falling back to the provider WASM operation.

Structs§

ProviderInstruction
A single provider’s manual setup instructions.

Functions§

build_webhook_url
Build the webhook URL for a provider.
collect_post_setup_instructions
Collect post-setup instructions for providers that need manual intervention.
has_webhook_url
Check whether a provider’s answers contain a valid public_base_url suitable for webhook registration.
print_post_setup_instructions
Print post-setup instructions for providers that need manual intervention.
register_webhook
Register a webhook for a provider based on its setup answers.
registration_result_from_declared_ops
Extract registration result from declared ops in config.