import { Webhook } from '@/modules/webhooks/domain/types' export type CreateWebhook = ( 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 UpdateWebhook = ({ webhookId, webhookInput }: { webhookId: string webhookInput: Pick & Partial< Pick< Webhook, 'triggers' | 'streamId' | 'url' | 'enabled' | 'secret' | 'description' > > }) => Promise