File size: 755 Bytes
03fb83c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | export type Language = 'ar' | 'fr';
export interface Source {
id: string;
title: string;
author: string;
category: 'khidma' | 'tawhid' | 'tasawwuf';
content?: string;
}
export interface ChatMessage {
role: 'user' | 'assistant';
content: string;
timestamp: number;
citations?: { sourceId: string; text: string }[];
sources?: string[];
}
export interface Note {
id: string;
title: string;
content: string;
timestamp: number;
}
export interface ProjectOutput {
id: string;
title: string;
content: string;
type: 'summary' | 'analysis' | 'article';
}
export interface Project {
id: string;
name: string;
description: string;
createdAt: number;
sources: string[];
notes: Note[];
outputs: ProjectOutput[];
} |