export type Label = "negative" | "neutral" | "positive"; export type Lang = "km" | "en" | "mixed" | "other"; export interface Item { id: number; text: string; language: Lang; label: Label; confidence: number; scores: Record; likes: number | null; published_at: string | null; } export interface Report { total: number; counts: Record; percent: Record; net_score: number; languages: Record; trend: ({ date: string } & Record)[]; needs_attention: Item[]; top_positive: Item[]; items: Item[]; } export interface Video { id: string; title: string; channel: string; published_at: string | null; thumbnail: string | null; comment_count: number | null; url: string; } export type Source = | { type: "youtube"; video: Video } | { type: "text" } | { type: "file"; filename: string; column: string }; export interface Result { source: Source; report: Report } export interface Health { model: string; model_loaded: boolean; youtube_enabled: boolean; facebook_enabled: boolean; max_comments: number; }