import { Webhook, WebhookEvent } from '@/modules/webhooks/domain/types' export type CreateWebhookConfig = ( webhook: Pick< Webhook, 'id' | 'streamId' | 'url' | 'description' | 'secret' | 'enabled' | 'triggers' > ) => Promise export type CountWebhooksByStreamId = ({ streamId }: Pick) => Promise export type GetWebhookById = ({ id }: Pick) => Promise export type UpdateWebhookConfig = ({ webhookId, webhookInput }: { webhookId: string webhookInput: Pick & Partial< Pick< Webhook, 'triggers' | 'streamId' | 'url' | 'enabled' | 'secret' | 'description' > > }) => Promise export type DeleteWebhookConfig = ({ id }: Pick) => Promise export type GetStreamWebhooks = ({ streamId }: Pick) => Promise export type CreateWebhookEvent = ( event: Pick ) => Promise export type GetLastWebhookEvents = ({ webhookId, limit }: { webhookId: string limit?: number }) => Promise export type GetWebhookEventsCount = ({ webhookId }: { webhookId: string }) => Promise