feat(mobile): add personal assistant knowledge flow
This commit is contained in:
@@ -116,6 +116,84 @@ export interface SummaryCardResponse {
|
||||
reminders: string[];
|
||||
}
|
||||
|
||||
export type PersonalKnowledgeScope = 'PERSONAL' | 'ENTERPRISE';
|
||||
export type PersonalItemSourceType = 'TEXT' | 'FILE' | 'URL';
|
||||
export type PersonalItemStatus = 'QUEUED' | 'PARSING' | 'READY' | 'FAILED' | 'DELETING' | 'DELETED';
|
||||
|
||||
export interface PersonalCitation {
|
||||
domain: PersonalKnowledgeScope;
|
||||
sourceId: string;
|
||||
title: string;
|
||||
excerpt: string;
|
||||
capturedAt?: string;
|
||||
}
|
||||
|
||||
export interface PersonalAskResponse {
|
||||
sessionId: number;
|
||||
answer: string;
|
||||
citations: PersonalCitation[];
|
||||
model?: string;
|
||||
promptVersion?: string;
|
||||
}
|
||||
|
||||
export interface PersonalSpace {
|
||||
spaceId: number;
|
||||
status: string;
|
||||
quotaBytes: number;
|
||||
usedBytes: number;
|
||||
itemCount: number;
|
||||
}
|
||||
|
||||
export interface PersonalItem {
|
||||
id: number;
|
||||
sourceType: PersonalItemSourceType;
|
||||
title: string;
|
||||
originalUrl?: string;
|
||||
mimeType?: string;
|
||||
sizeBytes: number;
|
||||
status: PersonalItemStatus;
|
||||
errorCode?: string;
|
||||
errorMessage?: string;
|
||||
summary?: string;
|
||||
tags?: string[];
|
||||
capturedAt?: string;
|
||||
parsedAt?: string;
|
||||
}
|
||||
|
||||
export interface PersonalPage<T> {
|
||||
rows: T[];
|
||||
total: number;
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
}
|
||||
|
||||
export interface PersonalItemCreated {
|
||||
itemId: number;
|
||||
status: PersonalItemStatus;
|
||||
duplicateOf?: number;
|
||||
}
|
||||
|
||||
export interface PersonalSession {
|
||||
id: number;
|
||||
title: string;
|
||||
defaultScope: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface PersonalChatMessage {
|
||||
id: number;
|
||||
role: string;
|
||||
content: string;
|
||||
citations: PersonalCitation[];
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export interface PersonalSessionDetail {
|
||||
id: number;
|
||||
title: string;
|
||||
messages: PersonalChatMessage[];
|
||||
}
|
||||
|
||||
export type PracticeRole = 'customer' | 'trainee' | 'coach';
|
||||
|
||||
export interface PracticeTurn {
|
||||
|
||||
Reference in New Issue
Block a user