Skip to main content

Module webhook

Module webhook 

Source
Expand description

Webhook registration for messaging providers during setup.

Calls provider-specific APIs (e.g. Telegram setWebhook, Slack manifest update, Webex webhook management) to register the operator’s ingress endpoint so that external services can deliver messages to the running instance.

Ported from greentic-operator/src/onboard/webhook_setup.rs so that gtc setup can handle webhook registration without the operator.

Structs§

ProviderInstruction
A single provider’s manual setup instructions.

Functions§

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.
slack_update_manifest_urls
Update event_subscriptions and interactivity URLs in the manifest.