@blueking/ai-ui-sdk 0.4.3-beta.2 → 0.4.3-beta.21

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.
Files changed (215) hide show
  1. package/dist/components/{render-card/agent/actions.script.vue.js.js → render-agent/action/index.script.vue.js.js} +43 -10
  2. package/dist/components/{render-card/agent/actions.vue.d.ts → render-agent/action/index.vue.d.ts} +3 -0
  3. package/dist/components/render-agent/action/index.vue.js +3 -0
  4. package/dist/components/render-agent/agent-share.script.vue.js.js +8 -1
  5. package/dist/components/render-agent/agent-share.vue.d.ts +1 -0
  6. package/dist/components/render-agent/agent-type.script.vue.js.js +9 -3
  7. package/dist/components/render-agent/agent-type.vue.css +7 -3
  8. package/dist/components/render-agent/agent-type.vue.d.ts +1 -1
  9. package/dist/components/render-agent/agent-type.vue.js +1 -1
  10. package/dist/components/render-auth/auth-dialog.script.vue.js.js +6 -3
  11. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  12. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  13. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  14. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  15. package/dist/components/render-card/agent/corner-badge.script.vue.js.js +82 -0
  16. package/dist/components/render-card/agent/corner-badge.vue.css +9 -0
  17. package/dist/components/render-card/agent/corner-badge.vue.d.ts +16 -0
  18. package/dist/components/render-card/agent/corner-badge.vue.js +5 -0
  19. package/dist/components/render-card/agent/index.script.vue.js.js +86 -27
  20. package/dist/components/render-card/agent/index.vue.d.ts +4 -1
  21. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  22. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  23. package/dist/components/render-card/base/application-base-actions.script.vue.js.js +3 -2
  24. package/dist/components/render-card/base/application-base-actions.vue.d.ts +2 -0
  25. package/dist/components/render-card/base/collection-icon.script.vue.js.js +146 -0
  26. package/dist/components/render-card/base/collection-icon.vue.d.ts +20 -0
  27. package/dist/components/render-card/base/collection-icon.vue.js +3 -0
  28. package/dist/components/render-card/base/reference-icon.script.vue.js.js +11 -10
  29. package/dist/components/render-card/base.vue.css +12 -12
  30. package/dist/components/render-card/base.vue.js +1 -1
  31. package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +5 -0
  32. package/dist/components/render-card/knowledgebase/actions.vue.d.ts +2 -0
  33. package/dist/components/render-card/knowledgebase/index.script.vue.js.js +5 -0
  34. package/dist/components/render-card/knowledgebase/index.vue.d.ts +2 -1
  35. package/dist/components/render-card/llm/actions.script.vue.js.js +15 -3
  36. package/dist/components/render-card/llm/actions.vue.d.ts +1 -0
  37. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  38. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  39. package/dist/components/render-card/llm/icons.vue.css +2 -2
  40. package/dist/components/render-card/llm/icons.vue.js +1 -1
  41. package/dist/components/render-card/llm/index.script.vue.js.js +9 -8
  42. package/dist/components/render-card/llm/info.vue.css +1 -1
  43. package/dist/components/render-card/llm/info.vue.js +1 -1
  44. package/dist/components/render-card/llm/tag-prefix.script.vue.js.js +18 -14
  45. package/dist/components/render-card/llm/tag-prefix.vue.css +2 -5
  46. package/dist/components/render-card/llm/tag-prefix.vue.d.ts +4 -1
  47. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  48. package/dist/components/render-card/mcp/actions.script.vue.js.js +45 -8
  49. package/dist/components/render-card/mcp/actions.vue.d.ts +3 -0
  50. package/dist/components/render-card/mcp/index.script.vue.js.js +47 -5
  51. package/dist/components/render-card/mcp/index.vue.d.ts +6 -2
  52. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  53. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  54. package/dist/components/render-card/mcp/selected-tools-info.script.vue.js.js +7 -3
  55. package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +1 -0
  56. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  57. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  58. package/dist/components/render-card/prompt/index.script.vue.js.js +60 -15
  59. package/dist/components/render-card/prompt/index.vue.d.ts +5 -1
  60. package/dist/components/render-card/role/index.script.vue.js.js +66 -22
  61. package/dist/components/render-card/role/index.vue.d.ts +5 -1
  62. package/dist/components/render-card/skill/index.script.vue.js.js +63 -24
  63. package/dist/components/render-card/skill/index.vue.d.ts +10 -4
  64. package/dist/components/render-card/skill/scanner.script.vue.js.js +66 -0
  65. package/dist/components/render-card/skill/{tag-prefix.vue.css → scanner.vue.css} +3 -3
  66. package/dist/components/render-card/skill/scanner.vue.d.ts +11 -0
  67. package/dist/components/render-card/skill/scanner.vue.js +5 -0
  68. package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +11 -50
  69. package/dist/components/render-card/skill/tag-prefix.vue.js +0 -2
  70. package/dist/components/render-card/tool/actions.script.vue.js.js +36 -5
  71. package/dist/components/render-card/tool/actions.vue.d.ts +3 -0
  72. package/dist/components/render-card/tool/index.script.vue.js.js +65 -21
  73. package/dist/components/render-card/tool/index.vue.d.ts +5 -1
  74. package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +1 -1
  75. package/dist/components/render-checkbox/index.vue.css +9 -9
  76. package/dist/components/render-checkbox/index.vue.js +1 -1
  77. package/dist/components/render-choose-tag/index.vue.css +7 -7
  78. package/dist/components/render-choose-tag/index.vue.js +1 -1
  79. package/dist/components/render-collapse/index.vue.css +2 -2
  80. package/dist/components/render-collapse/index.vue.js +1 -1
  81. package/dist/components/render-collection/actions/index.script.vue.js.js +32 -5
  82. package/dist/components/render-collection/actions/index.vue.d.ts +3 -0
  83. package/dist/components/render-collection/content/index.vue.css +4 -4
  84. package/dist/components/render-collection/content/index.vue.js +1 -1
  85. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  86. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  87. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +3 -3
  88. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +0 -2
  89. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  90. package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +3 -3
  91. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +0 -2
  92. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  93. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  94. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  95. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  96. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  97. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  98. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  99. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  100. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  101. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  102. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  103. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  104. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  105. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  106. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  107. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  108. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  109. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  110. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +10 -7
  111. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  112. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  113. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  114. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  115. package/dist/components/render-dataset-list/index.vue.css +2 -2
  116. package/dist/components/render-dataset-list/index.vue.js +1 -1
  117. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  118. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  119. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  120. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  121. package/dist/components/render-dialog/choose-space.script.vue.js.js +10 -10
  122. package/dist/components/render-dialog/choose-space.vue.css +10 -10
  123. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  124. package/dist/components/render-dialog/index.vue.css +6 -6
  125. package/dist/components/render-dialog/index.vue.js +1 -1
  126. package/dist/components/render-dropdown/index.vue.css +3 -0
  127. package/dist/components/render-dropdown/index.vue.d.ts +5 -5
  128. package/dist/components/render-file-card/index.vue.css +11 -11
  129. package/dist/components/render-file-card/index.vue.js +1 -1
  130. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  131. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  132. package/dist/components/render-generate-tag/index.vue.css +5 -5
  133. package/dist/components/render-generate-tag/index.vue.d.ts +1 -1
  134. package/dist/components/render-generate-tag/index.vue.js +1 -1
  135. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  136. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  137. package/dist/components/render-markdown/edit.d.ts +1 -1
  138. package/dist/components/render-markdown/view.d.ts +1 -1
  139. package/dist/components/render-prompt/actions/index.script.vue.js.js +32 -5
  140. package/dist/components/render-prompt/actions/index.vue.d.ts +3 -0
  141. package/dist/components/render-prompt/content/index.vue.css +1 -1
  142. package/dist/components/render-prompt/content/index.vue.js +1 -1
  143. package/dist/components/render-reference/index.script.vue.js +3 -3
  144. package/dist/components/render-reference/index.vue.css +2 -2
  145. package/dist/components/render-reference/index.vue.js +1 -1
  146. package/dist/components/render-relate-agent/index.script.vue.js +8 -6
  147. package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
  148. package/dist/components/render-resource-version/index.script.vue.js.js +6 -3
  149. package/dist/components/render-resource-version/index.vue.css +2 -2
  150. package/dist/components/render-resource-version/index.vue.d.ts +1 -1
  151. package/dist/components/render-resource-version/index.vue.js +1 -1
  152. package/dist/components/render-router-tab/index.vue.css +3 -3
  153. package/dist/components/render-router-tab/index.vue.js +1 -1
  154. package/dist/components/render-search-empty/index.script.vue.js.js +3 -2
  155. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  156. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  157. package/dist/components/render-skill/actions/index.script.vue.js.js +74 -76
  158. package/dist/components/render-skill/actions/index.vue.d.ts +5 -2
  159. package/dist/components/render-t-table/index.script.vue.js +33 -16
  160. package/dist/components/render-t-table/index.vue.css +41 -28
  161. package/dist/components/render-t-table/index.vue.js +1 -1
  162. package/dist/components/render-tag-tree/index.vue.css +7 -7
  163. package/dist/components/render-tag-tree/index.vue.js +1 -1
  164. package/dist/components/render-tags/index.script.vue.js +6 -6
  165. package/dist/components/render-tags/index.vue.css +6 -6
  166. package/dist/components/render-tags/index.vue.d.ts +1 -1
  167. package/dist/components/render-tags/index.vue.js +1 -1
  168. package/dist/components.d.ts +15 -1
  169. package/dist/components.ts.js +15 -1
  170. package/dist/css/fonts/iconcool.eot +0 -0
  171. package/dist/css/fonts/iconcool.svg +3 -0
  172. package/dist/css/fonts/iconcool.ttf +0 -0
  173. package/dist/css/fonts/iconcool.woff +0 -0
  174. package/dist/css/g-utilities.css +65 -8
  175. package/dist/css/g-utilities.manifest.json +16 -2
  176. package/dist/css/iconcool.js +1 -1
  177. package/dist/css/style.css +3 -0
  178. package/dist/hooks/use-agent-http.d.ts +3 -0
  179. package/dist/hooks/use-agent-http.ts.js +23 -2
  180. package/dist/hooks/use-collection-http.d.ts +2 -0
  181. package/dist/hooks/use-collection-http.ts.js +15 -1
  182. package/dist/hooks/use-market-http.d.ts +10 -0
  183. package/dist/hooks/use-market-http.ts.js +71 -1
  184. package/dist/hooks/use-mcp-http.d.ts +2 -0
  185. package/dist/hooks/use-mcp-http.ts.js +15 -1
  186. package/dist/hooks/use-prompt-http.d.ts +2 -0
  187. package/dist/hooks/use-prompt-http.ts.js +15 -1
  188. package/dist/hooks/use-skill-http.d.ts +2 -0
  189. package/dist/hooks/use-skill-http.ts.js +15 -1
  190. package/dist/hooks/use-t-table.d.ts +11 -5
  191. package/dist/hooks/use-t-table.ts.js +25 -3
  192. package/dist/hooks/use-tool-http.d.ts +2 -0
  193. package/dist/hooks/use-tool-http.ts.js +15 -1
  194. package/dist/http/helper/agent.d.ts +7 -1
  195. package/dist/http/helper/agent.ts.js +20 -1
  196. package/dist/http/helper/collection.ts.js +3 -1
  197. package/dist/http/helper/common.d.ts +1 -1
  198. package/dist/http/helper/common.ts.js +4 -0
  199. package/dist/http/helper/mcp.ts.js +8 -2
  200. package/dist/http/helper/prompt.ts.js +3 -1
  201. package/dist/http/helper/skill.ts.js +4 -0
  202. package/dist/http/helper/tool.ts.js +8 -2
  203. package/dist/types/agent.d.ts +23 -1
  204. package/dist/types/collection.d.ts +5 -1
  205. package/dist/types/common.d.ts +4 -0
  206. package/dist/types/enum.d.ts +10 -2
  207. package/dist/types/enum.ts.js +9 -0
  208. package/dist/types/mcp.d.ts +6 -0
  209. package/dist/types/prompt.d.ts +5 -1
  210. package/dist/types/skill.d.ts +4 -0
  211. package/dist/types/tool.d.ts +6 -0
  212. package/package.json +1 -1
  213. package/dist/components/render-card/agent/actions.vue.js +0 -3
  214. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +0 -4
  215. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +0 -4
