@cozeloop/prompt-components 0.0.2 → 0.0.4

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 (321) hide show
  1. package/dist/es/basic-editor/custom-facet.js +9 -0
  2. package/dist/es/basic-editor/diff.js +138 -0
  3. package/dist/{go-syntax-067c4f5d.mjs → es/basic-editor/extensions/go-syntax.js} +9 -16
  4. package/dist/es/basic-editor/extensions/go-template.js +16 -0
  5. package/dist/{go-theme-062a6df6.mjs → es/basic-editor/extensions/go-theme.js} +4 -3
  6. package/dist/es/basic-editor/extensions/jinja.js +80 -0
  7. package/dist/es/basic-editor/extensions/keymap.js +442 -0
  8. package/dist/es/basic-editor/extensions/language-support.js +12 -0
  9. package/dist/es/basic-editor/extensions/markdown.js +58 -0
  10. package/dist/es/basic-editor/extensions/search/dom/icon.js +250 -0
  11. package/dist/es/basic-editor/extensions/search/dom/match-count.js +33 -0
  12. package/dist/es/basic-editor/extensions/search/index.js +18 -0
  13. package/dist/es/basic-editor/extensions/search/panel.js +418 -0
  14. package/dist/es/basic-editor/extensions/search/theme.js +184 -0
  15. package/dist/es/basic-editor/extensions/validation.js +84 -0
  16. package/dist/es/basic-editor/extensions/validation.module.js +5 -0
  17. package/dist/es/basic-editor/extensions/validation_module.css +7 -0
  18. package/dist/es/basic-editor/extensions/variable.js +178 -0
  19. package/dist/es/basic-editor/index.js +171 -0
  20. package/dist/es/code-editor/code-editor.js +83 -0
  21. package/dist/es/code-editor/index.js +12 -0
  22. package/dist/es/code-editor/json-editor.js +157 -0
  23. package/dist/es/code-editor/raw-text-editor.js +46 -0
  24. package/dist/es/code-editor/text-editor.js +41 -0
  25. package/dist/es/code-editor/themes/coze-dark.js +112 -0
  26. package/dist/es/code-editor/themes/coze-light.js +118 -0
  27. package/dist/es/consts/index.js +12 -0
  28. package/dist/es/dev-layout/index.js +35 -0
  29. package/dist/es/idls/fornax_ml_flow2/index.js +2293 -0
  30. package/dist/es/idls/fornax_ml_flow2/namespaces/ai_annotate.js +41 -0
  31. package/dist/es/idls/fornax_ml_flow2/namespaces/aidpcallback.js +108 -0
  32. package/dist/es/idls/fornax_ml_flow2/namespaces/annotation_job.js +52 -0
  33. package/dist/es/idls/fornax_ml_flow2/namespaces/base.js +0 -0
  34. package/dist/es/idls/fornax_ml_flow2/namespaces/batch_infer.js +72 -0
  35. package/dist/es/idls/fornax_ml_flow2/namespaces/dataprocess.js +10 -0
  36. package/dist/es/idls/fornax_ml_flow2/namespaces/dataset.js +36 -0
  37. package/dist/es/idls/fornax_ml_flow2/namespaces/datasetv2.js +139 -0
  38. package/dist/es/idls/fornax_ml_flow2/namespaces/datasetv2job.js +40 -0
  39. package/dist/es/idls/fornax_ml_flow2/namespaces/datasetv2similarity.js +12 -0
  40. package/dist/es/idls/fornax_ml_flow2/namespaces/filter.js +0 -0
  41. package/dist/es/idls/fornax_ml_flow2/namespaces/flow_devops_evaluation_callback_common.js +36 -0
  42. package/dist/es/idls/fornax_ml_flow2/namespaces/flow_devops_prompt_common.js +318 -0
  43. package/dist/es/idls/fornax_ml_flow2/namespaces/fornax_domain_model.js +326 -0
  44. package/dist/es/idls/fornax_ml_flow2/namespaces/ml_flow_domain_model.js +327 -0
  45. package/dist/es/idls/fornax_ml_flow2/namespaces/openapi.js +0 -0
  46. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
  47. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
  48. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
  49. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
  50. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
  51. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
  52. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
  53. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
  54. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
  55. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
  56. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
  57. package/dist/es/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
  58. package/dist/es/idls/fornax_ml_flow2/namespaces/tag.js +33 -0
  59. package/dist/es/idls/prompt_api2/index.js +1995 -0
  60. package/dist/es/idls/prompt_api2/namespaces/base.js +0 -0
  61. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_callback.js +35 -0
  62. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
  63. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_common.js +318 -0
  64. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_debug.js +0 -0
  65. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_manage.js +23 -0
  66. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_mcp.js +0 -0
  67. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_optimize.js +0 -0
  68. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_paas.js +43 -0
  69. package/dist/es/idls/prompt_api2/namespaces/flow_devops_prompt_platform.js +0 -0
  70. package/dist/es/idls/prompt_api2/namespaces/mcp.js +9 -0
  71. package/dist/es/idls/prompt_api2/namespaces/model.js +320 -0
  72. package/dist/es/idls/prompt_api2/namespaces/permission.js +47 -0
  73. package/dist/es/idls/prompt_api2/namespaces/release.js +25 -0
  74. package/dist/es/index.js +66 -0
  75. package/dist/es/mermaid-diagram/index.js +148 -0
  76. package/dist/es/mermaid-diagram/index.module.js +5 -0
  77. package/dist/es/mermaid-diagram/index_module.css +4 -0
  78. package/dist/es/mermaid-diagram/use-svg-pan-zoom.js +49 -0
  79. package/dist/es/mermaid-diagram/utils.js +74 -0
  80. package/dist/es/model-config-editor/basic-type.js +71 -0
  81. package/dist/es/model-config-editor/index.module.js +5 -0
  82. package/dist/es/model-config-editor/index_module.css +8 -0
  83. package/dist/es/model-config-editor/model-config-form.js +132 -0
  84. package/dist/es/model-config-editor/popover-type.js +118 -0
  85. package/dist/es/model-select/index.js +136 -0
  86. package/dist/es/model-select/index.module.js +5 -0
  87. package/dist/es/model-select/index_module.css +14 -0
  88. package/dist/es/model-select/model-option/index.js +161 -0
  89. package/dist/es/model-select/model-option/index.module.js +5 -0
  90. package/dist/es/model-select/model-option/index_module.css +23 -0
  91. package/dist/es/model-select/model-option-group/index.js +44 -0
  92. package/dist/es/prompt-editor/index.js +188 -0
  93. package/dist/es/prompt-editor/index.module.js +5 -0
  94. package/dist/es/prompt-editor/index_module.css +71 -0
  95. package/dist/es/prompt-editor/message-type-select.js +74 -0
  96. package/dist/es/schema-editor/index.js +43 -0
  97. package/dist/es/utils/base.js +53 -0
  98. package/dist/es/utils/model-config.js +32 -0
  99. package/dist/lib/basic-editor/custom-facet.js +33 -0
  100. package/dist/lib/basic-editor/diff.js +167 -0
  101. package/dist/lib/basic-editor/extensions/go-syntax.js +146 -0
  102. package/dist/lib/basic-editor/extensions/go-template.js +50 -0
  103. package/dist/lib/basic-editor/extensions/go-theme.js +1091 -0
  104. package/dist/lib/basic-editor/extensions/jinja.js +100 -0
  105. package/dist/lib/basic-editor/extensions/keymap.js +465 -0
  106. package/dist/lib/basic-editor/extensions/language-support.js +32 -0
  107. package/dist/lib/basic-editor/extensions/markdown.js +78 -0
  108. package/dist/lib/basic-editor/extensions/search/dom/icon.js +291 -0
  109. package/dist/lib/basic-editor/extensions/search/dom/match-count.js +67 -0
  110. package/dist/lib/basic-editor/extensions/search/index.js +38 -0
  111. package/dist/lib/basic-editor/extensions/search/panel.js +429 -0
  112. package/dist/lib/basic-editor/extensions/search/theme.js +208 -0
  113. package/dist/lib/basic-editor/extensions/validation.js +118 -0
  114. package/dist/lib/basic-editor/extensions/validation.module.js +25 -0
  115. package/dist/lib/basic-editor/extensions/validation_module.css +7 -0
  116. package/dist/lib/basic-editor/extensions/variable.js +190 -0
  117. package/dist/lib/basic-editor/index.js +193 -0
  118. package/dist/lib/code-editor/code-editor.js +117 -0
  119. package/dist/lib/code-editor/index.js +40 -0
  120. package/dist/lib/code-editor/json-editor.js +184 -0
  121. package/dist/lib/code-editor/raw-text-editor.js +70 -0
  122. package/dist/lib/code-editor/text-editor.js +75 -0
  123. package/dist/lib/code-editor/themes/coze-dark.js +136 -0
  124. package/dist/lib/code-editor/themes/coze-light.js +142 -0
  125. package/dist/lib/consts/index.js +38 -0
  126. package/dist/lib/dev-layout/index.js +69 -0
  127. package/dist/lib/idls/fornax_ml_flow2/index.js +2355 -0
  128. package/dist/lib/idls/fornax_ml_flow2/namespaces/ai_annotate.js +69 -0
  129. package/dist/lib/idls/fornax_ml_flow2/namespaces/aidpcallback.js +140 -0
  130. package/dist/lib/idls/fornax_ml_flow2/namespaces/annotation_job.js +82 -0
  131. package/dist/lib/idls/fornax_ml_flow2/namespaces/base.js +16 -0
  132. package/dist/lib/idls/fornax_ml_flow2/namespaces/batch_infer.js +105 -0
  133. package/dist/lib/idls/fornax_ml_flow2/namespaces/dataprocess.js +34 -0
  134. package/dist/lib/idls/fornax_ml_flow2/namespaces/dataset.js +63 -0
  135. package/dist/lib/idls/fornax_ml_flow2/namespaces/datasetv2.js +177 -0
  136. package/dist/lib/idls/fornax_ml_flow2/namespaces/datasetv2job.js +68 -0
  137. package/dist/lib/idls/fornax_ml_flow2/namespaces/datasetv2similarity.js +37 -0
  138. package/dist/lib/idls/fornax_ml_flow2/namespaces/filter.js +16 -0
  139. package/dist/lib/idls/fornax_ml_flow2/namespaces/flow_devops_evaluation_callback_common.js +62 -0
  140. package/dist/lib/idls/fornax_ml_flow2/namespaces/flow_devops_prompt_common.js +378 -0
  141. package/dist/lib/idls/fornax_ml_flow2/namespaces/fornax_domain_model.js +384 -0
  142. package/dist/lib/idls/fornax_ml_flow2/namespaces/ml_flow_domain_model.js +385 -0
  143. package/dist/lib/idls/fornax_ml_flow2/namespaces/openapi.js +16 -0
  144. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
  145. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
  146. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
  147. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
  148. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
  149. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
  150. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
  151. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
  152. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
  153. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
  154. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
  155. package/dist/lib/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
  156. package/dist/lib/idls/fornax_ml_flow2/namespaces/tag.js +60 -0
  157. package/dist/lib/idls/prompt_api2/index.js +2042 -0
  158. package/dist/lib/idls/prompt_api2/namespaces/base.js +16 -0
  159. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_callback.js +62 -0
  160. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
  161. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_common.js +378 -0
  162. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_debug.js +16 -0
  163. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_manage.js +49 -0
  164. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_mcp.js +16 -0
  165. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_optimize.js +16 -0
  166. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_paas.js +72 -0
  167. package/dist/lib/idls/prompt_api2/namespaces/flow_devops_prompt_platform.js +16 -0
  168. package/dist/lib/idls/prompt_api2/namespaces/mcp.js +33 -0
  169. package/dist/lib/idls/prompt_api2/namespaces/model.js +377 -0
  170. package/dist/lib/idls/prompt_api2/namespaces/permission.js +72 -0
  171. package/dist/lib/idls/prompt_api2/namespaces/release.js +50 -0
  172. package/dist/lib/index.js +110 -0
  173. package/dist/lib/mermaid-diagram/index.js +174 -0
  174. package/dist/lib/mermaid-diagram/index.module.js +25 -0
  175. package/dist/lib/mermaid-diagram/index_module.css +4 -0
  176. package/dist/lib/mermaid-diagram/use-svg-pan-zoom.js +83 -0
  177. package/dist/lib/mermaid-diagram/utils.js +98 -0
  178. package/dist/lib/model-config-editor/basic-type.js +103 -0
  179. package/dist/lib/model-config-editor/index.module.js +25 -0
  180. package/dist/lib/model-config-editor/index_module.css +8 -0
  181. package/dist/lib/model-config-editor/model-config-form.js +151 -0
  182. package/dist/lib/model-config-editor/popover-type.js +145 -0
  183. package/dist/lib/model-select/index.js +170 -0
  184. package/dist/lib/model-select/index.module.js +25 -0
  185. package/dist/lib/model-select/index_module.css +14 -0
  186. package/dist/lib/model-select/model-option/index.js +188 -0
  187. package/dist/lib/model-select/model-option/index.module.js +25 -0
  188. package/dist/lib/model-select/model-option/index_module.css +23 -0
  189. package/dist/lib/model-select/model-option-group/index.js +75 -0
  190. package/dist/lib/prompt-editor/index.js +218 -0
  191. package/dist/lib/prompt-editor/index.module.js +25 -0
  192. package/dist/lib/prompt-editor/index_module.css +71 -0
  193. package/dist/lib/prompt-editor/message-type-select.js +108 -0
  194. package/dist/lib/schema-editor/index.js +77 -0
  195. package/dist/lib/utils/base.js +82 -0
  196. package/dist/lib/utils/model-config.js +57 -0
  197. package/dist/{src → types}/basic-editor/custom-facet.d.ts +1 -2
  198. package/dist/types/basic-editor/diff.d.ts +15 -0
  199. package/dist/types/basic-editor/extensions/go-syntax.d.ts +71 -0
  200. package/dist/types/basic-editor/extensions/go-template.d.ts +1 -0
  201. package/dist/{src → types}/basic-editor/extensions/go-theme.d.ts +1 -1
  202. package/dist/types/basic-editor/extensions/jinja.d.ts +6 -0
  203. package/dist/{src → types}/basic-editor/extensions/keymap.d.ts +2 -3
  204. package/dist/types/basic-editor/extensions/language-support.d.ts +2 -0
  205. package/dist/types/basic-editor/extensions/markdown.d.ts +2 -0
  206. package/dist/types/basic-editor/extensions/search/dom/icon.d.ts +59 -0
  207. package/dist/types/basic-editor/extensions/search/dom/match-count.d.ts +14 -0
  208. package/dist/types/basic-editor/extensions/search/index.d.ts +1 -0
  209. package/dist/types/basic-editor/extensions/search/panel.d.ts +32 -0
  210. package/dist/types/basic-editor/extensions/search/theme.d.ts +1 -0
  211. package/dist/types/basic-editor/extensions/validation.d.ts +10 -0
  212. package/dist/types/basic-editor/extensions/variable.d.ts +14 -0
  213. package/dist/types/basic-editor/index.d.ts +28 -0
  214. package/dist/types/code-editor/code-editor.d.ts +23 -0
  215. package/dist/{src → types}/code-editor/index.d.ts +1 -1
  216. package/dist/types/code-editor/json-editor.d.ts +17 -0
  217. package/dist/types/code-editor/raw-text-editor.d.ts +11 -0
  218. package/dist/types/code-editor/text-editor.d.ts +23 -0
  219. package/dist/types/code-editor/themes/coze-dark.d.ts +1 -0
  220. package/dist/types/code-editor/themes/coze-light.d.ts +1 -0
  221. package/dist/{src → types}/consts/index.d.ts +1 -1
  222. package/dist/types/dev-layout/index.d.ts +13 -0
  223. package/dist/types/idls/fornax_ml_flow2/index.d.ts +750 -0
  224. package/dist/types/idls/fornax_ml_flow2/namespaces/ai_annotate.d.ts +102 -0
  225. package/dist/types/idls/fornax_ml_flow2/namespaces/aidpcallback.d.ts +227 -0
  226. package/dist/types/idls/fornax_ml_flow2/namespaces/annotation_job.d.ts +402 -0
  227. package/dist/types/idls/fornax_ml_flow2/namespaces/base.d.ts +18 -0
  228. package/dist/types/idls/fornax_ml_flow2/namespaces/batch_infer.d.ts +331 -0
  229. package/dist/types/idls/fornax_ml_flow2/namespaces/dataprocess.d.ts +16 -0
  230. package/dist/types/idls/fornax_ml_flow2/namespaces/dataset.d.ts +88 -0
  231. package/dist/types/idls/fornax_ml_flow2/namespaces/datasetv2.d.ts +462 -0
  232. package/dist/types/idls/fornax_ml_flow2/namespaces/datasetv2job.d.ts +180 -0
  233. package/dist/types/idls/fornax_ml_flow2/namespaces/datasetv2similarity.d.ts +8 -0
  234. package/dist/types/idls/fornax_ml_flow2/namespaces/filter.d.ts +39 -0
  235. package/dist/types/idls/fornax_ml_flow2/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
  236. package/dist/types/idls/fornax_ml_flow2/namespaces/flow_devops_prompt_common.d.ts +370 -0
  237. package/dist/types/idls/fornax_ml_flow2/namespaces/fornax_domain_model.d.ts +320 -0
  238. package/dist/types/idls/fornax_ml_flow2/namespaces/ml_flow_domain_model.d.ts +510 -0
  239. package/dist/types/idls/fornax_ml_flow2/namespaces/openapi.d.ts +6 -0
  240. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
  241. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
  242. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
  243. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
  244. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
  245. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
  246. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
  247. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
  248. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
  249. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
  250. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
  251. package/dist/types/idls/fornax_ml_flow2/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
  252. package/dist/types/idls/fornax_ml_flow2/namespaces/tag.d.ts +109 -0
  253. package/dist/types/idls/prompt_api2/index.d.ts +653 -0
  254. package/dist/types/idls/prompt_api2/namespaces/base.d.ts +18 -0
  255. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_callback.d.ts +102 -0
  256. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
  257. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_common.d.ts +1270 -0
  258. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_debug.d.ts +197 -0
  259. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_manage.d.ts +769 -0
  260. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
  261. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
  262. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_paas.d.ts +198 -0
  263. package/dist/types/idls/prompt_api2/namespaces/flow_devops_prompt_platform.d.ts +230 -0
  264. package/dist/types/idls/prompt_api2/namespaces/mcp.d.ts +95 -0
  265. package/dist/types/idls/prompt_api2/namespaces/model.d.ts +315 -0
  266. package/dist/types/idls/prompt_api2/namespaces/permission.d.ts +52 -0
  267. package/dist/types/idls/prompt_api2/namespaces/release.d.ts +62 -0
  268. package/dist/{src → types}/index.d.ts +7 -7
  269. package/dist/types/mermaid-diagram/index.d.ts +12 -0
  270. package/dist/types/mermaid-diagram/use-svg-pan-zoom.d.ts +17 -0
  271. package/dist/{src → types}/mermaid-diagram/utils.d.ts +1 -1
  272. package/dist/types/model-config-editor/basic-type.d.ts +19 -0
  273. package/dist/types/model-config-editor/model-config-form.d.ts +14 -0
  274. package/dist/types/model-config-editor/popover-type.d.ts +25 -0
  275. package/dist/types/model-select/index.d.ts +38 -0
  276. package/dist/types/model-select/model-option/index.d.ts +30 -0
  277. package/dist/types/model-select/model-option-group/index.d.ts +15 -0
  278. package/dist/types/prompt-editor/index.d.ts +30 -0
  279. package/dist/types/prompt-editor/message-type-select.d.ts +16 -0
  280. package/dist/types/schema-editor/index.d.ts +18 -0
  281. package/dist/{src → types}/utils/base.d.ts +4 -5
  282. package/dist/types/utils/model-config.d.ts +4 -0
  283. package/package.json +9 -13
  284. package/dist/edenx.config.d.ts +0 -2
  285. package/dist/go-syntax-4deb0289.js +0 -8
  286. package/dist/go-theme-fbd8a4fa.js +0 -1
  287. package/dist/index.cjs +0 -61
  288. package/dist/index.d.ts +0 -1
  289. package/dist/index.js +0 -2788
  290. package/dist/src/basic-editor/diff.d.ts +0 -16
  291. package/dist/src/basic-editor/extensions/go-syntax.d.ts +0 -71
  292. package/dist/src/basic-editor/extensions/go-template.d.ts +0 -1
  293. package/dist/src/basic-editor/extensions/jinja.d.ts +0 -4
  294. package/dist/src/basic-editor/extensions/language-support.d.ts +0 -2
  295. package/dist/src/basic-editor/extensions/markdown.d.ts +0 -2
  296. package/dist/src/basic-editor/extensions/search/dom/icon.d.ts +0 -59
  297. package/dist/src/basic-editor/extensions/search/dom/match-count.d.ts +0 -14
  298. package/dist/src/basic-editor/extensions/search/index.d.ts +0 -1
  299. package/dist/src/basic-editor/extensions/search/panel.d.ts +0 -33
  300. package/dist/src/basic-editor/extensions/search/theme.d.ts +0 -1
  301. package/dist/src/basic-editor/extensions/validation.d.ts +0 -8
  302. package/dist/src/basic-editor/extensions/variable.d.ts +0 -11
  303. package/dist/src/basic-editor/index.d.ts +0 -29
  304. package/dist/src/code-editor/json-editor.d.ts +0 -18
  305. package/dist/src/code-editor/raw-text-editor.d.ts +0 -11
  306. package/dist/src/dev-layout/index.d.ts +0 -7
  307. package/dist/src/mermaid-diagram/index.d.ts +0 -12
  308. package/dist/src/mermaid-diagram/use-svg-pan-zoom.d.ts +0 -12
  309. package/dist/src/model-config-editor/basic-type.d.ts +0 -13
  310. package/dist/src/model-config-editor/model-config-form.d.ts +0 -13
  311. package/dist/src/model-config-editor/popover-type.d.ts +0 -19
  312. package/dist/src/model-select/index.d.ts +0 -27
  313. package/dist/src/model-select/model-option/index.d.ts +0 -25
  314. package/dist/src/model-select/model-option-group/index.d.ts +0 -16
  315. package/dist/src/prompt-editor/index.d.ts +0 -31
  316. package/dist/src/prompt-editor/message-type-select.d.ts +0 -11
  317. package/dist/src/schema-editor/index.d.ts +0 -11
  318. package/dist/src/utils/model-config.d.ts +0 -5
  319. package/dist/style.css +0 -1
  320. package/dist/test-build.d.ts +0 -7
  321. package/dist/vite.config.d.ts +0 -2
