-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
56 lines (50 loc) · 1.05 KB
/
Copy pathtypes.ts
File metadata and controls
56 lines (50 loc) · 1.05 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
export enum Role {
USER = 'user',
MODEL = 'model'
}
export enum MessageType {
TEXT = 'text',
IMAGE = 'image',
AUDIO = 'audio'
}
export type Language = 'en' | 'fr' | 'ar';
export interface Attachment {
mimeType: string;
data: string; // Base64 string
type: MessageType;
}
export interface Message {
id: string;
role: Role;
content: string;
attachments?: Attachment[];
timestamp: number;
}
export interface Theme {
id: string;
name: string;
primary: string; // Used for accents/buttons
gradient: string; // For headers/highlights
background: string; // Main app background
panel: string; // Chat area background
text: string;
bubbleUser: string;
bubbleModel: string;
}
export interface Translations {
welcome: string;
inputPlaceholder: string;
recording: string;
releaseToSend: string; // repurposed as "Stop"
thinking: string;
settings: string;
language: string;
theme: string;
clearChat: string;
uploadImage: string;
send: string;
appName: string;
tagline: string;
error429: string;
madeBy: string;
}