UNPKG

hook-engine

Version:

Production-grade webhook engine with comprehensive adapter support, security, reliability, structured logging, and CLI tools.

48 lines (47 loc) 1.43 kB
import { HookEngineError } from './base'; /** * Webhook signature verification failed */ export declare class WebhookSignatureError extends HookEngineError { constructor(source: string, context?: Record<string, any>); } /** * Webhook payload parsing failed */ export declare class WebhookParseError extends HookEngineError { constructor(message: string, context?: Record<string, any>); } /** * Webhook processing failed (retryable) */ export declare class WebhookProcessingError extends HookEngineError { constructor(message: string, context?: Record<string, any>); } /** * Webhook validation failed */ export declare class WebhookValidationError extends HookEngineError { constructor(message: string, context?: Record<string, any>); } /** * Rate limit exceeded */ export declare class WebhookRateLimitError extends HookEngineError { constructor(limit: number, windowMs: number, context?: Record<string, any>); } /** * Adapter not found or supported */ export declare class WebhookAdapterError extends HookEngineError { constructor(source: string, context?: Record<string, any>); } /** * Duplicate webhook event (not really an error, but useful for tracking) */ export declare class WebhookDuplicateError extends HookEngineError { constructor(eventId: string, context?: Record<string, any>); } /** * Re-export TimeoutError for convenience */ export { TimeoutError } from './base';