-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
51 lines (42 loc) · 1.09 KB
/
Copy pathtypes.ts
File metadata and controls
51 lines (42 loc) · 1.09 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
export enum Status {
IDLE = 'idle',
CONNECTING = 'connecting',
CONNECTED = 'connected', // Listening
SPEAKING = 'speaking', // AI is talking
ERROR = 'error'
}
export enum TwitchStatus {
DISCONNECTED = 'disconnected',
CONNECTING = 'connecting',
CONNECTED = 'connected',
ERROR = 'error'
}
export enum StreamlabsStatus {
DISCONNECTED = 'disconnected',
CONNECTING = 'connecting',
CONNECTED = 'connected',
ERROR = 'error'
}
export interface VoiceTranscription {
speaker: 'user' | 'jarvis';
text: string;
}
export type TwitchUserRole = 'streamer' | 'moderator' | 'viewer';
export interface TwitchMessage {
speaker: string; // Twitch username
text: string;
color?: string; // User's chat color
source: 'twitch';
role: TwitchUserRole;
}
export interface JarvisTwitchMessage {
speaker: 'jarvis';
text: string;
source: 'jarvis-twitch';
}
export interface SystemMessage {
source: 'system';
text: string;
level: 'error' | 'info' | 'success';
}
export type ChatEntry = VoiceTranscription | TwitchMessage | JarvisTwitchMessage | SystemMessage;