import type { Service } from '../services/types' export type Webhook = { id: string name: string url: string type: string active: boolean events: string[] errorAt: string | null errorNotifiedAt: string | null userId: string accountId: string createdAt: string updatedAt: string deletedAt: string | null // relationships services?: Service[] } export type WebhookRelationships = 'services' export type CreateWebhookPayload = { name: string url: string type: string events: string[] active?: boolean } export type UpdateWebhookPayload = { name?: string url?: string type?: string events?: string[] active?: boolean }