80 lines
No EOL
1.4 KiB
TypeScript
80 lines
No EOL
1.4 KiB
TypeScript
export interface RenderMessage {
|
|
content: {
|
|
text: boolean | string;
|
|
audio: boolean | string;
|
|
};
|
|
context: string;
|
|
modifier: string;
|
|
time: number;
|
|
uid: string;
|
|
isChild: string;
|
|
seen: boolean;
|
|
newMessage: boolean;
|
|
}
|
|
|
|
export interface AudioData {
|
|
content: string;
|
|
channels: number;
|
|
fs: number;
|
|
}
|
|
|
|
export interface ClientMessage {
|
|
text: string;
|
|
audio: AudioData | null;
|
|
uid: string;
|
|
}
|
|
|
|
export interface ClientRequest {
|
|
intent: string;
|
|
params: object;
|
|
epic: string | boolean;
|
|
confidence: number;
|
|
}
|
|
|
|
export interface SessionState {
|
|
key: string | boolean;
|
|
newMessages: RenderMessage[];
|
|
}
|
|
|
|
export interface WindowState {
|
|
width: number;
|
|
height: number;
|
|
x: number | null;
|
|
y: number | null;
|
|
}
|
|
|
|
export interface AuthRequest {
|
|
key: boolean | string;
|
|
usr: boolean | string;
|
|
pwd: boolean | string;
|
|
}
|
|
|
|
export interface Profile {
|
|
crimataId: string;
|
|
alias: string;
|
|
initials: string;
|
|
}
|
|
|
|
export interface AuthProtocol {
|
|
key: boolean | string;
|
|
profile: boolean | Profile;
|
|
}
|
|
|
|
export interface LogoutRequest {
|
|
logout: boolean;
|
|
}
|
|
|
|
export interface Annotation {
|
|
text: string;
|
|
context: string;
|
|
uid: string;
|
|
}
|
|
|
|
export interface StandardMessage {
|
|
content: {
|
|
text: boolean | string;
|
|
audio: boolean | string;
|
|
};
|
|
context: string;
|
|
modifier: string;
|
|
} |