@blueking/ai-ui-sdk 0.1.12-beta.28 → 0.1.12-beta.29
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/common/util.d.ts +7 -0
- package/dist/common/util.ts.js +8 -0
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +8 -2
- 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/batch-review-dataset-data/index.script.vue.js.js +27 -9
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +1 -2
- 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.script.vue.js.js +46 -11
- 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.d.ts +2 -0
- 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.script.vue.js.js +4 -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-footer.script.vue.js.js +8 -2
- 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/file.script.vue.js.js +12 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +8 -2
- 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/plus-dataset-data/index.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +21 -5
- 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 -3
- 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/components/header.script.vue.js.js +77 -2
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +3 -0
- package/dist/components/render-dataset-detail/index.script.vue.js.js +8 -2
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +12 -9
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +3 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +206 -37
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +4 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +0 -2
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +29 -14
- 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.script.vue.js.js +4 -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 +21 -21
- 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-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 +10 -2
- package/dist/hooks/use-dataset-http.d.ts +4 -1
- package/dist/hooks/use-dataset-http.ts.js +20 -0
- package/dist/http/helper/agent.ts.js +1 -2
- package/dist/http/helper/knowledge.ts.js +4 -2
- package/dist/http/helper/session.ts.js +2 -0
- package/dist/http/helper/tool.ts.js +6 -0
- package/dist/types/agent.d.ts +0 -2
- package/dist/types/common.ts.js +1 -0
- package/dist/types/dataset.d.ts +1 -0
- package/dist/types/enum.d.ts +12 -0
- package/dist/types/enum.ts.js +14 -0
- package/dist/types/knowledge.d.ts +2 -0
- package/dist/types/session.d.ts +2 -2
- package/dist/types/tool.d.ts +9 -3
- package/dist/types.d.ts +1 -0
- package/dist/types.ts.js +1 -0
- package/package.json +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +0 -10
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { defineComponent as _defineComponent } from 'vue';
|
|
54
|
-
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective,
|
|
54
|
+
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
55
55
|
const _hoisted_1 = {
|
|
56
56
|
class: "g-more-menu"
|
|
57
57
|
};
|
|
@@ -202,7 +202,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
202
202
|
tempDataset.value = row;
|
|
203
203
|
};
|
|
204
204
|
const handleShowDelete = (row)=>{
|
|
205
|
-
if (row.datasetItemCount > 0) return;
|
|
206
205
|
deleteRef.value[row.id].popoverRef.show();
|
|
207
206
|
};
|
|
208
207
|
const handleHidePopover = (row)=>{
|
|
@@ -243,7 +242,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
243
242
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
244
243
|
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
245
244
|
const _component_bk_table = _resolveComponent("bk-table");
|
|
246
|
-
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
247
245
|
const _directive_bkloading = _resolveDirective("bkloading");
|
|
248
246
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
249
247
|
_withDirectives((_openBlock(), _createBlock(_component_bk_table, {
|
|
@@ -391,7 +389,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
391
389
|
default: _withCtx(()=>_cache[3] || (_cache[3] = [
|
|
392
390
|
_createTextVNode(" 查看详情 ")
|
|
393
391
|
])),
|
|
394
|
-
_: 2 /* DYNAMIC */
|
|
392
|
+
_: 2 /* DYNAMIC */ ,
|
|
393
|
+
__: [
|
|
394
|
+
3
|
|
395
|
+
]
|
|
395
396
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
396
397
|
"class",
|
|
397
398
|
"onMouseenter",
|
|
@@ -425,7 +426,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
425
426
|
default: _withCtx(()=>_cache[4] || (_cache[4] = [
|
|
426
427
|
_createTextVNode(" 编辑数据集 ")
|
|
427
428
|
])),
|
|
428
|
-
_: 2 /* DYNAMIC */
|
|
429
|
+
_: 2 /* DYNAMIC */ ,
|
|
430
|
+
__: [
|
|
431
|
+
4
|
|
432
|
+
]
|
|
429
433
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
430
434
|
"class",
|
|
431
435
|
"onMouseenter",
|
|
@@ -450,7 +454,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
450
454
|
default: _withCtx(()=>_cache[5] || (_cache[5] = [
|
|
451
455
|
_createTextVNode(" 操作记录 ")
|
|
452
456
|
])),
|
|
453
|
-
_: 2 /* DYNAMIC */
|
|
457
|
+
_: 2 /* DYNAMIC */ ,
|
|
458
|
+
__: [
|
|
459
|
+
5
|
|
460
|
+
]
|
|
454
461
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
455
462
|
"class",
|
|
456
463
|
"onMouseenter",
|
|
@@ -469,26 +476,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
469
476
|
onConfirm: ($event)=>handleDeleteDataset(row)
|
|
470
477
|
}, {
|
|
471
478
|
default: _withCtx(()=>[
|
|
472
|
-
|
|
479
|
+
_createElementVNode("li", {
|
|
473
480
|
class: _normalizeClass({
|
|
474
|
-
'g-disabled':
|
|
481
|
+
'g-disabled': !isDatasetManagePermission(row)
|
|
475
482
|
}),
|
|
476
483
|
onMouseenter: ($event)=>_unref(handleMouseEnter)(isDatasetManagePermission(row)),
|
|
477
484
|
onMousemove: (event)=>_unref(handleMouseMove)(event, isDatasetManagePermission(row)),
|
|
478
485
|
onMouseleave: _cache[0] || (_cache[0] = //@ts-ignore
|
|
479
486
|
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
480
487
|
onClick: ($event)=>handleManagePermissionMouseClick(()=>handleShowDelete(row), row)
|
|
481
|
-
},
|
|
482
|
-
_createTextVNode(" 删除 ")
|
|
483
|
-
]), 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_4)), [
|
|
484
|
-
[
|
|
485
|
-
_directive_bk_tooltips,
|
|
486
|
-
{
|
|
487
|
-
content: '有数据的数据集不能删除',
|
|
488
|
-
disabled: row.datasetItemCount <= 0
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
|
-
])
|
|
488
|
+
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_4)
|
|
492
489
|
]),
|
|
493
490
|
_: 2 /* DYNAMIC */
|
|
494
491
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
@@ -497,11 +494,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
497
494
|
])
|
|
498
495
|
]),
|
|
499
496
|
default: _withCtx(()=>[
|
|
500
|
-
_cache[
|
|
497
|
+
_cache[6] || (_cache[6] = _createElementVNode("i", {
|
|
501
498
|
class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16 g-ml-12 g-cursor-pointer"
|
|
502
499
|
}, null, -1 /* HOISTED */ ))
|
|
503
500
|
]),
|
|
504
|
-
_: 2 /* DYNAMIC */
|
|
501
|
+
_: 2 /* DYNAMIC */ ,
|
|
502
|
+
__: [
|
|
503
|
+
6
|
|
504
|
+
]
|
|
505
505
|
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
|
506
506
|
]),
|
|
507
507
|
_: 1 /* STABLE */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.expend-collapse-home[data-v-
|
|
2
|
+
.expend-collapse-home[data-v-kh1s6cu9] {
|
|
3
3
|
width: 16px;
|
|
4
4
|
height: 64px;
|
|
5
5
|
background: #DCDEE5;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
z-index: 1550;
|
|
17
17
|
}
|
|
18
|
-
.expend-collapse-home[data-v-
|
|
18
|
+
.expend-collapse-home[data-v-kh1s6cu9]:hover {
|
|
19
19
|
background: #979BA5;
|
|
20
20
|
}
|
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
|
21
|
+
.expend-collapse-home.is-close[data-v-kh1s6cu9] {
|
|
22
22
|
left: 0;
|
|
23
23
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-0uybsizp] {
|
|
3
3
|
position: relative;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
border: 1px solid #DCDEE5;
|
|
6
6
|
border-radius: 4px;
|
|
7
7
|
padding: 12px 12px 10px 12px;
|
|
8
8
|
}
|
|
9
|
-
.upload-file-home[data-v-
|
|
9
|
+
.upload-file-home[data-v-0uybsizp]:hover {
|
|
10
10
|
border: 1px solid #3A84FF;
|
|
11
11
|
}
|
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
|
12
|
+
.upload-file-home:hover .file-icons[data-v-0uybsizp] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-0uybsizp] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-0uybsizp] {
|
|
19
19
|
font-size: 12px;
|
|
20
20
|
flex: 1;
|
|
21
21
|
align-items: flex-start;
|
|
@@ -23,28 +23,28 @@
|
|
|
23
23
|
font-weight: normal;
|
|
24
24
|
width: 0;
|
|
25
25
|
}
|
|
26
|
-
.upload-file-home .file-content .file-name[data-v-
|
|
26
|
+
.upload-file-home .file-content .file-name[data-v-0uybsizp] {
|
|
27
27
|
width: 100%;
|
|
28
28
|
font-size: 14px;
|
|
29
29
|
line-height: 20px;
|
|
30
30
|
}
|
|
31
|
-
.upload-file-home .file-content .file-size[data-v-
|
|
31
|
+
.upload-file-home .file-content .file-size[data-v-0uybsizp] {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
color: #979BA5;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
}
|
|
36
|
-
.upload-file-home .file-icons[data-v-
|
|
36
|
+
.upload-file-home .file-icons[data-v-0uybsizp] {
|
|
37
37
|
display: none;
|
|
38
38
|
color: #979BA5;
|
|
39
39
|
}
|
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-0uybsizp] {
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
margin-right: 15px;
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
}
|
|
45
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-0uybsizp]:hover {
|
|
46
46
|
color: #3A84FF;
|
|
47
47
|
}
|
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-0uybsizp] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-13zf6797] {
|
|
3
3
|
color: #EA3636;
|
|
4
4
|
}
|
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-13zf6797], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-13zf6797], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-13zf6797] {
|
|
6
6
|
color: #3A84FF;
|
|
7
7
|
}
|
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-13zf6797] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-13zf6797] {
|
|
12
12
|
color: #2DCB56;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-13zf6797] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-2mwt0uku] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 52px;
|
|
5
5
|
background: #FFFFFF;
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
z-index: 2;
|
|
9
9
|
}
|
|
10
|
-
.header-title[data-v-
|
|
10
|
+
.header-title[data-v-2mwt0uku] {
|
|
11
11
|
position: absolute;
|
|
12
12
|
left: 24px;
|
|
13
13
|
top: 14px;
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
color: #313238;
|
|
16
16
|
}
|
|
17
|
-
.header-main[data-v-
|
|
17
|
+
.header-main[data-v-2mwt0uku] {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: flex-end;
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
height: 100%;
|
|
23
23
|
margin: 0 auto;
|
|
24
24
|
}
|
|
25
|
-
.header-select[data-v-
|
|
25
|
+
.header-select[data-v-2mwt0uku] {
|
|
26
26
|
width: 300px;
|
|
27
27
|
margin-right: 8px;
|
|
28
28
|
z-index: 9;
|
|
29
29
|
font-size: 12px;
|
|
30
30
|
}
|
|
31
|
-
.header-input[data-v-
|
|
31
|
+
.header-input[data-v-2mwt0uku] {
|
|
32
32
|
width: 300px;
|
|
33
33
|
font-size: 12px;
|
|
34
34
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-eqfnq2e9] {
|
|
3
3
|
margin-top: 2px;
|
|
4
4
|
height: 42px;
|
|
5
5
|
background: #FFFFFF;
|
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
|
7
7
|
padding: 0 45px;
|
|
8
8
|
}
|
|
9
|
-
.router-tab a[data-v-
|
|
9
|
+
.router-tab a[data-v-eqfnq2e9] {
|
|
10
10
|
padding: 0 8px;
|
|
11
11
|
margin-right: 24px;
|
|
12
12
|
font-size: 14px;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
color: #4D4F56;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
}
|
|
18
|
-
.router-tab a.router-link-exact-active[data-v-
|
|
18
|
+
.router-tab a.router-link-exact-active[data-v-eqfnq2e9] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
84
84
|
url: string;
|
|
85
85
|
generateType: import("../types/enum").EnumCharacter;
|
|
86
86
|
id?: number;
|
|
87
|
-
status?:
|
|
87
|
+
status?: import("../types/enum").ResourceStatus;
|
|
88
88
|
isSensitive?: boolean;
|
|
89
89
|
permission?: {
|
|
90
90
|
accessModel?: boolean;
|
|
@@ -112,6 +112,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
112
112
|
viewDataset?: boolean;
|
|
113
113
|
manageDataset?: boolean;
|
|
114
114
|
};
|
|
115
|
+
credentialId?: number;
|
|
116
|
+
credentialType?: import("../types/enum").ToolCrdentialType;
|
|
117
|
+
credentialLocation?: import("../types/enum").CrdentialLocation;
|
|
115
118
|
}[];
|
|
116
119
|
anchorPathResources?: {
|
|
117
120
|
knowledges?: {
|
|
@@ -227,6 +230,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
227
230
|
updatedBy?: string;
|
|
228
231
|
errorMessage?: string;
|
|
229
232
|
isStructured?: boolean;
|
|
233
|
+
credentialId?: number;
|
|
230
234
|
indexConfig?: {
|
|
231
235
|
vector_indexes: {
|
|
232
236
|
index_name: string;
|
|
@@ -503,7 +507,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
503
507
|
url: string;
|
|
504
508
|
generateType: import("../types/enum").EnumCharacter;
|
|
505
509
|
id?: number;
|
|
506
|
-
status?:
|
|
510
|
+
status?: import("../types/enum").ResourceStatus;
|
|
507
511
|
isSensitive?: boolean;
|
|
508
512
|
permission?: {
|
|
509
513
|
accessModel?: boolean;
|
|
@@ -531,6 +535,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
531
535
|
viewDataset?: boolean;
|
|
532
536
|
manageDataset?: boolean;
|
|
533
537
|
};
|
|
538
|
+
credentialId?: number;
|
|
539
|
+
credentialType?: import("../types/enum").ToolCrdentialType;
|
|
540
|
+
credentialLocation?: import("../types/enum").CrdentialLocation;
|
|
534
541
|
}[];
|
|
535
542
|
anchorPathResources?: {
|
|
536
543
|
knowledges?: {
|
|
@@ -646,6 +653,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
646
653
|
updatedBy?: string;
|
|
647
654
|
errorMessage?: string;
|
|
648
655
|
isStructured?: boolean;
|
|
656
|
+
credentialId?: number;
|
|
649
657
|
indexConfig?: {
|
|
650
658
|
vector_indexes: {
|
|
651
659
|
index_name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, IComponent, IDatasetApi, IDatasetDataApi, IDatasetDataForm, IDatasetDataParam, IDatasetForm, IDatasetInfo, IDatasetListParam, IOperatRecordParam, ISchema, IUserInfoForm } from '@/types/dataset';
|
|
2
|
+
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, IComponent, IDatasetApi, IDatasetDataApi, IDatasetDataForm, IDatasetDataParam, IDatasetForm, IDatasetInfo, IDatasetListParam, IDatasetStatusInfo, IOperatRecordParam, ISchema, IUserInfoForm } from '@/types/dataset';
|
|
3
3
|
import type { ITagApi } from '@/types/meta';
|
|
4
4
|
export declare const useDatasetHttp: (apiPrefix?: string, spaceId?: Ref<string>) => {
|
|
5
5
|
getCompanyList: () => Promise<import("@/types/dataset").ICompany[]>;
|
|
@@ -10,9 +10,12 @@ export declare const useDatasetHttp: (apiPrefix?: string, spaceId?: Ref<string>)
|
|
|
10
10
|
results: import("@/types/dataset").IDataset[];
|
|
11
11
|
}>;
|
|
12
12
|
getDataset: (id: number) => Promise<import("@/types/dataset").IDataset>;
|
|
13
|
+
getDatasetStatusInfo: (id: number) => Promise<IDatasetStatusInfo>;
|
|
13
14
|
createDataset: (data: IDatasetForm) => Promise<import("@/types/dataset").IDataset>;
|
|
14
15
|
updateDataset: (data: IDatasetForm, id: number) => Promise<import("@/types/dataset").IDataset>;
|
|
15
16
|
deleteDataset: (id: number) => Promise<IDatasetApi>;
|
|
17
|
+
exportDataset: (id: number) => void;
|
|
18
|
+
getDatasetDataIds: (query: IDatasetDataParam) => Promise<number[]>;
|
|
16
19
|
getDatasetDataList: (query: IDatasetDataParam) => Promise<{
|
|
17
20
|
count: number;
|
|
18
21
|
results: import("@/types/dataset").IDatasetData[];
|
|
@@ -80,6 +80,12 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
|
|
|
80
80
|
noCheckPermission: true,
|
|
81
81
|
globalError: false
|
|
82
82
|
}).then(transferDatasetApi2Dataset);
|
|
83
|
+
// 获取数据集状态信息
|
|
84
|
+
const getDatasetStatusInfo = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/${id}/info/`, undefined, {
|
|
85
|
+
headers: {
|
|
86
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
87
|
+
}
|
|
88
|
+
});
|
|
83
89
|
// 创建数据集
|
|
84
90
|
const createDataset = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetForm2DatasetFormApi(data), {
|
|
85
91
|
headers: {
|
|
@@ -98,6 +104,17 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
|
|
|
98
104
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
99
105
|
}
|
|
100
106
|
});
|
|
107
|
+
// 导出数据集
|
|
108
|
+
const exportDataset = (id)=>{
|
|
109
|
+
const url = `${apiPrefix}/${datasetPerfix}/dataset/${id}/export/`;
|
|
110
|
+
window.open(url, '_blank');
|
|
111
|
+
};
|
|
112
|
+
// 获取数据集数据 ID 列表
|
|
113
|
+
const getDatasetDataIds = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/ids/`, transferDatasetDataParam2DatasetDataParamApi(query), {
|
|
114
|
+
headers: {
|
|
115
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
116
|
+
}
|
|
117
|
+
});
|
|
101
118
|
// 获取数据集数据列表
|
|
102
119
|
const getDatasetDataList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/list/`, transferDatasetDataParam2DatasetDataParamApi(query), {
|
|
103
120
|
headers: {
|
|
@@ -208,9 +225,12 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
|
|
|
208
225
|
getComponentList,
|
|
209
226
|
getDatasetList,
|
|
210
227
|
getDataset,
|
|
228
|
+
getDatasetStatusInfo,
|
|
211
229
|
createDataset,
|
|
212
230
|
updateDataset,
|
|
213
231
|
deleteDataset,
|
|
232
|
+
exportDataset,
|
|
233
|
+
getDatasetDataIds,
|
|
214
234
|
getDatasetDataList,
|
|
215
235
|
createDatasetData,
|
|
216
236
|
updateDatasetData,
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
},
|
|
12
12
|
promptSetting: {
|
|
13
13
|
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
|
|
14
|
-
}
|
|
15
|
-
agentName: data === null || data === void 0 ? void 0 : data.agent_name
|
|
14
|
+
}
|
|
16
15
|
};
|
|
17
16
|
};
|
|
@@ -95,7 +95,8 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
95
95
|
knowledge_base_id: data.knowledgebaseId,
|
|
96
96
|
parent_anchor_path: data.parentAnchorPath,
|
|
97
97
|
anchor_path: mergeStringWithoutLastSlash(data.parentAnchorPath, data.fileName),
|
|
98
|
-
index_config: data.indexConfig
|
|
98
|
+
index_config: data.indexConfig,
|
|
99
|
+
credential_id: data.credentialId
|
|
99
100
|
});
|
|
100
101
|
/**
|
|
101
102
|
* 接口转换为ui使用
|
|
@@ -133,7 +134,8 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
133
134
|
isStructured: data.is_structured,
|
|
134
135
|
updatedAt: data.updated_at,
|
|
135
136
|
updatedBy: data.updated_by,
|
|
136
|
-
indexConfig: data.index_config
|
|
137
|
+
indexConfig: data.index_config,
|
|
138
|
+
credentialId: data.credential_id
|
|
137
139
|
};
|
|
138
140
|
};
|
|
139
141
|
/**
|
|
@@ -66,6 +66,7 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
66
66
|
[SessionContentRole.Guide]: SessionPromptRole.Guide,
|
|
67
67
|
[SessionContentRole.Time]: SessionPromptRole.System,
|
|
68
68
|
[SessionContentRole.Role]: SessionPromptRole.System,
|
|
69
|
+
[SessionContentRole.Placeholder]: SessionPromptRole.Placeholder,
|
|
69
70
|
[SessionContentRole.HiddenAi]: SessionPromptRole.HiddenAssistant,
|
|
70
71
|
[SessionContentRole.HiddenGuide]: SessionPromptRole.HiddenGuide,
|
|
71
72
|
[SessionContentRole.HiddenRole]: SessionPromptRole.HiddenSystem,
|
|
@@ -96,6 +97,7 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
96
97
|
[SessionPromptRole.System]: SessionContentRole.Role,
|
|
97
98
|
[SessionPromptRole.Hidden]: SessionContentRole.Hidden,
|
|
98
99
|
[SessionPromptRole.Guide]: SessionContentRole.Guide,
|
|
100
|
+
[SessionPromptRole.Placeholder]: SessionContentRole.Placeholder,
|
|
99
101
|
[SessionPromptRole.HiddenAssistant]: SessionContentRole.HiddenAi,
|
|
100
102
|
[SessionPromptRole.HiddenGuide]: SessionContentRole.HiddenGuide,
|
|
101
103
|
[SessionPromptRole.HiddenSystem]: SessionContentRole.HiddenRole,
|
|
@@ -21,6 +21,9 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
21
21
|
spaceId: data.space_id,
|
|
22
22
|
status: data.status,
|
|
23
23
|
isSensitive: data.is_sensitive,
|
|
24
|
+
credentialId: data.credential_id,
|
|
25
|
+
credentialType: data.credential_type,
|
|
26
|
+
credentialLocation: data.credential_location,
|
|
24
27
|
permission: transferResourcePermission(data.permission)
|
|
25
28
|
});
|
|
26
29
|
/**
|
|
@@ -41,6 +44,9 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
41
44
|
tool_id: data.id,
|
|
42
45
|
status: data.status,
|
|
43
46
|
is_sensitive: data.isSensitive,
|
|
47
|
+
credential_id: data.credentialId,
|
|
48
|
+
credential_location: data.credentialLocation,
|
|
49
|
+
credential_type: data.credentialType,
|
|
44
50
|
property: {
|
|
45
51
|
header: data.header,
|
|
46
52
|
query: data.query,
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export interface IAgentInfoApi {
|
|
|
7
7
|
prompt_setting?: {
|
|
8
8
|
content?: ISessionPrompt[];
|
|
9
9
|
};
|
|
10
|
-
agent_name: string;
|
|
11
10
|
}
|
|
12
11
|
export interface IAgentInfo {
|
|
13
12
|
conversationSettings?: {
|
|
@@ -17,5 +16,4 @@ export interface IAgentInfo {
|
|
|
17
16
|
promptSetting?: {
|
|
18
17
|
content?: ISessionPrompt[];
|
|
19
18
|
};
|
|
20
|
-
agentName?: string;
|
|
21
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/types/dataset.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ export interface IDatasetDataParamApi extends IPage, ISort {
|
|
|
140
140
|
statuses?: DatasetDataStatus[];
|
|
141
141
|
review_statuses?: DatasetDataReviewStatus[];
|
|
142
142
|
}
|
|
143
|
+
export type IDatasetStatusInfo = Record<DatasetDataReviewLevel & DatasetDataStatus, number>;
|
|
143
144
|
export interface IUserInfoFormApi {
|
|
144
145
|
name: string;
|
|
145
146
|
company_id: number;
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare enum SessionPromptRole {
|
|
|
5
5
|
Guide = "guide",
|
|
6
6
|
Pause = "pause",
|
|
7
7
|
UserImage = "user-image",
|
|
8
|
+
Placeholder = "placeholder",
|
|
8
9
|
Hidden = "hidden",
|
|
9
10
|
HiddenUser = "hidden-user",
|
|
10
11
|
HiddenAssistant = "hidden-assistant",
|
|
@@ -32,6 +33,7 @@ export declare enum SessionContentRole {
|
|
|
32
33
|
Pause = "pause",
|
|
33
34
|
TokenExpired = "token-expired",
|
|
34
35
|
UserImage = "user-image",
|
|
36
|
+
Placeholder = "placeholder",
|
|
35
37
|
HiddenUser = "hidden-user",
|
|
36
38
|
HiddenAi = "hidden-ai",
|
|
37
39
|
HiddenRole = "hidden-role",
|
|
@@ -198,3 +200,13 @@ export declare enum DatasetDataReviewStatus {
|
|
|
198
200
|
Passed = "passed",
|
|
199
201
|
Refused = "refused"
|
|
200
202
|
}
|
|
203
|
+
export declare enum ToolCrdentialType {
|
|
204
|
+
Null = "null",
|
|
205
|
+
BlueApps = "blueapps",
|
|
206
|
+
Custom = "custom"
|
|
207
|
+
}
|
|
208
|
+
export declare enum CrdentialLocation {
|
|
209
|
+
Header = "header",
|
|
210
|
+
Body = "body",
|
|
211
|
+
Query = "query"
|
|
212
|
+
}
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -7,6 +7,7 @@ export var SessionPromptRole;
|
|
|
7
7
|
SessionPromptRole["Guide"] = "guide";
|
|
8
8
|
SessionPromptRole["Pause"] = "pause";
|
|
9
9
|
SessionPromptRole["UserImage"] = "user-image";
|
|
10
|
+
SessionPromptRole["Placeholder"] = "placeholder";
|
|
10
11
|
SessionPromptRole["Hidden"] = "hidden";
|
|
11
12
|
SessionPromptRole["HiddenUser"] = "hidden-user";
|
|
12
13
|
SessionPromptRole["HiddenAssistant"] = "hidden-assistant";
|
|
@@ -36,6 +37,7 @@ export var SessionContentRole;
|
|
|
36
37
|
SessionContentRole["Pause"] = "pause";
|
|
37
38
|
SessionContentRole["TokenExpired"] = "token-expired";
|
|
38
39
|
SessionContentRole["UserImage"] = "user-image";
|
|
40
|
+
SessionContentRole["Placeholder"] = "placeholder";
|
|
39
41
|
SessionContentRole["HiddenUser"] = "hidden-user";
|
|
40
42
|
SessionContentRole["HiddenAi"] = "hidden-ai";
|
|
41
43
|
SessionContentRole["HiddenRole"] = "hidden-role";
|
|
@@ -223,3 +225,15 @@ export var DatasetDataReviewStatus;
|
|
|
223
225
|
DatasetDataReviewStatus["Passed"] = "passed";
|
|
224
226
|
DatasetDataReviewStatus["Refused"] = "refused";
|
|
225
227
|
})(DatasetDataReviewStatus || (DatasetDataReviewStatus = {}));
|
|
228
|
+
export var ToolCrdentialType;
|
|
229
|
+
(function(ToolCrdentialType) {
|
|
230
|
+
ToolCrdentialType["Null"] = "null";
|
|
231
|
+
ToolCrdentialType["BlueApps"] = "blueapps";
|
|
232
|
+
ToolCrdentialType["Custom"] = "custom";
|
|
233
|
+
})(ToolCrdentialType || (ToolCrdentialType = {}));
|
|
234
|
+
export var CrdentialLocation;
|
|
235
|
+
(function(CrdentialLocation) {
|
|
236
|
+
CrdentialLocation["Header"] = "header";
|
|
237
|
+
CrdentialLocation["Body"] = "body";
|
|
238
|
+
CrdentialLocation["Query"] = "query";
|
|
239
|
+
})(CrdentialLocation || (CrdentialLocation = {}));
|
|
@@ -53,6 +53,7 @@ export interface IKnowledge {
|
|
|
53
53
|
updatedBy?: string;
|
|
54
54
|
errorMessage?: string;
|
|
55
55
|
isStructured?: boolean;
|
|
56
|
+
credentialId?: number;
|
|
56
57
|
indexConfig?: IKnowledgeIndexConfig;
|
|
57
58
|
}
|
|
58
59
|
export interface IKnowledgeApi {
|
|
@@ -87,6 +88,7 @@ export interface IKnowledgeApi {
|
|
|
87
88
|
updated_by?: string;
|
|
88
89
|
error_message?: string;
|
|
89
90
|
is_structured?: boolean;
|
|
91
|
+
credential_id?: number;
|
|
90
92
|
index_config?: IKnowledgeIndexConfig;
|
|
91
93
|
children?: Array<IKnowledgeApi>;
|
|
92
94
|
}
|
package/dist/types/session.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export interface ISessionApi {
|
|
|
70
70
|
content: ISessionPrompt[];
|
|
71
71
|
variables: {
|
|
72
72
|
name: string;
|
|
73
|
-
value: string;
|
|
73
|
+
value: string | ISessionPrompt[];
|
|
74
74
|
}[];
|
|
75
75
|
};
|
|
76
76
|
session_property: {
|
|
@@ -96,7 +96,7 @@ export interface ISession {
|
|
|
96
96
|
content: ISessionPrompt[];
|
|
97
97
|
variables: {
|
|
98
98
|
name: string;
|
|
99
|
-
value: string;
|
|
99
|
+
value: string | ISessionPrompt[];
|
|
100
100
|
}[];
|
|
101
101
|
};
|
|
102
102
|
sessionProperty?: {
|