@blueking/ai-ui-sdk 0.4.3-beta.1 → 0.4.3-beta.11

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 (207) hide show
  1. package/dist/components/{render-card/agent/actions.script.vue.js.js → render-agent/action/index.script.vue.js.js} +47 -10
  2. package/dist/components/{render-card/agent/actions.vue.d.ts → render-agent/action/index.vue.d.ts} +5 -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 -5
  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 +3 -9
  7. package/dist/components/render-agent/agent-type.vue.css +3 -7
  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-auto-height-textarea/index.vue.css +11 -11
  11. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  12. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  13. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  14. package/dist/components/render-card/agent/index.script.vue.js.js +71 -25
  15. package/dist/components/render-card/agent/index.vue.d.ts +6 -1
  16. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  17. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  18. package/dist/components/render-card/base/application-base-actions.script.vue.js.js +57 -14
  19. package/dist/components/render-card/base/application-base-actions.vue.d.ts +13 -9
  20. package/dist/components/render-card/base/collection-icon.script.vue.js.js +149 -0
  21. package/dist/components/render-card/base/collection-icon.vue.d.ts +20 -0
  22. package/dist/components/render-card/base/collection-icon.vue.js +3 -0
  23. package/dist/components/render-card/base.vue.css +12 -12
  24. package/dist/components/render-card/base.vue.js +1 -1
  25. package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +15 -2
  26. package/dist/components/render-card/knowledgebase/actions.vue.d.ts +4 -0
  27. package/dist/components/render-card/knowledgebase/index.script.vue.js.js +15 -2
  28. package/dist/components/render-card/knowledgebase/index.vue.d.ts +4 -1
  29. package/dist/components/render-card/llm/actions.script.vue.js.js +13 -3
  30. package/dist/components/render-card/llm/actions.vue.d.ts +1 -0
  31. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  32. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  33. package/dist/components/render-card/llm/icons.vue.css +2 -2
  34. package/dist/components/render-card/llm/icons.vue.js +1 -1
  35. package/dist/components/render-card/llm/index.script.vue.js.js +9 -8
  36. package/dist/components/render-card/llm/info.vue.css +1 -1
  37. package/dist/components/render-card/llm/info.vue.js +1 -1
  38. package/dist/components/render-card/llm/tag-prefix.script.vue.js.js +18 -14
  39. package/dist/components/render-card/llm/tag-prefix.vue.css +2 -5
  40. package/dist/components/render-card/llm/tag-prefix.vue.d.ts +4 -1
  41. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  42. package/dist/components/render-card/mcp/actions.script.vue.js.js +49 -8
  43. package/dist/components/render-card/mcp/actions.vue.d.ts +5 -0
  44. package/dist/components/render-card/mcp/index.script.vue.js.js +56 -12
  45. package/dist/components/render-card/mcp/index.vue.d.ts +7 -2
  46. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  47. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  48. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  49. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  50. package/dist/components/render-card/prompt/index.script.vue.js.js +63 -16
  51. package/dist/components/render-card/prompt/index.vue.d.ts +6 -1
  52. package/dist/components/render-card/role/index.script.vue.js.js +69 -23
  53. package/dist/components/render-card/role/index.vue.d.ts +6 -1
  54. package/dist/components/render-card/skill/index.script.vue.js.js +73 -26
  55. package/dist/components/render-card/skill/index.vue.d.ts +12 -4
  56. package/dist/components/render-card/skill/scanner.script.vue.js.js +66 -0
  57. package/dist/components/render-card/skill/{tag-prefix.vue.css → scanner.vue.css} +3 -3
  58. package/dist/components/render-card/skill/scanner.vue.d.ts +11 -0
  59. package/dist/components/render-card/skill/scanner.vue.js +5 -0
  60. package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +11 -50
  61. package/dist/components/render-card/skill/tag-prefix.vue.js +0 -2
  62. package/dist/components/render-card/tool/actions.script.vue.js.js +40 -5
  63. package/dist/components/render-card/tool/actions.vue.d.ts +5 -0
  64. package/dist/components/render-card/tool/index.script.vue.js.js +68 -22
  65. package/dist/components/render-card/tool/index.vue.d.ts +6 -1
  66. package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +1 -1
  67. package/dist/components/render-checkbox/index.vue.css +9 -9
  68. package/dist/components/render-checkbox/index.vue.js +1 -1
  69. package/dist/components/render-choose-tag/index.vue.css +7 -7
  70. package/dist/components/render-choose-tag/index.vue.js +1 -1
  71. package/dist/components/render-collapse/index.vue.css +2 -2
  72. package/dist/components/render-collapse/index.vue.js +1 -1
  73. package/dist/components/render-collection/actions/index.script.vue.js.js +35 -4
  74. package/dist/components/render-collection/actions/index.vue.d.ts +5 -0
  75. package/dist/components/render-collection/content/index.vue.css +4 -4
  76. package/dist/components/render-collection/content/index.vue.js +1 -1
  77. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  78. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  79. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +3 -3
  80. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +0 -2
  81. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  82. package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +3 -3
  83. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +0 -2
  84. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  85. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  86. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  87. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  88. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  89. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  90. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  91. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  92. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  93. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  94. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  95. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  96. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  97. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  98. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  99. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  100. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  101. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  102. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +10 -7
  103. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  104. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  105. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  106. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  107. package/dist/components/render-dataset-list/index.vue.css +2 -2
  108. package/dist/components/render-dataset-list/index.vue.js +1 -1
  109. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  110. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  111. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  112. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  113. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  114. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  115. package/dist/components/render-dialog/index.vue.css +6 -6
  116. package/dist/components/render-dialog/index.vue.js +1 -1
  117. package/dist/components/render-dropdown/index.vue.css +0 -3
  118. package/dist/components/render-dropdown/index.vue.d.ts +5 -5
  119. package/dist/components/render-file-card/index.vue.css +11 -11
  120. package/dist/components/render-file-card/index.vue.js +1 -1
  121. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  122. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  123. package/dist/components/render-generate-tag/index.vue.css +5 -5
  124. package/dist/components/render-generate-tag/index.vue.d.ts +1 -1
  125. package/dist/components/render-generate-tag/index.vue.js +1 -1
  126. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  127. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  128. package/dist/components/render-markdown/edit.d.ts +1 -1
  129. package/dist/components/render-markdown/view.d.ts +1 -1
  130. package/dist/components/render-prompt/actions/index.script.vue.js.js +36 -5
  131. package/dist/components/render-prompt/actions/index.vue.d.ts +5 -0
  132. package/dist/components/render-prompt/content/index.vue.css +1 -1
  133. package/dist/components/render-prompt/content/index.vue.js +1 -1
  134. package/dist/components/render-reference/index.vue.css +2 -2
  135. package/dist/components/render-reference/index.vue.js +1 -1
  136. package/dist/components/render-relate-agent/index.script.vue.js +8 -6
  137. package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
  138. package/dist/components/render-resource-version/index.script.vue.js.js +6 -3
  139. package/dist/components/render-resource-version/index.vue.css +2 -2
  140. package/dist/components/render-resource-version/index.vue.d.ts +1 -1
  141. package/dist/components/render-resource-version/index.vue.js +1 -1
  142. package/dist/components/render-router-tab/index.vue.css +3 -3
  143. package/dist/components/render-router-tab/index.vue.js +1 -1
  144. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  145. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  146. package/dist/components/render-skill/actions/index.script.vue.js.js +52 -8
  147. package/dist/components/render-skill/actions/index.vue.d.ts +7 -2
  148. package/dist/components/render-t-table/index.vue.css +27 -27
  149. package/dist/components/render-t-table/index.vue.js +1 -1
  150. package/dist/components/render-tag-tree/index.vue.css +7 -7
  151. package/dist/components/render-tag-tree/index.vue.js +1 -1
  152. package/dist/components/render-tags/index.script.vue.js +6 -6
  153. package/dist/components/render-tags/index.vue.css +6 -6
  154. package/dist/components/render-tags/index.vue.d.ts +1 -1
  155. package/dist/components/render-tags/index.vue.js +1 -1
  156. package/dist/components.d.ts +15 -1
  157. package/dist/components.ts.js +15 -1
  158. package/dist/css/fonts/iconcool.eot +0 -0
  159. package/dist/css/fonts/iconcool.svg +3 -0
  160. package/dist/css/fonts/iconcool.ttf +0 -0
  161. package/dist/css/fonts/iconcool.woff +0 -0
  162. package/dist/css/g-utilities.css +33 -0
  163. package/dist/css/g-utilities.manifest.json +8 -0
  164. package/dist/css/iconcool.js +1 -1
  165. package/dist/css/style.css +3 -0
  166. package/dist/hooks/use-agent-http.d.ts +2 -0
  167. package/dist/hooks/use-agent-http.ts.js +15 -1
  168. package/dist/hooks/use-collection-http.d.ts +2 -0
  169. package/dist/hooks/use-collection-http.ts.js +15 -1
  170. package/dist/hooks/use-market-http.d.ts +10 -0
  171. package/dist/hooks/use-market-http.ts.js +71 -1
  172. package/dist/hooks/use-mcp-http.d.ts +2 -0
  173. package/dist/hooks/use-mcp-http.ts.js +15 -1
  174. package/dist/hooks/use-prompt-http.d.ts +2 -0
  175. package/dist/hooks/use-prompt-http.ts.js +15 -1
  176. package/dist/hooks/use-skill-http.d.ts +2 -0
  177. package/dist/hooks/use-skill-http.ts.js +15 -1
  178. package/dist/hooks/use-space-http.d.ts +2 -1
  179. package/dist/hooks/use-space-http.ts.js +8 -1
  180. package/dist/hooks/use-t-table.d.ts +11 -5
  181. package/dist/hooks/use-t-table.ts.js +25 -3
  182. package/dist/hooks/use-tool-http.d.ts +2 -0
  183. package/dist/hooks/use-tool-http.ts.js +15 -1
  184. package/dist/http/helper/agent.ts.js +2 -3
  185. package/dist/http/helper/collection.ts.js +2 -1
  186. package/dist/http/helper/common.d.ts +1 -1
  187. package/dist/http/helper/common.ts.js +4 -0
  188. package/dist/http/helper/mcp.ts.js +6 -2
  189. package/dist/http/helper/prompt.ts.js +2 -1
  190. package/dist/http/helper/skill.ts.js +4 -0
  191. package/dist/http/helper/space.d.ts +10 -1
  192. package/dist/http/helper/space.ts.js +8 -0
  193. package/dist/http/helper/tool.ts.js +6 -2
  194. package/dist/types/agent.d.ts +3 -3
  195. package/dist/types/collection.d.ts +3 -1
  196. package/dist/types/common.d.ts +4 -0
  197. package/dist/types/enum.d.ts +5 -7
  198. package/dist/types/enum.ts.js +3 -6
  199. package/dist/types/mcp.d.ts +4 -0
  200. package/dist/types/prompt.d.ts +3 -1
  201. package/dist/types/skill.d.ts +4 -0
  202. package/dist/types/space.d.ts +2 -0
  203. package/dist/types/tool.d.ts +4 -0
  204. package/package.json +1 -1
  205. package/dist/components/render-card/agent/actions.vue.js +0 -3
  206. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +0 -4
  207. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +0 -4
