dashboard
repositories
activity
search
login
APPS
/
PAILot
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
feat: initial PAILot app — voice-first AI communicator
Matthias Nott
2026-03-02
aca79f31767ae6f03f47a284f3d0e80850c5fb02
[APPS/PAILot.git]
/
types
/
index.ts
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
export type MessageRole = "user" | "assistant" | "system";
export type MessageType = "text" | "voice";
export interface Message {
id: string;
role: MessageRole;
type: MessageType;
content: string;
audioUri?: string;
timestamp: number;
status?: "sending" | "sent" | "error";
duration?: number;
}
export interface ServerConfig {
host: string;
port: number;
}
export type ConnectionStatus = "disconnected" | "connecting" | "connected";
export interface WebSocketMessage {
type: "text" | "voice";
content: string;
audioBase64?: string;
}