UNPKG

hook-engine

Version:

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

28 lines (27 loc) 889 B
import type { WebhookAdapter } from "../types/adapter"; /** * Generic webhook adapter configuration */ export interface GenericAdapterConfig { signatureHeader?: string; signatureAlgorithm?: 'sha256' | 'sha1' | 'md5'; signatureEncoding?: 'hex' | 'base64'; signaturePrefix?: string; timestampHeader?: string; timestampValidationWindow?: number; payloadFormat?: 'json' | 'form' | 'raw'; eventTypeField?: string; eventIdField?: string; timestampField?: string; } /** * Generic webhook adapter * Supports: custom webhook formats with configurable signature verification * Use this for any webhook provider not specifically supported */ export declare function createGenericAdapter(config?: GenericAdapterConfig): WebhookAdapter; /** * Default generic adapter with common settings */ declare const generic: WebhookAdapter; export default generic;