@blueking/ai-ui-sdk 0.4.3-beta.10 → 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 (186) hide show
  1. package/dist/components/{render-card/agent/actions.script.vue.js.js → render-agent/action/index.script.vue.js.js} +33 -9
  2. package/dist/components/{render-card/agent/actions.vue.d.ts → render-agent/action/index.vue.d.ts} +1 -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 +55 -22
  15. package/dist/components/render-card/agent/index.vue.d.ts +3 -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 +1 -1
  19. package/dist/components/render-card/base/collection-icon.script.vue.js.js +149 -0
  20. package/dist/components/render-card/base/collection-icon.vue.d.ts +20 -0
  21. package/dist/components/render-card/base/collection-icon.vue.js +3 -0
  22. package/dist/components/render-card/base.vue.css +12 -12
  23. package/dist/components/render-card/base.vue.js +1 -1
  24. package/dist/components/render-card/llm/actions.script.vue.js.js +13 -3
  25. package/dist/components/render-card/llm/actions.vue.d.ts +1 -0
  26. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  27. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  28. package/dist/components/render-card/llm/icons.vue.css +2 -2
  29. package/dist/components/render-card/llm/icons.vue.js +1 -1
  30. package/dist/components/render-card/llm/index.script.vue.js.js +9 -8
  31. package/dist/components/render-card/llm/info.vue.css +1 -1
  32. package/dist/components/render-card/llm/info.vue.js +1 -1
  33. package/dist/components/render-card/llm/tag-prefix.script.vue.js.js +18 -14
  34. package/dist/components/render-card/llm/tag-prefix.vue.css +2 -5
  35. package/dist/components/render-card/llm/tag-prefix.vue.d.ts +4 -1
  36. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  37. package/dist/components/render-card/mcp/actions.script.vue.js.js +35 -7
  38. package/dist/components/render-card/mcp/actions.vue.d.ts +1 -0
  39. package/dist/components/render-card/mcp/index.script.vue.js.js +35 -9
  40. package/dist/components/render-card/mcp/index.vue.d.ts +4 -3
  41. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  42. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  43. package/dist/components/render-card/mcp/selected-tools-info.script.vue.js.js +3 -7
  44. package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +0 -1
  45. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  46. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  47. package/dist/components/render-card/prompt/index.script.vue.js.js +48 -14
  48. package/dist/components/render-card/prompt/index.vue.d.ts +3 -1
  49. package/dist/components/render-card/role/index.script.vue.js.js +53 -20
  50. package/dist/components/render-card/role/index.vue.d.ts +3 -1
  51. package/dist/components/render-card/skill/index.script.vue.js.js +58 -24
  52. package/dist/components/render-card/skill/index.vue.d.ts +8 -4
  53. package/dist/components/render-card/skill/scanner.script.vue.js.js +66 -0
  54. package/dist/components/render-card/skill/{tag-prefix.vue.css → scanner.vue.css} +3 -3
  55. package/dist/components/render-card/skill/scanner.vue.d.ts +11 -0
  56. package/dist/components/render-card/skill/scanner.vue.js +5 -0
  57. package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +11 -50
  58. package/dist/components/render-card/skill/tag-prefix.vue.js +0 -2
  59. package/dist/components/render-card/tool/actions.script.vue.js.js +26 -4
  60. package/dist/components/render-card/tool/actions.vue.d.ts +1 -0
  61. package/dist/components/render-card/tool/index.script.vue.js.js +53 -20
  62. package/dist/components/render-card/tool/index.vue.d.ts +3 -1
  63. package/dist/components/render-checkbox/index.vue.css +9 -9
  64. package/dist/components/render-checkbox/index.vue.js +1 -1
  65. package/dist/components/render-choose-tag/index.vue.css +7 -7
  66. package/dist/components/render-choose-tag/index.vue.js +1 -1
  67. package/dist/components/render-collapse/index.vue.css +2 -2
  68. package/dist/components/render-collapse/index.vue.js +1 -1
  69. package/dist/components/render-collection/actions/index.script.vue.js.js +22 -4
  70. package/dist/components/render-collection/actions/index.vue.d.ts +1 -0
  71. package/dist/components/render-collection/content/index.vue.css +4 -4
  72. package/dist/components/render-collection/content/index.vue.js +1 -1
  73. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  74. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  75. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  76. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  77. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  78. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  79. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  80. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  81. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  82. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  83. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  84. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  85. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  86. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  87. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  88. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  89. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  90. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  91. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  92. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  93. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  94. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  95. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  96. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  97. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  98. package/dist/components/render-dataset-list/index.vue.css +2 -2
  99. package/dist/components/render-dataset-list/index.vue.js +1 -1
  100. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  101. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  102. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  103. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  104. package/dist/components/render-dialog/choose-space.script.vue.js.js +10 -10
  105. package/dist/components/render-dialog/choose-space.vue.css +10 -10
  106. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  107. package/dist/components/render-dialog/index.vue.css +6 -6
  108. package/dist/components/render-dialog/index.vue.js +1 -1
  109. package/dist/components/render-dropdown/index.vue.css +0 -3
  110. package/dist/components/render-dropdown/index.vue.d.ts +5 -5
  111. package/dist/components/render-file-card/index.vue.css +11 -11
  112. package/dist/components/render-file-card/index.vue.js +1 -1
  113. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  114. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  115. package/dist/components/render-generate-tag/index.vue.css +5 -5
  116. package/dist/components/render-generate-tag/index.vue.d.ts +1 -1
  117. package/dist/components/render-generate-tag/index.vue.js +1 -1
  118. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  119. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  120. package/dist/components/render-markdown/edit.d.ts +1 -1
  121. package/dist/components/render-markdown/view.d.ts +1 -1
  122. package/dist/components/render-prompt/actions/index.script.vue.js.js +22 -4
  123. package/dist/components/render-prompt/actions/index.vue.d.ts +1 -0
  124. package/dist/components/render-prompt/content/index.vue.css +1 -1
  125. package/dist/components/render-prompt/content/index.vue.js +1 -1
  126. package/dist/components/render-reference/index.vue.css +2 -2
  127. package/dist/components/render-reference/index.vue.js +1 -1
  128. package/dist/components/render-relate-agent/index.script.vue.js +8 -6
  129. package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
  130. package/dist/components/render-resource-version/index.script.vue.js.js +6 -3
  131. package/dist/components/render-resource-version/index.vue.css +2 -2
  132. package/dist/components/render-resource-version/index.vue.d.ts +1 -1
  133. package/dist/components/render-resource-version/index.vue.js +1 -1
  134. package/dist/components/render-router-tab/index.vue.css +3 -3
  135. package/dist/components/render-router-tab/index.vue.js +1 -1
  136. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  137. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  138. package/dist/components/render-skill/actions/index.script.vue.js.js +38 -7
  139. package/dist/components/render-skill/actions/index.vue.d.ts +3 -2
  140. package/dist/components/render-t-table/index.vue.css +27 -27
  141. package/dist/components/render-t-table/index.vue.js +1 -1
  142. package/dist/components/render-tag-tree/index.vue.css +7 -7
  143. package/dist/components/render-tag-tree/index.vue.js +1 -1
  144. package/dist/components/render-tags/index.script.vue.js +6 -6
  145. package/dist/components/render-tags/index.vue.css +6 -6
  146. package/dist/components/render-tags/index.vue.d.ts +1 -1
  147. package/dist/components/render-tags/index.vue.js +1 -1
  148. package/dist/components.d.ts +15 -1
  149. package/dist/components.ts.js +15 -1
  150. package/dist/css/g-utilities.css +29 -0
  151. package/dist/css/g-utilities.manifest.json +7 -0
  152. package/dist/hooks/use-agent-http.d.ts +2 -0
  153. package/dist/hooks/use-agent-http.ts.js +15 -1
  154. package/dist/hooks/use-collection-http.d.ts +2 -0
  155. package/dist/hooks/use-collection-http.ts.js +15 -1
  156. package/dist/hooks/use-market-http.d.ts +10 -0
  157. package/dist/hooks/use-market-http.ts.js +71 -1
  158. package/dist/hooks/use-mcp-http.d.ts +2 -0
  159. package/dist/hooks/use-mcp-http.ts.js +15 -1
  160. package/dist/hooks/use-prompt-http.d.ts +2 -0
  161. package/dist/hooks/use-prompt-http.ts.js +15 -1
  162. package/dist/hooks/use-skill-http.d.ts +2 -0
  163. package/dist/hooks/use-skill-http.ts.js +15 -1
  164. package/dist/hooks/use-t-table.d.ts +11 -5
  165. package/dist/hooks/use-t-table.ts.js +25 -3
  166. package/dist/hooks/use-tool-http.d.ts +2 -0
  167. package/dist/hooks/use-tool-http.ts.js +15 -1
  168. package/dist/http/helper/agent.ts.js +2 -3
  169. package/dist/http/helper/collection.ts.js +2 -1
  170. package/dist/http/helper/common.d.ts +1 -1
  171. package/dist/http/helper/common.ts.js +4 -0
  172. package/dist/http/helper/mcp.ts.js +6 -4
  173. package/dist/http/helper/prompt.ts.js +2 -1
  174. package/dist/http/helper/skill.ts.js +4 -0
  175. package/dist/http/helper/tool.ts.js +6 -2
  176. package/dist/types/agent.d.ts +3 -3
  177. package/dist/types/collection.d.ts +3 -1
  178. package/dist/types/common.d.ts +4 -0
  179. package/dist/types/enum.d.ts +5 -7
  180. package/dist/types/enum.ts.js +3 -6
  181. package/dist/types/mcp.d.ts +4 -2
  182. package/dist/types/prompt.d.ts +3 -1
  183. package/dist/types/skill.d.ts +4 -0
  184. package/dist/types/tool.d.ts +4 -0
  185. package/package.json +1 -1
  186. package/dist/components/render-card/agent/actions.vue.js +0 -3
