/** * webhookRules.ts * * Postgres CRUD for user-configured outbound webhook rules. * Table schema: scripts/webhooks-migration.sql */ export interface WebhookRule { id: string; userId: string; name: string; url: string; secret: string; events: string[]; patterns: string[]; enabled: boolean; createdAt: string; updatedAt: string; } export declare function isConfigured(): boolean; export declare function listWebhookRules(userId: string): Promise; export declare function getWebhookRule(id: string, userId: string): Promise; export declare function upsertWebhookRule(userId: string, rule: { id?: string; name: string; url: string; secret?: string; events?: string[]; patterns?: string[]; enabled?: boolean; }): Promise; export declare function deleteWebhookRule(id: string, userId: string): Promise; export declare function addPatternToRule(id: string, userId: string, pattern: string): Promise; /** Returns enabled rules for a user that have at least one pattern configured. */ export declare function getEnabledWebhookRulesForUser(userId: string): Promise; //# sourceMappingURL=webhookRules.d.ts.map