@@ -13,4 +13,6 @@ export declare const usePromptHttp: (apiPrefix: string, spaceId?: Ref<string>) =
13
13
  (param: import("@/types").IBaseCountParam): Promise<import("@/types").IResourceCount[]>;
14
14
  abort(): void;
15
15
  };
16
+ addPromptFavorite: (id: number) => Promise<unknown>;
17
+ removePromptFavorite: (id: number) => Promise<unknown>;
16
18
  };
@@ -87,11 +87,25 @@ export const usePromptHttp = (apiPrefix, spaceId)=>{
87
87
  },
88
88
  signal
89
89
  }).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
90
+ // 添加收藏
91
+ const addPromptFavorite = (id)=>fetch.post(`${apiPrefix}/prompt/v1/prompt/${id}/add_favorite/`, undefined, {
92
+ headers: {
93
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
94
+ }
95
+ });
96
+ // 取消收藏
97
+ const removePromptFavorite = (id)=>fetch.delete(`${apiPrefix}/prompt/v1/prompt/${id}/remove_favorite/`, undefined, {
98
+ headers: {
99
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
100
+ }
101
+ });
90
102
  return {
91
103
  getPrompts,
92
104
  togglePromptLike,
93
105
  deletePrompt,
94
106
  restorePrompt,
95
- getPromptCount
107
+ getPromptCount,
108
+ addPromptFavorite,
109
+ removePromptFavorite
96
110
  };
