fix: api dataset (#6551)

* fix: api dataset

* Update packages/global/core/chat/type.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Archer
2026-03-12 20:51:00 +08:00
committed by GitHub
parent 57489c2f8c
commit 4b4f856e16
19 changed files with 43 additions and 22 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export enum QueueNames {
datasetDelete = 'datasetDelete',
appDelete = 'appDelete',
teamDelete = 'teamDelete',
// @deprecated
/** @deprecated */
websiteSync = 'websiteSync'
}
+1 -1
View File
@@ -86,7 +86,7 @@ const ChatItemSchema = new Schema({
default: null
},
// @deprecated
/** @deprecated */
[DispatchNodeResponseKeyEnum.nodeResponse]: Array
});
+1 -1
View File
@@ -106,7 +106,7 @@ const ChatSchema = new Schema({
select: false
},
// @deprecated
/** @deprecated */
userId: Schema.Types.ObjectId
});
@@ -49,8 +49,9 @@ const SystemToolSchema = new Schema({
enum: UserTagsEnum.enum
},
// @deprecated
/** @deprecated */
inputConfig: Array,
/** @deprecated */
isActive: Boolean
});
@@ -12,9 +12,11 @@ type RunCodeType = ModuleDispatchProps<{
}>;
type RunCodeResponse = DispatchNodeResultType<
{
[NodeOutputKeyEnum.error]?: any; // @deprecated
[NodeOutputKeyEnum.rawResponse]?: Record<string, any>;
[key: string]: any;
/** @deprecated */
[NodeOutputKeyEnum.error]?: any;
},
{
[NodeOutputKeyEnum.error]: string;