@@ -1,13 +1,15 @@
1
+ import { type Ref } from 'vue';
1
2
  import type { IPagination, IPaginationParam, ISortParam, ITTableSort } from '@/types/common';
2
3
  import { OrderMethod } from '@/types/enum';
3
4
  interface IPaginatedApiResult<T> {
4
5
  results?: T;
5
6
  count?: number;
6
7
  }
8
+ type ITableRow<T> = T extends Array<infer E> ? E : T;
7
9
  export declare const useTTable: <T>() => {
8
- isLoading: import("vue").Ref<boolean, boolean>;
9
- initHook: (callBackFn: (search: IPaginationParam & ISortParam) => Promise<IPaginatedApiResult<T> | T>, isShowPagination: boolean) => void;
10
- sort: import("vue").Ref<{
10
+ isLoading: Ref<boolean, boolean>;
11
+ initHook: (callBackFn: (search: IPaginationParam & ISortParam) => Promise<IPaginatedApiResult<T> | T>, isShowPagination: boolean, key?: string) => void;
12
+ sort: Ref<{
11
13
  descending?: OrderMethod;
12
14
  sortKey?: string;
13
15
  }, ITTableSort | {
@@ -22,7 +24,7 @@ export declare const useTTable: <T>() => {
22
24
  };
23
25
  }) => Promise<void>;
24
26
  triggerApi: () => Promise<void>;
25
- pagination: import("vue").Ref<{
27
+ pagination: Ref<{
26
28
  current: number;
27
29
  limit: number;
28
30
  count: number;
@@ -32,8 +34,12 @@ export declare const useTTable: <T>() => {
32
34
  count: number;
33
35
  }>;
34
36
  resetPagination: () => void;
35
- tableData: [[] | T] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<import("vue").Ref<any, any> & ([] | T), import("vue").Ref<import("vue").Ref<any, any> & ([] | T), import("vue").Ref<any, any> & ([] | T)>, import("vue").Ref<any, any> & ([] | T)> : import("vue").Ref<[] | import("vue").UnwrapRef<T>, [] | T | import("vue").UnwrapRef<T>>;
37
+ tableData: [[] | T] extends [Ref<any, any>] ? import("@vue/shared").IfAny<Ref<any, any> & ([] | T), Ref<Ref<any, any> & ([] | T), Ref<any, any> & ([] | T)>, Ref<any, any> & ([] | T)> : Ref<[] | import("vue").UnwrapRef<T>, [] | T | import("vue").UnwrapRef<T>>;
36
38
  handlePageChange: (current: number) => void;
37
39
  handlePageSizeChange: (pageSize: number) => void;
40
+ selectedRows: Ref<ITableRow<T>[], ITableRow<T>[]>;
41
+ selectedIds: Ref<(string | number)[], (string | number)[]>;
42
+ handleSelectionChange: (_keys: string | number | (string | number)[], selectedRowData: ITableRow<T>[]) => void;
43
+ handleClearSelection: () => void;
38
44
  };
39
45
  export {};
@@ -1,9 +1,10 @@
1
1
  import { ref } from 'vue';
2
2
  import { OrderMethod } from '../types/enum.ts.js';
3
3
  export const useTTable = ()=>{
4
+ const selectedRows = ref([]);
5
+ const selectedIds = ref([]);
4
6
  const isLoading = ref(false);
5
7
  const isPagination = ref(false);
6
- let callBack;
7
8
  const sort = ref({});
8
9
  const tableData = ref([]);
9
10
  const pagination = ref({
@@ -11,6 +12,9 @@ export const useTTable = ()=>{
11
12
  limit: 20,
12
13
  count: 0
13
14
  });
15
+ let callBack;
16
+ let rowKey = 'id';
17
+ const getRowKey = (row)=>row[rowKey];
14
18
  // 更新数据
15
19
  const triggerApi = ()=>{
16
20
  isLoading.value = true;
@@ -30,9 +34,10 @@ export const useTTable = ()=>{
30
34
  isLoading.value = false;
31
35
  });
32
36
  };
33
- const initHook = (callBackFn, isShowPagination)=>{
37
+ const initHook = (callBackFn, isShowPagination, key = 'id')=>{
34
38
  callBack = callBackFn;
35
39
  isPagination.value = isShowPagination;
40
+ rowKey = key;
36
41
  };
37
42
  // sortKey 为必传
38
43
  const handleSortChange = (config, { col })=>{
@@ -67,6 +72,19 @@ export const useTTable = ()=>{
67
72
  count: 0
68
73
  };
69
74
  };
75
+ const handleSelectionChange = (_keys, selectedRowData)=>{
76
+ const currentPageIds = tableData.value.map(getRowKey);
77
+ const otherPageRows = selectedRows.value.filter((row)=>!currentPageIds.includes(getRowKey(row)));
78
+ selectedRows.value = [
79
+ ...otherPageRows,
80
+ ...selectedRowData
81
+ ];
82
+ selectedIds.value = selectedRows.value.map(getRowKey);
83
+ };
84
+ const handleClearSelection = ()=>{
85
+ selectedRows.value = [];
86
+ selectedIds.value = [];
87
+ };
70
88
  return {
71
89
  isLoading,
72
90
  initHook,
@@ -77,6 +95,10 @@ export const useTTable = ()=>{
77
95
  resetPagination,
78
96
  tableData,
79
97
  handlePageChange,
80
- handlePageSizeChange
98
+ handlePageSizeChange,
99
+ selectedRows,
100
+ selectedIds,
101
+ handleSelectionChange,
102
+ handleClearSelection
81
103
  };
82
104
  };
@@ -13,4 +13,6 @@ export declare const useToolHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
13
13
  abort(): void;
14
14
  };
15
15
  getToolReferringAgents: (toolId: number) => Promise<import("@/types").IReferringAgent[]>;
16
+ addToolFavorite: (id: number) => Promise<unknown>;
17
+ removeToolFavorite: (id: number) => Promise<unknown>;
16
18
  };
@@ -86,11 +86,25 @@ export const useToolHttp = (apiPrefix, spaceId)=>{
86
86
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
87
87
  }
88
88
  }).then((data)=>data.map(transferReferringAgentApi2ReferringAgent));
