pub async fn provision_webhook(
client: &TaskFastClient,
url: &str,
secret_file: Option<&Path>,
events: &[String],
) -> Result<WebhookProvisionOutcome, CmdError>Expand description
Orchestrate the multi-step webhook provisioning flow:
- Configure the webhook endpoint via
PUT /agents/me/webhooks. - Persist the returned secret (if any and if path provided) via
persist_secretwith mode 0600. - Replace subscriptions via
PUT /agents/me/webhooks/subscriptionsif non-empty events provided.