97
111
  };
@@ -29,4 +29,6 @@ export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
29
29
  (id: number, version: string): Promise<import("@/types/skill").ISkillBuildLog>;
30
30
  abort(): void;
31
31
  };
32
+ addSkillFavorite: (id: number) => Promise<unknown>;
33
+ removeSkillFavorite: (id: number) => Promise<unknown>;
32
34
  };
@@ -139,6 +139,18 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
139
139
  },
140
140
  signal
141
141
  }).then(transferSkillBuildLogApi2SkillBuildLog));
142
+ // 收藏 Skill
143
+ const addSkillFavorite = (id)=>fetch.post(`${apiPrefix}/skill/v1/skill/${id}/add_favorite/`, undefined, {
144
+ headers: {
145
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
146
+ }
147
+ });
148
+ // 取消收藏 Skill
149
+ const removeSkillFavorite = (id)=>fetch.delete(`${apiPrefix}/skill/v1/skill/${id}/remove_favorite/`, undefined, {
150
+ headers: {
151
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
152
+ }
153
+ });
142
154
  return {
143
155
  getSkillList,
144
156
  getSkillCount,
@@ -152,6 +164,8 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
152
164
  getSkillOpenclawWindowsInstancesStatus,
153
165
  installSkillToOpenclawWindows,
154
166
  getSkillOpenclawWindowsInstallTasksStatus,
155
- getSkillBuildLog
167
+ getSkillBuildLog,
168
+ addSkillFavorite,
169
+ removeSkillFavorite
156
170
  };
