-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (42 loc) · 874 Bytes
/
types.ts
File metadata and controls
50 lines (42 loc) · 874 Bytes
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
export interface Gem {
id: string;
name: string;
description: string;
instructions: string;
created_at?: string;
}
export interface ChatMessage {
role: 'user' | 'model';
text: string;
timestamp: number;
images?: ChatImage[];
}
export interface AppConfig {
useLocalStorage: boolean;
// Removed sensitive keys as they are now managed backend-side
}
export interface ChatImage {
dataUrl: string;
mimeType: string;
name?: string;
}
export interface ChatImagePayload {
data: string;
mime_type: string;
name?: string;
}
export type ViewMode = 'manager' | 'chat' | 'settings';
export interface User {
id: string;
email?: string;
user_metadata?: Record<string, any>;
}
export interface AuthState {
user: User | null;
loading: boolean;
isAdmin: boolean;
}
export interface AuthResponse {
user: User | null;
error?: string;
}