/** * Webhook Handler (Pillar V - JIRA-TICKET-TO-GOVERNANCE) * * Processes Jira webhook events */ /** * Webhook event payload structure */ export interface JiraWebhookEvent { webhookEvent: string; issue?: { key: string; fields?: { summary?: string; status?: { name: string; }; }; }; comment?: { id: string; body: string | unknown; author: { displayName: string; }; }; timestamp?: number; changelog?: { items?: Array<{ field: string; from?: string; fromString?: string; to?: string; toString?: string; }>; }; } /** * Process webhook event options */ export interface ProcessWebhookOptions { /** * Custom event handler */ handler?: (event: JiraWebhookEvent) => Promise; /** * Enable payload validation * @default true */ validatePayload?: boolean; /** * Block SQL injection attempts * @default true */ blockSQLi?: boolean; /** * Block XSS attempts * @default true */ blockXSS?: boolean; /** * Strict mode: block on any validation warning * @default false */ strict?: boolean; /** * Skip signature verification (not recommended) * @default false */ skipSignatureVerification?: boolean; } /** * Process webhook event */ export declare function processWebhookEvent(body: string | Buffer, signature: string | null, options?: ProcessWebhookOptions): Promise<{ processed: boolean; reason?: string; threats?: string[]; }>; //# sourceMappingURL=webhook-handler.d.ts.map