-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
61 lines (53 loc) · 1.04 KB
/
types.ts
File metadata and controls
61 lines (53 loc) · 1.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
export interface User {
id: string; // This will be the googleId
googleId: string;
name: string;
email: string;
pro: boolean;
picture: string;
}
export interface Message {
role: 'user' | 'assistant';
content: string;
timestamp: string;
hasImage?: boolean; // Flag to indicate image was attached (don't store actual image)
}
// ... rest of your types remain the same
export interface MindMapNode {
id: string;
label: string;
x?: number;
y?: number;
}
export interface MindMapEdge {
source: string;
target: string;
label: string;
}
export interface MindMap {
nodes: MindMapNode[];
edges: MindMapEdge[];
}
export interface CaseThread {
id: string;
userId: string;
title: string;
messages: Message[];
summary: string;
mindMap: MindMap;
createdAt: string;
updatedAt: string;
}
export interface GeminiResponse {
chatResponse: string;
summary: string;
mindMap: MindMap;
}
export interface Note {
id: string;
userId?: string;
title: string;
content: string;
createdAt: string;
updatedAt: string;
}