/**
 * Attachments + sources attached to a chat message.
 */

export interface ChatAttachment {
  id: string;
  type: 'image' | 'file' | 'audio' | 'video';
  url: string;
  thumbnailUrl?: string;
  name?: string;
  mimeType?: string;
  sizeBytes?: number;
  status?: 'uploading' | 'ready' | 'error';
  /** 0..1 while uploading. */
  progress?: number;
  /** Extracted text from images (OCR). */
  ocrText?: string;
}

export interface ChatSource {
  title: string;
  url: string;
  snippet?: string;
  chunkIndex?: number;
}
