@cozeloop/prompt-components 0.0.1 → 0.0.3

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