@@ -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
  /**
@@ -169,11 +169,12 @@ 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,
173
172
  syncErrorMessage: data.sync_error_message,
174
173
  mcpType: data.mcp_type,
175
174
  detailUrl: data.detail_url,
176
- refCount: data.ref_count
175
+ refCount: data.ref_count,
176
+ favorite: data.favorite,
177
+ favoriteCount: data.favorite_count
177
178
  });
178
179
  };
179
180
  /**
@@ -201,11 +202,12 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
201
202
  mcp_tool_names: data.mcpToolNames,
202
203
  mcp_tools: (_data_mcpTools = data.mcpTools) === null || _data_mcpTools === void 0 ? void 0 : _data_mcpTools.map(transferMcpTool2McpToolApi),
203
204
  selected_tools: (_data_selectedTools = data.selectedTools) === null || _data_selectedTools === void 0 ? void 0 : _data_selectedTools.map(transferMcpTool2McpToolApi),
204
- is_selected_all: data.isSelectedAll,
205
205
  server_config: data.serverConfig,
206
206
  sync_error_message: data.syncErrorMessage,
207
207
  mcp_type: data.mcpType,
208
- detail_url: data.detailUrl
208
+ detail_url: data.detailUrl,
209
+ favorite: data.favorite,
210
+ favorite_count: data.favoriteCount
209
211
  });
210
212
  };
211
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,
@@ -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) {
@@ -79,8 +79,9 @@ 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;
83
82
  ref_count?: number;
83
+ favorite?: boolean;
84
+ favorite_count?: number;
84
85
  }
85
86
  export interface IMcpToolOutputParam {
86
87
  paramName: string;
@@ -109,8 +110,9 @@ export interface IMcp extends IMcpForm, IResourceCommon {
109
110
  mcpType: McpType;
110
111
  detailUrl?: string;
111
112
  selectedTools?: IMcpTool[];
112
- isSelectedAll?: boolean;
113
113
  refCount?: number;
114
+ favorite?: boolean;
115
+ favoriteCount?: number;
114
116
  }
115
117
  export interface IRegisterMcpParam {
116
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?: {
@@ -35,6 +35,8 @@ export interface IToolFormApi extends IResourceFormCommonApi {
35
35
  export interface IToolApi extends IToolFormApi, Omit<IResourceCommonApi, 'id'>, IApprovalSettingValueApi {
36
36
  tool_id: number;
37
37
  ref_count?: number;
38
+ favorite?: boolean;
39
+ favorite_count?: number;
38
40
  }
39
41
  export interface IToolForm extends IResourceFormCommon {
40
42
  toolName: string;
@@ -51,6 +53,8 @@ export interface IToolForm extends IResourceFormCommon {
51
53
  }
52
54
  export interface ITool extends IToolForm, IResourceCommon, IApprovalSettingValue {
53
55
  refCount?: number;
56
+ favorite?: boolean;
57
+ favoriteCount?: number;
54
58
  }
55
59
  export interface IApplicationTool extends ITool {
56
60
  resourceId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.4.3-beta.10",
3
+ "version": "0.4.3-beta.11",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,3 +0,0 @@
1
- import script from './actions.script.vue.js.js';
2
- script.__file = "./src/components/render-card/agent/actions.vue";
3
- export default script;