import { createCommand } from "../../../types.js";
import { listSubcommand } from "./list.js";
import { createSubcommand } from "./create.js";
import { getSubcommand } from "./get.js";
import { deleteSubcommand } from "./delete.js";
import { destinationsSubcommand } from "./destinations.js";
import { receiptsSubcommand } from "./receipts.js";
import { deliveriesSubcommand } from "./deliveries.js";
import { getCommand } from "../../../command-prefix.js";
export const command = createCommand({
    name: 'webhook',
    aliases: ['webhooks'],
    description: 'Manage webhooks for receiving external HTTP callbacks',
    tags: ['requires-auth'],
    examples: [
        {
            command: getCommand('cloud webhook list'),
            description: 'List all webhooks',
        },
        {
            command: getCommand('cloud webhook create --name my-webhook'),
            description: 'Create a webhook',
        },
        {
            command: getCommand('cloud webhook get wh_abc123'),
            description: 'Get webhook details',
        },
        {
            command: getCommand('cloud webhook destinations list wh_abc123'),
            description: 'List webhook destinations',
        },
    ],
    subcommands: [
        listSubcommand,
        createSubcommand,
        getSubcommand,
        deleteSubcommand,
        destinationsSubcommand,
        receiptsSubcommand,
        deliveriesSubcommand,
    ],
    requires: { auth: true },
});
export default command;
//# sourceMappingURL=index.js.map