89
+ // 收藏 Tool
90
+ const addToolFavorite = (id)=>fetch.post(`${apiPrefix}/tool/v1/tool/${id}/add_favorite/`, undefined, {
91
+ headers: {
92
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
93
+ }
94
+ });
95
+ // 取消收藏 Tool
96
+ const removeToolFavorite = (id)=>fetch.delete(`${apiPrefix}/tool/v1/tool/${id}/remove_favorite/`, undefined, {
97
+ headers: {
98
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
99
+ }
100
+ });
89
101
  return {
90
102
  deleteTool,
91
103
  restoreTool,
92
104
  getTools,
93
105
  getToolCount,
94
- getToolReferringAgents
106
+ getToolReferringAgents,
107
+ addToolFavorite,
108
+ removeToolFavorite
95
109
  };
96
110
  };
@@ -1,4 +1,4 @@
1
- import type { IAgent, IAgentApi, IAgentApigwMcpPermission, IAgentApigwMcpPermissionApi, IAgentCommand, IAgentCommandApi, IAgentCountParam, IAgentCountParamApi, IAgentForm, IAgentFormApi, IAgentListParam, IAgentListParamApi, IApprovalSetting, IApprovalSettingApi, IResourceApply, IResourceApplyApi } from '@/types/agent';
1
+ import type { IAgent, IAgentApi, IAgentApigwMcpPermission, IAgentApigwMcpPermissionApi, IAgentCommand, IAgentCommandApi, IAgentCountParam, IAgentCountParamApi, IAgentForm, IAgentFormApi, IAgentListParam, IAgentListParamApi, IAgentSdkUpgrade, IAgentSdkUpgradeApi, IApprovalSetting, IApprovalSettingApi, IResourceApply, IResourceApplyApi } from '@/types/agent';
2
2
  /**
3
3
  * 接口转换为ui使用
4
4
  * @param data IAgentCommandApi
@@ -55,6 +55,12 @@ export declare const transferAgentCount2AgentCountApi: (data: IAgentCountParam)
55
55
  * @returns IAgentApigwMcpPermission
56
56
  */
