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§
- Provider
Instruction - 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_urlsuitable 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.