@@ -0,0 +1,2293 @@
1
+ import * as ai_annotate from "./namespaces/ai_annotate";
2
+ import * as aidpcallback from "./namespaces/aidpcallback";
3
+ import * as annotation_job from "./namespaces/annotation_job";
4
+ import * as base from "./namespaces/base";
5
+ import * as batch_infer from "./namespaces/batch_infer";
6
+ import * as dataprocess from "./namespaces/dataprocess";
7
+ import * as dataset from "./namespaces/dataset";
8
+ import * as datasetv2 from "./namespaces/datasetv2";
9
+ import * as datasetv2job from "./namespaces/datasetv2job";
10
+ import * as datasetv2similarity from "./namespaces/datasetv2similarity";
11
+ import * as filter from "./namespaces/filter";
12
+ import * as flow_devops_evaluation_callback_common from "./namespaces/flow_devops_evaluation_callback_common";
13
+ import * as flow_devops_prompt_common from "./namespaces/flow_devops_prompt_common";
14
+ import * as fornax_domain_model from "./namespaces/fornax_domain_model";
15
+ import * as ml_flow_domain_model from "./namespaces/ml_flow_domain_model";
16
+ import * as openapi from "./namespaces/openapi";
17
+ import * as stone_fornax_ml_flow_annotateservice from "./namespaces/stone_fornax_ml_flow_annotateservice";
18
+ import * as stone_fornax_ml_flow_annotationjobservice from "./namespaces/stone_fornax_ml_flow_annotationjobservice";
19
+ import * as stone_fornax_ml_flow_batchinferservice from "./namespaces/stone_fornax_ml_flow_batchinferservice";
20
+ import * as stone_fornax_ml_flow_crowdsourcingannotationjobservice from "./namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice";
21
+ import * as stone_fornax_ml_flow_dataprocessservice from "./namespaces/stone_fornax_ml_flow_dataprocessservice";
22
+ import * as stone_fornax_ml_flow_datasetservice from "./namespaces/stone_fornax_ml_flow_datasetservice";
23
+ import * as stone_fornax_ml_flow_datasetservicev2 from "./namespaces/stone_fornax_ml_flow_datasetservicev2";
24
+ import * as stone_fornax_ml_flow_modelservice from "./namespaces/stone_fornax_ml_flow_modelservice";
25
+ import * as stone_fornax_ml_flow_openapi_annotationjobservice from "./namespaces/stone_fornax_ml_flow_openapi_annotationjobservice";
26
+ import * as stone_fornax_ml_flow_openapi_batchinferservice from "./namespaces/stone_fornax_ml_flow_openapi_batchinferservice";
27
+ import * as stone_fornax_ml_flow_openapi_datasetservicev2 from "./namespaces/stone_fornax_ml_flow_openapi_datasetservicev2";
28
+ import * as stone_fornax_ml_flow_tagservice from "./namespaces/stone_fornax_ml_flow_tagservice";
29
+ import * as tag from "./namespaces/tag";
30
+ class FornaxMlFlow2Service {
31
+ constructor(options) {
32
+ this.request = () => {
33
+ throw new Error("FornaxMlFlow2Service.request is undefined");
34
+ };
35
+ this.baseURL = "";
36
+ this.request = (options == null ? void 0 : options.request) || this.request;
37
+ this.baseURL = (options == null ? void 0 : options.baseURL) || "";
38
+ }
39
+ genBaseURL(path) {
40
+ return typeof this.baseURL === "string" ? this.baseURL + path : this.baseURL(path);
41
+ }
42
+ /** GET /api/ml_flow/v1/dataset_io_tasks/:taskID */
43
+ GetDatasetIOTask(req, options) {
44
+ const _req = req;
45
+ const url = this.genBaseURL(
46
+ `/api/ml_flow/v1/dataset_io_tasks/${_req["taskID"]}`
47
+ );
48
+ const method = "GET";
49
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
50
+ return this.request({ url, method, params }, options);
51
+ }
52
+ /**
53
+ * POST /api/ml_flow/v1/dataset_io_tasks
54
+ *
55
+ * 数据集导入导出
56
+ */
57
+ CreateDatasetIOTask(req, options) {
58
+ const _req = req;
59
+ const url = this.genBaseURL("/api/ml_flow/v1/dataset_io_tasks");
60
+ const method = "POST";
61
+ const data = {
62
+ spaceID: _req["spaceID"],
63
+ datasetID: _req["datasetID"],
64
+ file: _req["file"],
65
+ ioType: _req["ioType"],
66
+ option: _req["option"],
67
+ base: _req["base"]
68
+ };
69
+ return this.request({ url, method, data }, options);
70
+ }
71
+ /**
72
+ * POST /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks
73
+ *
74
+ * 创建打标规则
75
+ */
76
+ CreateAIAnnotateTask(req, options) {
77
+ const _req = req || {};
78
+ const url = this.genBaseURL(
79
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks`
80
+ );
81
+ const method = "POST";
82
+ const data = {
83
+ name: _req["name"],
84
+ datasetID: _req["datasetID"],
85
+ datasetColumnName: _req["datasetColumnName"],
86
+ promptID: _req["promptID"],
87
+ promptVersion: _req["promptVersion"],
88
+ userPromptColumnName: _req["userPromptColumnName"],
89
+ promptVariables: _req["promptVariables"],
90
+ executeConcurrency: _req["executeConcurrency"],
91
+ base: _req["base"]
92
+ };
93
+ return this.request({ url, method, data }, options);
94
+ }
95
+ /**
96
+ * GET /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks
97
+ *
98
+ * 获取打标规则列表
99
+ */
100
+ ListAIAnnotateTask(req, options) {
101
+ const _req = req || {};
102
+ const url = this.genBaseURL(
103
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks`
104
+ );
105
+ const method = "GET";
106
+ const params = { dataset_id: _req["dataset_id"], base: _req["base"] };
107
+ return this.request({ url, method, params }, options);
108
+ }
109
+ /**
110
+ * DELETE /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/:task_id
111
+ *
112
+ * 删除打标规则
113
+ */
114
+ DeleteAIAnnotateTask(req, options) {
115
+ const _req = req || {};
116
+ const url = this.genBaseURL(
117
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/${_req["task_id"]}`
118
+ );
119
+ const method = "DELETE";
120
+ const params = { base: _req["base"] };
121
+ return this.request({ url, method, params }, options);
122
+ }
123
+ /**
124
+ * GET /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/:task_id
125
+ *
126
+ * 获取打标规则详情
127
+ */
128
+ GetAIAnnotateTask(req, options) {
129
+ const _req = req || {};
130
+ const url = this.genBaseURL(
131
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/${_req["task_id"]}`
132
+ );
133
+ const method = "GET";
134
+ const params = { base: _req["base"] };
135
+ return this.request({ url, method, params }, options);
136
+ }
137
+ /**
138
+ * POST /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/:task_id/run
139
+ *
140
+ * 运行打标任务
141
+ */
142
+ RunAIAnnotate(req, options) {
143
+ const _req = req || {};
144
+ const url = this.genBaseURL(
145
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/${_req["task_id"]}/run`
146
+ );
147
+ const method = "POST";
148
+ const data = { taskRunType: _req["taskRunType"], base: _req["base"] };
149
+ return this.request({ url, method, data }, options);
150
+ }
151
+ /**
152
+ * GET /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/:task_id/task_runs/:task_run_id
153
+ *
154
+ * 获取任务执行情况信息
155
+ */
156
+ GetAIAnnotateTaskRun(req, options) {
157
+ const _req = req || {};
158
+ const url = this.genBaseURL(
159
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/${_req["task_id"]}/task_runs/${_req["task_run_id"]}`
160
+ );
161
+ const method = "GET";
162
+ const params = { base: _req["base"] };
163
+ return this.request({ url, method, params }, options);
164
+ }
165
+ /**
166
+ * PUT /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/:task_id
167
+ *
168
+ * 更新打标规则
169
+ */
170
+ UpdateAIAnnotateTask(req, options) {
171
+ const _req = req || {};
172
+ const url = this.genBaseURL(
173
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/${_req["task_id"]}`
174
+ );
175
+ const method = "PUT";
176
+ const data = {
177
+ name: _req["name"],
178
+ promptID: _req["promptID"],
179
+ promptVersion: _req["promptVersion"],
180
+ userPromptColumnName: _req["userPromptColumnName"],
181
+ promptVariables: _req["promptVariables"],
182
+ executeConcurrency: _req["executeConcurrency"],
183
+ base: _req["base"]
184
+ };
185
+ return this.request({ url, method, data }, options);
186
+ }
187
+ /**
188
+ * POST /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/:task_id/task_runs/:task_run_id/terminate
189
+ *
190
+ * 终止任务
191
+ */
192
+ TerminateAIAnnotateTaskRun(req, options) {
193
+ const _req = req || {};
194
+ const url = this.genBaseURL(
195
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/${_req["task_id"]}/task_runs/${_req["task_run_id"]}/terminate`
196
+ );
197
+ const method = "POST";
198
+ const data = { base: _req["base"] };
199
+ return this.request({ url, method, data }, options);
200
+ }
201
+ /**
202
+ * POST /api/ml_flow/v1/spaces/:space_id/ai_annotate_tasks/dry_run
203
+ *
204
+ * 试运行
205
+ */
206
+ DryRunAIAnnotate(req, options) {
207
+ const _req = req || {};
208
+ const url = this.genBaseURL(
209
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/ai_annotate_tasks/dry_run`
210
+ );
211
+ const method = "POST";
212
+ const data = {
213
+ datasetID: _req["datasetID"],
214
+ datasetColumnName: _req["datasetColumnName"],
215
+ promptID: _req["promptID"],
216
+ promptVersion: _req["promptVersion"],
217
+ userPromptColumnName: _req["userPromptColumnName"],
218
+ promptVariables: _req["promptVariables"],
219
+ sampleCount: _req["sampleCount"],
220
+ base: _req["base"]
221
+ };
222
+ return this.request({ url, method, data }, options);
223
+ }
224
+ /**
225
+ * GET /api/ml_flow/v2/datasets/:datasetID
226
+ *
227
+ * 数据集当前信息(不包括数据)
228
+ */
229
+ GetDataset(req, options) {
230
+ const _req = req;
231
+ const url = this.genBaseURL(
232
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}`
233
+ );
234
+ const method = "GET";
235
+ const params = {
236
+ spaceID: _req["spaceID"],
237
+ withDeleted: _req["withDeleted"],
238
+ base: _req["base"]
239
+ };
240
+ return this.request({ url, method, params }, options);
241
+ }
242
+ /**
243
+ * DELETE /api/ml_flow/v2/datasets/:datasetID
244
+ *
245
+ * 删除数据集
246
+ */
247
+ DeleteDataset(req, options) {
248
+ const _req = req;
249
+ const url = this.genBaseURL(
250
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}`
251
+ );
252
+ const method = "DELETE";
253
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
254
+ return this.request({ url, method, params }, options);
255
+ }
256
+ /**
257
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets
258
+ *
259
+ * 新增数据集
260
+ */
261
+ CreateDataset(req, options) {
262
+ const _req = req;
263
+ const url = this.genBaseURL(
264
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets`
265
+ );
266
+ const method = "POST";
267
+ const data = {
268
+ appID: _req["appID"],
269
+ name: _req["name"],
270
+ description: _req["description"],
271
+ category: _req["category"],
272
+ bizCategory: _req["bizCategory"],
273
+ fields: _req["fields"],
274
+ securityLevel: _req["securityLevel"],
275
+ visibility: _req["visibility"],
276
+ spec: _req["spec"],
277
+ features: _req["features"],
278
+ userID: _req["userID"],
279
+ base: _req["base"]
280
+ };
281
+ return this.request({ url, method, data }, options);
282
+ }
283
+ /**
284
+ * PUT /api/ml_flow/v2/datasets/:datasetID
285
+ *
286
+ * 修改数据集
287
+ */
288
+ UpdateDataset(req, options) {
289
+ const _req = req;
290
+ const url = this.genBaseURL(
291
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}`
292
+ );
293
+ const method = "PUT";
294
+ const data = {
295
+ spaceID: _req["spaceID"],
296
+ name: _req["name"],
297
+ description: _req["description"],
298
+ base: _req["base"]
299
+ };
300
+ return this.request({ url, method, data }, options);
301
+ }
302
+ /**
303
+ * GET /api/ml_flow/v2/datasets/:datasetID/items
304
+ *
305
+ * 分页查询当前数据
306
+ */
307
+ ListDatasetItems(req, options) {
308
+ const _req = req;
309
+ const url = this.genBaseURL(
310
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items`
311
+ );
312
+ const method = "GET";
313
+ const params = {
314
+ spaceID: _req["spaceID"],
315
+ page: _req["page"],
316
+ pageSize: _req["pageSize"],
317
+ cursor: _req["cursor"],
318
+ orderBy: _req["orderBy"],
319
+ filter: _req["filter"],
320
+ base: _req["base"]
321
+ };
322
+ return this.request({ url, method, params }, options);
323
+ }
324
+ /**
325
+ * GET /api/ml_flow/v2/datasets/:datasetID/versions
326
+ *
327
+ * 版本列表
328
+ */
329
+ ListDatasetVersions(req, options) {
330
+ const _req = req;
331
+ const url = this.genBaseURL(
332
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/versions`
333
+ );
334
+ const method = "GET";
335
+ const params = {
336
+ spaceID: _req["spaceID"],
337
+ versionLike: _req["versionLike"],
338
+ page: _req["page"],
339
+ pageSize: _req["pageSize"],
340
+ cursor: _req["cursor"],
341
+ orderBy: _req["orderBy"],
342
+ base: _req["base"]
343
+ };
344
+ return this.request({ url, method, params }, options);
345
+ }
346
+ /**
347
+ * POST /api/ml_flow/v2/datasets/:datasetID/versions
348
+ *
349
+ * 生成一个新版本
350
+ */
351
+ CreateDatasetVersion(req, options) {
352
+ const _req = req;
353
+ const url = this.genBaseURL(
354
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/versions`
355
+ );
356
+ const method = "POST";
357
+ const data = {
358
+ spaceID: _req["spaceID"],
359
+ version: _req["version"],
360
+ desc: _req["desc"],
361
+ base: _req["base"]
362
+ };
363
+ return this.request({ url, method, data }, options);
364
+ }
365
+ /**
366
+ * PUT /api/ml_flow/v2/datasets/:datasetID/items/:itemID
367
+ *
368
+ * 更新数据
369
+ */
370
+ UpdateDatasetItem(req, options) {
371
+ const _req = req;
372
+ const url = this.genBaseURL(
373
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["itemID"]}`
374
+ );
375
+ const method = "PUT";
376
+ const data = {
377
+ spaceID: _req["spaceID"],
378
+ data: _req["data"],
379
+ repeatedData: _req["repeatedData"],
380
+ base: _req["base"]
381
+ };
382
+ return this.request({ url, method, data }, options);
383
+ }
384
+ /**
385
+ * POST /api/ml_flow/v2/datasets/:datasetID/items/batch
386
+ *
387
+ * 批量新增数据
388
+ */
389
+ BatchCreateDatasetItems(req, options) {
390
+ const _req = req;
391
+ const url = this.genBaseURL(
392
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/batch`
393
+ );
394
+ const method = "POST";
395
+ const data = {
396
+ spaceID: _req["spaceID"],
397
+ items: _req["items"],
398
+ skipInvalidItems: _req["skipInvalidItems"],
399
+ allowPartialAdd: _req["allowPartialAdd"],
400
+ base: _req["base"]
401
+ };
402
+ return this.request({ url, method, data }, options);
403
+ }
404
+ /**
405
+ * DELETE /api/ml_flow/v2/datasets/:datasetID/items/:itemID
406
+ *
407
+ * 删除数据
408
+ */
409
+ DeleteDatasetItem(req, options) {
410
+ const _req = req;
411
+ const url = this.genBaseURL(
412
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["itemID"]}`
413
+ );
414
+ const method = "DELETE";
415
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
416
+ return this.request({ url, method, params }, options);
417
+ }
418
+ /**
419
+ * GET /api/ml_flow/v2/datasets/:datasetID/items/:itemID
420
+ *
421
+ * 获取一行数据
422
+ */
423
+ GetDatasetItem(req, options) {
424
+ const _req = req;
425
+ const url = this.genBaseURL(
426
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["itemID"]}`
427
+ );
428
+ const method = "GET";
429
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
430
+ return this.request({ url, method, params }, options);
431
+ }
432
+ /**
433
+ * PUT /api/ml_flow/v2/datasets/:datasetID/schema
434
+ *
435
+ * 覆盖更新 schema
436
+ */
437
+ UpdateDatasetSchema(req, options) {
438
+ const _req = req;
439
+ const url = this.genBaseURL(
440
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/schema`
441
+ );
442
+ const method = "PUT";
443
+ const data = {
444
+ spaceID: _req["spaceID"],
445
+ fields: _req["fields"],
446
+ base: _req["base"]
447
+ };
448
+ return this.request({ url, method, data }, options);
449
+ }
450
+ /**
451
+ * POST /api/ml_flow/v2/datasets/:datasetID/items/batch_delete
452
+ *
453
+ * 批量删除数据
454
+ */
455
+ BatchDeleteDatasetItems(req, options) {
456
+ const _req = req;
457
+ const url = this.genBaseURL(
458
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/batch_delete`
459
+ );
460
+ const method = "POST";
461
+ const data = {
462
+ spaceID: _req["spaceID"],
463
+ itemIDs: _req["itemIDs"],
464
+ base: _req["base"]
465
+ };
466
+ return this.request({ url, method, data }, options);
467
+ }
468
+ /**
469
+ * GET /api/ml_flow/v2/datasets/:datasetID/schema
470
+ *
471
+ * 获取数据集当前的 schema
472
+ */
473
+ GetDatasetSchema(req, options) {
474
+ const _req = req;
475
+ const url = this.genBaseURL(
476
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/schema`
477
+ );
478
+ const method = "GET";
479
+ const params = {
480
+ spaceID: _req["spaceID"],
481
+ withDeleted: _req["withDeleted"],
482
+ base: _req["base"]
483
+ };
484
+ return this.request({ url, method, params }, options);
485
+ }
486
+ /**
487
+ * POST /api/ml_flow/v2/datasets/:datasetID/import
488
+ *
489
+ * 导入数据
490
+ */
491
+ ImportDataset(req, options) {
492
+ const _req = req;
493
+ const url = this.genBaseURL(
494
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/import`
495
+ );
496
+ const method = "POST";
497
+ const data = {
498
+ spaceID: _req["spaceID"],
499
+ file: _req["file"],
500
+ fieldMappings: _req["fieldMappings"],
501
+ option: _req["option"],
502
+ base: _req["base"]
503
+ };
504
+ return this.request({ url, method, data }, options);
505
+ }
506
+ /**
507
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/search
508
+ *
509
+ * 获取数据集列表
510
+ */
511
+ SearchDatasets(req, options) {
512
+ const _req = req;
513
+ const url = this.genBaseURL(
514
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/search`
515
+ );
516
+ const method = "POST";
517
+ const data = {
518
+ datasetIDs: _req["datasetIDs"],
519
+ category: _req["category"],
520
+ name: _req["name"],
521
+ createdBys: _req["createdBys"],
522
+ bizCategories: _req["bizCategories"],
523
+ page: _req["page"],
524
+ pageSize: _req["pageSize"],
525
+ cursor: _req["cursor"],
526
+ orderBy: _req["orderBy"],
527
+ base: _req["base"]
528
+ };
529
+ return this.request({ url, method, data }, options);
530
+ }
531
+ /**
532
+ * GET /api/ml_flow/v2/datasets/:datasetID/versions/:versionID/items
533
+ *
534
+ * 分页查询指定版本的数据
535
+ */
536
+ ListDatasetItemsByVersion(req, options) {
537
+ const _req = req;
538
+ const url = this.genBaseURL(
539
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/versions/${_req["versionID"]}/items`
540
+ );
541
+ const method = "GET";
542
+ const params = {
543
+ spaceID: _req["spaceID"],
544
+ page: _req["page"],
545
+ pageSize: _req["pageSize"],
546
+ cursor: _req["cursor"],
547
+ orderBy: _req["orderBy"],
548
+ filter: _req["filter"],
549
+ base: _req["base"]
550
+ };
551
+ return this.request({ url, method, params }, options);
552
+ }
553
+ /**
554
+ * POST /api/model_manage/v1/spaces/:spaceID/get_model
555
+ *
556
+ * 获取模型详情(商业化)
557
+ */
558
+ GetModel(req, options) {
559
+ const _req = req || {};
560
+ const url = this.genBaseURL(
561
+ `/api/model_manage/v1/spaces/${_req["spaceID"]}/get_model`
562
+ );
563
+ const method = "POST";
564
+ const data = {
565
+ provider: _req["provider"],
566
+ providerModelID: _req["providerModelID"],
567
+ base: _req["base"]
568
+ };
569
+ const headers = { cookie: _req["cookie"] };
570
+ return this.request({ url, method, data, headers }, options);
571
+ }
572
+ /**
573
+ * POST /api/model_manage/v1/spaces/:spaceID/get_model_usage
574
+ *
575
+ * 获取模型Token用量(商业化)
576
+ */
577
+ GetModelUsage(req, options) {
578
+ const _req = req || {};
579
+ const url = this.genBaseURL(
580
+ `/api/model_manage/v1/spaces/${_req["spaceID"]}/get_model_usage`
581
+ );
582
+ const method = "POST";
583
+ const data = {
584
+ modelIdentification: _req["modelIdentification"],
585
+ provider: _req["provider"],
586
+ base: _req["base"]
587
+ };
588
+ return this.request({ url, method, data }, options);
589
+ }
590
+ /**
591
+ * POST /api/model_manage/v1/spaces/:spaceID/v1/list
592
+ *
593
+ * 获取模型列表(商业化)
594
+ */
595
+ ListModel(req, options) {
596
+ const _req = req || {};
597
+ const url = this.genBaseURL(
598
+ `/api/model_manage/v1/spaces/${_req["spaceID"]}/v1/list`
599
+ );
600
+ const method = "POST";
601
+ const data = {
602
+ cursorID: _req["cursorID"],
603
+ limit: _req["limit"],
604
+ filter: _req["filter"],
605
+ base: _req["base"]
606
+ };
607
+ const headers = { cookie: _req["cookie"] };
608
+ return this.request({ url, method, data, headers }, options);
609
+ }
610
+ /**
611
+ * POST /api/model_manage/v1/get_model_filter_params
612
+ *
613
+ * 获取模型列表过滤参数(商业化)
614
+ */
615
+ GetModelFilterParams(req, options) {
616
+ const _req = req || {};
617
+ const url = this.genBaseURL("/api/model_manage/v1/get_model_filter_params");
618
+ const method = "POST";
619
+ const data = { base: _req["base"] };
620
+ const headers = { cookie: _req["cookie"] };
621
+ return this.request({ url, method, data, headers }, options);
622
+ }
623
+ /**
624
+ * GET /api/ml_flow/v2/files/upload_token
625
+ *
626
+ * Dataset IO Job
627
+ */
628
+ SignUploadFileToken(req, options) {
629
+ const _req = req || {};
630
+ const url = this.genBaseURL("/api/ml_flow/v2/files/upload_token");
631
+ const method = "GET";
632
+ const params = {
633
+ spaceID: _req["spaceID"],
634
+ storage: _req["storage"],
635
+ fileName: _req["fileName"],
636
+ base: _req["base"]
637
+ };
638
+ return this.request({ url, method, params }, options);
639
+ }
640
+ /**
641
+ * GET /api/ml_flow/v2/dataset_io_jobs/:jobID
642
+ *
643
+ * 任务(导入、导出、转换)详情
644
+ */
645
+ GetDatasetIOJob(req, options) {
646
+ const _req = req;
647
+ const url = this.genBaseURL(
648
+ `/api/ml_flow/v2/dataset_io_jobs/${_req["jobID"]}`
649
+ );
650
+ const method = "GET";
651
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
652
+ return this.request({ url, method, params }, options);
653
+ }
654
+ /**
655
+ * POST /api/ml_flow/v2/datasets/:datasetID/items/batch_get
656
+ *
657
+ * 批量获取数据
658
+ */
659
+ BatchGetDatasetItems(req, options) {
660
+ const _req = req;
661
+ const url = this.genBaseURL(
662
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/batch_get`
663
+ );
664
+ const method = "POST";
665
+ const data = {
666
+ spaceID: _req["spaceID"],
667
+ itemIDs: _req["itemIDs"],
668
+ base: _req["base"]
669
+ };
670
+ return this.request({ url, method, data }, options);
671
+ }
672
+ /**
673
+ * POST /api/ml_flow/v2/datasets/:datasetID/versions/:versionID/items/batch_get
674
+ *
675
+ * 批量获取指定版本的数据
676
+ */
677
+ BatchGetDatasetItemsByVersion(req, options) {
678
+ const _req = req;
679
+ const url = this.genBaseURL(
680
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/versions/${_req["versionID"]}/items/batch_get`
681
+ );
682
+ const method = "POST";
683
+ const data = {
684
+ spaceID: _req["spaceID"],
685
+ itemIDs: _req["itemIDs"],
686
+ base: _req["base"]
687
+ };
688
+ return this.request({ url, method, data }, options);
689
+ }
690
+ /**
691
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/batch_get
692
+ *
693
+ * 批量获取数据集
694
+ */
695
+ BatchGetDatasets(req, options) {
696
+ const _req = req;
697
+ const url = this.genBaseURL(
698
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/batch_get`
699
+ );
700
+ const method = "POST";
701
+ const data = {
702
+ datasetIDs: _req["datasetIDs"],
703
+ withDeleted: _req["withDeleted"],
704
+ base: _req["base"]
705
+ };
706
+ return this.request({ url, method, data }, options);
707
+ }
708
+ /**
709
+ * POST /api/ml_flow/v2/spaces/:spaceID/versioned_datasets/batch_get
710
+ *
711
+ * 批量获取指定版本的数据集详情
712
+ */
713
+ BatchGetVersionedDatasets(req, options) {
714
+ const _req = req;
715
+ const url = this.genBaseURL(
716
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/versioned_datasets/batch_get`
717
+ );
718
+ const method = "POST";
719
+ const data = {
720
+ versionIDs: _req["versionIDs"],
721
+ withDeleted: _req["withDeleted"],
722
+ base: _req["base"]
723
+ };
724
+ return this.request({ url, method, data }, options);
725
+ }
726
+ /**
727
+ * GET /api/ml_flow/v2/datasets/:datasetID/io_jobs
728
+ *
729
+ * 数据集任务列表,用于获取当前数据集的导入任务
730
+ */
731
+ ListDatasetIOJobsOfDataset(req, options) {
732
+ const _req = req;
733
+ const url = this.genBaseURL(
734
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/io_jobs`
735
+ );
736
+ const method = "GET";
737
+ const params = {
738
+ spaceID: _req["spaceID"],
739
+ types: _req["types"],
740
+ statuses: _req["statuses"],
741
+ base: _req["base"]
742
+ };
743
+ return this.request({ url, method, params }, options);
744
+ }
745
+ /**
746
+ * GET /api/ml_flow/v2/dataset_versions/:versionID
747
+ *
748
+ * 获取指定版本的数据集详情
749
+ */
750
+ GetDatasetVersion(req, options) {
751
+ const _req = req;
752
+ const url = this.genBaseURL(
753
+ `/api/ml_flow/v2/dataset_versions/${_req["versionID"]}`
754
+ );
755
+ const method = "GET";
756
+ const params = {
757
+ spaceID: _req["spaceID"],
758
+ withDeleted: _req["withDeleted"],
759
+ base: _req["base"]
760
+ };
761
+ return this.request({ url, method, params }, options);
762
+ }
763
+ /**
764
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/versions/:versionID/items/batch_get
765
+ *
766
+ * 批量获取固定版本数据行
767
+ */
768
+ OpenBatchGetDatasetItemsByVersion(req, options) {
769
+ const _req = req;
770
+ const url = this.genBaseURL(
771
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/versions/${_req["versionID"]}/items/batch_get`
772
+ );
773
+ const method = "POST";
774
+ const data = { itemIDs: _req["itemIDs"], base: _req["base"] };
775
+ const headers = {
776
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
777
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
778
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
779
+ };
780
+ return this.request({ url, method, data, headers }, options);
781
+ }
782
+ /**
783
+ * GET /open-api/ml_flow/v2/datasets/:datasetID/items
784
+ *
785
+ * 草稿态的数据行列表
786
+ */
787
+ OpenListDatasetItems(req, options) {
788
+ const _req = req;
789
+ const url = this.genBaseURL(
790
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items`
791
+ );
792
+ const method = "GET";
793
+ const params = { cursor: _req["cursor"], base: _req["base"] };
794
+ const headers = {
795
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
796
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
797
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
798
+ };
799
+ return this.request({ url, method, params, headers }, options);
800
+ }
801
+ /**
802
+ * PATCH /open-api/ml_flow/v2/datasets/:datasetID/items/:itemID
803
+ *
804
+ * 更新数据行的数据内容
805
+ */
806
+ OpenPatchDatasetItem(req, options) {
807
+ const _req = req;
808
+ const url = this.genBaseURL(
809
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["itemID"]}`
810
+ );
811
+ const method = "PATCH";
812
+ const data = {
813
+ data: _req["data"],
814
+ repeatedData: _req["repeatedData"],
815
+ base: _req["base"]
816
+ };
817
+ const headers = {
818
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
819
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
820
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
821
+ };
822
+ return this.request({ url, method, data, headers }, options);
823
+ }
824
+ /**
825
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/items/batch_get
826
+ *
827
+ * 批量获取草稿态数据行
828
+ */
829
+ OpenBatchGetDatasetItems(req, options) {
830
+ const _req = req;
831
+ const url = this.genBaseURL(
832
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items/batch_get`
833
+ );
834
+ const method = "POST";
835
+ const data = { itemIDs: _req["itemIDs"], base: _req["base"] };
836
+ const headers = {
837
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
838
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
839
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
840
+ };
841
+ return this.request({ url, method, data, headers }, options);
842
+ }
843
+ /**
844
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/items/batch_delete
845
+ *
846
+ * 批量删除草稿态数据行
847
+ */
848
+ OpenBatchDeleteDatasetItems(req, options) {
849
+ const _req = req;
850
+ const url = this.genBaseURL(
851
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items/batch_delete`
852
+ );
853
+ const method = "POST";
854
+ const data = { itemIDs: _req["itemIDs"], base: _req["base"] };
855
+ const headers = {
856
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
857
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
858
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
859
+ };
860
+ return this.request({ url, method, data, headers }, options);
861
+ }
862
+ /**
863
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/versions
864
+ *
865
+ * 创建数据集版本
866
+ */
867
+ OpenCreateDatasetVersion(req, options) {
868
+ const _req = req;
869
+ const url = this.genBaseURL(
870
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/versions`
871
+ );
872
+ const method = "POST";
873
+ const data = {
874
+ version: _req["version"],
875
+ desc: _req["desc"],
876
+ base: _req["base"]
877
+ };
878
+ const headers = {
879
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
880
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
881
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
882
+ };
883
+ return this.request({ url, method, data, headers }, options);
884
+ }
885
+ /**
886
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/items/clear
887
+ *
888
+ * 清空草稿态数据行
889
+ */
890
+ OpenClearDatasetItems(req, options) {
891
+ const _req = req;
892
+ const url = this.genBaseURL(
893
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items/clear`
894
+ );
895
+ const method = "POST";
896
+ const data = { base: _req["base"] };
897
+ const headers = {
898
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
899
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
900
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
901
+ };
902
+ return this.request({ url, method, data, headers }, options);
903
+ }
904
+ /**
905
+ * GET /open-api/ml_flow/v2/datasets/:datasetID/versions/:versionID/items
906
+ *
907
+ * 固定版本的数据行列表
908
+ */
909
+ OpenListDatasetItemsByVersion(req, options) {
910
+ const _req = req;
911
+ const url = this.genBaseURL(
912
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/versions/${_req["versionID"]}/items`
913
+ );
914
+ const method = "GET";
915
+ const params = { cursor: _req["cursor"], base: _req["base"] };
916
+ const headers = {
917
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
918
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
919
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
920
+ };
921
+ return this.request({ url, method, params, headers }, options);
922
+ }
923
+ /**
924
+ * GET /open-api/ml_flow/v2/datasets/:datasetID/versions
925
+ *
926
+ * 获取数据集版本列表
927
+ */
928
+ OpenListDatasetVersions(req, options) {
929
+ const _req = req;
930
+ const url = this.genBaseURL(
931
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/versions`
932
+ );
933
+ const method = "GET";
934
+ const params = { cursor: _req["cursor"], base: _req["base"] };
935
+ const headers = {
936
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
937
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
938
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
939
+ };
940
+ return this.request({ url, method, params, headers }, options);
941
+ }
942
+ /**
943
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/items/batch
944
+ *
945
+ * 批量新增
946
+ */
947
+ OpenBatchCreateDatasetItems(req, options) {
948
+ const _req = req;
949
+ const url = this.genBaseURL(
950
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items/batch`
951
+ );
952
+ const method = "POST";
953
+ const data = {
954
+ items: _req["items"],
955
+ skipInvalidItems: _req["skipInvalidItems"],
956
+ allowPartialAdd: _req["allowPartialAdd"],
957
+ base: _req["base"]
958
+ };
959
+ const headers = {
960
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
961
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
962
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
963
+ };
964
+ return this.request({ url, method, data, headers }, options);
965
+ }
966
+ /**
967
+ * POST /open-api/ml_flow/v2/datasets/search
968
+ *
969
+ * 获取数据集列表
970
+ */
971
+ OpenSearchDatasets(req, options) {
972
+ const _req = req || {};
973
+ const url = this.genBaseURL("/open-api/ml_flow/v2/datasets/search");
974
+ const method = "POST";
975
+ const data = {
976
+ name: _req["name"],
977
+ createdBys: _req["createdBys"],
978
+ cursor: _req["cursor"],
979
+ base: _req["base"]
980
+ };
981
+ const headers = {
982
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
983
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
984
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
985
+ };
986
+ return this.request({ url, method, data, headers }, options);
987
+ }
988
+ /**
989
+ * PUT /api/ml_flow/v2/spaces/:spaceID/dataset_io_jobs/:jobID/cancel
990
+ *
991
+ * 取消一个任务
992
+ */
993
+ CancelDatasetIOJob(req, options) {
994
+ const _req = req;
995
+ const url = this.genBaseURL(
996
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/dataset_io_jobs/${_req["jobID"]}/cancel`
997
+ );
998
+ const method = "PUT";
999
+ const data = { base: _req["base"] };
1000
+ return this.request({ url, method, data }, options);
1001
+ }
1002
+ /**
1003
+ * PUT /api/ml_flow/v2/spaces/:spaceID/dataset_versions/:versionID
1004
+ *
1005
+ * 更新一个版本
1006
+ */
1007
+ UpdateDatasetVersion(req, options) {
1008
+ const _req = req;
1009
+ const url = this.genBaseURL(
1010
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/dataset_versions/${_req["versionID"]}`
1011
+ );
1012
+ const method = "PUT";
1013
+ const data = { desc: _req["desc"], base: _req["base"] };
1014
+ return this.request({ url, method, data }, options);
1015
+ }
1016
+ /**
1017
+ * PUT /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/:jobID
1018
+ *
1019
+ * 更新质量分任务
1020
+ */
1021
+ UpdateQualityScoreJob(req, options) {
1022
+ const _req = req;
1023
+ const url = this.genBaseURL(
1024
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/${_req["jobID"]}`
1025
+ );
1026
+ const method = "PUT";
1027
+ const data = { job: _req["job"], base: _req["base"] };
1028
+ return this.request({ url, method, data }, options);
1029
+ }
1030
+ /**
1031
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs
1032
+ *
1033
+ * 创建质量分任务
1034
+ */
1035
+ CreateQualityScoreJob(req, options) {
1036
+ const _req = req;
1037
+ const url = this.genBaseURL(
1038
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs`
1039
+ );
1040
+ const method = "POST";
1041
+ const data = { job: _req["job"], base: _req["base"] };
1042
+ return this.request({ url, method, data }, options);
1043
+ }
1044
+ /**
1045
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/:jobID
1046
+ *
1047
+ * 获取质量分任务
1048
+ */
1049
+ GetQualityScoreJob(req, options) {
1050
+ const _req = req;
1051
+ const url = this.genBaseURL(
1052
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/${_req["jobID"]}`
1053
+ );
1054
+ const method = "GET";
1055
+ const params = { base: _req["base"] };
1056
+ return this.request({ url, method, params }, options);
1057
+ }
1058
+ /**
1059
+ * DELETE /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/:jobID
1060
+ *
1061
+ * 删除质量分任务
1062
+ */
1063
+ DeleteQualityScoreJob(req, options) {
1064
+ const _req = req;
1065
+ const url = this.genBaseURL(
1066
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/${_req["jobID"]}`
1067
+ );
1068
+ const method = "DELETE";
1069
+ const params = { base: _req["base"] };
1070
+ return this.request({ url, method, params }, options);
1071
+ }
1072
+ /**
1073
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/dry_run
1074
+ *
1075
+ * 试运行质量分任务
1076
+ */
1077
+ DryRunQualityScoreJob(req, options) {
1078
+ const _req = req;
1079
+ const url = this.genBaseURL(
1080
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/dry_run`
1081
+ );
1082
+ const method = "POST";
1083
+ const data = {
1084
+ job: _req["job"],
1085
+ sampleCount: _req["sampleCount"],
1086
+ base: _req["base"]
1087
+ };
1088
+ return this.request({ url, method, data }, options);
1089
+ }
1090
+ /**
1091
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs
1092
+ *
1093
+ * 获取质量分任务
1094
+ */
1095
+ ListQualityScoreJobs(req, options) {
1096
+ const _req = req;
1097
+ const url = this.genBaseURL(
1098
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs`
1099
+ );
1100
+ const method = "GET";
1101
+ const params = {
1102
+ page: _req["page"],
1103
+ pageSize: _req["pageSize"],
1104
+ cursor: _req["cursor"],
1105
+ base: _req["base"]
1106
+ };
1107
+ return this.request({ url, method, params }, options);
1108
+ }
1109
+ /**
1110
+ * GET /api/ml_flow/v2/datasets/:datasetID/items/:id/source
1111
+ *
1112
+ * 查询 item 的来源信息
1113
+ */
1114
+ GetDatasetItemSource(req, options) {
1115
+ const _req = req;
1116
+ const url = this.genBaseURL(
1117
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["id"]}/source`
1118
+ );
1119
+ const method = "GET";
1120
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
1121
+ return this.request({ url, method, params }, options);
1122
+ }
1123
+ /**
1124
+ * GET /api/ml_flow/v2/deduplicate/dedup_jobs/:jobID
1125
+ *
1126
+ * 获取判重任务
1127
+ */
1128
+ GetItemDeduplicateJob(req, options) {
1129
+ const _req = req;
1130
+ const url = this.genBaseURL(
1131
+ `/api/ml_flow/v2/deduplicate/dedup_jobs/${_req["jobID"]}`
1132
+ );
1133
+ const method = "GET";
1134
+ const params = {
1135
+ spaceID: _req["spaceID"],
1136
+ confirmType: _req["confirmType"],
1137
+ page: _req["page"],
1138
+ pageSize: _req["pageSize"],
1139
+ base: _req["base"]
1140
+ };
1141
+ return this.request({ url, method, params }, options);
1142
+ }
1143
+ /**
1144
+ * POST /api/ml_flow/v2/deduplicate/dedup_jobs
1145
+ *
1146
+ * 创建判重任务
1147
+ */
1148
+ CreateItemDeduplicateJob(req, options) {
1149
+ const _req = req;
1150
+ const url = this.genBaseURL("/api/ml_flow/v2/deduplicate/dedup_jobs");
1151
+ const method = "POST";
1152
+ const data = {
1153
+ spaceID: _req["spaceID"],
1154
+ datasetID: _req["datasetID"],
1155
+ file: _req["file"],
1156
+ fieldMappings: _req["fieldMappings"],
1157
+ option: _req["option"],
1158
+ jobID: _req["jobID"],
1159
+ fieldKey: _req["fieldKey"],
1160
+ similarityAlgorithm: _req["similarityAlgorithm"],
1161
+ threshold: _req["threshold"],
1162
+ base: _req["base"]
1163
+ };
1164
+ return this.request({ url, method, data }, options);
1165
+ }
1166
+ /**
1167
+ * POST /api/ml_flow/v2/deduplicate/dedup_jobs/:jobID/confirm
1168
+ *
1169
+ * 确认疑似重复任务
1170
+ */
1171
+ ConfirmItemDeduplicate(req, options) {
1172
+ const _req = req;
1173
+ const url = this.genBaseURL(
1174
+ `/api/ml_flow/v2/deduplicate/dedup_jobs/${_req["jobID"]}/confirm`
1175
+ );
1176
+ const method = "POST";
1177
+ const data = {
1178
+ spaceID: _req["spaceID"],
1179
+ pairs: _req["pairs"],
1180
+ base: _req["base"]
1181
+ };
1182
+ return this.request({ url, method, data }, options);
1183
+ }
1184
+ /**
1185
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_job_instances/:jobID
1186
+ *
1187
+ * 获取任务执行情况信息
1188
+ */
1189
+ GetQualityScoreJobInstance(req, options) {
1190
+ const _req = req;
1191
+ const url = this.genBaseURL(
1192
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_job_instances/${_req["jobID"]}`
1193
+ );
1194
+ const method = "GET";
1195
+ const params = { base: _req["base"] };
1196
+ return this.request({ url, method, params }, options);
1197
+ }
1198
+ /**
1199
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/:jobID/instances/:instanceID/terminate
1200
+ *
1201
+ * 终止任务
1202
+ */
1203
+ TerminateQualityScoreJobInstance(req, options) {
1204
+ const _req = req;
1205
+ const url = this.genBaseURL(
1206
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/${_req["jobID"]}/instances/${_req["instanceID"]}/terminate`
1207
+ );
1208
+ const method = "POST";
1209
+ const data = { base: _req["base"] };
1210
+ return this.request({ url, method, data }, options);
1211
+ }
1212
+ /**
1213
+ * GET /open-api/ml_flow/v2/datasets/:datasetID/items/:itemID
1214
+ *
1215
+ * 获取某条数据行&血缘数据,主键ID
1216
+ */
1217
+ OpenGetDatasetItem(req, options) {
1218
+ const _req = req;
1219
+ const url = this.genBaseURL(
1220
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["itemID"]}`
1221
+ );
1222
+ const method = "GET";
1223
+ const params = {
1224
+ withDeepSources: _req["withDeepSources"],
1225
+ base: _req["base"]
1226
+ };
1227
+ const headers = {
1228
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1229
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1230
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1231
+ };
1232
+ return this.request({ url, method, params, headers }, options);
1233
+ }
1234
+ /**
1235
+ * POST /api/ml_flow/v2/datasets/:datasetID/io_jobs/search
1236
+ *
1237
+ * 数据集任务列表,用于获取当前数据集的导入任务(POST 方法,便于传参)
1238
+ */
1239
+ SearchDatasetIOJobsOfDataset(req, options) {
1240
+ const _req = req;
1241
+ const url = this.genBaseURL(
1242
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/io_jobs/search`
1243
+ );
1244
+ const method = "POST";
1245
+ const data = {
1246
+ spaceID: _req["spaceID"],
1247
+ types: _req["types"],
1248
+ statuses: _req["statuses"],
1249
+ base: _req["base"]
1250
+ };
1251
+ return this.request({ url, method, data }, options);
1252
+ }
1253
+ /**
1254
+ * POST /api/ml_flow/v2/datasets/:datasetID/versions/:versionID/items/search
1255
+ *
1256
+ * 分页查询指定版本的数据(POST 方法,便于传参)
1257
+ */
1258
+ SearchDatasetItemsByVersion(req, options) {
1259
+ const _req = req;
1260
+ const url = this.genBaseURL(
1261
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/versions/${_req["versionID"]}/items/search`
1262
+ );
1263
+ const method = "POST";
1264
+ const data = {
1265
+ spaceID: _req["spaceID"],
1266
+ page: _req["page"],
1267
+ pageSize: _req["pageSize"],
1268
+ cursor: _req["cursor"],
1269
+ orderBy: _req["orderBy"],
1270
+ filter: _req["filter"],
1271
+ base: _req["base"]
1272
+ };
1273
+ return this.request({ url, method, data }, options);
1274
+ }
1275
+ /**
1276
+ * POST /api/ml_flow/v2/datasets/:datasetID/versions/search
1277
+ *
1278
+ * 版本列表(POST 方法,便于传参)
1279
+ */
1280
+ SearchDatasetVersions(req, options) {
1281
+ const _req = req;
1282
+ const url = this.genBaseURL(
1283
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/versions/search`
1284
+ );
1285
+ const method = "POST";
1286
+ const data = {
1287
+ spaceID: _req["spaceID"],
1288
+ versionLike: _req["versionLike"],
1289
+ page: _req["page"],
1290
+ pageSize: _req["pageSize"],
1291
+ cursor: _req["cursor"],
1292
+ orderBy: _req["orderBy"],
1293
+ base: _req["base"]
1294
+ };
1295
+ return this.request({ url, method, data }, options);
1296
+ }
1297
+ /**
1298
+ * POST /api/ml_flow/v2/datasets/:datasetID/items/search
1299
+ *
1300
+ * 分页查询当前数据(POST 方法,便于传参)
1301
+ */
1302
+ SearchDatasetItems(req, options) {
1303
+ const _req = req;
1304
+ const url = this.genBaseURL(
1305
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/search`
1306
+ );
1307
+ const method = "POST";
1308
+ const data = {
1309
+ spaceID: _req["spaceID"],
1310
+ page: _req["page"],
1311
+ pageSize: _req["pageSize"],
1312
+ cursor: _req["cursor"],
1313
+ orderBy: _req["orderBy"],
1314
+ filter: _req["filter"],
1315
+ base: _req["base"]
1316
+ };
1317
+ return this.request({ url, method, data }, options);
1318
+ }
1319
+ /**
1320
+ * POST /api/ml_flow/v2/datasets/create_with_import
1321
+ *
1322
+ * 从数据集导入数据
1323
+ */
1324
+ CreateDatasetWithImport(req, options) {
1325
+ const _req = req;
1326
+ const url = this.genBaseURL("/api/ml_flow/v2/datasets/create_with_import");
1327
+ const method = "POST";
1328
+ const data = {
1329
+ spaceID: _req["spaceID"],
1330
+ appID: _req["appID"],
1331
+ sourceType: _req["sourceType"],
1332
+ source: _req["source"],
1333
+ fieldMappings: _req["fieldMappings"],
1334
+ option: _req["option"],
1335
+ targetDatasetName: _req["targetDatasetName"],
1336
+ targetDatasetDesc: _req["targetDatasetDesc"],
1337
+ category: _req["category"],
1338
+ fields: _req["fields"],
1339
+ base: _req["base"]
1340
+ };
1341
+ return this.request({ url, method, data }, options);
1342
+ }
1343
+ /**
1344
+ * GET /api/ml_flow/v2/datasets/:datasetID/items/:id/deep_sources
1345
+ *
1346
+ * 查询 item 的溯源信息
1347
+ */
1348
+ GetDatasetItemDeepSources(req, options) {
1349
+ const _req = req;
1350
+ const url = this.genBaseURL(
1351
+ `/api/ml_flow/v2/datasets/${_req["datasetID"]}/items/${_req["id"]}/deep_sources`
1352
+ );
1353
+ const method = "GET";
1354
+ const params = { spaceID: _req["spaceID"], base: _req["base"] };
1355
+ return this.request({ url, method, params }, options);
1356
+ }
1357
+ /**
1358
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/:jobID/run
1359
+ *
1360
+ * 运行打标任务
1361
+ */
1362
+ RunQualityScoreJob(req, options) {
1363
+ const _req = req;
1364
+ const url = this.genBaseURL(
1365
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/${_req["jobID"]}/run`
1366
+ );
1367
+ const method = "POST";
1368
+ const data = {
1369
+ taskRunType: _req["taskRunType"],
1370
+ filter: _req["filter"],
1371
+ base: _req["base"]
1372
+ };
1373
+ return this.request({ url, method, data }, options);
1374
+ }
1375
+ /**
1376
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/quality_score_jobs/:jobID/sync_run
1377
+ *
1378
+ * 同步运行几条打分任务
1379
+ */
1380
+ RunQualityScoreSync(req, options) {
1381
+ const _req = req;
1382
+ const url = this.genBaseURL(
1383
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/quality_score_jobs/${_req["jobID"]}/sync_run`
1384
+ );
1385
+ const method = "POST";
1386
+ const data = { itemIDs: _req["itemIDs"], base: _req["base"] };
1387
+ return this.request({ url, method, data }, options);
1388
+ }
1389
+ /**
1390
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/items
1391
+ *
1392
+ * 创建数据行
1393
+ */
1394
+ CreateDatasetItem(req, options) {
1395
+ const _req = req;
1396
+ const url = this.genBaseURL(
1397
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/items`
1398
+ );
1399
+ const method = "POST";
1400
+ const data = {
1401
+ itemKey: _req["itemKey"],
1402
+ data: _req["data"],
1403
+ repeatedData: _req["repeatedData"],
1404
+ keepLineage: _req["keepLineage"],
1405
+ sourceItemID: _req["sourceItemID"],
1406
+ sourceDatasetID: _req["sourceDatasetID"],
1407
+ sourceDatasetVersionID: _req["sourceDatasetVersionID"],
1408
+ base: _req["base"]
1409
+ };
1410
+ return this.request({ url, method, data }, options);
1411
+ }
1412
+ /**
1413
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/fields_meta_info
1414
+ *
1415
+ * 获取筛选元数据
1416
+ */
1417
+ GetFieldsMetaInfo(req, options) {
1418
+ const _req = req;
1419
+ const url = this.genBaseURL(
1420
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/fields_meta_info`
1421
+ );
1422
+ const method = "GET";
1423
+ return this.request({ url, method }, options);
1424
+ }
1425
+ /**
1426
+ * POST /api/ml_flow/v2/spaces/:spaceID/tags
1427
+ *
1428
+ * 创建标签
1429
+ */
1430
+ CreateTag(req, options) {
1431
+ const _req = req;
1432
+ const url = this.genBaseURL(
1433
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags`
1434
+ );
1435
+ const method = "POST";
1436
+ const data = {
1437
+ tagKeyName: _req["tagKeyName"],
1438
+ tagType: _req["tagType"],
1439
+ version: _req["version"],
1440
+ description: _req["description"],
1441
+ tagValues: _req["tagValues"],
1442
+ base: _req["base"]
1443
+ };
1444
+ return this.request({ url, method, data }, options);
1445
+ }
1446
+ /**
1447
+ * POST /api/ml_flow/v2/spaces/:spaceID/tags/search
1448
+ *
1449
+ * 查询标签列表
1450
+ */
1451
+ SearchTags(req, options) {
1452
+ const _req = req;
1453
+ const url = this.genBaseURL(
1454
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags/search`
1455
+ );
1456
+ const method = "POST";
1457
+ const data = {
1458
+ status: _req["status"],
1459
+ tagKeyNameLike: _req["tagKeyNameLike"],
1460
+ createdBys: _req["createdBys"],
1461
+ page: _req["page"],
1462
+ pageSize: _req["pageSize"],
1463
+ cursor: _req["cursor"],
1464
+ orderBy: _req["orderBy"],
1465
+ base: _req["base"]
1466
+ };
1467
+ return this.request({ url, method, data }, options);
1468
+ }
1469
+ /**
1470
+ * PATCH /api/ml_flow/v2/spaces/:spaceID/tags/:tagKeyID
1471
+ *
1472
+ * 更新标签
1473
+ */
1474
+ UpdateTag(req, options) {
1475
+ const _req = req;
1476
+ const url = this.genBaseURL(
1477
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags/${_req["tagKeyID"]}`
1478
+ );
1479
+ const method = "PATCH";
1480
+ const data = {
1481
+ version: _req["version"],
1482
+ tagKeyName: _req["tagKeyName"],
1483
+ description: _req["description"],
1484
+ tagType: _req["tagType"],
1485
+ tagValues: _req["tagValues"],
1486
+ base: _req["base"]
1487
+ };
1488
+ return this.request({ url, method, data }, options);
1489
+ }
1490
+ /**
1491
+ * POST /api/ml_flow/v2/spaces/:spaceID/tags/batch_update_status
1492
+ *
1493
+ * 批量更新标签状态
1494
+ */
1495
+ BatchUpdateTagStatus(req, options) {
1496
+ const _req = req;
1497
+ const url = this.genBaseURL(
1498
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags/batch_update_status`
1499
+ );
1500
+ const method = "POST";
1501
+ const data = {
1502
+ tagKeyIDs: _req["tagKeyIDs"],
1503
+ status: _req["status"],
1504
+ base: _req["base"]
1505
+ };
1506
+ return this.request({ url, method, data }, options);
1507
+ }
1508
+ /**
1509
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/export
1510
+ *
1511
+ * 导出数据
1512
+ */
1513
+ ExportDataset(req, options) {
1514
+ const _req = req;
1515
+ const url = this.genBaseURL(
1516
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/export`
1517
+ );
1518
+ const method = "POST";
1519
+ const data = {
1520
+ versionID: _req["versionID"],
1521
+ targetType: _req["targetType"],
1522
+ target: _req["target"],
1523
+ base: _req["base"]
1524
+ };
1525
+ return this.request({ url, method, data }, options);
1526
+ }
1527
+ /**
1528
+ * POST /api/ml_flow/v2/spaces/:spaceID/tags/:tagKeyID/archive_option_tag
1529
+ *
1530
+ * 将单选标签归档进标签管理
1531
+ */
1532
+ ArchiveOptionTag(req, options) {
1533
+ const _req = req;
1534
+ const url = this.genBaseURL(
1535
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags/${_req["tagKeyID"]}/archive_option_tag`
1536
+ );
1537
+ const method = "POST";
1538
+ const data = {
1539
+ name: _req["name"],
1540
+ description: _req["description"],
1541
+ base: _req["base"]
1542
+ };
1543
+ return this.request({ url, method, data }, options);
1544
+ }
1545
+ /**
1546
+ * GET /api/ml_flow/v2/spaces/:spaceID/tags/:tagKeyID
1547
+ *
1548
+ * 获取标签明细
1549
+ */
1550
+ GetTagDetail(req, options) {
1551
+ const _req = req;
1552
+ const url = this.genBaseURL(
1553
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags/${_req["tagKeyID"]}`
1554
+ );
1555
+ const method = "GET";
1556
+ const params = { base: _req["base"] };
1557
+ return this.request({ url, method, params }, options);
1558
+ }
1559
+ /**
1560
+ * GET /open-api/ml_flow/v2/dataset_io_jobs/:jobID
1561
+ *
1562
+ * 任务(导入、导出、转换)详情
1563
+ */
1564
+ OpenGetDatasetIOJob(req, options) {
1565
+ const _req = req;
1566
+ const url = this.genBaseURL(
1567
+ `/open-api/ml_flow/v2/dataset_io_jobs/${_req["jobID"]}`
1568
+ );
1569
+ const method = "GET";
1570
+ const params = { base: _req["base"] };
1571
+ const headers = {
1572
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1573
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1574
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1575
+ };
1576
+ return this.request({ url, method, params, headers }, options);
1577
+ }
1578
+ /**
1579
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/import
1580
+ *
1581
+ * 导入数据
1582
+ */
1583
+ OpenImportDataset(req, options) {
1584
+ const _req = req;
1585
+ const url = this.genBaseURL(
1586
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/import`
1587
+ );
1588
+ const method = "POST";
1589
+ const data = {
1590
+ file: _req["file"],
1591
+ fieldMappings: _req["fieldMappings"],
1592
+ option: _req["option"],
1593
+ base: _req["base"]
1594
+ };
1595
+ const headers = {
1596
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1597
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1598
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1599
+ };
1600
+ return this.request({ url, method, data, headers }, options);
1601
+ }
1602
+ /**
1603
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/export
1604
+ *
1605
+ * 导出数据
1606
+ */
1607
+ OpenExportDataset(req, options) {
1608
+ const _req = req;
1609
+ const url = this.genBaseURL(
1610
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/export`
1611
+ );
1612
+ const method = "POST";
1613
+ const data = {
1614
+ versionID: _req["versionID"],
1615
+ targetType: _req["targetType"],
1616
+ target: _req["target"],
1617
+ base: _req["base"]
1618
+ };
1619
+ const headers = {
1620
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1621
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1622
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1623
+ };
1624
+ return this.request({ url, method, data, headers }, options);
1625
+ }
1626
+ /**
1627
+ * PUT /open-api/ml_flow/v2/dataset_io_jobs/:jobID/cancel
1628
+ *
1629
+ * 取消一个任务
1630
+ */
1631
+ OpenCancelDatasetIOJob(req, options) {
1632
+ const _req = req;
1633
+ const url = this.genBaseURL(
1634
+ `/open-api/ml_flow/v2/dataset_io_jobs/${_req["jobID"]}/cancel`
1635
+ );
1636
+ const method = "PUT";
1637
+ const data = { base: _req["base"] };
1638
+ const headers = {
1639
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1640
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1641
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1642
+ };
1643
+ return this.request({ url, method, data, headers }, options);
1644
+ }
1645
+ /**
1646
+ * POST /api/ml_flow/v2/spaces/:spaceID/parse_import_source_file
1647
+ *
1648
+ * 解析源文件
1649
+ */
1650
+ ParseImportSourceFile(req, options) {
1651
+ const _req = req;
1652
+ const url = this.genBaseURL(
1653
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/parse_import_source_file`
1654
+ );
1655
+ const method = "POST";
1656
+ const data = { file: _req["file"], base: _req["base"] };
1657
+ return this.request({ url, method, data }, options);
1658
+ }
1659
+ /**
1660
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/:jobID/run
1661
+ *
1662
+ * 运行标注任务
1663
+ */
1664
+ RunAnnotationJob(req, options) {
1665
+ const _req = req;
1666
+ const url = this.genBaseURL(
1667
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}/run`
1668
+ );
1669
+ const method = "POST";
1670
+ const data = {
1671
+ jwtToken: _req["jwtToken"],
1672
+ annotationJobRunID: _req["annotationJobRunID"],
1673
+ base: _req["base"]
1674
+ };
1675
+ return this.request({ url, method, data }, options);
1676
+ }
1677
+ /**
1678
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/:jobID/job_run_instances/:jobRunID/terminate
1679
+ *
1680
+ * 终止正在运行的打标任务
1681
+ */
1682
+ TerminateAnnotationJob(req, options) {
1683
+ const _req = req;
1684
+ const url = this.genBaseURL(
1685
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}/job_run_instances/${_req["jobRunID"]}/terminate`
1686
+ );
1687
+ const method = "POST";
1688
+ const data = { jwtToken: _req["jwtToken"], base: _req["base"] };
1689
+ return this.request({ url, method, data }, options);
1690
+ }
1691
+ /**
1692
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/process
1693
+ *
1694
+ * 查看当前数据集进行中标注任务进度
1695
+ */
1696
+ GetAnnotationJobProcess(req, options) {
1697
+ const _req = req;
1698
+ const url = this.genBaseURL(
1699
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/process`
1700
+ );
1701
+ const method = "GET";
1702
+ const params = { base: _req["base"] };
1703
+ return this.request({ url, method, params }, options);
1704
+ }
1705
+ /**
1706
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/associated
1707
+ *
1708
+ * 获取数据集每列关联的标注任务
1709
+ */
1710
+ GetAnnotationJobsWithDataset(req, options) {
1711
+ const _req = req;
1712
+ const url = this.genBaseURL(
1713
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/associated`
1714
+ );
1715
+ const method = "GET";
1716
+ const params = { base: _req["base"] };
1717
+ return this.request({ url, method, params }, options);
1718
+ }
1719
+ /**
1720
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/:jobID
1721
+ *
1722
+ * 获取单个标注任务详情
1723
+ */
1724
+ GetAnnotationJobDetail(req, options) {
1725
+ const _req = req;
1726
+ const url = this.genBaseURL(
1727
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}`
1728
+ );
1729
+ const method = "GET";
1730
+ const params = { base: _req["base"] };
1731
+ return this.request({ url, method, params }, options);
1732
+ }
1733
+ /**
1734
+ * GET /open-api/ml_flow/v2/datasets/:datasetID/annotation_jobs/:jobID/instances
1735
+ *
1736
+ * 查看任务实例状态
1737
+ */
1738
+ OpenGetAnnotationJobInstance(req, options) {
1739
+ const _req = req;
1740
+ const url = this.genBaseURL(
1741
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}/instances`
1742
+ );
1743
+ const method = "GET";
1744
+ const params = { jobInstanceID: _req["jobInstanceID"], base: _req["base"] };
1745
+ const headers = {
1746
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1747
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1748
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1749
+ };
1750
+ return this.request({ url, method, params, headers }, options);
1751
+ }
1752
+ /**
1753
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/annotation_jobs/:jobID/run
1754
+ *
1755
+ * 运行任务
1756
+ */
1757
+ OpenRunAnnotationJob(req, options) {
1758
+ const _req = req;
1759
+ const url = this.genBaseURL(
1760
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}/run`
1761
+ );
1762
+ const method = "POST";
1763
+ const data = { jwtToken: _req["jwtToken"], base: _req["base"] };
1764
+ const headers = {
1765
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1766
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1767
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1768
+ };
1769
+ return this.request({ url, method, data, headers }, options);
1770
+ }
1771
+ /**
1772
+ * GET /open-api/ml_flow/v2/datasets/:datasetID/annotation_jobs
1773
+ *
1774
+ * 列举数据集的标注任务
1775
+ */
1776
+ OpenListAnnotationJobs(req, options) {
1777
+ const _req = req;
1778
+ const url = this.genBaseURL(
1779
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/annotation_jobs`
1780
+ );
1781
+ const method = "GET";
1782
+ const params = { cursor: _req["cursor"], base: _req["base"] };
1783
+ const headers = {
1784
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1785
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1786
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1787
+ };
1788
+ return this.request({ url, method, params, headers }, options);
1789
+ }
1790
+ /**
1791
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/annotation_jobs/:jobID/instances/:instanceID/terminate
1792
+ *
1793
+ * 终止标注任务
1794
+ */
1795
+ OpenTerminateAnnotationJob(req, options) {
1796
+ const _req = req;
1797
+ const url = this.genBaseURL(
1798
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}/instances/${_req["instanceID"]}/terminate`
1799
+ );
1800
+ const method = "POST";
1801
+ const data = { jwtToken: _req["jwtToken"], base: _req["base"] };
1802
+ const headers = {
1803
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1804
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1805
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1806
+ };
1807
+ return this.request({ url, method, data, headers }, options);
1808
+ }
1809
+ /**
1810
+ * POST /api/ml_flow/v2/datasets/:dataset_id/items/clear
1811
+ *
1812
+ * 清除(草稿)数据项
1813
+ */
1814
+ ClearDatasetItem(req, options) {
1815
+ const _req = req;
1816
+ const url = this.genBaseURL(
1817
+ `/api/ml_flow/v2/datasets/${_req["dataset_id"]}/items/clear`
1818
+ );
1819
+ const method = "POST";
1820
+ const data = { spaceID: _req["spaceID"], Base: _req["Base"] };
1821
+ return this.request({ url, method, data }, options);
1822
+ }
1823
+ /**
1824
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/job_run_instances/search
1825
+ *
1826
+ * 搜索标注任务列表
1827
+ */
1828
+ SearchAnnotationJobInstances(req, options) {
1829
+ const _req = req;
1830
+ const url = this.genBaseURL(
1831
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/job_run_instances/search`
1832
+ );
1833
+ const method = "POST";
1834
+ const data = {
1835
+ typeFilter: _req["typeFilter"],
1836
+ createdBys: _req["createdBys"],
1837
+ page: _req["page"],
1838
+ pageSize: _req["pageSize"],
1839
+ cursor: _req["cursor"],
1840
+ orderBy: _req["orderBy"],
1841
+ base: _req["base"]
1842
+ };
1843
+ return this.request({ url, method, data }, options);
1844
+ }
1845
+ /**
1846
+ * GET /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/insight/field_distribute
1847
+ *
1848
+ * 获取洞察分布
1849
+ */
1850
+ QueryFieldDistribute(req, options) {
1851
+ const _req = req;
1852
+ const url = this.genBaseURL(
1853
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/insight/field_distribute`
1854
+ );
1855
+ const method = "GET";
1856
+ const params = {
1857
+ datasetVersion: _req["datasetVersion"],
1858
+ fieldKeys: _req["fieldKeys"],
1859
+ base: _req["base"]
1860
+ };
1861
+ return this.request({ url, method, params }, options);
1862
+ }
1863
+ /**
1864
+ * PUT /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/:jobID
1865
+ *
1866
+ * 更新标注任务
1867
+ */
1868
+ UpdateAnnotationJob(req, options) {
1869
+ const _req = req;
1870
+ const url = this.genBaseURL(
1871
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}`
1872
+ );
1873
+ const method = "PUT";
1874
+ const data = {
1875
+ name: _req["name"],
1876
+ content: _req["content"],
1877
+ base: _req["base"]
1878
+ };
1879
+ return this.request({ url, method, data }, options);
1880
+ }
1881
+ /**
1882
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs
1883
+ *
1884
+ * 创建标注任务
1885
+ */
1886
+ CreateAnnotationJob(req, options) {
1887
+ const _req = req;
1888
+ const url = this.genBaseURL(
1889
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs`
1890
+ );
1891
+ const method = "POST";
1892
+ const data = {
1893
+ name: _req["name"],
1894
+ content: _req["content"],
1895
+ base: _req["base"]
1896
+ };
1897
+ return this.request({ url, method, data }, options);
1898
+ }
1899
+ /**
1900
+ * POST /api/ml_flow/v2/dataset_items/validate
1901
+ *
1902
+ * 校验数据
1903
+ */
1904
+ ValidateDatasetItems(req, options) {
1905
+ const _req = req || {};
1906
+ const url = this.genBaseURL("/api/ml_flow/v2/dataset_items/validate");
1907
+ const method = "POST";
1908
+ const data = {
1909
+ spaceID: _req["spaceID"],
1910
+ items: _req["items"],
1911
+ datasetID: _req["datasetID"],
1912
+ datasetCategory: _req["datasetCategory"],
1913
+ datasetFields: _req["datasetFields"],
1914
+ ignoreCurrentItemCount: _req["ignoreCurrentItemCount"]
1915
+ };
1916
+ return this.request({ url, method, data }, options);
1917
+ }
1918
+ /**
1919
+ * POST /open-api/ml_flow/v2/datasets/:datasetID/annotation_jobs/:jobID/clone
1920
+ *
1921
+ * 复用标注任务
1922
+ */
1923
+ OpenCloneAnnotationJob(req, options) {
1924
+ const _req = req;
1925
+ const url = this.genBaseURL(
1926
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}/clone`
1927
+ );
1928
+ const method = "POST";
1929
+ const data = {
1930
+ targetDatasetID: _req["targetDatasetID"],
1931
+ jobName: _req["jobName"],
1932
+ base: _req["base"]
1933
+ };
1934
+ const headers = {
1935
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1936
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1937
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1938
+ };
1939
+ return this.request({ url, method, data, headers }, options);
1940
+ }
1941
+ /**
1942
+ * DELETE /open-api/ml_flow/v2/datasets/:datasetID/annotation_jobs/:jobID
1943
+ *
1944
+ * 删除数据集的标注任务
1945
+ */
1946
+ OpenDeleteAnnotationJob(req, options) {
1947
+ const _req = req || {};
1948
+ const url = this.genBaseURL(
1949
+ `/open-api/ml_flow/v2/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}`
1950
+ );
1951
+ const method = "DELETE";
1952
+ const params = { base: _req["base"] };
1953
+ const headers = {
1954
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
1955
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
1956
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
1957
+ };
1958
+ return this.request({ url, method, params, headers }, options);
1959
+ }
1960
+ /**
1961
+ * DELETE /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/:jobID
1962
+ *
1963
+ * 删除标注任务
1964
+ */
1965
+ DeleteAnnotationJob(req, options) {
1966
+ const _req = req;
1967
+ const url = this.genBaseURL(
1968
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/${_req["jobID"]}`
1969
+ );
1970
+ const method = "DELETE";
1971
+ const params = { base: _req["base"] };
1972
+ return this.request({ url, method, params }, options);
1973
+ }
1974
+ /**
1975
+ * POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/annotation_jobs/preview
1976
+ *
1977
+ * 预览标注任务效果
1978
+ */
1979
+ PreviewAnnotation(req, options) {
1980
+ const _req = req;
1981
+ const url = this.genBaseURL(
1982
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/annotation_jobs/preview`
1983
+ );
1984
+ const method = "POST";
1985
+ const data = {
1986
+ job: _req["job"],
1987
+ fields: _req["fields"],
1988
+ base: _req["base"]
1989
+ };
1990
+ return this.request({ url, method, data }, options);
1991
+ }
1992
+ /**
1993
+ * POST /api/ml_flow/v2/spaces/:spaceID/annotation_jobs/search
1994
+ *
1995
+ * 搜索标注任务
1996
+ */
1997
+ SearchAnnotationJobs(req, options) {
1998
+ const _req = req;
1999
+ const url = this.genBaseURL(
2000
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/annotation_jobs/search`
2001
+ );
2002
+ const method = "POST";
2003
+ const data = {
2004
+ nameLike: _req["nameLike"],
2005
+ page: _req["page"],
2006
+ pageSize: _req["pageSize"],
2007
+ cursor: _req["cursor"],
2008
+ orderBy: _req["orderBy"],
2009
+ base: _req["base"]
2010
+ };
2011
+ return this.request({ url, method, data }, options);
2012
+ }
2013
+ /**
2014
+ * POST /api/ml_flow/v1/batch_infer/list_model_cards
2015
+ *
2016
+ * 获取模型card列表
2017
+ */
2018
+ ListModelCards(req, options) {
2019
+ const _req = req || {};
2020
+ const url = this.genBaseURL("/api/ml_flow/v1/batch_infer/list_model_cards");
2021
+ const method = "POST";
2022
+ const data = {
2023
+ provider: _req["provider"],
2024
+ nameKeyword: _req["nameKeyword"],
2025
+ userJwtToken: _req["userJwtToken"],
2026
+ limit: _req["limit"],
2027
+ offset: _req["offset"],
2028
+ base: _req["base"]
2029
+ };
2030
+ return this.request({ url, method, data }, options);
2031
+ }
2032
+ /**
2033
+ * POST /api/ml_flow/v1/batch_infer/parse_model_config
2034
+ *
2035
+ * 解析模型配置
2036
+ */
2037
+ ParseModelConfig(req, options) {
2038
+ const _req = req || {};
2039
+ const url = this.genBaseURL(
2040
+ "/api/ml_flow/v1/batch_infer/parse_model_config"
2041
+ );
2042
+ const method = "POST";
2043
+ const data = {
2044
+ provider: _req["provider"],
2045
+ seedHdfsAddress: _req["seedHdfsAddress"],
2046
+ seedModelCardID: _req["seedModelCardID"],
2047
+ userJwtToken: _req["userJwtToken"],
2048
+ base: _req["base"]
2049
+ };
2050
+ return this.request({ url, method, data }, options);
2051
+ }
2052
+ /**
2053
+ * POST /api/ml_flow/v1/batch_infer/get_recommend_resource
2054
+ *
2055
+ * 根据模型card获得推荐的merlin资源信息
2056
+ */
2057
+ GetRecommendResource(req, options) {
2058
+ const _req = req || {};
2059
+ const url = this.genBaseURL(
2060
+ "/api/ml_flow/v1/batch_infer/get_recommend_resource"
2061
+ );
2062
+ const method = "POST";
2063
+ const data = {
2064
+ modelCardID: _req["modelCardID"],
2065
+ userJwtToken: _req["userJwtToken"],
2066
+ base: _req["base"]
2067
+ };
2068
+ return this.request({ url, method, data }, options);
2069
+ }
2070
+ /**
2071
+ * GET /api/ml_flow/v2/spaces/:spaceID/tags/spec
2072
+ *
2073
+ * 获取spaceid维度标签配置
2074
+ */
2075
+ GetTagSpec(req, options) {
2076
+ const _req = req;
2077
+ const url = this.genBaseURL(
2078
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/tags/spec`
2079
+ );
2080
+ const method = "GET";
2081
+ return this.request({ url, method }, options);
2082
+ }
2083
+ /** POST /open-api/ml_flow/v2/datasets */
2084
+ OpenCreateDataset(req, options) {
2085
+ const _req = req;
2086
+ const url = this.genBaseURL("/open-api/ml_flow/v2/datasets");
2087
+ const method = "POST";
2088
+ const data = {
2089
+ name: _req["name"],
2090
+ description: _req["description"],
2091
+ fields: _req["fields"],
2092
+ base: _req["base"]
2093
+ };
2094
+ const headers = {
2095
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
2096
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
2097
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
2098
+ };
2099
+ return this.request({ url, method, data, headers }, options);
2100
+ }
2101
+ /** GET /api/ml_flow/v1/data_process/user_script_template */
2102
+ GetUserScriptTemplate(req, options) {
2103
+ const _req = req || {};
2104
+ const url = this.genBaseURL(
2105
+ "/api/ml_flow/v1/data_process/user_script_template"
2106
+ );
2107
+ const method = "GET";
2108
+ const params = { template_type: _req["template_type"], base: _req["base"] };
2109
+ return this.request({ url, method, params }, options);
2110
+ }
2111
+ /** POST /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/crowdsourcing_annotate_jobs/:jobID/terminate */
2112
+ TerminateCrowdsourcingAnnotateJob(req, options) {
2113
+ const _req = req;
2114
+ const url = this.genBaseURL(
2115
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/crowdsourcing_annotate_jobs/${_req["jobID"]}/terminate`
2116
+ );
2117
+ const method = "POST";
2118
+ const data = { base: _req["base"] };
2119
+ return this.request({ url, method, data }, options);
2120
+ }
2121
+ /** GET /api/ml_flow/v2/spaces/:spaceID/crowdsourcing_annotate_jobs/:jobID/refresh */
2122
+ RefreshCrowdsourcingAnnotateJob(req, options) {
2123
+ const _req = req;
2124
+ const url = this.genBaseURL(
2125
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/crowdsourcing_annotate_jobs/${_req["jobID"]}/refresh`
2126
+ );
2127
+ const method = "GET";
2128
+ const params = { base: _req["base"] };
2129
+ return this.request({ url, method, params }, options);
2130
+ }
2131
+ /** DELETE /api/ml_flow/v2/spaces/:spaceID/datasets/:datasetID/crowdsourcing_annotate_jobs/:jobID */
2132
+ DeleteCrowdsourcingAnnotateJob(req, options) {
2133
+ const _req = req;
2134
+ const url = this.genBaseURL(
2135
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/datasets/${_req["datasetID"]}/crowdsourcing_annotate_jobs/${_req["jobID"]}`
2136
+ );
2137
+ const method = "DELETE";
2138
+ const params = { base: _req["base"] };
2139
+ return this.request({ url, method, params }, options);
2140
+ }
2141
+ /** POST /api/ml_flow/v2/spaces/:spaceID/crowdsourcing_annotate_jobs/list */
2142
+ ListCrowdsourcingAnnotateJob(req, options) {
2143
+ const _req = req;
2144
+ const url = this.genBaseURL(
2145
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/crowdsourcing_annotate_jobs/list`
2146
+ );
2147
+ const method = "POST";
2148
+ const data = {
2149
+ searchConfig: _req["searchConfig"],
2150
+ page: _req["page"],
2151
+ pageSize: _req["pageSize"],
2152
+ base: _req["base"]
2153
+ };
2154
+ return this.request({ url, method, data }, options);
2155
+ }
2156
+ /** GET /api/ml_flow/v2/spaces/:spaceID/crowdsourcing_annotate_jobs/authorized_aidp_info */
2157
+ ListAuthorizedAIDPTaskSummaries(req, options) {
2158
+ const _req = req;
2159
+ const url = this.genBaseURL(
2160
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/crowdsourcing_annotate_jobs/authorized_aidp_info`
2161
+ );
2162
+ const method = "GET";
2163
+ const params = {
2164
+ platform: _req["platform"],
2165
+ keyword: _req["keyword"],
2166
+ base: _req["base"]
2167
+ };
2168
+ return this.request({ url, method, params }, options);
2169
+ }
2170
+ /** GET /api/ml_flow/v2/spaces/:spaceID/templateID/:templateID/answer_schema */
2171
+ GetAnswerSchema(req, options) {
2172
+ const _req = req;
2173
+ const url = this.genBaseURL(
2174
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/templateID/${_req["templateID"]}/answer_schema`
2175
+ );
2176
+ const method = "GET";
2177
+ const params = { platform: _req["platform"], base: _req["base"] };
2178
+ return this.request({ url, method, params }, options);
2179
+ }
2180
+ /**
2181
+ * POST /api/ml_flow/v1/spaces/:space_id/batch_infer/:task_id
2182
+ *
2183
+ * 获取批量推理任务详情
2184
+ */
2185
+ GetBatchInferTask(req, options) {
2186
+ const _req = req || {};
2187
+ const url = this.genBaseURL(
2188
+ `/api/ml_flow/v1/spaces/${_req["space_id"]}/batch_infer/${_req["task_id"]}`
2189
+ );
2190
+ const method = "POST";
2191
+ const data = { userJwtToken: _req["userJwtToken"], base: _req["base"] };
2192
+ return this.request({ url, method, data }, options);
2193
+ }
2194
+ /** GET /open-api/ml_flow/v2/batch_infer/spaces/:space_id/tasks/:task_id */
2195
+ OpenGetBatchInferTask(req, options) {
2196
+ const _req = req || {};
2197
+ const url = this.genBaseURL(
2198
+ `/open-api/ml_flow/v2/batch_infer/spaces/${_req["space_id"]}/tasks/${_req["task_id"]}`
2199
+ );
2200
+ const method = "GET";
2201
+ const params = { userJwtToken: _req["userJwtToken"], base: _req["base"] };
2202
+ return this.request({ url, method, params }, options);
2203
+ }
2204
+ /** POST /open-api/ml_flow/v2/batch_infer/spaces/:space_id/tasks/:task_id/report_progress */
2205
+ OpenReportBatchInferProgress(req, options) {
2206
+ const _req = req || {};
2207
+ const url = this.genBaseURL(
2208
+ `/open-api/ml_flow/v2/batch_infer/spaces/${_req["space_id"]}/tasks/${_req["task_id"]}/report_progress`
2209
+ );
2210
+ const method = "POST";
2211
+ const data = { errorMsg: _req["errorMsg"], base: _req["base"] };
2212
+ return this.request({ url, method, data }, options);
2213
+ }
2214
+ /** POST /api/ml_flow/v2/spaces/:spaceID/crowdsourcing_annotate_jobs */
2215
+ CreateCrowdsourcingAnnotateJob(req, options) {
2216
+ const _req = req;
2217
+ const url = this.genBaseURL(
2218
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/crowdsourcing_annotate_jobs`
2219
+ );
2220
+ const method = "POST";
2221
+ const data = {
2222
+ name: _req["name"],
2223
+ description: _req["description"],
2224
+ platform: _req["platform"],
2225
+ aidpConfig: _req["aidpConfig"],
2226
+ inputConfig: _req["inputConfig"],
2227
+ outputConfig: _req["outputConfig"],
2228
+ base: _req["base"]
2229
+ };
2230
+ return this.request({ url, method, data }, options);
2231
+ }
2232
+ /**
2233
+ * POST /open-api/ml_flow/v2/parse_import_source_file
2234
+ *
2235
+ * 解析导入文件的列配置
2236
+ */
2237
+ OpenParseImportSourceFile(req, options) {
2238
+ const _req = req || {};
2239
+ const url = this.genBaseURL(
2240
+ "/open-api/ml_flow/v2/parse_import_source_file"
2241
+ );
2242
+ const method = "POST";
2243
+ const data = { file: _req["file"], base: _req["base"] };
2244
+ const headers = {
2245
+ "FlowDevops-Agw-OpenAPI-AppId": _req["FlowDevops-Agw-OpenAPI-AppId"],
2246
+ "FlowDevops-Agw-OpenAPI-SpaceId": _req["FlowDevops-Agw-OpenAPI-SpaceId"],
2247
+ "FlowDevops-Agw-OpenAPI-AccountId": _req["FlowDevops-Agw-OpenAPI-AccountId"]
2248
+ };
2249
+ return this.request({ url, method, data, headers }, options);
2250
+ }
2251
+ /** GET /api/ml_flow/v2/spaces/:spaceID/taskID/:taskID/aidp_flow_config */
2252
+ GetAIDPTaskConfig(req, options) {
2253
+ const _req = req;
2254
+ const url = this.genBaseURL(
2255
+ `/api/ml_flow/v2/spaces/${_req["spaceID"]}/taskID/${_req["taskID"]}/aidp_flow_config`
2256
+ );
2257
+ const method = "GET";
2258
+ const params = { platform: _req["platform"], base: _req["base"] };
2259
+ return this.request({ url, method, params }, options);
2260
+ }
2261
+ }
2262
+ export {
2263
+ ai_annotate,
2264
+ aidpcallback,
2265
+ annotation_job,
2266
+ base,
2267
+ batch_infer,
2268
+ dataprocess,
2269
+ dataset,
2270
+ datasetv2,
2271
+ datasetv2job,
2272
+ datasetv2similarity,
2273
+ FornaxMlFlow2Service as default,
2274
+ filter,
2275
+ flow_devops_evaluation_callback_common,
2276
+ flow_devops_prompt_common,
2277
+ fornax_domain_model,
2278
+ ml_flow_domain_model,
2279
+ openapi,
2280
+ stone_fornax_ml_flow_annotateservice,
2281
+ stone_fornax_ml_flow_annotationjobservice,
2282
+ stone_fornax_ml_flow_batchinferservice,
2283
+ stone_fornax_ml_flow_crowdsourcingannotationjobservice,
2284
+ stone_fornax_ml_flow_dataprocessservice,
2285
+ stone_fornax_ml_flow_datasetservice,
2286
+ stone_fornax_ml_flow_datasetservicev2,
2287
+ stone_fornax_ml_flow_modelservice,
2288
+ stone_fornax_ml_flow_openapi_annotationjobservice,
2289
+ stone_fornax_ml_flow_openapi_batchinferservice,
2290
+ stone_fornax_ml_flow_openapi_datasetservicev2,
2291
+ stone_fornax_ml_flow_tagservice,
2292
+ tag
2293
+ };