57
57
  export declare const transferAgentApigwMcpPermissionApi2AgentApigwMcpPermission: (data: IAgentApigwMcpPermissionApi) => IAgentApigwMcpPermission;
58
+ /**
59
+ * 接口转换为ui使用(智能体发布页,置顶告知可更新)
60
+ * @param data IAgentSdkUpgradeApi
61
+ * @returns IAgentSdkUpgrade
62
+ */
63
+ export declare const transferAgentSdkUpgradeApi2AgentSdkUpgrade: (data: IAgentSdkUpgradeApi) => IAgentSdkUpgrade;
58
64
  /**
59
65
  * ui转换为接口使用(配置审批)
60
66
  * @param data IApprovalSetting,
@@ -144,6 +144,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
144
144
  agent_name: data.agentName,
145
145
  icon: data.icon,
146
146
  agent_type: data.agentType,
147
+ craw_type: data.crawType,
147
148
  user_guide: data.userGuide,
148
149
  is_bind_bk_saas: data.isBindBkSaas,
149
150
  deploy_mode: data.deployMode,
@@ -210,6 +211,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
210
211
  agentName: data.agent_name,
211
212
  icon: data.icon,
212
213
  agentType: data.agent_type,
214
+ crawType: data.craw_type,
213
215
  userGuide: data.user_guide,
214
216
  isBindBkSaas: data.is_bind_bk_saas,
215
217
  deployMode: data.deploy_mode,
@@ -269,6 +271,9 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
269
271
  * @param data IAgentApi
270
272
  * @returns IAgent
271
273
  */ export const transferAgentApi2Agent = (data)=>_object_spread_props(_object_spread({}, transferAgentFormApi2AgentForm(data), transferResourceCommonApi2ResourceCommon(data)), {
274
+ needUpgrade: data.need_upgrade,
275
+ agentSdkVersion: data.agent_sdk_version,
276
+ latestSdkVersion: data.latest_sdk_version,
272
277
  version: data.version,
273
278
  latestVersion: data.latest_version,
274
279
  agentUrl: data.agent_url,
@@ -294,6 +299,9 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
294
299
  * @param data IAgent
295
300
  * @returns IAgentApi
296
301
  */ export const transferAgent2AgentApi = (data)=>_object_spread_props(_object_spread({}, transferAgentForm2AgentFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
302
+ need_upgrade: data.needUpgrade,
303
+ agent_sdk_version: data.agentSdkVersion,
304
+ latest_sdk_version: data.latestSdkVersion,
297
305
  version: data.version,
298
306
  latest_version: data.latestVersion,
299
307
  agent_url: data.agentUrl,
@@ -331,7 +339,8 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
331
339
  description: data.description,
332
340
  updated_by: data.updatedBy,
333
341
  created_by: data.createdBy,
334
- agent_version: data.agentVersion
342
+ agent_version: data.agentVersion,
343
+ group_type: data.groupType
335
344
  });
336
345
  /**
337
346
  * ui转换为接口使用
@@ -365,6 +374,16 @@ export const transferAgentCount2AgentCountApi = (data)=>{
365
374
  url: data.url,
366
375
  protocolType: data.protocol_type
367
376
  });
377
+ /**
378
+ * 接口转换为ui使用(智能体发布页,置顶告知可更新)
379
+ * @param data IAgentSdkUpgradeApi
380
+ * @returns IAgentSdkUpgrade
381
+ */ export const transferAgentSdkUpgradeApi2AgentSdkUpgrade = (data)=>({
382
+ currentSdkVersion: data.current_sdk_version,
383
+ latestSdkVersion: data.latest_sdk_version,
384
+ needUpgrade: data.need_upgrade,
385
+ changelog: data.changelog
386
+ });
368
387
  /**
369
388
  * ui转换为接口使用(配置审批)
370
389
  * @param data IApprovalSetting,
@@ -72,7 +72,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
72
72
  content: data.content,
73
73
  created_by: data.createdBy,
74
74
  created_at: data.createdAt,
75
- updated_by: data.updatedBy
75
+ updated_by: data.updatedBy,
76
+ group_type: data.groupType
76
77
  });
77
78
  };
78
79
  /**
@@ -85,6 +86,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
85
86
  isPublic: data.is_public,
86
87
  name: data.collection_name,
87
88
  code: data.collection_code,
89
+ icon: data.icon,
88
90
  defaultLLMCode: data.default_llm_code,
89
91
  variables: data.variables.map(transferVariableApi2Variable),
90
92
  content: data.content
@@ -1,5 +1,5 @@
1
1
  import { ResourceStatus } from '@/enums';
2
- import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi, IApprovalSettingValue, IApprovalSettingValueApi } from '@/types/common';
2
+ import type { IApprovalSettingValue, IApprovalSettingValueApi, IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi } from '@/types/common';
3
3
  /**
4
4
  * 接口转换为ui使用
5
5
  * @param data ITagsTreeApi
@@ -78,6 +78,8 @@ import { transferResourcePermission2ResourcePermissionApi, transferResourcePermi
78
78
  spaceId: data.space_id,
79
79
  approvers: data.approvers,
80
80
  ticketUrl: data.ticket_url,
81
+ favorite: data.favorite,
82
+ favoriteCount: data.favorite_count,
81
83
  permission: transferResourcePermissionApi2ResourcePermission(data.permission)
82
84
  });
83
85
  /**
@@ -94,6 +96,8 @@ import { transferResourcePermission2ResourcePermissionApi, transferResourcePermi
94
96
  space_id: data.spaceId,
95
97
  approvers: data.approvers,
96
98
  ticket_url: data.ticketUrl,
99
+ favorite: data.favorite,
100
+ favorite_count: data.favoriteCount,
97
101
  permission: transferResourcePermission2ResourcePermissionApi(data.permission)
98
102
  });
99
103
  /**
@@ -169,10 +169,13 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
169
169
  serverConfig: data.server_config,
170
170
  mcpTools: (_data_mcp_tools = data.mcp_tools) === null || _data_mcp_tools === void 0 ? void 0 : _data_mcp_tools.map(transferMcpToolApi2McpTool),
171
171
  selectedTools: (_data_selected_tools = data.selected_tools) === null || _data_selected_tools === void 0 ? void 0 : _data_selected_tools.map(transferMcpToolApi2McpTool),
172
+ isSelectedAll: data.is_selected_all,
172
173
  syncErrorMessage: data.sync_error_message,
173
174
  mcpType: data.mcp_type,
174
175
  detailUrl: data.detail_url,
175
- refCount: data.ref_count
176
+ refCount: data.ref_count,
177
+ favorite: data.favorite,
178
+ favoriteCount: data.favorite_count
176
179
  });
177
180
  };
178
181
  /**
@@ -200,10 +203,13 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
200
203
  mcp_tool_names: data.mcpToolNames,
201
204
  mcp_tools: (_data_mcpTools = data.mcpTools) === null || _data_mcpTools === void 0 ? void 0 : _data_mcpTools.map(transferMcpTool2McpToolApi),
202
205
  selected_tools: (_data_selectedTools = data.selectedTools) === null || _data_selectedTools === void 0 ? void 0 : _data_selectedTools.map(transferMcpTool2McpToolApi),
206
+ is_selected_all: data.isSelectedAll,
203
207
  server_config: data.serverConfig,
204
208
  sync_error_message: data.syncErrorMessage,
205
209
  mcp_type: data.mcpType,
206
- detail_url: data.detailUrl
210
+ detail_url: data.detailUrl,
211
+ favorite: data.favorite,
212
+ favorite_count: data.favoriteCount
207
213
  });
208
214
  };
209
215
  /**
@@ -58,6 +58,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
58
58
  */ export const transferPromptFormApi2PromptForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
59
59
  name: data.prompt_name,
60
60
  code: data.prompt_code,
61
+ icon: data.icon,
61
62
  content: data.content,
62
63
  variables: data.variables.map(transferVariableApi2Variable)
63
64
  });
