fix(mobile): preserve assistant IDs and scope state
This commit is contained in:
+10
-10
@@ -123,8 +123,8 @@ export type PersonalItemStatus = 'QUEUED' | 'PARSING' | 'READY' | 'FAILED' | 'DE
|
||||
export interface PersonalCitation {
|
||||
domain: PersonalKnowledgeScope;
|
||||
sourceId: string;
|
||||
itemId?: number;
|
||||
fragmentId?: number;
|
||||
itemId?: string;
|
||||
fragmentId?: string;
|
||||
sourceType?: PersonalItemSourceType | 'ENTERPRISE';
|
||||
title: string;
|
||||
excerpt: string;
|
||||
@@ -132,7 +132,7 @@ export interface PersonalCitation {
|
||||
}
|
||||
|
||||
export interface PersonalAskResponse {
|
||||
sessionId: number;
|
||||
sessionId: string;
|
||||
answer: string;
|
||||
citations: PersonalCitation[];
|
||||
model?: string;
|
||||
@@ -140,7 +140,7 @@ export interface PersonalAskResponse {
|
||||
}
|
||||
|
||||
export interface PersonalSpace {
|
||||
spaceId: number;
|
||||
spaceId: string;
|
||||
status: string;
|
||||
quotaBytes: number;
|
||||
usedBytes: number;
|
||||
@@ -148,7 +148,7 @@ export interface PersonalSpace {
|
||||
}
|
||||
|
||||
export interface PersonalItem {
|
||||
id: number;
|
||||
id: string;
|
||||
sourceType: PersonalItemSourceType;
|
||||
title: string;
|
||||
originalUrl?: string;
|
||||
@@ -171,20 +171,20 @@ export interface PersonalPage<T> {
|
||||
}
|
||||
|
||||
export interface PersonalItemCreated {
|
||||
itemId: number;
|
||||
itemId: string;
|
||||
status: PersonalItemStatus;
|
||||
duplicateOf?: number;
|
||||
duplicateOf?: string;
|
||||
}
|
||||
|
||||
export interface PersonalSession {
|
||||
id: number;
|
||||
id: string;
|
||||
title: string;
|
||||
defaultScope: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface PersonalChatMessage {
|
||||
id: number;
|
||||
id: string;
|
||||
role: string;
|
||||
content: string;
|
||||
citations: PersonalCitation[];
|
||||
@@ -192,7 +192,7 @@ export interface PersonalChatMessage {
|
||||
}
|
||||
|
||||
export interface PersonalSessionDetail {
|
||||
id: number;
|
||||
id: string;
|
||||
title: string;
|
||||
messages: PersonalChatMessage[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user