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