import type { WebhookDelivery, WebhookSubscription } from '../../domain/webhook/webhook-subscription'; export interface IWebhookSubscriptionRepository { save(subscription: WebhookSubscription): Promise; findById(id: string): Promise; findByTenant(tenantId: string): Promise; findByTopic(topic: string): Promise; delete(id: string): Promise; } export interface IWebhookDeliveryRepository { save(delivery: WebhookDelivery): Promise; findPending(): Promise; findBySubscription(subscriptionId: string): Promise; }