Initial commit
This commit is contained in:
59
types.ts
Normal file
59
types.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
|
||||
export interface Assistant {
|
||||
id: string;
|
||||
name: string;
|
||||
callCount: number;
|
||||
opener: string;
|
||||
prompt: string;
|
||||
knowledgeBaseId: string;
|
||||
language: 'zh' | 'en';
|
||||
voice: string;
|
||||
speed: number;
|
||||
hotwords: string[];
|
||||
}
|
||||
|
||||
export interface KnowledgeBase {
|
||||
id: string;
|
||||
name: string;
|
||||
creator: string;
|
||||
createdAt: string;
|
||||
documents: KnowledgeDocument[];
|
||||
}
|
||||
|
||||
export interface KnowledgeDocument {
|
||||
id: string;
|
||||
name: string;
|
||||
size: string;
|
||||
uploadDate: string;
|
||||
}
|
||||
|
||||
export interface CallLog {
|
||||
id: string;
|
||||
source: 'debug' | 'external';
|
||||
status: 'connected' | 'missed';
|
||||
startTime: string;
|
||||
duration: string;
|
||||
agentName: string;
|
||||
}
|
||||
|
||||
export interface UserProfile {
|
||||
username: string;
|
||||
avatarUrl: string;
|
||||
email: string;
|
||||
language: 'zh' | 'en';
|
||||
}
|
||||
|
||||
export interface Voice {
|
||||
id: string;
|
||||
name: string;
|
||||
vendor: 'Ali' | 'Volcano' | 'Minimax';
|
||||
gender: 'Male' | 'Female';
|
||||
language: 'zh' | 'en';
|
||||
description?: string;
|
||||
previewUrl?: string; // Mock url
|
||||
}
|
||||
|
||||
export enum TabValue {
|
||||
GLOBAL = 'global',
|
||||
VOICE = 'voice'
|
||||
}
|
||||
Reference in New Issue
Block a user