157
171
  };
@@ -1,9 +1,10 @@
1
1
  import { Ref } from 'vue';
2
2
  import { IFetchConfig } from '@/http/fetch';
3
- import { IResourceAuthorizedSpacesParam, IResourcesRemoveApplication, IUsableSpaceParam } from '@/types/space';
3
+ import { IResourceAuthorizedSpacesParam, IResourcesRemoveApplication, IResourcesRevokeApplication, IUsableSpaceParam } from '@/types/space';
4
4
  export declare const useSpaceHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
5
5
  getResourceAuthorizedSpaces: (data: IResourceAuthorizedSpacesParam) => Promise<import("@/types/space").ISpace[]>;
6
6
  removeApplyResources: (data: IResourcesRemoveApplication) => Promise<unknown>;
7
+ revokeApplyResources: (data: IResourcesRevokeApplication) => Promise<unknown>;
7
8
  getUsableSpaces: {
8
9
  (data: IUsableSpaceParam, config?: IFetchConfig): Promise<import("@/types/space").IUsableSpace[]>;
9
10
  abort(): void;
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import fetch, { withAbort } from '../http/fetch/index.ts.js';
54
- import { transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi, transferResourcesRemoveApplication2ResourcesRemoveApplicationApi, transferSpaceApi2Space, transferUsableSpaceApi2UsableSpace, transferUsableSpaceParam2UsableSpaceParamApi } from '../http/helper/space.ts.js';
54
+ import { transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi, transferResourcesRemoveApplication2ResourcesRemoveApplicationApi, transferResourcesRevokeApplication2ResourcesRevokeApplicationApi, transferSpaceApi2Space, transferUsableSpaceApi2UsableSpace, transferUsableSpaceParam2UsableSpaceParamApi } from '../http/helper/space.ts.js';
55
55
  export const useSpaceHttp = (apiPrefix, spaceId)=>{
56
56
  const getResourceAuthorizedSpaces = (data)=>fetch.get(`${apiPrefix}/meta/v1/space/authorized_spaces/`, transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi(data), {
57
57
  headers: {
@@ -64,6 +64,12 @@ export const useSpaceHttp = (apiPrefix, spaceId)=>{
64
64
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
65
65
  }
66
66
  });
67
+ // 撤销资源申请
68
+ const revokeApplyResources = (data)=>fetch.post(`${apiPrefix}/meta/v1/space_manage/resources/revoke/`, transferResourcesRevokeApplication2ResourcesRevokeApplicationApi(data), {
69
+ headers: {
70
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
71
+ }
72
+ });
67
73
  // 获取可用的空间列表
68
74
  const getUsableSpaces = withAbort((signal, data, config)=>fetch.get(`${apiPrefix}/meta/v1/space_manage/resources/usable_space/`, transferUsableSpaceParam2UsableSpaceParamApi(data), _object_spread_props(_object_spread({
69
75
  headers: {
@@ -75,6 +81,7 @@ export const useSpaceHttp = (apiPrefix, spaceId)=>{
75
81
  return {
76
82
  getResourceAuthorizedSpaces,
77
83
  removeApplyResources,
84
+ revokeApplyResources,
78
85
  getUsableSpaces
79
86
  };
80
87
  };
@@ -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
  };
@@ -144,7 +144,6 @@ 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,
148
147
  user_guide: data.userGuide,
149
148
  is_bind_bk_saas: data.isBindBkSaas,
150
149
  deploy_mode: data.deployMode,
@@ -211,7 +210,6 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
211
210
  agentName: data.agent_name,
212
211
  icon: data.icon,
213
212
  agentType: data.agent_type,
214
- crawType: data.craw_type,
215
213
  userGuide: data.user_guide,
216
214
  isBindBkSaas: data.is_bind_bk_saas,
217
215
  deployMode: data.deploy_mode,
@@ -333,7 +331,8 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
333
331
  description: data.description,
334
332
  updated_by: data.updatedBy,
335
333
  created_by: data.createdBy,
336
- agent_version: data.agentVersion
334
+ agent_version: data.agentVersion,
335
+ group_type: data.groupType
337
336
  });
338
337
  /**
339
338
  * ui转换为接口使用
@@ -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
  /**
@@ -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
  /**
@@ -172,7 +172,9 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
172
172
  syncErrorMessage: data.sync_error_message,
173
173
  mcpType: data.mcp_type,
174
174
  detailUrl: data.detail_url,
175
- refCount: data.ref_count
175
+ refCount: data.ref_count,
176
+ favorite: data.favorite,
177
+ favoriteCount: data.favorite_count
176
178
  });
177
179
  };
178
180
  /**
@@ -203,7 +205,9 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
203
205
  server_config: data.serverConfig,
204
206
  sync_error_message: data.syncErrorMessage,
205
207
  mcp_type: data.mcpType,
206
- detail_url: data.detailUrl
208
+ detail_url: data.detailUrl,
209
+ favorite: data.favorite,
210
+ favorite_count: data.favoriteCount
207
211
  });
208
212
  };
209
213
  /**
@@ -96,7 +96,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
96
96
  is_public: data.isPublic,
97
97
  content: data.content,
98
98
  updated_by: data.updatedBy,
99
- tag_names: data.tagNames
99
+ tag_names: data.tagNames,
100
+ group_type: data.groupType
100
101
  });
101
102
  };
102
103
  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,
@@ -1,4 +1,4 @@
1
- import type { IResourceAuthorizedSpacesParam, IResourceAuthorizedSpacesParamApi, IResourcesRemoveApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
1
+ import type { IResourceAuthorizedSpacesParam, IResourceAuthorizedSpacesParamApi, IResourcesRemoveApplication, IResourcesRevokeApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
2
2
  /**
3
3
  * ui转换为接口
4
4
  * @param data IResourcesRemoveApplication
@@ -8,6 +8,15 @@ export declare const transferResourcesRemoveApplication2ResourcesRemoveApplicati
8
8
  resource_type: import("../../enums").Module;
9
9
  resource_id: number;
10
10
  };
11
+ /**
12
+ * ui转换为接口
13
+ * @param data IResourcesRevokeApplication
14
+ * @returns IResourcesRevokeApplicationApi
15
+ */
16
+ export declare const transferResourcesRevokeApplication2ResourcesRevokeApplicationApi: (n: IResourcesRevokeApplication) => {
17
+ resource_type: import("../../enums").Module;
18
+ resource_id: number;
19
+ };
11
20
  /**
12
21
  * ui转换为接口
13
22
  * @param data IUsableSpaceParam
@@ -7,6 +7,14 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
7
7
  resource_type: n.resourceType,
8
8
  resource_id: n.resourceId
9
9
  });
10
+ /**
11
+ * ui转换为接口
12
+ * @param data IResourcesRevokeApplication
13
+ * @returns IResourcesRevokeApplicationApi
14
+ */ export const transferResourcesRevokeApplication2ResourcesRevokeApplicationApi = (n)=>({
15
+ resource_type: n.resourceType,
16
+ resource_id: n.resourceId
17
+ });
10
18
  /**
11
19
  * ui转换为接口
12
20
  * @param data IUsableSpaceParam
@@ -95,14 +95,18 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
95
95
  id: data.tool_id
96
96
  })), transferIApprovalSettingValueApi2IApprovalSettingValue(data)), {
97
97
  id: data.tool_id,
98
- refCount: data.ref_count
98
+ refCount: data.ref_count,
99
+ favorite: data.favorite,
100
+ favoriteCount: data.favorite_count
99
101
  });
100
102
  /**
101
103
  * ui转换为接口使用(完整资源)
102
104
  * @param data ITool
103
105
  * @returns IToolApi
104
106
  */ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data), transferIApprovalSettingValue2IApprovalSettingValueApi(data)), {
105
- tool_id: data.id
107
+ tool_id: data.id,
108
+ favorite: data.favorite,
109
+ favorite_count: data.favoriteCount
106
110
  });
107
111
  /**
108
112
  * 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, AgentCrawType, AgentDeployMode, AgentType, EnumCharacter, Module, PromptSource, ResourceStatus, UserScope } from './enum';
2
+ import { AgentCommandType, 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,7 +84,6 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
84
84
  agent_name: string;
85
85
  icon: string;
86
86
  agent_type: AgentType;
87
- craw_type?: AgentCrawType;
88
87
  user_guide: string;
89
88
  is_bind_bk_saas: boolean;
90
89
  is_bind_credential?: boolean;
@@ -143,7 +142,6 @@ export interface IAgentForm extends IResourceFormCommon {
143
142
  agentName: string;
144
143
  icon: string;
145
144
  agentType: AgentType;
146
- crawType?: AgentCrawType;
147
145
  userGuide: string;
148
146
  isBindBkSaas: boolean;
149
147
  isBindCredential?: boolean;
@@ -267,6 +265,7 @@ export interface IAgentListParam extends IPaginationParam, IResourceCommonSearch
267
265
  updatedBy?: string;
268
266
  createdBy?: string;
269
267
  agentVersion?: string;
268
+ groupType?: GroupType;
270
269
  }
271
270
  export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi {
272
271
  agent_type: AgentType;
@@ -284,6 +283,7 @@ export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommon
284
283
  updated_by?: string;
285
284
  created_by?: string;
286
285
  agent_version?: string;
286
+ group_type?: GroupType;
287
287
  }
288
288
  export interface IResourceApply {
289
289
  resourceType: Module;
@@ -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 { 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;
@@ -65,6 +65,7 @@ export interface ICollectionListParam extends IPaginationParam, ISortParam, IRes
65
65
  createdAt?: string;
66
66
  updatedBy?: string;
67
67
  permission?: IResourcePermission;
68
+ groupType?: GroupType;
68
69
  }
69
70
  export interface ICollectionListParamApi extends IPaginationParamApi, ISortParamApi, IResourceCommonSearchParamsApi {
70
71
  fuzzy?: string;
@@ -84,6 +85,7 @@ export interface ICollectionListParamApi extends IPaginationParamApi, ISortParam
84
85
  created_at?: string;
85
86
  updated_by?: string;
86
87
  permission?: IResourcePermissionApi;
88
+ group_type?: GroupType;
87
89
  }
88
90
  export type ICollectionCountParam = IBaseCountParam;
89
91
  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,12 +317,7 @@ export declare enum ResourceCardType {
316
317
  }
317
318
  export declare enum AgentType {
318
319
  Single = "single",
319
- Flow = "flow",
320
- Craw = "craw"
321
- }
322
- export declare enum AgentCrawType {
323
- Hermes = "hermes",
324
- OpenClaw = "openclaw"
320
+ Flow = "flow"
325
321
  }
326
322
  export declare enum AgentDeployMode {
327
323
  CodePackage = "code_package",
@@ -348,7 +344,9 @@ export declare enum PromptOrderBy {
348
344
  CreatedAt = "created_at",
349
345
  Likes = "likes",
350
346
  UsedCount = "used_count",
351
- PromptName = "prompt_name"
347
+ PromptName = "prompt_name",
348
+ UpdatedAt = "updated_at",
349
+ UpdatedBy = "updated_by"
352
350
  }
353
351
  export declare enum IsSensitiveParam {
354
352
  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,13 +358,7 @@ export var AgentType;
357
358
  (function(AgentType) {
358
359
  AgentType["Single"] = "single";
359
360
  AgentType["Flow"] = "flow";
360
- AgentType["Craw"] = "craw";
361
361
  })(AgentType || (AgentType = {}));
362
- export var AgentCrawType;
363
- (function(AgentCrawType) {
364
- AgentCrawType["Hermes"] = "hermes";
365
- AgentCrawType["OpenClaw"] = "openclaw";
366
- })(AgentCrawType || (AgentCrawType = {}));
367
362
  export var AgentDeployMode;
368
363
  (function(AgentDeployMode) {
369
364
  AgentDeployMode["CodePackage"] = "code_package";
@@ -396,6 +391,8 @@ export var PromptOrderBy;
396
391
  PromptOrderBy["Likes"] = "likes";
397
392
  PromptOrderBy["UsedCount"] = "used_count";
398
393
  PromptOrderBy["PromptName"] = "prompt_name";
394
+ PromptOrderBy["UpdatedAt"] = "updated_at";
395
+ PromptOrderBy["UpdatedBy"] = "updated_by";
399
396
  })(PromptOrderBy || (PromptOrderBy = {}));
400
397
  export var IsSensitiveParam;
401
398
  (function(IsSensitiveParam) {
@@ -80,6 +80,8 @@ export interface IMcpApi extends IMcpFormApi, IResourceCommonApi {
80
80
  detail_url?: string;
81
81
  selected_tools?: IMcpToolApi[];
82
82
  ref_count?: number;
83
+ favorite?: boolean;
84
+ favorite_count?: number;
83
85
  }
84
86
  export interface IMcpToolOutputParam {
85
87
  paramName: string;
@@ -109,6 +111,8 @@ export interface IMcp extends IMcpForm, IResourceCommon {
109
111
  detailUrl?: string;
110
112
  selectedTools?: IMcpTool[];
111
113
  refCount?: number;
114
+ favorite?: boolean;
115
+ favoriteCount?: number;
112
116
  }
113
117
  export interface IRegisterMcpParam {
114
118
  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,6 +37,7 @@ 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;
@@ -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?: {
@@ -8,6 +8,8 @@ export interface IResourcesRemoveApplicationApi {
8
8
  resource_type: Module;
9
9
  resource_id: number;
10
10
  }
11
+ export type IResourcesRevokeApplication = IResourcesRemoveApplication;
12
+ export type IResourcesRevokeApplicationApi = IResourcesRemoveApplicationApi;
11
13
  export interface IUsableSpaceApi {
12
14
  space_id: string;
13
15
  space_code: string;