// =============================================================================
// EVIDENCE DOCUMENT
// =============================================================================

import type { DocumentType, EvidenceStatus } from './enums'

export interface ExtractedClause {
  id: string
  text: string
  type: string
  relatedControlId: string | null
}

export interface AIDocumentAnalysis {
  summary: string
  extractedClauses: ExtractedClause[]
  applicableControls: string[]
  gaps: string[]
  confidence: number
  analyzedAt: Date
}

export interface EvidenceDocument {
  id: string
  filename: string
  originalName: string
  mimeType: string
  size: number
  uploadedAt: Date
  uploadedBy: string
  documentType: DocumentType
  detectedType: DocumentType | null
  hash: string
  validFrom: Date | null
  validUntil: Date | null
  linkedControlIds: string[]
  aiAnalysis: AIDocumentAnalysis | null
  status: EvidenceStatus
}
