export type AdminMonitoringCategory = 'audit' | 'security' | 'login' | 'failed_login' | 'api' | 'error' | 'warning';
export type AdminMonitoringLevel = 'info' | 'warning' | 'error';
export type AdminQueueStatus = 'healthy' | 'degraded' | 'down';
export type AdminWebhookStatus = 'delivered' | 'failed' | 'pending';

export interface AdminMonitoringEvent {
  id: string;
  category: AdminMonitoringCategory;
  level: AdminMonitoringLevel;
  message: string;
  /** Raw technical detail (endpoint, status code, latency, etc.), shown only behind "Technical details". */
  technicalDetail?: string;
  actor: string;
  timestamp: string;
}

export interface AdminMonitoringEventFilters {
  category: 'all' | AdminMonitoringCategory;
  search: string;
}

export interface AdminQueue {
  name: string;
  depth: number;
  status: AdminQueueStatus;
}

export interface AdminWebhookDelivery {
  id: string;
  endpoint: string;
  event: string;
  status: AdminWebhookStatus;
  timestamp: string;
}