@@ -96,7 +97,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
96
97
  is_public: data.isPublic,
97
98
  content: data.content,
98
99
  updated_by: data.updatedBy,
99
- tag_names: data.tagNames
100
+ tag_names: data.tagNames,
101
+ group_type: data.groupType
100
102
  });
101
103
  };
102
104
  export const transferPromptCount2PromptCountApi = (data)=>{
@@ -92,6 +92,8 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
92
92
  downloadCount: data.download_count,
93
93
  installCount: data.install_count,
94
94
  refCount: data.ref_count,
95
+ favorite: data.favorite,
96
+ favoriteCount: data.favorite_count,
95
97
  scanner: data.scanner ? {
96
98
  effectiveStatus: data.scanner.effective_status,
97
99
  effectiveStatusCn: data.scanner.effective_status_cn,
@@ -116,6 +118,8 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
116
118
  skill_markdown: data.skillMarkdown,
117
119
  download_count: data.downloadCount,
118
120
  install_count: data.installCount,
121
+ favorite: data.favorite,
122
+ favorite_count: data.favoriteCount,
119
123
  scanner: data.scanner ? {
120
124
  effective_status: data.scanner.effectiveStatus,
121
125
  effective_status_cn: data.scanner.effectiveStatusCn,
@@ -58,6 +58,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
58
58
  */ export const transferToolForm2ToolFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
59
59
  tool_name: data.toolName,
60
60
  tool_code: data.toolCode,
61
+ icon: data.icon,
61
62
  method: data.method,
62
63
  url: data.url,
63
64
  property: {
@@ -77,6 +78,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
77
78
  */ export const transferToolFormApi2ToolForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
78
79
  toolName: data.tool_name,
79
80
  toolCode: data.tool_code,
81
+ icon: data.icon,
80
82
  method: data.method,
81
83
  url: data.url,
82
84
  header: data.property.header,
@@ -95,14 +97,18 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
95
97
  id: data.tool_id
96
98
  })), transferIApprovalSettingValueApi2IApprovalSettingValue(data)), {
97
99
  id: data.tool_id,
98
- refCount: data.ref_count
100
+ refCount: data.ref_count,
101
+ favorite: data.favorite,
102
+ favoriteCount: data.favorite_count
99
103
  });
