@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,2009 @@
1
+ import * as base from "./namespaces/base";
2
+ import * as flow_devops_prompt_callback from "./namespaces/flow_devops_prompt_callback";
3
+ import * as flow_devops_prompt_commercial_openapi from "./namespaces/flow_devops_prompt_commercial_openapi";
4
+ import * as flow_devops_prompt_common from "./namespaces/flow_devops_prompt_common";
5
+ import * as flow_devops_prompt_debug from "./namespaces/flow_devops_prompt_debug";
6
+ import * as flow_devops_prompt_manage from "./namespaces/flow_devops_prompt_manage";
7
+ import * as flow_devops_prompt_mcp from "./namespaces/flow_devops_prompt_mcp";
8
+ import * as flow_devops_prompt_optimize from "./namespaces/flow_devops_prompt_optimize";
9
+ import * as flow_devops_prompt_paas from "./namespaces/flow_devops_prompt_paas";
10
+ import * as flow_devops_prompt_platform from "./namespaces/flow_devops_prompt_platform";
11
+ import * as mcp from "./namespaces/mcp";
12
+ import * as model from "./namespaces/model";
13
+ import * as permission from "./namespaces/permission";
14
+ import * as release from "./namespaces/release";
15
+ export * from "./namespaces/base";
16
+ export * from "./namespaces/flow_devops_prompt_callback";
17
+ export * from "./namespaces/flow_devops_prompt_commercial_openapi";
18
+ export * from "./namespaces/flow_devops_prompt_common";
19
+ export * from "./namespaces/flow_devops_prompt_debug";
20
+ export * from "./namespaces/flow_devops_prompt_manage";
21
+ export * from "./namespaces/flow_devops_prompt_mcp";
22
+ export * from "./namespaces/flow_devops_prompt_optimize";
23
+ export * from "./namespaces/flow_devops_prompt_paas";
24
+ export * from "./namespaces/flow_devops_prompt_platform";
25
+ export * from "./namespaces/mcp";
26
+ export * from "./namespaces/model";
27
+ export * from "./namespaces/permission";
28
+ export * from "./namespaces/release";
29
+ class PromptApiService {
30
+ constructor(options) {
31
+ this.request = () => {
32
+ throw new Error("PromptApiService.request is undefined");
33
+ };
34
+ this.baseURL = "";
35
+ this.request = (options == null ? void 0 : options.request) || this.request;
36
+ this.baseURL = (options == null ? void 0 : options.baseURL) || "";
37
+ }
38
+ genBaseURL(path) {
39
+ return typeof this.baseURL === "string" ? this.baseURL + path : this.baseURL(path);
40
+ }
41
+ /**
42
+ * @deprecated
43
+ *
44
+ * POST /api/devops/prompt_platform/v1/auth/permission/check
45
+ *
46
+ * 批量鉴权函数,支持服务端和前端调用
47
+ */
48
+ MCheckPermission(req, options) {
49
+ const _req = req || {};
50
+ const url = this.genBaseURL(
51
+ "/api/devops/prompt_platform/v1/auth/permission/check"
52
+ );
53
+ const method = "POST";
54
+ const data = {
55
+ auths: _req["auths"],
56
+ app_id: _req["app_id"],
57
+ base: _req["base"]
58
+ };
59
+ return this.request({ url, method, data }, options);
60
+ }
61
+ /**
62
+ * POST /api/devops/prompt_platform/v1/prompt/version/revert
63
+ *
64
+ * Prompt历史版本回滚
65
+ */
66
+ RevertPromptByVersion(req, options) {
67
+ const _req = req;
68
+ const url = this.genBaseURL(
69
+ "/api/devops/prompt_platform/v1/prompt/version/revert"
70
+ );
71
+ const method = "POST";
72
+ const data = {
73
+ prompt_id: _req["prompt_id"],
74
+ version: _req["version"],
75
+ space_id: _req["space_id"],
76
+ personal_draft: _req["personal_draft"],
77
+ base: _req["base"]
78
+ };
79
+ return this.request({ url, method, data }, options);
80
+ }
81
+ /**
82
+ * @deprecated
83
+ *
84
+ * POST /api/devops/prompt_platform/v1/space/update
85
+ *
86
+ * 更新空间
87
+ */
88
+ UpdateSpace(req, options) {
89
+ const _req = req;
90
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/space/update");
91
+ const method = "POST";
92
+ const data = {
93
+ space_id: _req["space_id"],
94
+ name: _req["name"],
95
+ description: _req["description"],
96
+ release_approval_config: _req["release_approval_config"],
97
+ base: _req["base"]
98
+ };
99
+ return this.request({ url, method, data }, options);
100
+ }
101
+ /** POST /api/devops/prompt_platform/v1/prompt/create */
102
+ CreatePrompt(req, options) {
103
+ const _req = req;
104
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/create");
105
+ const method = "POST";
106
+ const data = {
107
+ space_id: _req["space_id"],
108
+ prompt_type: _req["prompt_type"],
109
+ display_name: _req["display_name"],
110
+ prompt_key: _req["prompt_key"],
111
+ description: _req["description"],
112
+ model_config: _req["model_config"],
113
+ prompt_text: _req["prompt_text"],
114
+ prompt_input: _req["prompt_input"],
115
+ labels: _req["labels"],
116
+ tools: _req["tools"],
117
+ security_level: _req["security_level"],
118
+ tool_call_config: _req["tool_call_config"],
119
+ template_type: _req["template_type"],
120
+ metadata: _req["metadata"],
121
+ tag_ids: _req["tag_ids"],
122
+ mcp_servers: _req["mcp_servers"],
123
+ base: _req["base"]
124
+ };
125
+ return this.request({ url, method, data }, options);
126
+ }
127
+ /**
128
+ * POST /api/devops/prompt_platform/v1/prompt/version/list
129
+ *
130
+ * Prompt发布历史版本
131
+ */
132
+ ListPromptVersion(req, options) {
133
+ const _req = req;
134
+ const url = this.genBaseURL(
135
+ "/api/devops/prompt_platform/v1/prompt/version/list"
136
+ );
137
+ const method = "POST";
138
+ const data = {
139
+ prompt_id: _req["prompt_id"],
140
+ cursor: _req["cursor"],
141
+ space_id: _req["space_id"],
142
+ filter_draft: _req["filter_draft"],
143
+ page_size: _req["page_size"],
144
+ version_like: _req["version_like"],
145
+ base: _req["base"]
146
+ };
147
+ return this.request({ url, method, data }, options);
148
+ }
149
+ /**
150
+ * POST /api/devops/prompt_platform/v1/prompt/mock_context/save
151
+ *
152
+ * 保存mock上下文
153
+ */
154
+ SaveMockContext(req, options) {
155
+ const _req = req;
156
+ const url = this.genBaseURL(
157
+ "/api/devops/prompt_platform/v1/prompt/mock_context/save"
158
+ );
159
+ const method = "POST";
160
+ const data = {
161
+ prompt_id: _req["prompt_id"],
162
+ contexts: _req["contexts"],
163
+ space_id: _req["space_id"],
164
+ variables: _req["variables"],
165
+ user_debug_config: _req["user_debug_config"],
166
+ compare_config: _req["compare_config"],
167
+ contexts_v2: _req["contexts_v2"],
168
+ base: _req["base"]
169
+ };
170
+ return this.request({ url, method, data }, options);
171
+ }
172
+ /**
173
+ * @deprecated
174
+ *
175
+ * POST /api/devops/prompt_platform/v1/user/session
176
+ *
177
+ * 登录态换取用户信息
178
+ */
179
+ GetSessionInfo(req, options) {
180
+ const _req = req || {};
181
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/user/session");
182
+ const method = "POST";
183
+ const data = { base: _req["base"] };
184
+ return this.request({ url, method, data }, options);
185
+ }
186
+ /**
187
+ * POST /api/devops/prompt_platform/v1/prompt/get
188
+ *
189
+ * 获取Prompt
190
+ */
191
+ GetPrompt(req, options) {
192
+ const _req = req;
193
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/get");
194
+ const method = "POST";
195
+ const data = {
196
+ prompt_id: _req["prompt_id"],
197
+ version: _req["version"],
198
+ space_id: _req["space_id"],
199
+ personal_draft: _req["personal_draft"],
200
+ base: _req["base"]
201
+ };
202
+ return this.request({ url, method, data }, options);
203
+ }
204
+ /**
205
+ * @deprecated
206
+ *
207
+ * POST /api/devops/prompt_platform/v1/user/batch_get
208
+ *
209
+ * 批量获取用户信息
210
+ */
211
+ MGetUserInfo(req, options) {
212
+ const _req = req || {};
213
+ const url = this.genBaseURL(
214
+ "/api/devops/prompt_platform/v1/user/batch_get"
215
+ );
216
+ const method = "POST";
217
+ const data = {
218
+ user_ids: _req["user_ids"],
219
+ user_names: _req["user_names"],
220
+ base: _req["base"]
221
+ };
222
+ return this.request({ url, method, data }, options);
223
+ }
224
+ /**
225
+ * @deprecated
226
+ *
227
+ * POST /api/devops/prompt_platform/v1/space/list_by_user
228
+ *
229
+ * 空间列表
230
+ */
231
+ ListUserSpace(req, options) {
232
+ const _req = req || {};
233
+ const url = this.genBaseURL(
234
+ "/api/devops/prompt_platform/v1/space/list_by_user"
235
+ );
236
+ const method = "POST";
237
+ const data = { base: _req["base"] };
238
+ return this.request({ url, method, data }, options);
239
+ }
240
+ /**
241
+ * @deprecated
242
+ *
243
+ * POST /api/devops/prompt_platform/v1/space/member/query
244
+ *
245
+ * 查询空间成员列表
246
+ */
247
+ QuerySpaceMember(req, options) {
248
+ const _req = req;
249
+ const url = this.genBaseURL(
250
+ "/api/devops/prompt_platform/v1/space/member/query"
251
+ );
252
+ const method = "POST";
253
+ const data = {
254
+ space_id: _req["space_id"],
255
+ role_type: _req["role_type"],
256
+ page: _req["page"],
257
+ page_size: _req["page_size"],
258
+ base: _req["base"]
259
+ };
260
+ return this.request({ url, method, data }, options);
261
+ }
262
+ /**
263
+ * @deprecated
264
+ *
265
+ * POST /api/devops/prompt_platform/v1/space/member/add
266
+ *
267
+ * 空间角色授权
268
+ */
269
+ AddSpaceMember(req, options) {
270
+ const _req = req;
271
+ const url = this.genBaseURL(
272
+ "/api/devops/prompt_platform/v1/space/member/add"
273
+ );
274
+ const method = "POST";
275
+ const data = {
276
+ space_id: _req["space_id"],
277
+ space_members: _req["space_members"],
278
+ base: _req["base"]
279
+ };
280
+ return this.request({ url, method, data }, options);
281
+ }
282
+ /**
283
+ * @deprecated
284
+ *
285
+ * POST /api/devops/prompt_platform/v1/user/query
286
+ *
287
+ * 模糊搜索用户信息
288
+ */
289
+ QueryUserInfo(req, options) {
290
+ const _req = req;
291
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/user/query");
292
+ const method = "POST";
293
+ const data = {
294
+ name_like: _req["name_like"],
295
+ page_size: _req["page_size"],
296
+ page_token: _req["page_token"],
297
+ base: _req["base"]
298
+ };
299
+ return this.request({ url, method, data }, options);
300
+ }
301
+ /**
302
+ * POST /api/devops/prompt_platform/v1/prompt/save
303
+ *
304
+ * 保存Prompt
305
+ */
306
+ SavePrompt(req, options) {
307
+ const _req = req;
308
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/save");
309
+ const method = "POST";
310
+ const data = {
311
+ prompt_id: _req["prompt_id"],
312
+ model_config: _req["model_config"],
313
+ prompt_text: _req["prompt_text"],
314
+ prompt_input: _req["prompt_input"],
315
+ version: _req["version"],
316
+ space_id: _req["space_id"],
317
+ prompt_type: _req["prompt_type"],
318
+ draft_base_version: _req["draft_base_version"],
319
+ tools: _req["tools"],
320
+ tool_call_config: _req["tool_call_config"],
321
+ template_type: _req["template_type"],
322
+ metadata: _req["metadata"],
323
+ mcp_servers: _req["mcp_servers"],
324
+ base: _req["base"]
325
+ };
326
+ return this.request({ url, method, data }, options);
327
+ }
328
+ /**
329
+ * @deprecated
330
+ *
331
+ * POST /api/devops/prompt_platform/v1/space/member/remove
332
+ *
333
+ * 空间角色取消授权
334
+ */
335
+ RemoveSpaceMember(req, options) {
336
+ const _req = req;
337
+ const url = this.genBaseURL(
338
+ "/api/devops/prompt_platform/v1/space/member/remove"
339
+ );
340
+ const method = "POST";
341
+ const data = {
342
+ space_id: _req["space_id"],
343
+ space_members: _req["space_members"],
344
+ base: _req["base"]
345
+ };
346
+ return this.request({ url, method, data }, options);
347
+ }
348
+ /**
349
+ * @deprecated
350
+ *
351
+ * POST /api/devops/prompt_platform/v1/user/logout
352
+ *
353
+ * 用户登出
354
+ */
355
+ Logout(req, options) {
356
+ const _req = req || {};
357
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/user/logout");
358
+ const method = "POST";
359
+ const data = { base: _req["base"] };
360
+ return this.request({ url, method, data }, options);
361
+ }
362
+ /**
363
+ * @deprecated
364
+ *
365
+ * POST /api/devops/prompt_platform/v1/user/info
366
+ *
367
+ * 获取用户信息
368
+ */
369
+ GetUserInfo(req, options) {
370
+ const _req = req || {};
371
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/user/info");
372
+ const method = "POST";
373
+ const data = {
374
+ user_id: _req["user_id"],
375
+ user_name: _req["user_name"],
376
+ base: _req["base"]
377
+ };
378
+ return this.request({ url, method, data }, options);
379
+ }
380
+ /**
381
+ * @deprecated
382
+ *
383
+ * POST /api/devops/prompt_platform/v1/space/create
384
+ *
385
+ * --------------- 空间管理模块 ---------------
386
+ *
387
+ * 创建空间
388
+ */
389
+ CreateSpace(req, options) {
390
+ const _req = req;
391
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/space/create");
392
+ const method = "POST";
393
+ const data = {
394
+ name: _req["name"],
395
+ description: _req["description"],
396
+ space_type: _req["space_type"],
397
+ base: _req["base"]
398
+ };
399
+ return this.request({ url, method, data }, options);
400
+ }
401
+ /**
402
+ * POST /api/devops/prompt_platform/v1/prompt/publish
403
+ *
404
+ * 发布Prompt
405
+ */
406
+ PublishPrompt(req, options) {
407
+ const _req = req;
408
+ const url = this.genBaseURL(
409
+ "/api/devops/prompt_platform/v1/prompt/publish"
410
+ );
411
+ const method = "POST";
412
+ const data = {
413
+ prompt_id: _req["prompt_id"],
414
+ version: _req["version"],
415
+ publish_description: _req["publish_description"],
416
+ space_id: _req["space_id"],
417
+ personal_draft: _req["personal_draft"],
418
+ draft_base_version: _req["draft_base_version"],
419
+ base: _req["base"]
420
+ };
421
+ return this.request({ url, method, data }, options);
422
+ }
423
+ /**
424
+ * POST /api/devops/prompt_platform/v1/prompt/mock_context/get
425
+ *
426
+ * 获取mock上下文
427
+ */
428
+ GetMockContext(req, options) {
429
+ const _req = req;
430
+ const url = this.genBaseURL(
431
+ "/api/devops/prompt_platform/v1/prompt/mock_context/get"
432
+ );
433
+ const method = "POST";
434
+ const data = {
435
+ prompt_id: _req["prompt_id"],
436
+ space_id: _req["space_id"],
437
+ base: _req["base"]
438
+ };
439
+ return this.request({ url, method, data }, options);
440
+ }
441
+ /**
442
+ * @deprecated
443
+ *
444
+ * GET /api/devops/prompt_platform/v1/user/login
445
+ *
446
+ * --------------- 用户模块 ---------------
447
+ *
448
+ * 用户登录
449
+ */
450
+ Login(req, options) {
451
+ const _req = req || {};
452
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/user/login");
453
+ const method = "GET";
454
+ const params = {
455
+ code: _req["code"],
456
+ state: _req["state"],
457
+ session_id: _req["session_id"],
458
+ base: _req["base"]
459
+ };
460
+ return this.request({ url, method, params }, options);
461
+ }
462
+ /**
463
+ * POST /api/devops/prompt_platform/v1/prompt/send_message
464
+ *
465
+ * 非流式调试运行
466
+ */
467
+ SendMessage(req, options) {
468
+ const _req = req;
469
+ const url = this.genBaseURL(
470
+ "/api/devops/prompt_platform/v1/prompt/send_message"
471
+ );
472
+ const method = "POST";
473
+ const data = {
474
+ prompt: _req["prompt"],
475
+ message: _req["message"],
476
+ contexts: _req["contexts"],
477
+ variables: _req["variables"],
478
+ space_id: _req["space_id"],
479
+ single_step_debug: _req["single_step_debug"],
480
+ debug_trace_key: _req["debug_trace_key"],
481
+ mcp_execute_config: _req["mcp_execute_config"],
482
+ base: _req["base"]
483
+ };
484
+ return this.request({ url, method, data }, options);
485
+ }
486
+ /**
487
+ * POST /api/devops/prompt_platform/v1/prompt/delete
488
+ *
489
+ * 删除Prompt
490
+ */
491
+ DeletePrompt(req, options) {
492
+ const _req = req;
493
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/delete");
494
+ const method = "POST";
495
+ const data = {
496
+ prompt_id: _req["prompt_id"],
497
+ space_id: _req["space_id"],
498
+ base: _req["base"]
499
+ };
500
+ return this.request({ url, method, data }, options);
501
+ }
502
+ /**
503
+ * @deprecated
504
+ *
505
+ * POST /api/devops/prompt_platform/v1/component/auth
506
+ *
507
+ * 组件鉴权
508
+ */
509
+ AuthComponentSDK(req, options) {
510
+ const _req = req || {};
511
+ const url = this.genBaseURL(
512
+ "/api/devops/prompt_platform/v1/component/auth"
513
+ );
514
+ const method = "POST";
515
+ const data = {
516
+ noncestr: _req["noncestr"],
517
+ timestamp: _req["timestamp"],
518
+ url: _req["url"],
519
+ base: _req["base"]
520
+ };
521
+ return this.request({ url, method, data }, options);
522
+ }
523
+ /**
524
+ * POST /api/devops/prompt_platform/v1/model/list_available
525
+ *
526
+ * 获取可用模型列表
527
+ */
528
+ ListAvailableModel(req, options) {
529
+ const _req = req || {};
530
+ const url = this.genBaseURL(
531
+ "/api/devops/prompt_platform/v1/model/list_available"
532
+ );
533
+ const method = "POST";
534
+ const data = { base: _req["base"] };
535
+ return this.request({ url, method, data }, options);
536
+ }
537
+ /**
538
+ * POST /api/devops/prompt_platform/v1/prompt/update
539
+ *
540
+ * 更新Prompt
541
+ */
542
+ UpdatePrompt(req, options) {
543
+ const _req = req;
544
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/update");
545
+ const method = "POST";
546
+ const data = {
547
+ prompt_id: _req["prompt_id"],
548
+ display_name: _req["display_name"],
549
+ description: _req["description"],
550
+ space_id: _req["space_id"],
551
+ labels: _req["labels"],
552
+ security_level: _req["security_level"],
553
+ downgrade_reason: _req["downgrade_reason"],
554
+ tag_ids: _req["tag_ids"],
555
+ base: _req["base"]
556
+ };
557
+ return this.request({ url, method, data }, options);
558
+ }
559
+ /**
560
+ * @deprecated
561
+ *
562
+ * POST /api/devops/prompt_platform/v1/space/get
563
+ *
564
+ * 查询空间信息
565
+ */
566
+ GetSpace(req, options) {
567
+ const _req = req;
568
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/space/get");
569
+ const method = "POST";
570
+ const data = { space_id: _req["space_id"], base: _req["base"] };
571
+ return this.request({ url, method, data }, options);
572
+ }
573
+ /**
574
+ * @deprecated
575
+ *
576
+ * POST /api/devops/prompt_platform/v1/space/get_user_roles
577
+ *
578
+ * 获取用户空间权限
579
+ */
580
+ GetUserSpaceRoles(req, options) {
581
+ const _req = req;
582
+ const url = this.genBaseURL(
583
+ "/api/devops/prompt_platform/v1/space/get_user_roles"
584
+ );
585
+ const method = "POST";
586
+ const data = { space_id: _req["space_id"], base: _req["base"] };
587
+ return this.request({ url, method, data }, options);
588
+ }
589
+ /**
590
+ * POST /api/devops/prompt_platform/v1/prompt/list
591
+ *
592
+ * Prompt列表
593
+ */
594
+ ListPrompt(req, options) {
595
+ const _req = req;
596
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/list");
597
+ const method = "POST";
598
+ const data = {
599
+ space_id: _req["space_id"],
600
+ page: _req["page"],
601
+ page_size: _req["page_size"],
602
+ key_word: _req["key_word"],
603
+ creator: _req["creator"],
604
+ filter_prompt_types: _req["filter_prompt_types"],
605
+ publish_statuses: _req["publish_statuses"],
606
+ tag_ids: _req["tag_ids"],
607
+ order_param: _req["order_param"],
608
+ creator_list: _req["creator_list"],
609
+ base: _req["base"]
610
+ };
611
+ return this.request({ url, method, data }, options);
612
+ }
613
+ /**
614
+ * POST /api/devops/prompt_platform/v1/prompt/execute
615
+ *
616
+ * 非流式调试运行
617
+ */
618
+ Execute(req, options) {
619
+ const _req = req || {};
620
+ const url = this.genBaseURL(
621
+ "/api/devops/prompt_platform/v1/prompt/execute"
622
+ );
623
+ const method = "POST";
624
+ const data = {
625
+ prompt_key: _req["prompt_key"],
626
+ prompt_id: _req["prompt_id"],
627
+ version: _req["version"],
628
+ message: _req["message"],
629
+ contexts: _req["contexts"],
630
+ variables: _req["variables"],
631
+ account_mode: _req["account_mode"],
632
+ custom_accounts: _req["custom_accounts"],
633
+ single_step_debug: _req["single_step_debug"],
634
+ debug_trace_key: _req["debug_trace_key"],
635
+ usage_scenario: _req["usage_scenario"],
636
+ traffic: _req["traffic"],
637
+ request_extra: _req["request_extra"],
638
+ custom_model_config: _req["custom_model_config"],
639
+ release_label: _req["release_label"],
640
+ mcp_execute_config: _req["mcp_execute_config"],
641
+ base: _req["base"]
642
+ };
643
+ const headers = {
644
+ token: _req["token"],
645
+ "Agw-Auth": _req["Agw-Auth"],
646
+ Authorization: _req["Authorization"]
647
+ };
648
+ return this.request({ url, method, data, headers }, options);
649
+ }
650
+ /**
651
+ * POST /api/devops/prompt_platform/v1/prompt/streaming_send_message
652
+ *
653
+ * 流式调试运行
654
+ */
655
+ StreamingSendMessage(req, options) {
656
+ const _req = req;
657
+ const url = this.genBaseURL(
658
+ "/api/devops/prompt_platform/v1/prompt/streaming_send_message"
659
+ );
660
+ const method = "POST";
661
+ const data = {
662
+ prompt: _req["prompt"],
663
+ message: _req["message"],
664
+ contexts: _req["contexts"],
665
+ variables: _req["variables"],
666
+ space_id: _req["space_id"],
667
+ single_step_debug: _req["single_step_debug"],
668
+ debug_trace_key: _req["debug_trace_key"],
669
+ mcp_execute_config: _req["mcp_execute_config"],
670
+ base: _req["base"]
671
+ };
672
+ return this.request({ url, method, data }, options);
673
+ }
674
+ /**
675
+ * POST /api/devops/prompt_platform/v1/prompt/streaming_execute
676
+ *
677
+ * 流式调试运行
678
+ */
679
+ StreamingExecute(req, options) {
680
+ const _req = req || {};
681
+ const url = this.genBaseURL(
682
+ "/api/devops/prompt_platform/v1/prompt/streaming_execute"
683
+ );
684
+ const method = "POST";
685
+ const data = {
686
+ prompt_key: _req["prompt_key"],
687
+ prompt_id: _req["prompt_id"],
688
+ version: _req["version"],
689
+ message: _req["message"],
690
+ contexts: _req["contexts"],
691
+ variables: _req["variables"],
692
+ account_mode: _req["account_mode"],
693
+ custom_accounts: _req["custom_accounts"],
694
+ single_step_debug: _req["single_step_debug"],
695
+ debug_trace_key: _req["debug_trace_key"],
696
+ usage_scenario: _req["usage_scenario"],
697
+ traffic: _req["traffic"],
698
+ request_extra: _req["request_extra"],
699
+ custom_model_config: _req["custom_model_config"],
700
+ release_label: _req["release_label"],
701
+ mcp_execute_config: _req["mcp_execute_config"],
702
+ base: _req["base"]
703
+ };
704
+ const headers = {
705
+ token: _req["token"],
706
+ "Agw-Auth": _req["Agw-Auth"],
707
+ Authorization: _req["Authorization"]
708
+ };
709
+ return this.request({ url, method, data, headers }, options);
710
+ }
711
+ /** POST /api/devops/prompt_platform/v1/prompt/chat_test */
712
+ ChatTest(req, options) {
713
+ const _req = req;
714
+ const url = this.genBaseURL(
715
+ "/api/devops/prompt_platform/v1/prompt/chat_test"
716
+ );
717
+ const method = "POST";
718
+ const data = {
719
+ prompt: _req["prompt"],
720
+ message: _req["message"],
721
+ contexts: _req["contexts"],
722
+ variables: _req["variables"],
723
+ space_id: _req["space_id"],
724
+ base: _req["base"]
725
+ };
726
+ return this.request({ url, method, data }, options);
727
+ }
728
+ /**
729
+ * POST /api/devops/prompt_platform/v1/prompt/list_label
730
+ *
731
+ * 获取标签列表
732
+ */
733
+ ListLabel(req, options) {
734
+ const _req = req || {};
735
+ const url = this.genBaseURL(
736
+ "/api/devops/prompt_platform/v1/prompt/list_label"
737
+ );
738
+ const method = "POST";
739
+ const data = { label_type: _req["label_type"], base: _req["base"] };
740
+ return this.request({ url, method, data }, options);
741
+ }
742
+ /**
743
+ * POST /api/devops/prompt_platform/v1/prompt/list_official
744
+ *
745
+ * 获取官方prompt列表
746
+ */
747
+ ListOfficialPrompt(req, options) {
748
+ const _req = req;
749
+ const url = this.genBaseURL(
750
+ "/api/devops/prompt_platform/v1/prompt/list_official"
751
+ );
752
+ const method = "POST";
753
+ const data = {
754
+ page: _req["page"],
755
+ page_size: _req["page_size"],
756
+ key_word: _req["key_word"],
757
+ labels: _req["labels"],
758
+ base: _req["base"]
759
+ };
760
+ return this.request({ url, method, data }, options);
761
+ }
762
+ /**
763
+ * POST /api/devops/prompt_platform/v1/prompt/report_event
764
+ *
765
+ * 事件上报
766
+ */
767
+ ReportEvent(req, options) {
768
+ const _req = req || {};
769
+ const url = this.genBaseURL(
770
+ "/api/devops/prompt_platform/v1/prompt/report_event"
771
+ );
772
+ const method = "POST";
773
+ const data = { report_event: _req["report_event"], base: _req["base"] };
774
+ return this.request({ url, method, data }, options);
775
+ }
776
+ /**
777
+ * POST /api/devops/prompt_platform/v1/prompt/generate
778
+ *
779
+ * 生成prompt
780
+ */
781
+ GeneratePrompt(req, options) {
782
+ const _req = req || {};
783
+ const url = this.genBaseURL(
784
+ "/api/devops/prompt_platform/v1/prompt/generate"
785
+ );
786
+ const method = "POST";
787
+ const data = {
788
+ generate_prompt_type: _req["generate_prompt_type"],
789
+ original_prompt: _req["original_prompt"],
790
+ prompt_name: _req["prompt_name"],
791
+ prompt_desc: _req["prompt_desc"],
792
+ prompt_key: _req["prompt_key"],
793
+ space_id: _req["space_id"],
794
+ prompt_id: _req["prompt_id"],
795
+ is_retry: _req["is_retry"],
796
+ structured_prompt_type: _req["structured_prompt_type"],
797
+ structured_context: _req["structured_context"],
798
+ user_message: _req["user_message"],
799
+ assistant_message: _req["assistant_message"],
800
+ variables: _req["variables"],
801
+ feedback: _req["feedback"],
802
+ base: _req["base"]
803
+ };
804
+ return this.request({ url, method, data }, options);
805
+ }
806
+ /**
807
+ * POST /api/devops/prompt_platform/v1/prompt/chat_with_bot
808
+ *
809
+ * Prompt Bot对话
810
+ */
811
+ ChatWithPromptBot(req, options) {
812
+ const _req = req || {};
813
+ const url = this.genBaseURL(
814
+ "/api/devops/prompt_platform/v1/prompt/chat_with_bot"
815
+ );
816
+ const method = "POST";
817
+ const data = {
818
+ message: _req["message"],
819
+ contexts: _req["contexts"],
820
+ get_next_guide: _req["get_next_guide"],
821
+ last_generated_prompt: _req["last_generated_prompt"],
822
+ prompt_name: _req["prompt_name"],
823
+ prompt_desc: _req["prompt_desc"],
824
+ base: _req["base"]
825
+ };
826
+ return this.request({ url, method, data }, options);
827
+ }
828
+ /**
829
+ * POST /api/devops/prompt_platform/v1/prompt/streaming_send_message_without_permission_check
830
+ *
831
+ * 流式调试运行for playground
832
+ */
833
+ StreamingSendMessageWithoutPermissionCheck(req, options) {
834
+ const _req = req;
835
+ const url = this.genBaseURL(
836
+ "/api/devops/prompt_platform/v1/prompt/streaming_send_message_without_permission_check"
837
+ );
838
+ const method = "POST";
839
+ const data = {
840
+ prompt: _req["prompt"],
841
+ message: _req["message"],
842
+ contexts: _req["contexts"],
843
+ variables: _req["variables"],
844
+ space_id: _req["space_id"],
845
+ single_step_debug: _req["single_step_debug"],
846
+ debug_trace_key: _req["debug_trace_key"],
847
+ mcp_execute_config: _req["mcp_execute_config"],
848
+ base: _req["base"]
849
+ };
850
+ return this.request({ url, method, data }, options);
851
+ }
852
+ /**
853
+ * POST /api/devops/prompt_platform/v1/prompt/debug/get
854
+ *
855
+ * 调试历史详情
856
+ */
857
+ GetDebugDetail(req, options) {
858
+ const _req = req || {};
859
+ const url = this.genBaseURL(
860
+ "/api/devops/prompt_platform/v1/prompt/debug/get"
861
+ );
862
+ const method = "POST";
863
+ const data = {
864
+ debug_id: _req["debug_id"],
865
+ prompt_id: _req["prompt_id"],
866
+ space_id: _req["space_id"],
867
+ base: _req["base"]
868
+ };
869
+ return this.request({ url, method, data }, options);
870
+ }
871
+ /**
872
+ * POST /api/devops/prompt_platform/v1/prompt/debug/list_history
873
+ *
874
+ * 调试历史
875
+ */
876
+ ListDebugHistory(req, options) {
877
+ const _req = req || {};
878
+ const url = this.genBaseURL(
879
+ "/api/devops/prompt_platform/v1/prompt/debug/list_history"
880
+ );
881
+ const method = "POST";
882
+ const data = {
883
+ prompt_id: _req["prompt_id"],
884
+ space_id: _req["space_id"],
885
+ list_all: _req["list_all"],
886
+ cursor: _req["cursor"],
887
+ offset: _req["offset"],
888
+ base: _req["base"]
889
+ };
890
+ return this.request({ url, method, data }, options);
891
+ }
892
+ /**
893
+ * POST /api/devops/prompt_platform/v1/prompt/check_publish
894
+ *
895
+ * 发布Prompt前检查
896
+ */
897
+ CheckPublishPrompt(req, options) {
898
+ const _req = req || {};
899
+ const url = this.genBaseURL(
900
+ "/api/devops/prompt_platform/v1/prompt/check_publish"
901
+ );
902
+ const method = "POST";
903
+ const data = {
904
+ prompt_id: _req["prompt_id"],
905
+ space_id: _req["space_id"],
906
+ draft_base_version: _req["draft_base_version"],
907
+ base: _req["base"]
908
+ };
909
+ return this.request({ url, method, data }, options);
910
+ }
911
+ /**
912
+ * POST /api/devops/prompt_platform/v1/prompt/mpull
913
+ *
914
+ * --------------- OpenAPI ---------------
915
+ *
916
+ * 批量获取Prompt
917
+ */
918
+ MPullPrompt(req, options) {
919
+ const _req = req;
920
+ const url = this.genBaseURL("/api/devops/prompt_platform/v1/prompt/mpull");
921
+ const method = "POST";
922
+ const data = {
923
+ prompt_queries: _req["prompt_queries"],
924
+ encrypt_option: _req["encrypt_option"],
925
+ base: _req["base"]
926
+ };
927
+ const headers = {
928
+ token: _req["token"],
929
+ "Agw-Auth": _req["Agw-Auth"],
930
+ Authorization: _req["Authorization"]
931
+ };
932
+ return this.request({ url, method, data, headers }, options);
933
+ }
934
+ /**
935
+ * POST /api/devops/prompt_platform/v1/optimize/task/get
936
+ *
937
+ * 获取Task详情,包含关联资源
938
+ */
939
+ GetOptimizeTask(req, options) {
940
+ const _req = req;
941
+ const url = this.genBaseURL(
942
+ "/api/devops/prompt_platform/v1/optimize/task/get"
943
+ );
944
+ const method = "POST";
945
+ const data = {
946
+ task_id: _req["task_id"],
947
+ space_id: _req["space_id"],
948
+ base: _req["base"]
949
+ };
950
+ return this.request({ url, method, data }, options);
951
+ }
952
+ /**
953
+ * POST /api/devops/prompt_platform/v1/optimize/task/update
954
+ *
955
+ * 更新Task
956
+ */
957
+ UpdateOptimizeTask(req, options) {
958
+ const _req = req;
959
+ const url = this.genBaseURL(
960
+ "/api/devops/prompt_platform/v1/optimize/task/update"
961
+ );
962
+ const method = "POST";
963
+ const data = {
964
+ task_id: _req["task_id"],
965
+ space_id: _req["space_id"],
966
+ name: _req["name"],
967
+ desc: _req["desc"],
968
+ target: _req["target"],
969
+ base: _req["base"]
970
+ };
971
+ return this.request({ url, method, data }, options);
972
+ }
973
+ /**
974
+ * POST /api/devops/prompt_platform/v1/optimize/execution/cancel
975
+ *
976
+ * 取消执行
977
+ */
978
+ CancelOptimizeExecution(req, options) {
979
+ const _req = req;
980
+ const url = this.genBaseURL(
981
+ "/api/devops/prompt_platform/v1/optimize/execution/cancel"
982
+ );
983
+ const method = "POST";
984
+ const data = {
985
+ task_id: _req["task_id"],
986
+ space_id: _req["space_id"],
987
+ execution_id: _req["execution_id"],
988
+ base: _req["base"]
989
+ };
990
+ return this.request({ url, method, data }, options);
991
+ }
992
+ /**
993
+ * POST /api/devops/prompt_platform/v1/optimize/task/execution/dashboard
994
+ *
995
+ * 获取优化报告详情
996
+ */
997
+ GetOptimizeExecutionDashboard(req, options) {
998
+ const _req = req;
999
+ const url = this.genBaseURL(
1000
+ "/api/devops/prompt_platform/v1/optimize/task/execution/dashboard"
1001
+ );
1002
+ const method = "POST";
1003
+ const data = {
1004
+ execution_id: _req["execution_id"],
1005
+ task_id: _req["task_id"],
1006
+ space_id: _req["space_id"],
1007
+ base: _req["base"]
1008
+ };
1009
+ return this.request({ url, method, data }, options);
1010
+ }
1011
+ /**
1012
+ * POST /api/devops/prompt_platform/v1/optimize/task/create
1013
+ *
1014
+ * --------------- Prompt优化模块 ---------------
1015
+ *
1016
+ * --------------- Prompt优化管理模块 ---------------
1017
+ *
1018
+ * 创建Task
1019
+ */
1020
+ CreateOptimizeTask(req, options) {
1021
+ const _req = req;
1022
+ const url = this.genBaseURL(
1023
+ "/api/devops/prompt_platform/v1/optimize/task/create"
1024
+ );
1025
+ const method = "POST";
1026
+ const data = {
1027
+ space_id: _req["space_id"],
1028
+ display_name: _req["display_name"],
1029
+ description: _req["description"],
1030
+ target: _req["target"],
1031
+ visible: _req["visible"],
1032
+ base: _req["base"]
1033
+ };
1034
+ return this.request({ url, method, data }, options);
1035
+ }
1036
+ /**
1037
+ * POST /api/devops/prompt_platform/v1/optimize/task/execution/get
1038
+ *
1039
+ * 获取Execution详情
1040
+ */
1041
+ GetOptimizeExecution(req, options) {
1042
+ const _req = req;
1043
+ const url = this.genBaseURL(
1044
+ "/api/devops/prompt_platform/v1/optimize/task/execution/get"
1045
+ );
1046
+ const method = "POST";
1047
+ const data = {
1048
+ execution_id: _req["execution_id"],
1049
+ task_id: _req["task_id"],
1050
+ space_id: _req["space_id"],
1051
+ base: _req["base"]
1052
+ };
1053
+ return this.request({ url, method, data }, options);
1054
+ }
1055
+ /**
1056
+ * POST /api/devops/prompt_platform/v1/optimize/task/delete
1057
+ *
1058
+ * 删除Task
1059
+ */
1060
+ DeleteOptimizeTask(req, options) {
1061
+ const _req = req;
1062
+ const url = this.genBaseURL(
1063
+ "/api/devops/prompt_platform/v1/optimize/task/delete"
1064
+ );
1065
+ const method = "POST";
1066
+ const data = {
1067
+ task_id: _req["task_id"],
1068
+ space_id: _req["space_id"],
1069
+ base: _req["base"]
1070
+ };
1071
+ return this.request({ url, method, data }, options);
1072
+ }
1073
+ /**
1074
+ * POST /api/devops/prompt_platform/v1/optimize/task/executions/list
1075
+ *
1076
+ * 拉去历史执行记录列表
1077
+ */
1078
+ ListOptimizeExecution(req, options) {
1079
+ const _req = req;
1080
+ const url = this.genBaseURL(
1081
+ "/api/devops/prompt_platform/v1/optimize/task/executions/list"
1082
+ );
1083
+ const method = "POST";
1084
+ const data = {
1085
+ task_id: _req["task_id"],
1086
+ space_id: _req["space_id"],
1087
+ page: _req["page"],
1088
+ page_size: _req["page_size"],
1089
+ base: _req["base"]
1090
+ };
1091
+ return this.request({ url, method, data }, options);
1092
+ }
1093
+ /**
1094
+ * POST /api/devops/prompt_platform/v1/optimize/task/exec
1095
+ *
1096
+ * --------------- Prompt优化运行模块 ---------------
1097
+ *
1098
+ * 单次执行execution
1099
+ */
1100
+ ExecOptimizeTask(req, options) {
1101
+ const _req = req;
1102
+ const url = this.genBaseURL(
1103
+ "/api/devops/prompt_platform/v1/optimize/task/exec"
1104
+ );
1105
+ const method = "POST";
1106
+ const data = {
1107
+ task_id: _req["task_id"],
1108
+ space_id: _req["space_id"],
1109
+ base: _req["base"]
1110
+ };
1111
+ return this.request({ url, method, data }, options);
1112
+ }
1113
+ /**
1114
+ * POST /api/devops/prompt_platform/v1/prompt/release
1115
+ *
1116
+ * prompt发布
1117
+ */
1118
+ ReleasePrompt(req, options) {
1119
+ const _req = req;
1120
+ const url = this.genBaseURL(
1121
+ "/api/devops/prompt_platform/v1/prompt/release"
1122
+ );
1123
+ const method = "POST";
1124
+ const data = {
1125
+ prompt_id: _req["prompt_id"],
1126
+ version: _req["version"],
1127
+ env: _req["env"],
1128
+ feature: _req["feature"],
1129
+ space_id: _req["space_id"],
1130
+ gray_release_config: _req["gray_release_config"],
1131
+ base: _req["base"]
1132
+ };
1133
+ return this.request({ url, method, data }, options);
1134
+ }
1135
+ /**
1136
+ * POST /api/devops/prompt_platform/v1/prompt/list_promot_release_info
1137
+ *
1138
+ * 获取发布最终结果列表
1139
+ */
1140
+ ListPromptReleaseInfo(req, options) {
1141
+ const _req = req;
1142
+ const url = this.genBaseURL(
1143
+ "/api/devops/prompt_platform/v1/prompt/list_promot_release_info"
1144
+ );
1145
+ const method = "POST";
1146
+ const data = {
1147
+ prompt_id: _req["prompt_id"],
1148
+ version: _req["version"],
1149
+ env: _req["env"],
1150
+ feature: _req["feature"],
1151
+ status: _req["status"],
1152
+ label: _req["label"],
1153
+ version_like: _req["version_like"],
1154
+ cursor: _req["cursor"],
1155
+ page_size: _req["page_size"],
1156
+ base: _req["base"]
1157
+ };
1158
+ return this.request({ url, method, data }, options);
1159
+ }
1160
+ /**
1161
+ * POST /api/devops/prompt_platform/v1/prompt/offline
1162
+ *
1163
+ * 下线发布的版本
1164
+ */
1165
+ OfflinePrompt(req, options) {
1166
+ const _req = req;
1167
+ const url = this.genBaseURL(
1168
+ "/api/devops/prompt_platform/v1/prompt/offline"
1169
+ );
1170
+ const method = "POST";
1171
+ const data = {
1172
+ prompt_id: _req["prompt_id"],
1173
+ version: _req["version"],
1174
+ env: _req["env"],
1175
+ feature: _req["feature"],
1176
+ space_id: _req["space_id"],
1177
+ label: _req["label"],
1178
+ base: _req["base"]
1179
+ };
1180
+ return this.request({ url, method, data }, options);
1181
+ }
1182
+ /**
1183
+ * POST /api/devops/prompt_platform/v1/prompt/rollback_pre_version
1184
+ *
1185
+ * 发布回滚到上一个版本
1186
+ */
1187
+ RollBackPreVersionPrompt(req, options) {
1188
+ const _req = req;
1189
+ const url = this.genBaseURL(
1190
+ "/api/devops/prompt_platform/v1/prompt/rollback_pre_version"
1191
+ );
1192
+ const method = "POST";
1193
+ const data = {
1194
+ prompt_id: _req["prompt_id"],
1195
+ version: _req["version"],
1196
+ env: _req["env"],
1197
+ feature: _req["feature"],
1198
+ space_id: _req["space_id"],
1199
+ base: _req["base"]
1200
+ };
1201
+ return this.request({ url, method, data }, options);
1202
+ }
1203
+ /**
1204
+ * @deprecated
1205
+ *
1206
+ * POST /api/devops/prompt_platform/v1/optimize/task/execution/delete
1207
+ *
1208
+ * 删除执行记录
1209
+ */
1210
+ DeleteOptimizeExecution(req, options) {
1211
+ const _req = req;
1212
+ const url = this.genBaseURL(
1213
+ "/api/devops/prompt_platform/v1/optimize/task/execution/delete"
1214
+ );
1215
+ const method = "POST";
1216
+ const data = {
1217
+ task_id: _req["task_id"],
1218
+ space_id: _req["space_id"],
1219
+ execution_id: _req["execution_id"],
1220
+ base: _req["base"]
1221
+ };
1222
+ return this.request({ url, method, data }, options);
1223
+ }
1224
+ /**
1225
+ * POST /api/devops/prompt_platform/v1/optimize/task/list
1226
+ *
1227
+ * 分页拉当前空间下的task列表
1228
+ */
1229
+ ListOptimizeTask(req, options) {
1230
+ const _req = req;
1231
+ const url = this.genBaseURL(
1232
+ "/api/devops/prompt_platform/v1/optimize/task/list"
1233
+ );
1234
+ const method = "POST";
1235
+ const data = {
1236
+ space_id: _req["space_id"],
1237
+ page: _req["page"],
1238
+ page_size: _req["page_size"],
1239
+ name: _req["name"],
1240
+ target_id: _req["target_id"],
1241
+ target_version: _req["target_version"],
1242
+ target_type: _req["target_type"],
1243
+ creator_id: _req["creator_id"],
1244
+ base: _req["base"]
1245
+ };
1246
+ return this.request({ url, method, data }, options);
1247
+ }
1248
+ /**
1249
+ * GET /api/devops/prompt_platform/v1/prompt/releases/:release_id
1250
+ *
1251
+ * 获取prompt发布配置
1252
+ */
1253
+ GetPromptRelease(req, options) {
1254
+ const _req = req;
1255
+ const url = this.genBaseURL(
1256
+ `/api/devops/prompt_platform/v1/prompt/releases/${_req["release_id"]}`
1257
+ );
1258
+ const method = "GET";
1259
+ const data = { space_id: _req["space_id"], prompt_id: _req["prompt_id"] };
1260
+ const params = { base: _req["base"] };
1261
+ return this.request({ url, method, data, params }, options);
1262
+ }
1263
+ /**
1264
+ * POST /api/devops/prompt_platform/v1/prompt/releases/:release_id/fulldose_gray_release
1265
+ *
1266
+ * 全量发布prompt灰度配置
1267
+ */
1268
+ FulldosePromptGrayRelease(req, options) {
1269
+ const _req = req;
1270
+ const url = this.genBaseURL(
1271
+ `/api/devops/prompt_platform/v1/prompt/releases/${_req["release_id"]}/fulldose_gray_release`
1272
+ );
1273
+ const method = "POST";
1274
+ const data = {
1275
+ space_id: _req["space_id"],
1276
+ prompt_id: _req["prompt_id"],
1277
+ base: _req["base"]
1278
+ };
1279
+ return this.request({ url, method, data }, options);
1280
+ }
1281
+ /**
1282
+ * POST /api/devops/prompt_platform/v1/prompt/releases/:release_id/offline_gray_release
1283
+ *
1284
+ * 撤销prompt灰度发布
1285
+ */
1286
+ OfflinePromptGrayRelease(req, options) {
1287
+ const _req = req;
1288
+ const url = this.genBaseURL(
1289
+ `/api/devops/prompt_platform/v1/prompt/releases/${_req["release_id"]}/offline_gray_release`
1290
+ );
1291
+ const method = "POST";
1292
+ const data = {
1293
+ space_id: _req["space_id"],
1294
+ prompt_id: _req["prompt_id"],
1295
+ base: _req["base"]
1296
+ };
1297
+ return this.request({ url, method, data }, options);
1298
+ }
1299
+ /**
1300
+ * PUT /api/devops/prompt_platform/v1/prompt/releases/:release_id
1301
+ *
1302
+ * 更新prompt发布配置
1303
+ */
1304
+ UpdatePromptRelease(req, options) {
1305
+ const _req = req;
1306
+ const url = this.genBaseURL(
1307
+ `/api/devops/prompt_platform/v1/prompt/releases/${_req["release_id"]}`
1308
+ );
1309
+ const method = "PUT";
1310
+ const data = {
1311
+ gray_release_config: _req["gray_release_config"],
1312
+ space_id: _req["space_id"],
1313
+ prompt_id: _req["prompt_id"],
1314
+ base: _req["base"]
1315
+ };
1316
+ return this.request({ url, method, data }, options);
1317
+ }
1318
+ /**
1319
+ * POST /api/devops/prompt_platform/v1/prompt/eval_version
1320
+ *
1321
+ * 计算Prompt是否命中灰度,命中的灰度版本
1322
+ */
1323
+ EvalPromptVersion(req, options) {
1324
+ const _req = req;
1325
+ const url = this.genBaseURL(
1326
+ "/api/devops/prompt_platform/v1/prompt/eval_version"
1327
+ );
1328
+ const method = "POST";
1329
+ const data = {
1330
+ prompt_key: _req["prompt_key"],
1331
+ traffic: _req["traffic"],
1332
+ base: _req["base"]
1333
+ };
1334
+ const headers = { Authorization: _req["Authorization"] };
1335
+ return this.request({ url, method, data, headers }, options);
1336
+ }
1337
+ /**
1338
+ * POST /api/devops/prompt_platform/v1/prompt/clipboard/save
1339
+ *
1340
+ * 保存剪切板
1341
+ */
1342
+ SaveClipboard(req, options) {
1343
+ const _req = req || {};
1344
+ const url = this.genBaseURL(
1345
+ "/api/devops/prompt_platform/v1/prompt/clipboard/save"
1346
+ );
1347
+ const method = "POST";
1348
+ const data = {
1349
+ prompt_id: _req["prompt_id"],
1350
+ space_id: _req["space_id"],
1351
+ content: _req["content"],
1352
+ version: _req["version"],
1353
+ base: _req["base"]
1354
+ };
1355
+ return this.request({ url, method, data }, options);
1356
+ }
1357
+ /**
1358
+ * POST /api/devops/prompt_platform/v1/prompt/clipboard/get
1359
+ *
1360
+ * 获取剪切板内容
1361
+ */
1362
+ GetClipboard(req, options) {
1363
+ const _req = req || {};
1364
+ const url = this.genBaseURL(
1365
+ "/api/devops/prompt_platform/v1/prompt/clipboard/get"
1366
+ );
1367
+ const method = "POST";
1368
+ const data = {
1369
+ prompt_id: _req["prompt_id"],
1370
+ space_id: _req["space_id"],
1371
+ content_key: _req["content_key"],
1372
+ version: _req["version"],
1373
+ base: _req["base"]
1374
+ };
1375
+ return this.request({ url, method, data }, options);
1376
+ }
1377
+ /**
1378
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/trigger_subtask
1379
+ *
1380
+ * 触发发布工单子任务状态变更
1381
+ */
1382
+ TriggerReleaseSubtask(req, options) {
1383
+ const _req = req;
1384
+ const url = this.genBaseURL(
1385
+ "/api/devops/prompt_platform/v1/prompt/release_task/trigger_subtask"
1386
+ );
1387
+ const method = "POST";
1388
+ const data = {
1389
+ release_task_id: _req["release_task_id"],
1390
+ subtask_key: _req["subtask_key"],
1391
+ trigger_operation: _req["trigger_operation"],
1392
+ comment: _req["comment"],
1393
+ base: _req["base"]
1394
+ };
1395
+ return this.request({ url, method, data }, options);
1396
+ }
1397
+ /**
1398
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/create
1399
+ *
1400
+ * --------------- 发布模块 ---------------
1401
+ *
1402
+ * 创建发布工单
1403
+ */
1404
+ CreateReleaseTask(req, options) {
1405
+ const _req = req;
1406
+ const url = this.genBaseURL(
1407
+ "/api/devops/prompt_platform/v1/prompt/release_task/create"
1408
+ );
1409
+ const method = "POST";
1410
+ const data = {
1411
+ space_id: _req["space_id"],
1412
+ release_resources: _req["release_resources"],
1413
+ env: _req["env"],
1414
+ feature: _req["feature"],
1415
+ release_config: _req["release_config"],
1416
+ comment: _req["comment"],
1417
+ label: _req["label"],
1418
+ base: _req["base"]
1419
+ };
1420
+ return this.request({ url, method, data }, options);
1421
+ }
1422
+ /**
1423
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/get_detail
1424
+ *
1425
+ * 获取发布工单详情
1426
+ */
1427
+ GetReleaseTaskDetail(req, options) {
1428
+ const _req = req;
1429
+ const url = this.genBaseURL(
1430
+ "/api/devops/prompt_platform/v1/prompt/release_task/get_detail"
1431
+ );
1432
+ const method = "POST";
1433
+ const data = {
1434
+ release_task_id: _req["release_task_id"],
1435
+ base: _req["base"]
1436
+ };
1437
+ return this.request({ url, method, data }, options);
1438
+ }
1439
+ /**
1440
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/cancel
1441
+ *
1442
+ * 取消发布工单
1443
+ */
1444
+ CancelReleaseTask(req, options) {
1445
+ const _req = req;
1446
+ const url = this.genBaseURL(
1447
+ "/api/devops/prompt_platform/v1/prompt/release_task/cancel"
1448
+ );
1449
+ const method = "POST";
1450
+ const data = {
1451
+ release_task_id: _req["release_task_id"],
1452
+ base: _req["base"]
1453
+ };
1454
+ return this.request({ url, method, data }, options);
1455
+ }
1456
+ /**
1457
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/notify_approver
1458
+ *
1459
+ * 通知审核人
1460
+ */
1461
+ NotifyReleaseApprover(req, options) {
1462
+ const _req = req;
1463
+ const url = this.genBaseURL(
1464
+ "/api/devops/prompt_platform/v1/prompt/release_task/notify_approver"
1465
+ );
1466
+ const method = "POST";
1467
+ const data = {
1468
+ release_task_id: _req["release_task_id"],
1469
+ notify_approvers: _req["notify_approvers"],
1470
+ base: _req["base"]
1471
+ };
1472
+ return this.request({ url, method, data }, options);
1473
+ }
1474
+ /**
1475
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/list_approver
1476
+ *
1477
+ * 获取审核人列表
1478
+ */
1479
+ ListReleaseApprover(req, options) {
1480
+ const _req = req || {};
1481
+ const url = this.genBaseURL(
1482
+ "/api/devops/prompt_platform/v1/prompt/release_task/list_approver"
1483
+ );
1484
+ const method = "POST";
1485
+ const data = { space_id: _req["space_id"], base: _req["base"] };
1486
+ return this.request({ url, method, data }, options);
1487
+ }
1488
+ /**
1489
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/rollback
1490
+ *
1491
+ * 回滚发布工单
1492
+ */
1493
+ RollbackReleaseTask(req, options) {
1494
+ const _req = req;
1495
+ const url = this.genBaseURL(
1496
+ "/api/devops/prompt_platform/v1/prompt/release_task/rollback"
1497
+ );
1498
+ const method = "POST";
1499
+ const data = {
1500
+ release_task_id: _req["release_task_id"],
1501
+ base: _req["base"]
1502
+ };
1503
+ return this.request({ url, method, data }, options);
1504
+ }
1505
+ /**
1506
+ * POST /api/devops/prompt_platform/v1/prompt/release_task/list
1507
+ *
1508
+ * 获取发布工单列表
1509
+ */
1510
+ ListReleaseTask(req, options) {
1511
+ const _req = req || {};
1512
+ const url = this.genBaseURL(
1513
+ "/api/devops/prompt_platform/v1/prompt/release_task/list"
1514
+ );
1515
+ const method = "POST";
1516
+ const data = {
1517
+ space_id: _req["space_id"],
1518
+ prompt_id: _req["prompt_id"],
1519
+ env: _req["env"],
1520
+ feature: _req["feature"],
1521
+ label: _req["label"],
1522
+ base: _req["base"]
1523
+ };
1524
+ const params = { page: _req["page"], page_size: _req["page_size"] };
1525
+ return this.request({ url, method, data, params }, options);
1526
+ }
1527
+ /**
1528
+ * POST /api/devops/prompt_platform/v1/platform/lark_card_callback
1529
+ *
1530
+ * Lark卡片回调
1531
+ */
1532
+ LarkCardActionCallback(req, options) {
1533
+ const _req = req || {};
1534
+ const url = this.genBaseURL(
1535
+ "/api/devops/prompt_platform/v1/platform/lark_card_callback"
1536
+ );
1537
+ const method = "POST";
1538
+ const data = {
1539
+ challenge: _req["challenge"],
1540
+ schema: _req["schema"],
1541
+ header: _req["header"],
1542
+ event: _req["event"]
1543
+ };
1544
+ return this.request({ url, method, data }, options);
1545
+ }
1546
+ /**
1547
+ * POST /api/devops/prompt_platform/v1/prompt/convert_uri_to_url
1548
+ *
1549
+ * uris批量转化为urls
1550
+ */
1551
+ MConvertURI2URL(req, options) {
1552
+ const _req = req || {};
1553
+ const url = this.genBaseURL(
1554
+ "/api/devops/prompt_platform/v1/prompt/convert_uri_to_url"
1555
+ );
1556
+ const method = "POST";
1557
+ const data = {
1558
+ space_id: _req["space_id"],
1559
+ uris: _req["uris"],
1560
+ base: _req["base"]
1561
+ };
1562
+ return this.request({ url, method, data }, options);
1563
+ }
1564
+ /** POST /open-apis/prompt/v1/prompt/render_template */
1565
+ RenderPromptTemplate(req, options) {
1566
+ const _req = req || {};
1567
+ const url = this.genBaseURL("/open-apis/prompt/v1/prompt/render_template");
1568
+ const method = "POST";
1569
+ const data = {
1570
+ prompt_template: _req["prompt_template"],
1571
+ variable_vals: _req["variable_vals"],
1572
+ base: _req["base"]
1573
+ };
1574
+ return this.request({ url, method, data }, options);
1575
+ }
1576
+ /**
1577
+ * POST /open-apis/prompt/v1/prompt/list
1578
+ *
1579
+ * Prompt平台管理模块对外接口
1580
+ *
1581
+ * Prompt列表
1582
+ */
1583
+ ListPromptBasicOApi(req, options) {
1584
+ const _req = req;
1585
+ const url = this.genBaseURL("/open-apis/prompt/v1/prompt/list");
1586
+ const method = "POST";
1587
+ const data = {
1588
+ page: _req["page"],
1589
+ page_size: _req["page_size"],
1590
+ key_word: _req["key_word"],
1591
+ creator: _req["creator"],
1592
+ filter_prompt_types: _req["filter_prompt_types"],
1593
+ base: _req["base"]
1594
+ };
1595
+ const headers = { Authorization: _req["Authorization"] };
1596
+ return this.request({ url, method, data, headers }, options);
1597
+ }
1598
+ /**
1599
+ * POST /api/devops/prompt_platform/v1/prompt/batch_debug/load_info
1600
+ *
1601
+ * 加载批量调试信息
1602
+ */
1603
+ LoadBatchDebugInfo(req, options) {
1604
+ const _req = req || {};
1605
+ const url = this.genBaseURL(
1606
+ "/api/devops/prompt_platform/v1/prompt/batch_debug/load_info"
1607
+ );
1608
+ const method = "POST";
1609
+ const data = {
1610
+ prompt_id: _req["prompt_id"],
1611
+ space_id: _req["space_id"],
1612
+ base: _req["base"]
1613
+ };
1614
+ return this.request({ url, method, data }, options);
1615
+ }
1616
+ /**
1617
+ * POST /api/devops/prompt_platform/v1/prompt/batch_execute
1618
+ *
1619
+ * 运行批量调试
1620
+ */
1621
+ ExecuteBatch(req, options) {
1622
+ const _req = req || {};
1623
+ const url = this.genBaseURL(
1624
+ "/api/devops/prompt_platform/v1/prompt/batch_execute"
1625
+ );
1626
+ const method = "POST";
1627
+ const data = {
1628
+ prompt_id: _req["prompt_id"],
1629
+ space_id: _req["space_id"],
1630
+ case_id: _req["case_id"],
1631
+ dataset_id: _req["dataset_id"],
1632
+ row_group_ids: _req["row_group_ids"],
1633
+ mcp_execute_config: _req["mcp_execute_config"],
1634
+ base: _req["base"]
1635
+ };
1636
+ return this.request({ url, method, data }, options);
1637
+ }
1638
+ /**
1639
+ * POST /api/prompt_platform/v1/prompt/clone
1640
+ *
1641
+ * 复制Prompt
1642
+ */
1643
+ ClonePrompt(req, options) {
1644
+ const _req = req || {};
1645
+ const url = this.genBaseURL("/api/prompt_platform/v1/prompt/clone");
1646
+ const method = "POST";
1647
+ const data = {
1648
+ space_id: _req["space_id"],
1649
+ prompt_id: _req["prompt_id"],
1650
+ version: _req["version"],
1651
+ dest_prompt_key: _req["dest_prompt_key"],
1652
+ dest_display_name: _req["dest_display_name"],
1653
+ dest_description: _req["dest_description"],
1654
+ base: _req["base"]
1655
+ };
1656
+ return this.request({ url, method, data }, options);
1657
+ }
1658
+ /** POST /v1/loop/prompts/mget */
1659
+ MPullPromptCommercial(req, options) {
1660
+ const _req = req || {};
1661
+ const url = this.genBaseURL("/v1/loop/prompts/mget");
1662
+ const method = "POST";
1663
+ const data = {
1664
+ workspace_id: _req["workspace_id"],
1665
+ queries: _req["queries"],
1666
+ base: _req["base"]
1667
+ };
1668
+ return this.request({ url, method, data }, options);
1669
+ }
1670
+ /**
1671
+ * POST /api/devops/prompt_platform/v1/prompt/generate_record/update
1672
+ *
1673
+ * Prompt生成记录更新
1674
+ */
1675
+ UpdateGenerateRecord(req, options) {
1676
+ const _req = req || {};
1677
+ const url = this.genBaseURL(
1678
+ "/api/devops/prompt_platform/v1/prompt/generate_record/update"
1679
+ );
1680
+ const method = "POST";
1681
+ const data = {
1682
+ record_id: _req["record_id"],
1683
+ prompt_id: _req["prompt_id"],
1684
+ space_id: _req["space_id"],
1685
+ is_liked: _req["is_liked"],
1686
+ is_disliked: _req["is_disliked"],
1687
+ is_accepted: _req["is_accepted"],
1688
+ is_canceled: _req["is_canceled"],
1689
+ base: _req["base"]
1690
+ };
1691
+ return this.request({ url, method, data }, options);
1692
+ }
1693
+ /**
1694
+ * POST /api/mcp_manage/v1/mcp_servers/create
1695
+ *
1696
+ * 创建 MCP Server
1697
+ */
1698
+ CreateMCPServer(req, options) {
1699
+ const _req = req || {};
1700
+ const url = this.genBaseURL("/api/mcp_manage/v1/mcp_servers/create");
1701
+ const method = "POST";
1702
+ const data = {
1703
+ space_id: _req["space_id"],
1704
+ name: _req["name"],
1705
+ description: _req["description"],
1706
+ source_type: _req["source_type"],
1707
+ labels: _req["labels"],
1708
+ is_publish_supported: _req["is_publish_supported"],
1709
+ detail_page_url: _req["detail_page_url"],
1710
+ base: _req["base"]
1711
+ };
1712
+ return this.request({ url, method, data }, options);
1713
+ }
1714
+ /**
1715
+ * POST /api/mcp_manage/v1/mcp_servers/list_official
1716
+ *
1717
+ * 官方MCP Server列表
1718
+ */
1719
+ ListOfficialMCPServers(req, options) {
1720
+ const _req = req || {};
1721
+ const url = this.genBaseURL("/api/mcp_manage/v1/mcp_servers/list_official");
1722
+ const method = "POST";
1723
+ const data = {
1724
+ page: _req["page"],
1725
+ page_size: _req["page_size"],
1726
+ name_keyword: _req["name_keyword"],
1727
+ source_type: _req["source_type"],
1728
+ labels: _req["labels"],
1729
+ status: _req["status"],
1730
+ base: _req["base"]
1731
+ };
1732
+ return this.request({ url, method, data }, options);
1733
+ }
1734
+ /**
1735
+ * POST /api/mcp_manage/v1/mcp_servers/list
1736
+ *
1737
+ * MCP Server列表
1738
+ */
1739
+ ListMCPServers(req, options) {
1740
+ const _req = req || {};
1741
+ const url = this.genBaseURL("/api/mcp_manage/v1/mcp_servers/list");
1742
+ const method = "POST";
1743
+ const data = {
1744
+ space_id: _req["space_id"],
1745
+ page: _req["page"],
1746
+ page_size: _req["page_size"],
1747
+ name_keyword: _req["name_keyword"],
1748
+ source_type: _req["source_type"],
1749
+ labels: _req["labels"],
1750
+ creator_list: _req["creator_list"],
1751
+ status: _req["status"],
1752
+ base: _req["base"]
1753
+ };
1754
+ return this.request({ url, method, data }, options);
1755
+ }
1756
+ /**
1757
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/delete
1758
+ *
1759
+ * 删除 MCP Server
1760
+ */
1761
+ DeleteMCPServer(req, options) {
1762
+ const _req = req || {};
1763
+ const url = this.genBaseURL(
1764
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/delete`
1765
+ );
1766
+ const method = "POST";
1767
+ const data = { space_id: _req["space_id"], base: _req["base"] };
1768
+ return this.request({ url, method, data }, options);
1769
+ }
1770
+ /**
1771
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/update
1772
+ *
1773
+ * 更新 MCPServer AccessPoint
1774
+ */
1775
+ UpdateMCPServerAccessPoint(req, options) {
1776
+ const _req = req || {};
1777
+ const url = this.genBaseURL(
1778
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/access_points/${_req["access_point_id"]}/update`
1779
+ );
1780
+ const method = "POST";
1781
+ const data = {
1782
+ space_id: _req["space_id"],
1783
+ env: _req["env"],
1784
+ lane: _req["lane"],
1785
+ transport_mode: _req["transport_mode"],
1786
+ server_url: _req["server_url"],
1787
+ server_psm: _req["server_psm"],
1788
+ config: _req["config"],
1789
+ base: _req["base"]
1790
+ };
1791
+ return this.request({ url, method, data }, options);
1792
+ }
1793
+ /**
1794
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/create
1795
+ *
1796
+ * 创建 MCPServer AccessPoint 废弃
1797
+ */
1798
+ CreateMCPServerAccessPoint(req, options) {
1799
+ const _req = req || {};
1800
+ const url = this.genBaseURL(
1801
+ "/api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/create"
1802
+ );
1803
+ const method = "POST";
1804
+ const data = {
1805
+ mcp_server_id: _req["mcp_server_id"],
1806
+ space_id: _req["space_id"],
1807
+ env: _req["env"],
1808
+ lane: _req["lane"],
1809
+ transport_mode: _req["transport_mode"],
1810
+ server_url: _req["server_url"],
1811
+ base: _req["base"]
1812
+ };
1813
+ return this.request({ url, method, data }, options);
1814
+ }
1815
+ /**
1816
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/debug
1817
+ *
1818
+ * MCP页面调试Tools
1819
+ */
1820
+ DebugMCPServerTools(req, options) {
1821
+ const _req = req || {};
1822
+ const url = this.genBaseURL(
1823
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/access_points/${_req["access_point_id"]}/debug`
1824
+ );
1825
+ const method = "POST";
1826
+ const data = {
1827
+ space_id: _req["space_id"],
1828
+ tool_name: _req["tool_name"],
1829
+ parameters: _req["parameters"],
1830
+ dynamic_headers: _req["dynamic_headers"],
1831
+ dynamic_params: _req["dynamic_params"],
1832
+ base: _req["base"]
1833
+ };
1834
+ return this.request({ url, method, data }, options);
1835
+ }
1836
+ /**
1837
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/delete
1838
+ *
1839
+ * 删除 MCPServer AccessPoint
1840
+ */
1841
+ DeleteMCPServerAccessPoint(req, options) {
1842
+ const _req = req || {};
1843
+ const url = this.genBaseURL(
1844
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/access_points/${_req["access_point_id"]}/delete`
1845
+ );
1846
+ const method = "POST";
1847
+ const data = { space_id: _req["space_id"], base: _req["base"] };
1848
+ return this.request({ url, method, data }, options);
1849
+ }
1850
+ /**
1851
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/get
1852
+ *
1853
+ * 获取单个MCPServer详情
1854
+ */
1855
+ GetMCPServer(req, options) {
1856
+ const _req = req || {};
1857
+ const url = this.genBaseURL(
1858
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/get`
1859
+ );
1860
+ const method = "POST";
1861
+ const data = { space_id: _req["space_id"], base: _req["base"] };
1862
+ return this.request({ url, method, data }, options);
1863
+ }
1864
+ /**
1865
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/update
1866
+ *
1867
+ * 更新 MCP Server
1868
+ */
1869
+ UpdateMCPServer(req, options) {
1870
+ const _req = req || {};
1871
+ const url = this.genBaseURL(
1872
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/update`
1873
+ );
1874
+ const method = "POST";
1875
+ const data = {
1876
+ space_id: _req["space_id"],
1877
+ name: _req["name"],
1878
+ description: _req["description"],
1879
+ source_type: _req["source_type"],
1880
+ labels: _req["labels"],
1881
+ is_publish_supported: _req["is_publish_supported"],
1882
+ detail_page_url: _req["detail_page_url"],
1883
+ base: _req["base"]
1884
+ };
1885
+ return this.request({ url, method, data }, options);
1886
+ }
1887
+ /**
1888
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/get
1889
+ *
1890
+ * 获取单个 MCPServer AccessPoint 详情
1891
+ */
1892
+ GetMCPServerAccessPoint(req, options) {
1893
+ const _req = req || {};
1894
+ const url = this.genBaseURL(
1895
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/access_points/${_req["access_point_id"]}/get`
1896
+ );
1897
+ const method = "POST";
1898
+ const data = { space_id: _req["space_id"], base: _req["base"] };
1899
+ return this.request({ url, method, data }, options);
1900
+ }
1901
+ /**
1902
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/create
1903
+ *
1904
+ * 创建 MCPServer AccessPoint v2
1905
+ */
1906
+ CreateMCPServerAccessPointV2(req, options) {
1907
+ const _req = req || {};
1908
+ const url = this.genBaseURL(
1909
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/access_points/create`
1910
+ );
1911
+ const method = "POST";
1912
+ const data = {
1913
+ space_id: _req["space_id"],
1914
+ env: _req["env"],
1915
+ lane: _req["lane"],
1916
+ transport_mode: _req["transport_mode"],
1917
+ server_url: _req["server_url"],
1918
+ server_psm: _req["server_psm"],
1919
+ config: _req["config"],
1920
+ base: _req["base"]
1921
+ };
1922
+ return this.request({ url, method, data }, options);
1923
+ }
1924
+ /**
1925
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/access_points/:access_point_id/update_status
1926
+ *
1927
+ * 更新 MCPServer AccessPoint 状态
1928
+ */
1929
+ UpdateMCPServerAccessPointStatus(req, options) {
1930
+ const _req = req || {};
1931
+ const url = this.genBaseURL(
1932
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/access_points/${_req["access_point_id"]}/update_status`
1933
+ );
1934
+ const method = "POST";
1935
+ const data = {
1936
+ space_id: _req["space_id"],
1937
+ status: _req["status"],
1938
+ base: _req["base"]
1939
+ };
1940
+ return this.request({ url, method, data }, options);
1941
+ }
1942
+ /**
1943
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/update_status
1944
+ *
1945
+ * 更新 MCP Server 状态
1946
+ */
1947
+ UpdateMCPServerStatus(req, options) {
1948
+ const _req = req || {};
1949
+ const url = this.genBaseURL(
1950
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/update_status`
1951
+ );
1952
+ const method = "POST";
1953
+ const data = {
1954
+ space_id: _req["space_id"],
1955
+ status: _req["status"],
1956
+ base: _req["base"]
1957
+ };
1958
+ return this.request({ url, method, data }, options);
1959
+ }
1960
+ /**
1961
+ * POST /api/mcp_manage/v1/mcp_servers/access_points/mget
1962
+ *
1963
+ * 批量获取 MCPServer AccessPoint 详情
1964
+ */
1965
+ MGetMCPServerAccessPoint(req, options) {
1966
+ const _req = req || {};
1967
+ const url = this.genBaseURL(
1968
+ "/api/mcp_manage/v1/mcp_servers/access_points/mget"
1969
+ );
1970
+ const method = "POST";
1971
+ const data = {
1972
+ space_id: _req["space_id"],
1973
+ accesspoint_ids: _req["accesspoint_ids"],
1974
+ base: _req["base"]
1975
+ };
1976
+ return this.request({ url, method, data }, options);
1977
+ }
1978
+ /**
1979
+ * POST /api/mcp_manage/v1/mcp_servers/:mcp_server_id/fork
1980
+ *
1981
+ * 复制 MCP Server
1982
+ */
1983
+ ForkMCPServer(req, options) {
1984
+ const _req = req || {};
1985
+ const url = this.genBaseURL(
1986
+ `/api/mcp_manage/v1/mcp_servers/${_req["mcp_server_id"]}/fork`
1987
+ );
1988
+ const method = "POST";
1989
+ const data = { space_id: _req["space_id"], base: _req["base"] };
1990
+ return this.request({ url, method, data }, options);
1991
+ }
1992
+ }
1993
+ export {
1994
+ base,
1995
+ PromptApiService as default,
1996
+ flow_devops_prompt_callback,
1997
+ flow_devops_prompt_commercial_openapi,
1998
+ flow_devops_prompt_common,
1999
+ flow_devops_prompt_debug,
2000
+ flow_devops_prompt_manage,
2001
+ flow_devops_prompt_mcp,
2002
+ flow_devops_prompt_optimize,
2003
+ flow_devops_prompt_paas,
2004
+ flow_devops_prompt_platform,
2005
+ mcp,
2006
+ model,
2007
+ permission,
2008
+ release
2009
+ };