-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
151 lines (135 loc) · 3.04 KB
/
Copy pathtypes.ts
File metadata and controls
151 lines (135 loc) · 3.04 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
export enum Tab {
HOME = 'HOME',
CHAT = 'CHAT',
HOMEWORK = 'HOMEWORK',
ANALYZE = 'ANALYZE',
LIVE = 'LIVE',
CALENDAR = 'CALENDAR',
TASKS = 'TASKS',
PROFILE = 'PROFILE',
SUBJECT = 'SUBJECT',
STUDIO = 'STUDIO'
}
export enum Sender {
USER = 'user',
AI = 'model'
}
export interface Attachment {
mimeType: string;
data: string; // base64
name?: string;
}
export interface ChatMessage {
id: string;
sender: Sender;
text: string;
timestamp: Date;
isError?: boolean;
isWelcome?: boolean; // New property for styling welcome messages
citations?: Array<{
uri: string;
title: string;
}>;
attachments?: Attachment[];
quizData?: Array<{
question: string;
options: string[];
correctAnswer: string;
explanation: string;
}>;
}
export interface ChatSession {
id: string;
title: string;
messages: ChatMessage[];
lastModified: number;
}
export enum ChatMode {
NORMAL = 'Normal',
TUTOR = 'Tutor',
HOMEWORK = 'Homework',
ANALYZER = 'Analizador',
CREATIVE = 'Creativo'
}
export interface UserStats {
streak: number;
totalMinutes: number;
lastStudyDate: string; // ISO Date string
}
export interface ModelPreferences {
chatModel: string;
tutorModel: string;
analyzerModel: string;
}
export interface UserProfile {
name: string;
email: string;
grade: string;
goal: string;
avatar?: string;
isGoogleLinked?: boolean;
subjectLinks?: Record<string, string>; // Subject Name -> URL mapping
stats?: UserStats;
preferences?: ModelPreferences;
}
export type Priority = 'high' | 'medium' | 'low';
export interface Task {
id: string;
title: string;
completed: boolean;
date?: string;
subject?: string;
isGoogleTask?: boolean;
priority?: Priority;
order?: number;
}
export interface CalendarEvent {
id: string;
title: string;
date: string; // ISO string
type: 'exam' | 'task' | 'document' | 'other';
subject?: string;
isGoogleEvent?: boolean;
}
// Model Constants
export const MODEL_FLASH_LITE = 'gemini-flash-lite-latest';
export const MODEL_FLASH = 'gemini-3-flash-preview';
export const MODEL_PRO = 'gemini-3-pro-preview';
export const MODEL_TTS = 'gemini-2.5-flash-preview-tts';
export const MODEL_LIVE = 'gemini-2.5-flash-native-audio-preview-12-2025';
export const MODEL_VEO = 'veo-3.1-fast-generate-preview';
export const MODEL_IMAGE = 'gemini-2.5-flash-image';
export interface GroundingChunk {
web?: {
uri?: string;
title?: string;
};
}
export const SUBJECTS = [
"Lengua",
"Matemáticas",
"Inglés",
"Francés",
"Conocimiento",
"Geografía-Historia",
"Biología-Geología",
"Plástica",
"Educación Física",
"Religión",
"Tecnología",
"Tutoría"
];
export const SUBJECT_ICONS: Record<string, string> = {
"Lengua": "📖",
"Matemáticas": "📐",
"Inglés": "🇬🇧",
"Francés": "🇫🇷",
"Conocimiento": "🌍",
"Geografía-Historia": "🏛️",
"Biología-Geología": "🧬",
"Plástica": "🎨",
"Educación Física": "⚽",
"Religión": "⛪",
"Tecnología": "💻",
"Tutoría": "🗣️"
};