/**
 * Types for Security Dashboard
 */

export interface ToolStatus {
  name: string
  installed: boolean
  version: string | null
  last_run: string | null
  last_findings: number
}

export interface Finding {
  id: string
  tool: string
  severity: string
  title: string
  message: string | null
  file: string | null
  line: number | null
  found_at: string
}

export interface SeveritySummary {
  critical: number
  high: number
  medium: number
  low: number
  info: number
  total: number
}

export interface HistoryItem {
  timestamp: string
  title: string
  description: string
  status: string
}

export type ScanType = 'secrets' | 'sast' | 'deps' | 'containers' | 'sbom' | 'all'

export interface MonitoringMetric {
  name: string
  value: number
  unit: string
  status: 'ok' | 'warning' | 'critical'
  trend: 'up' | 'down' | 'stable'
}

export interface ActiveAlert {
  id: string
  severity: 'critical' | 'high' | 'medium' | 'low'
  title: string
  source: string
  timestamp: string
  acknowledged: boolean
}
