forked from Mahdidevil81/Nexus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
51 lines (44 loc) · 977 Bytes
/
types.ts
File metadata and controls
51 lines (44 loc) · 977 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
51
export interface LogEntry {
id: string;
timestamp: string;
message: string;
color: 'green' | 'cyan' | 'yellow' | 'red' | 'white';
}
export interface SocialLink {
name: string;
url: string;
color: string;
icon: string;
}
export enum SystemStatus {
IDLE = 'IDLE',
PROCESSING = 'PROCESSING',
ERROR = 'ERROR'
}
export enum GenerationMode {
TEXT = 'TEXT',
IMAGE = 'IMAGE',
VIDEO = 'VIDEO',
AUDIO = 'AUDIO',
LIVE = 'LIVE'
}
export type Emotion = 'NEUTRAL' | 'SAD' | 'HAPPY' | 'ANGRY' | 'FEAR' | 'SURPRISE' | 'LOVE';
export interface Attachment {
data: string; // Base64
mimeType: string;
name: string;
}
export interface GroundingLink {
title: string;
uri: string;
}
export interface AiResponse {
id: string;
text?: string;
mediaUrl?: string;
mediaType?: 'image' | 'video' | 'audio';
emotion?: Emotion;
grounding?: GroundingLink[];
timestamp: number;
rawVideoData?: any; // To store Gemini Video Object for extension
}