@blueking/ai-ui-sdk 0.1.17-beta.1 → 0.1.18-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +4 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +2 -2
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-markdown/mark-down.postcss.css +4 -3
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-chat.d.ts +63 -0
- package/dist/hooks/use-chat.ts.js +1 -0
- package/dist/hooks/use-form-rule.d.ts +3 -3
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-permission.d.ts +1 -1
- package/dist/hooks/use-permission.ts.js +7 -4
- package/dist/hooks/use-session-http.d.ts +2 -1
- package/dist/hooks/use-session-http.ts.js +8 -1
- package/dist/http/helper/agent.ts.js +7 -1
- package/dist/http/helper/dataset.d.ts +1 -1
- package/dist/http/helper/knowledge.ts.js +2 -0
- package/dist/http/helper/permission.ts.js +8 -1
- package/dist/http/helper/tool.ts.js +2 -0
- package/dist/types/agent.d.ts +14 -0
- package/dist/types/enum.d.ts +9 -2
- package/dist/types/enum.ts.js +23 -16
- package/dist/types/knowledge.d.ts +2 -0
- package/dist/types/permission.d.ts +14 -0
- package/dist/types/session.d.ts +19 -0
- package/dist/types/tool.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { Module } from '@/types/enum';
|
|
3
3
|
export declare const useFormRule: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
4
4
|
codeRule: {
|
|
5
5
|
validator: (value: string) => boolean;
|
|
@@ -11,12 +11,12 @@ export declare const useFormRule: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
11
11
|
message: string;
|
|
12
12
|
trigger: string;
|
|
13
13
|
};
|
|
14
|
-
getNameRule: (type:
|
|
14
|
+
getNameRule: (type: Module) => {
|
|
15
15
|
validator: (value: string) => Promise<boolean>;
|
|
16
16
|
message: () => string;
|
|
17
17
|
trigger: string;
|
|
18
18
|
};
|
|
19
|
-
getCodeRule: (type:
|
|
19
|
+
getCodeRule: (type: Module, getIsEdit?: () => boolean, getData?: () => Record<string, unknown>) => {
|
|
20
20
|
validator: (value: string) => Promise<boolean>;
|
|
21
21
|
message: () => string;
|
|
22
22
|
trigger: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { Module } from '@/types/enum';
|
|
3
3
|
import type { ITagApi } from '@/types/meta';
|
|
4
4
|
export declare const useMetaHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
|
-
nameValidator: (name: string, type:
|
|
5
|
+
nameValidator: (name: string, type: Module) => () => Promise<{
|
|
6
6
|
data: boolean;
|
|
7
7
|
message: string;
|
|
8
8
|
}>;
|
|
9
|
-
codeValidator: (code: string, type:
|
|
9
|
+
codeValidator: (code: string, type: Module, data?: Record<string, unknown>) => () => Promise<{
|
|
10
10
|
data: boolean;
|
|
11
11
|
message: string;
|
|
12
12
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import { PlatformPermissionAction, ResourcePermissionAction } from '@/types/enum';
|
|
3
3
|
export declare function usePermission(apiPrefix: string, spaceId?: Ref<string>, backgroundColor?: string): {
|
|
4
|
-
handleMouseEnter: (authorized: boolean) => void;
|
|
4
|
+
handleMouseEnter: (authorized: boolean, callback?: Function) => void;
|
|
5
5
|
handleMouseMove: (event: MouseEvent, authorized: boolean) => void;
|
|
6
6
|
handleMouseLeave: () => void;
|
|
7
7
|
handleMouseClick: (callback: Function, authorized: boolean, actionIds: Array<ResourcePermissionAction>, resourceId?: string | number) => Promise<void>;
|
|
@@ -44,10 +44,13 @@ export function usePermission(apiPrefix, spaceId, backgroundColor) {
|
|
|
44
44
|
item.remove();
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
const handleMouseEnter = (authorized)=>{
|
|
48
|
-
if (authorized)
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
const handleMouseEnter = (authorized, callback)=>{
|
|
48
|
+
if (authorized) {
|
|
49
|
+
callback === null || callback === void 0 ? void 0 : callback();
|
|
50
|
+
} else {
|
|
51
|
+
element.style.backgroundColor = backgroundColor;
|
|
52
|
+
element.style.height = '16px';
|
|
53
|
+
}
|
|
51
54
|
};
|
|
52
55
|
const handleMouseMove = (event, authorized)=>{
|
|
53
56
|
if (authorized) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RequestHookData } from '@/types/common';
|
|
2
|
-
import type { ISession, ISessionContent } from '@/types/session';
|
|
2
|
+
import type { IChatGroup, IChatGroupRequest, ISession, ISessionContent } from '@/types/session';
|
|
3
3
|
export declare const useSessionHttp: ({ apiPrefix, headers, beforeRequest, afterRequest, }: {
|
|
4
4
|
apiPrefix: string;
|
|
5
5
|
headers?: Record<string, string>;
|
|
@@ -20,4 +20,5 @@ export declare const useSessionHttp: ({ apiPrefix, headers, beforeRequest, after
|
|
|
20
20
|
deleteSessionContent: (id: number) => Promise<ISessionContent>;
|
|
21
21
|
batchDeleteSessionContents: (ids: number[]) => Promise<number>;
|
|
22
22
|
renameSession: (sessionCode: string) => Promise<ISession>;
|
|
23
|
+
getChatGroup: (data: IChatGroupRequest) => Promise<IChatGroup>;
|
|
23
24
|
};
|
|
@@ -96,6 +96,12 @@ export const useSessionHttp = ({ apiPrefix, headers, beforeRequest, afterRequest
|
|
|
96
96
|
sessionCode: res.session_code,
|
|
97
97
|
sessionName: res.session_name
|
|
98
98
|
}));
|
|
99
|
+
// 获取聊天组信息
|
|
100
|
+
const getChatGroup = (data)=>fetch.post(`${apiPrefix}/chat_group/`, data, {
|
|
101
|
+
headers,
|
|
102
|
+
beforeRequest,
|
|
103
|
+
afterRequest
|
|
104
|
+
});
|
|
99
105
|
return {
|
|
100
106
|
getAgentInfo,
|
|
101
107
|
clearSession,
|
|
@@ -110,6 +116,7 @@ export const useSessionHttp = ({ apiPrefix, headers, beforeRequest, afterRequest
|
|
|
110
116
|
modifySessionContent,
|
|
111
117
|
deleteSessionContent,
|
|
112
118
|
batchDeleteSessionContents,
|
|
113
|
-
renameSession
|
|
119
|
+
renameSession,
|
|
120
|
+
getChatGroup
|
|
114
121
|
};
|
|
115
122
|
};
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
promptSetting: {
|
|
36
36
|
content: data === null || data === void 0 ? void 0 : (_data_prompt_setting = data.prompt_setting) === null || _data_prompt_setting === void 0 ? void 0 : _data_prompt_setting.content
|
|
37
37
|
},
|
|
38
|
-
agentName: data === null || data === void 0 ? void 0 : data.agent_name
|
|
38
|
+
agentName: data === null || data === void 0 ? void 0 : data.agent_name,
|
|
39
|
+
chatGroup: (data === null || data === void 0 ? void 0 : data.chat_group) ? {
|
|
40
|
+
enabled: data.chat_group.enabled,
|
|
41
|
+
staff: data.chat_group.staff,
|
|
42
|
+
username: data.chat_group.username
|
|
43
|
+
} : undefined,
|
|
44
|
+
saasUrl: data === null || data === void 0 ? void 0 : data.saas_url
|
|
39
45
|
};
|
|
40
46
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetApiGuide, IDatasetApiGuideApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
|
|
1
|
+
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetApiGuide, IDatasetApiGuideApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
|
|
2
2
|
/**
|
|
3
3
|
* 接口转换为ui使用
|
|
4
4
|
* @param data ICreataDatasetDataResultApi
|
|
@@ -184,6 +184,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
184
184
|
knowledgebase_code: data.knowledgebaseCode,
|
|
185
185
|
description: data.description,
|
|
186
186
|
generate_type: data.generateType,
|
|
187
|
+
is_public: data.isPublic,
|
|
187
188
|
knowledge_count: data.number,
|
|
188
189
|
anchor_path: data.anchorPath,
|
|
189
190
|
index_config: data.indexConfig,
|
|
@@ -222,6 +223,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
222
223
|
knowledgebaseCode: data.knowledgebase_code,
|
|
223
224
|
status: data.status,
|
|
224
225
|
generateType: data.generate_type,
|
|
226
|
+
isPublic: data.is_public,
|
|
225
227
|
number: data.knowledge_count,
|
|
226
228
|
folderNumber: data.folder_num,
|
|
227
229
|
updatedBy: data.updated_by,
|
|
@@ -8,28 +8,35 @@
|
|
|
8
8
|
viewSpace: data.view_space,
|
|
9
9
|
manageSpace: data.manage_space,
|
|
10
10
|
viewAgent: data.view_agent,
|
|
11
|
+
useAgent: data.use_agent,
|
|
11
12
|
createAgent: data.create_agent,
|
|
12
13
|
manageAgent: data.manage_agent,
|
|
13
14
|
viewPrompt: data.view_prompt,
|
|
15
|
+
usePrompt: data.use_prompt,
|
|
14
16
|
createPrompt: data.create_prompt,
|
|
15
17
|
managePrompt: data.manage_prompt,
|
|
16
18
|
viewCollection: data.view_collection,
|
|
19
|
+
useCollection: data.use_collection,
|
|
17
20
|
createCollection: data.create_collection,
|
|
18
21
|
manageCollection: data.manage_collection,
|
|
19
22
|
viewTool: data.view_tool,
|
|
23
|
+
useTool: data.use_tool,
|
|
20
24
|
createTool: data.create_tool,
|
|
21
25
|
manageTool: data.manage_tool,
|
|
22
26
|
viewKnowledgebase: data.view_knowledgebase,
|
|
27
|
+
useKnowledgebase: data.use_knowledgebase,
|
|
23
28
|
createKnowledgebase: data.create_knowledgebase,
|
|
24
29
|
manageKnowledgebase: data.manage_knowledgebase,
|
|
25
30
|
viewQueryTemplate: data.view_query_template,
|
|
31
|
+
useQueryTemplate: data.use_query_template,
|
|
26
32
|
createQueryTemplate: data.create_query_template,
|
|
27
33
|
manageQueryTemplate: data.manage_query_template,
|
|
28
34
|
viewDataset: data.view_dataset,
|
|
29
35
|
manageDataset: data.manage_dataset,
|
|
30
36
|
createMcp: data.create_mcp,
|
|
31
37
|
manageMcp: data.manage_mcp,
|
|
32
|
-
viewMcp: data.view_mcp
|
|
38
|
+
viewMcp: data.view_mcp,
|
|
39
|
+
useMcp: data.use_mcp
|
|
33
40
|
} : undefined;
|
|
34
41
|
/**
|
|
35
42
|
* 接口转换为ui
|
|
@@ -18,6 +18,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
18
18
|
method: data.method,
|
|
19
19
|
url: data.url,
|
|
20
20
|
generateType: data.generate_type,
|
|
21
|
+
isPublic: data.is_public,
|
|
21
22
|
id: data.tool_id,
|
|
22
23
|
spaceId: data.space_id,
|
|
23
24
|
status: data.status,
|
|
@@ -41,6 +42,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
41
42
|
method: data.method,
|
|
42
43
|
url: data.url,
|
|
43
44
|
generate_type: data.generateType,
|
|
45
|
+
is_public: data.isPublic,
|
|
44
46
|
tool_id: data.id,
|
|
45
47
|
status: data.status,
|
|
46
48
|
is_sensitive: data.isSensitive,
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IAgentCommandApi {
|
|
|
21
21
|
content: string | null;
|
|
22
22
|
agent_id: number;
|
|
23
23
|
status: string;
|
|
24
|
+
selectedText?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface IAgentInfoApi {
|
|
26
27
|
conversation_settings?: {
|
|
@@ -33,6 +34,12 @@ export interface IAgentInfoApi {
|
|
|
33
34
|
content?: ISessionPrompt[];
|
|
34
35
|
};
|
|
35
36
|
agent_name: string;
|
|
37
|
+
chat_group?: {
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
staff: string[];
|
|
40
|
+
username: string;
|
|
41
|
+
};
|
|
42
|
+
saas_url?: string;
|
|
36
43
|
}
|
|
37
44
|
export interface IAgentCommandComponent {
|
|
38
45
|
type: string;
|
|
@@ -48,6 +55,7 @@ export interface IAgentCommandComponent {
|
|
|
48
55
|
max?: number | null;
|
|
49
56
|
options?: any;
|
|
50
57
|
hide?: boolean;
|
|
58
|
+
selectedText?: string | null;
|
|
51
59
|
}
|
|
52
60
|
export interface IAgentCommand {
|
|
53
61
|
id: string;
|
|
@@ -69,4 +77,10 @@ export interface IAgentInfo {
|
|
|
69
77
|
content?: ISessionPrompt[];
|
|
70
78
|
};
|
|
71
79
|
agentName?: string;
|
|
80
|
+
chatGroup?: {
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
staff: string[];
|
|
83
|
+
username: string;
|
|
84
|
+
};
|
|
85
|
+
saasUrl?: string;
|
|
72
86
|
}
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare enum DatasetDataOperatRecordResultCode {
|
|
|
135
135
|
Success = 0,
|
|
136
136
|
Failed = 1
|
|
137
137
|
}
|
|
138
|
-
export declare enum
|
|
138
|
+
export declare enum Module {
|
|
139
139
|
Knowledgebase = "knowledgebase",
|
|
140
140
|
Knowledge = "knowledge",
|
|
141
141
|
Prompt = "prompt",
|
|
@@ -156,28 +156,35 @@ export declare enum ResourcePermissionAction {
|
|
|
156
156
|
ViewSpace = "view_space",
|
|
157
157
|
ManageSpace = "manage_space",
|
|
158
158
|
ViewAgent = "view_agent",
|
|
159
|
+
UseAgent = "use_agent",
|
|
159
160
|
CreateAgent = "create_agent",
|
|
160
161
|
ManageAgent = "manage_agent",
|
|
161
162
|
ViewPrompt = "view_prompt",
|
|
163
|
+
UsePrompt = "use_prompt",
|
|
162
164
|
CreatePrompt = "create_prompt",
|
|
163
165
|
ManagePrompt = "manage_prompt",
|
|
164
166
|
ViewCollection = "view_collection",
|
|
167
|
+
UseCollection = "use_collection",
|
|
165
168
|
CreateCollection = "create_collection",
|
|
166
169
|
ManageCollection = "manage_collection",
|
|
167
170
|
ViewTool = "view_tool",
|
|
171
|
+
UseTool = "use_tool",
|
|
168
172
|
CreateTool = "create_tool",
|
|
169
173
|
ManageTool = "manage_tool",
|
|
170
174
|
ViewKnowledgebase = "view_knowledgebase",
|
|
175
|
+
UseKnowledgebase = "use_knowledgebase",
|
|
171
176
|
CreateKnowledgebase = "create_knowledgebase",
|
|
172
177
|
ManageKnowledgebase = "manage_knowledgebase",
|
|
173
178
|
ViewQueryTemplate = "view_query_template",
|
|
179
|
+
UseQueryTemplate = "use_query_template",
|
|
174
180
|
CreateQueryTemplate = "create_query_template",
|
|
175
181
|
ManageQueryTemplate = "manage_query_template",
|
|
176
182
|
ViewDataset = "view_dataset",
|
|
177
183
|
ManageDataset = "manage_dataset",
|
|
178
184
|
CreateMcp = "create_mcp",
|
|
179
185
|
ManageMcp = "manage_mcp",
|
|
180
|
-
ViewMcp = "view_mcp"
|
|
186
|
+
ViewMcp = "view_mcp",
|
|
187
|
+
UseMcp = "use_mcp"
|
|
181
188
|
}
|
|
182
189
|
export declare enum PlatformPermissionAction {
|
|
183
190
|
AccessPlatform = "access_platform",
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -154,22 +154,22 @@ export var DatasetDataOperatRecordResultCode;
|
|
|
154
154
|
DatasetDataOperatRecordResultCode[DatasetDataOperatRecordResultCode["Success"] = 0] = "Success";
|
|
155
155
|
DatasetDataOperatRecordResultCode[DatasetDataOperatRecordResultCode["Failed"] = 1] = "Failed";
|
|
156
156
|
})(DatasetDataOperatRecordResultCode || (DatasetDataOperatRecordResultCode = {}));
|
|
157
|
-
export var
|
|
158
|
-
(function(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
})(
|
|
157
|
+
export var Module;
|
|
158
|
+
(function(Module) {
|
|
159
|
+
Module["Knowledgebase"] = "knowledgebase";
|
|
160
|
+
Module["Knowledge"] = "knowledge";
|
|
161
|
+
Module["Prompt"] = "prompt";
|
|
162
|
+
Module["Tool"] = "tool";
|
|
163
|
+
Module["Collection"] = "collection";
|
|
164
|
+
Module["Agent"] = "agent";
|
|
165
|
+
Module["AgentCommand"] = "agent_command";
|
|
166
|
+
Module["AgentCommandComponent"] = "agent_command_component";
|
|
167
|
+
Module["LLM"] = "llm";
|
|
168
|
+
Module["Tag"] = "tag";
|
|
169
|
+
Module["Mcp"] = "mcp";
|
|
170
|
+
Module["Default"] = "default";
|
|
171
|
+
Module["PromptVariables"] = "prompt_variables";
|
|
172
|
+
})(Module || (Module = {}));
|
|
173
173
|
export var ResourcePermissionAction;
|
|
174
174
|
(function(ResourcePermissionAction) {
|
|
175
175
|
ResourcePermissionAction["AccessModel"] = "access_model";
|
|
@@ -177,21 +177,27 @@ export var ResourcePermissionAction;
|
|
|
177
177
|
ResourcePermissionAction["ViewSpace"] = "view_space";
|
|
178
178
|
ResourcePermissionAction["ManageSpace"] = "manage_space";
|
|
179
179
|
ResourcePermissionAction["ViewAgent"] = "view_agent";
|
|
180
|
+
ResourcePermissionAction["UseAgent"] = "use_agent";
|
|
180
181
|
ResourcePermissionAction["CreateAgent"] = "create_agent";
|
|
181
182
|
ResourcePermissionAction["ManageAgent"] = "manage_agent";
|
|
182
183
|
ResourcePermissionAction["ViewPrompt"] = "view_prompt";
|
|
184
|
+
ResourcePermissionAction["UsePrompt"] = "use_prompt";
|
|
183
185
|
ResourcePermissionAction["CreatePrompt"] = "create_prompt";
|
|
184
186
|
ResourcePermissionAction["ManagePrompt"] = "manage_prompt";
|
|
185
187
|
ResourcePermissionAction["ViewCollection"] = "view_collection";
|
|
188
|
+
ResourcePermissionAction["UseCollection"] = "use_collection";
|
|
186
189
|
ResourcePermissionAction["CreateCollection"] = "create_collection";
|
|
187
190
|
ResourcePermissionAction["ManageCollection"] = "manage_collection";
|
|
188
191
|
ResourcePermissionAction["ViewTool"] = "view_tool";
|
|
192
|
+
ResourcePermissionAction["UseTool"] = "use_tool";
|
|
189
193
|
ResourcePermissionAction["CreateTool"] = "create_tool";
|
|
190
194
|
ResourcePermissionAction["ManageTool"] = "manage_tool";
|
|
191
195
|
ResourcePermissionAction["ViewKnowledgebase"] = "view_knowledgebase";
|
|
196
|
+
ResourcePermissionAction["UseKnowledgebase"] = "use_knowledgebase";
|
|
192
197
|
ResourcePermissionAction["CreateKnowledgebase"] = "create_knowledgebase";
|
|
193
198
|
ResourcePermissionAction["ManageKnowledgebase"] = "manage_knowledgebase";
|
|
194
199
|
ResourcePermissionAction["ViewQueryTemplate"] = "view_query_template";
|
|
200
|
+
ResourcePermissionAction["UseQueryTemplate"] = "use_query_template";
|
|
195
201
|
ResourcePermissionAction["CreateQueryTemplate"] = "create_query_template";
|
|
196
202
|
ResourcePermissionAction["ManageQueryTemplate"] = "manage_query_template";
|
|
197
203
|
ResourcePermissionAction["ViewDataset"] = "view_dataset";
|
|
@@ -199,6 +205,7 @@ export var ResourcePermissionAction;
|
|
|
199
205
|
ResourcePermissionAction["CreateMcp"] = "create_mcp";
|
|
200
206
|
ResourcePermissionAction["ManageMcp"] = "manage_mcp";
|
|
201
207
|
ResourcePermissionAction["ViewMcp"] = "view_mcp";
|
|
208
|
+
ResourcePermissionAction["UseMcp"] = "use_mcp";
|
|
202
209
|
})(ResourcePermissionAction || (ResourcePermissionAction = {}));
|
|
203
210
|
export var PlatformPermissionAction;
|
|
204
211
|
(function(PlatformPermissionAction) {
|
|
@@ -105,6 +105,7 @@ export interface IKnowledgebaseApi {
|
|
|
105
105
|
status?: ResourceStatus;
|
|
106
106
|
description?: string;
|
|
107
107
|
generate_type?: EnumCharacter;
|
|
108
|
+
is_public?: boolean;
|
|
108
109
|
knowledge_count?: number;
|
|
109
110
|
folder_num?: number;
|
|
110
111
|
updated_by?: string;
|
|
@@ -128,6 +129,7 @@ export interface IKnowledgebase {
|
|
|
128
129
|
type?: KnowledgebaseType;
|
|
129
130
|
status?: ResourceStatus;
|
|
130
131
|
generateType?: EnumCharacter;
|
|
132
|
+
isPublic?: boolean;
|
|
131
133
|
pathType?: KnowledgePathType;
|
|
132
134
|
createdType?: KnowledgeType;
|
|
133
135
|
number?: number;
|
|
@@ -28,21 +28,27 @@ export interface IResourcePermissionApi {
|
|
|
28
28
|
view_space?: boolean;
|
|
29
29
|
manage_space?: boolean;
|
|
30
30
|
view_agent?: boolean;
|
|
31
|
+
use_agent?: boolean;
|
|
31
32
|
create_agent?: boolean;
|
|
32
33
|
manage_agent?: boolean;
|
|
33
34
|
view_prompt?: boolean;
|
|
35
|
+
use_prompt?: boolean;
|
|
34
36
|
create_prompt?: boolean;
|
|
35
37
|
manage_prompt?: boolean;
|
|
36
38
|
view_collection?: boolean;
|
|
39
|
+
use_collection?: boolean;
|
|
37
40
|
create_collection?: boolean;
|
|
38
41
|
manage_collection?: boolean;
|
|
39
42
|
view_tool?: boolean;
|
|
43
|
+
use_tool?: boolean;
|
|
40
44
|
create_tool?: boolean;
|
|
41
45
|
manage_tool?: boolean;
|
|
42
46
|
view_knowledgebase?: boolean;
|
|
47
|
+
use_knowledgebase?: boolean;
|
|
43
48
|
create_knowledgebase?: boolean;
|
|
44
49
|
manage_knowledgebase?: boolean;
|
|
45
50
|
view_query_template?: boolean;
|
|
51
|
+
use_query_template?: boolean;
|
|
46
52
|
create_query_template?: boolean;
|
|
47
53
|
manage_query_template?: boolean;
|
|
48
54
|
view_dataset?: boolean;
|
|
@@ -50,6 +56,7 @@ export interface IResourcePermissionApi {
|
|
|
50
56
|
create_mcp?: boolean;
|
|
51
57
|
manage_mcp?: boolean;
|
|
52
58
|
view_mcp?: boolean;
|
|
59
|
+
use_mcp?: boolean;
|
|
53
60
|
}
|
|
54
61
|
export interface IResourcePermission {
|
|
55
62
|
accessModel?: boolean;
|
|
@@ -57,21 +64,27 @@ export interface IResourcePermission {
|
|
|
57
64
|
viewSpace?: boolean;
|
|
58
65
|
manageSpace?: boolean;
|
|
59
66
|
viewAgent?: boolean;
|
|
67
|
+
useAgent?: boolean;
|
|
60
68
|
createAgent?: boolean;
|
|
61
69
|
manageAgent?: boolean;
|
|
62
70
|
viewPrompt?: boolean;
|
|
71
|
+
usePrompt?: boolean;
|
|
63
72
|
createPrompt?: boolean;
|
|
64
73
|
managePrompt?: boolean;
|
|
65
74
|
viewCollection?: boolean;
|
|
75
|
+
useCollection?: boolean;
|
|
66
76
|
createCollection?: boolean;
|
|
67
77
|
manageCollection?: boolean;
|
|
68
78
|
viewTool?: boolean;
|
|
79
|
+
useTool?: boolean;
|
|
69
80
|
createTool?: boolean;
|
|
70
81
|
manageTool?: boolean;
|
|
71
82
|
viewKnowledgebase?: boolean;
|
|
83
|
+
useKnowledgebase?: boolean;
|
|
72
84
|
createKnowledgebase?: boolean;
|
|
73
85
|
manageKnowledgebase?: boolean;
|
|
74
86
|
viewQueryTemplate?: boolean;
|
|
87
|
+
useQueryTemplate?: boolean;
|
|
75
88
|
createQueryTemplate?: boolean;
|
|
76
89
|
manageQueryTemplate?: boolean;
|
|
77
90
|
viewDataset?: boolean;
|
|
@@ -79,6 +92,7 @@ export interface IResourcePermission {
|
|
|
79
92
|
createMcp?: boolean;
|
|
80
93
|
manageMcp?: boolean;
|
|
81
94
|
viewMcp?: boolean;
|
|
95
|
+
useMcp?: boolean;
|
|
82
96
|
}
|
|
83
97
|
export interface IPlatformPermission {
|
|
84
98
|
access_platform: boolean;
|
package/dist/types/session.d.ts
CHANGED
|
@@ -158,3 +158,22 @@ export type ISendChat = {
|
|
|
158
158
|
content: BasicChatContent | ShortcutChatContent;
|
|
159
159
|
callback?: () => void;
|
|
160
160
|
};
|
|
161
|
+
export interface IChatGroupMessage {
|
|
162
|
+
role: 'ai' | 'user';
|
|
163
|
+
content: string;
|
|
164
|
+
}
|
|
165
|
+
export interface IChatGroupRequest {
|
|
166
|
+
chat_group_name: string;
|
|
167
|
+
messages: IChatGroupMessage[];
|
|
168
|
+
session_code: string;
|
|
169
|
+
}
|
|
170
|
+
export interface IChatGroup {
|
|
171
|
+
result: boolean;
|
|
172
|
+
data: {
|
|
173
|
+
group_id: string;
|
|
174
|
+
task_status: string;
|
|
175
|
+
error_message: string | null;
|
|
176
|
+
};
|
|
177
|
+
code: string;
|
|
178
|
+
message: string;
|
|
179
|
+
}
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface IToolApi {
|
|
|
34
34
|
method: string;
|
|
35
35
|
url: string;
|
|
36
36
|
generate_type: EnumCharacter;
|
|
37
|
+
is_public: boolean;
|
|
37
38
|
tool_id?: number;
|
|
38
39
|
status?: ResourceStatus;
|
|
39
40
|
is_sensitive?: boolean;
|
|
@@ -57,6 +58,7 @@ export interface ITool {
|
|
|
57
58
|
method: string;
|
|
58
59
|
url: string;
|
|
59
60
|
generateType: EnumCharacter;
|
|
61
|
+
isPublic: boolean;
|
|
60
62
|
id?: number;
|
|
61
63
|
status?: ResourceStatus;
|
|
62
64
|
isSensitive?: boolean;
|