/** * Webhook Management Tool Handlers (F-011) * * Handlers for the webhook_management MCP tool that allows users to configure * webhook endpoints for external integrations. */ import type { SmartBrowser } from '../../core/smart-browser.js'; import type { WebhookEventType, WebhookEventCategory } from '../../types/webhook.js'; import { type McpResponse } from '../response-formatters.js'; /** * Webhook management action types */ export type WebhookAction = 'create' | 'update' | 'delete' | 'get' | 'list' | 'enable' | 'disable' | 'test' | 'history' | 'stats'; /** * Arguments for webhook_management tool */ export interface WebhookManagementArgs { action: WebhookAction; name?: string; description?: string; url?: string; secret?: string; enabledEvents?: WebhookEventType[]; enabledCategories?: WebhookEventCategory[]; domainFilter?: string[]; minSeverity?: 'low' | 'medium' | 'high' | 'critical'; maxRetries?: number; initialRetryDelayMs?: number; maxRetryDelayMs?: number; headers?: Record; endpointId?: string; limit?: number; periodHours?: number; } /** * Handle webhook_management tool call */ export declare function handleWebhookManagement(smartBrowser: SmartBrowser, action: WebhookAction, args: WebhookManagementArgs): Promise; //# sourceMappingURL=webhook-handlers.d.ts.map