export interface Webhook {
  id: string;
  user_id: string;
  url: string;
  events: string[];
  active: boolean;
  api_key?: string; // Only returned on creation or regeneration
  created_at: string;
  updated_at: string;
}

export interface WebhookFailure {
  id: string;
  webhook_id: string;
  event_type: string;
  error_message: string;
  occurred_at: string;
  payload?: Record<string, unknown>;
  response_status?: number;
}
