/** Declarative help for the `assistant webhooks` command. */ import type { CliCommandHelp } from "../lib/cli-command-help.js"; export const webhooksHelp: CliCommandHelp = { name: "webhooks", description: "Manage webhook callback URLs for external integrations", options: [ { flags: "--json", description: "Machine-readable compact JSON output" }, ], helpText: ` Resolves a stable callback URL that external services (Telegram, Twilio, email providers, OAuth) should use to reach this assistant. On platform-managed assistants, this registers a callback route with the platform gateway. Otherwise it uses the configured ingress.publicBaseUrl, falling back to the platform gateway when no ingress is configured and the assistant is connected to the platform. The webhook path is derived from the type: underscores become path separators, prefixed with webhooks/. telegram → webhooks/telegram twilio_voice → webhooks/twilio/voice twilio_status → webhooks/twilio/status resend → webhooks/resend Examples: $ assistant webhooks register telegram $ assistant webhooks register resend --source "@bot_handle" $ assistant webhooks list $ assistant webhooks list --json`, subcommands: [ { name: "register", args: "", description: "Get a callback URL for a webhook type, registering with the platform if needed", options: [ { flags: "--path ", description: "Override the derived webhook path", }, { flags: "--source