100
104
  /**
101
105
  * ui转换为接口使用(完整资源)
102
106
  * @param data ITool
103
107
  * @returns IToolApi
104
108
  */ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data), transferIApprovalSettingValue2IApprovalSettingValueApi(data)), {
105
- tool_id: data.id
109
+ tool_id: data.id,
110
+ favorite: data.favorite,
111
+ favorite_count: data.favoriteCount
106
112
  });
107
113
  /**
108
114
  * ui转换为接口使用
@@ -1,5 +1,5 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IContent, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
2
- import { AgentCommandType, AgentDeployMode, AgentType, EnumCharacter, Module, PromptSource, ResourceStatus, UserScope } from './enum';
2
+ import { AgentCommandType, AgentCrawType, AgentDeployMode, AgentType, EnumCharacter, GroupType, Module, PromptSource, ResourceStatus, UserScope } from './enum';
3
3
  import type { IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi, IKnowledgeQuerySetting, IKnowledgeQuerySettingApi } from './knowledge';
4
4
  import type { IMcp, IMcpApi } from './mcp';
5
5
  import type { ISkill, ISkillApi } from './skill';
@@ -84,6 +84,7 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
84
84
  agent_name: string;
85
85
  icon: string;
86
86
  agent_type: AgentType;
87
+ craw_type?: AgentCrawType;
87
88
  user_guide: string;
88
89
  is_bind_bk_saas: boolean;
89
90
  is_bind_credential?: boolean;
@@ -142,6 +143,7 @@ export interface IAgentForm extends IResourceFormCommon {
142
143
  agentName: string;
143
144
  icon: string;
144
145
  agentType: AgentType;
146
+ crawType?: AgentCrawType;
145
147
  userGuide: string;
146
148
  isBindBkSaas: boolean;
147
149
  isBindCredential?: boolean;
@@ -196,6 +198,9 @@ export interface IAgentForm extends IResourceFormCommon {
196
198
  approvalSettings?: IApprovalSetting[];
197
199
  }
198
200
  export interface IAgent extends IAgentForm, IResourceCommon {
201
+ needUpgrade: boolean;
202
+ agentSdkVersion: string;
203
+ latestSdkVersion: string;
199
204
  version: string;
200
205
  latestVersion: string;
201
206
  agentUrl: string;
@@ -217,6 +222,9 @@ export interface IAgent extends IAgentForm, IResourceCommon {
217
222
  };
218
223
  }
219
224
  export interface IAgentApi extends IAgentFormApi, IResourceCommonApi {
225
+ need_upgrade: boolean;
226
+ agent_sdk_version: string;
227
+ latest_sdk_version: string;
220
228
  app_code: string;
221
229
  version: string;
222
230
  latest_version: string;
@@ -237,6 +245,18 @@ export interface IAgentApi extends IAgentFormApi, IResourceCommonApi {
237
245
  observability: string;
238
246
  };
239
247
  }
248
+ export interface IAgentSdkUpgrade {
249
+ currentSdkVersion: string;
250
+ latestSdkVersion: string;
251
+ needUpgrade: boolean;
252
+ changelog: string;
253
+ }
254
+ export interface IAgentSdkUpgradeApi {
255
+ current_sdk_version: string;
256
+ latest_sdk_version: string;
257
+ need_upgrade: boolean;
258
+ changelog: string;
259
+ }
240
260
  export interface IApplicationAgent extends IAgent {
241
261
  resourceId: number;
242
262
  resourceType: Module;
@@ -265,6 +285,7 @@ export interface IAgentListParam extends IPaginationParam, IResourceCommonSearch
265
285
  updatedBy?: string;
266
286
  createdBy?: string;
267
287
  agentVersion?: string;
288
+ groupType?: GroupType;
268
289
  }
269
290
  export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi {
270
291
  agent_type: AgentType;
@@ -282,6 +303,7 @@ export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommon
282
303
  updated_by?: string;
283
304
  created_by?: string;
284
305
  agent_version?: string;
306
+ group_type?: GroupType;
285
307
  }
286
308
  export interface IResourceApply {
287
309
  resourceType: Module;
@@ -1,9 +1,10 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IContent, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
2
- import { EnumCharacter, Module } from './enum';
2
+ import { EnumCharacter, GroupType, Module } from './enum';
3
3
  import { IResourcePermission, IResourcePermissionApi } from './permission';
4
4
  export interface ICollectionFormApi extends Omit<IResourceFormCommonApi, 'description'> {
5
5
  collection_name: string;
6
6
  collection_code: string;
7
+ icon: string;
7
8
  default_llm_code: string;
8
9
  collection_type: 'role';
9
10
  variables: IVariableApi[];
@@ -16,6 +17,7 @@ export interface ICollectionApi extends ICollectionFormApi, IResourceCommonApi {
16
17
  export interface ICollectionForm extends Omit<IResourceFormCommon, 'description'> {
17
18
  name: string;
18
19
  code: string;
20
+ icon: string;
19
21
  defaultLLMCode: string;
20
22
  variables: IVariable[];
21
23
  content: IContent[];
@@ -65,6 +67,7 @@ export interface ICollectionListParam extends IPaginationParam, ISortParam, IRes
65
67
  createdAt?: string;
66
68
  updatedBy?: string;
67
69
  permission?: IResourcePermission;
70
+ groupType?: GroupType;
68
71
  }
69
72
  export interface ICollectionListParamApi extends IPaginationParamApi, ISortParamApi, IResourceCommonSearchParamsApi {
70
73
  fuzzy?: string;
@@ -84,6 +87,7 @@ export interface ICollectionListParamApi extends IPaginationParamApi, ISortParam
84
87
  created_at?: string;
85
88
  updated_by?: string;
86
89
  permission?: IResourcePermissionApi;
90
+ group_type?: GroupType;
87
91
  }
88
92
  export type ICollectionCountParam = IBaseCountParam;
89
93
  export type ICollectionCountParamApi = IBaseCountParamApi;
@@ -109,6 +109,8 @@ export interface IResourceCommon<T = ResourceStatus> {
109
109
  spaceId?: string;
110
110
  approvers?: string[];
111
111
  ticketUrl?: string;
112
+ favorite?: boolean;
113
+ favoriteCount?: number;
112
114
  permission: IResourcePermission;
113
115
  }
114
116
  export interface IResourceCommonApi<T = ResourceStatus> {
@@ -121,6 +123,8 @@ export interface IResourceCommonApi<T = ResourceStatus> {
121
123
  space_id: string;
122
124
  approvers?: string[];
123
125
  ticket_url?: string;
126
+ favorite?: boolean;
127
+ favorite_count?: number;
124
128
  permission: IResourcePermissionApi;
125
129
  }
126
130
  export interface IPaginationResponseApi<T> {
@@ -278,6 +278,7 @@ export declare enum GroupType {
278
278
  All = "all",
279
279
  Space = "space",
280
280
  User = "user",
281
+ Favorite = "favorite",
281
282
  Deleted = "deleted"
282
283
  }
283
284
  export declare enum OrderMethod {
@@ -316,7 +317,12 @@ export declare enum ResourceCardType {
316
317
  }
317
318
  export declare enum AgentType {
318
319
  Single = "single",
319
- Flow = "flow"
320
+ Flow = "flow",
321
+ Craw = "craw"
322
+ }
323
+ export declare enum AgentCrawType {
324
+ Hermes = "hermes",
325
+ OpenClaw = "openclaw"
320
326
  }
321
327
  export declare enum AgentDeployMode {
322
328
  CodePackage = "code_package",
@@ -343,7 +349,9 @@ export declare enum PromptOrderBy {
343
349
  CreatedAt = "created_at",
344
350
  Likes = "likes",
345
351
  UsedCount = "used_count",
346
- PromptName = "prompt_name"
352
+ PromptName = "prompt_name",
353
+ UpdatedAt = "updated_at",
354
+ UpdatedBy = "updated_by"
347
355
  }
348
356
  export declare enum IsSensitiveParam {
349
357
  Null = "null",
@@ -311,6 +311,7 @@ export var GroupType;
311
311
  GroupType["All"] = "all";
312
312
  GroupType["Space"] = "space";
313
313
  GroupType["User"] = "user";
314
+ GroupType["Favorite"] = "favorite";
314
315
  GroupType["Deleted"] = "deleted";
315
316
  })(GroupType || (GroupType = {}));
316
317
  export var OrderMethod;
@@ -357,7 +358,13 @@ export var AgentType;
357
358
  (function(AgentType) {
358
359
  AgentType["Single"] = "single";
359
360
  AgentType["Flow"] = "flow";
361
+ AgentType["Craw"] = "craw";
360
362
  })(AgentType || (AgentType = {}));
363
+ export var AgentCrawType;
364
+ (function(AgentCrawType) {
365
+ AgentCrawType["Hermes"] = "hermes";
366
+ AgentCrawType["OpenClaw"] = "openclaw";
367
+ })(AgentCrawType || (AgentCrawType = {}));
361
368
  export var AgentDeployMode;
362
369
  (function(AgentDeployMode) {
363
370
  AgentDeployMode["CodePackage"] = "code_package";
@@ -390,6 +397,8 @@ export var PromptOrderBy;
390
397
  PromptOrderBy["Likes"] = "likes";
391
398
  PromptOrderBy["UsedCount"] = "used_count";
392
399
  PromptOrderBy["PromptName"] = "prompt_name";
400
+ PromptOrderBy["UpdatedAt"] = "updated_at";
401
+ PromptOrderBy["UpdatedBy"] = "updated_by";
393
402
  })(PromptOrderBy || (PromptOrderBy = {}));
394
403
  export var IsSensitiveParam;
395
404
  (function(IsSensitiveParam) {
@@ -79,7 +79,10 @@ export interface IMcpApi extends IMcpFormApi, IResourceCommonApi {
79
79
  mcp_type: McpType;
80
80
  detail_url?: string;
81
81
  selected_tools?: IMcpToolApi[];
82
+ is_selected_all?: boolean;
82
83
  ref_count?: number;
84
+ favorite?: boolean;
85
+ favorite_count?: number;
83
86
  }
84
87
  export interface IMcpToolOutputParam {
85
88
  paramName: string;
@@ -108,7 +111,10 @@ export interface IMcp extends IMcpForm, IResourceCommon {
108
111
  mcpType: McpType;
109
112
  detailUrl?: string;
110
113
  selectedTools?: IMcpTool[];
114
+ isSelectedAll?: boolean;
111
115
  refCount?: number;
116
+ favorite?: boolean;
117
+ favoriteCount?: number;
112
118
  }
113
119
  export interface IRegisterMcpParam {
114
120
  mcps: {
@@ -1,5 +1,5 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
2
- import { EnumCharacter, Module, PromptOrderBy } from './enum';
2
+ import { EnumCharacter, GroupType, Module, PromptOrderBy } from './enum';
3
3
  import { IResourcePermission, IResourcePermissionApi } from './permission';
4
4
  export interface IPromptsApiParams extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi<PromptOrderBy> {
5
5
  fuzzy?: string;
@@ -18,6 +18,7 @@ export interface IPromptsApiParams extends IPaginationParamApi, IResourceCommonS
18
18
  content?: string;
19
19
  updated_by?: string;
20
20
  permission?: IResourcePermissionApi;
21
+ group_type?: GroupType;
21
22
  }
22
23
  export interface IPromptsParams extends IPaginationParam, IResourceCommonSearchParams, ISortParam<PromptOrderBy> {
23
24
  fuzzy?: string;
@@ -36,10 +37,12 @@ export interface IPromptsParams extends IPaginationParam, IResourceCommonSearchP
36
37
  content?: string;
37
38
  updatedBy?: string;
38
39
  permission?: IResourcePermission;
40
+ groupType?: GroupType;
39
41
  }
40
42
  export interface IPromptFormApi extends IResourceFormCommonApi {
41
43
  prompt_name: string;
42
44
  prompt_code: string;
45
+ icon: string;
43
46
  content: string;
44
47
  variables: IVariableApi[];
45
48
  }
@@ -52,6 +55,7 @@ export interface IPromptApi extends IPromptFormApi, IResourceCommonApi {
52
55
  export interface IPromptForm extends IResourceFormCommon {
53
56
  name: string;
54
57
  code: string;
58
+ icon: string;
55
59
  content: string;
56
60
  variables: IVariable[];
57
61
  }
@@ -72,6 +72,8 @@ export interface ISkill extends ISkillForm, IResourceCommon<SkillStatus> {
72
72
  downloadCount?: number;
73
73
  installCount?: number;
74
74
  refCount?: number;
75
+ favorite?: boolean;
76
+ favoriteCount?: number;
75
77
  scanner?: ISkillScanner;
76
78
  envs?: ISkillEnv[];
77
79
  bkaiDependencies?: {
@@ -85,6 +87,8 @@ export interface ISkillApi extends ISkillFormApi, IResourceCommonApi<SkillStatus
85
87
  download_count?: number;
86
88
  install_count?: number;
87
89
  ref_count?: number;
90
+ favorite?: boolean;
91
+ favorite_count?: number;
88
92
  scanner?: ISkillScannerApi;
89
93
  envs?: ISkillEnvApi[];
90
94
  bkai_dependencies?: {