@alicloud/dms20250414 1.24.1 → 2.0.0

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 (32) hide show
  1. package/dist/client.d.ts +27 -6
  2. package/dist/client.js +72 -16
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDataAgentFeedbackRequest.d.ts +102 -0
  5. package/dist/models/CreateDataAgentFeedbackRequest.js +72 -0
  6. package/dist/models/CreateDataAgentFeedbackRequest.js.map +1 -0
  7. package/dist/models/CreateDataAgentFeedbackResponse.d.ts +19 -0
  8. package/dist/models/CreateDataAgentFeedbackResponse.js +69 -0
  9. package/dist/models/CreateDataAgentFeedbackResponse.js.map +1 -0
  10. package/dist/models/CreateDataAgentFeedbackResponseBody.d.ts +137 -0
  11. package/dist/models/CreateDataAgentFeedbackResponseBody.js +104 -0
  12. package/dist/models/CreateDataAgentFeedbackResponseBody.js.map +1 -0
  13. package/dist/models/ListCustomAgentRequest.d.ts +5 -5
  14. package/dist/models/ListCustomAgentResponseBody.d.ts +42 -50
  15. package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
  16. package/dist/models/SendChatMessageRequest.d.ts +54 -27
  17. package/dist/models/SendChatMessageRequest.js +9 -3
  18. package/dist/models/SendChatMessageRequest.js.map +1 -1
  19. package/dist/models/SendChatMessageShrinkRequest.d.ts +12 -12
  20. package/dist/models/model.d.ts +4 -0
  21. package/dist/models/model.js +21 -13
  22. package/dist/models/model.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/client.ts +82 -16
  25. package/src/models/CreateDataAgentFeedbackRequest.ts +129 -0
  26. package/src/models/CreateDataAgentFeedbackResponse.ts +40 -0
  27. package/src/models/CreateDataAgentFeedbackResponseBody.ts +187 -0
  28. package/src/models/ListCustomAgentRequest.ts +5 -5
  29. package/src/models/ListCustomAgentResponseBody.ts +43 -51
  30. package/src/models/SendChatMessageRequest.ts +63 -30
  31. package/src/models/SendChatMessageShrinkRequest.ts +12 -12
  32. package/src/models/model.ts +4 -0
package/dist/client.d.ts CHANGED
@@ -200,6 +200,21 @@ export default class Client extends OpenApi {
200
200
  * @returns CreateDataAgentAccuracyTestResponse
201
201
  */
202
202
  createDataAgentAccuracyTest(request: $_model.CreateDataAgentAccuracyTestRequest): Promise<$_model.CreateDataAgentAccuracyTestResponse>;
203
+ /**
204
+ * Creates feedback for a DataAgent.
205
+ *
206
+ * @param request - CreateDataAgentFeedbackRequest
207
+ * @param runtime - runtime options for this request RuntimeOptions
208
+ * @returns CreateDataAgentFeedbackResponse
209
+ */
210
+ createDataAgentFeedbackWithOptions(request: $_model.CreateDataAgentFeedbackRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDataAgentFeedbackResponse>;
211
+ /**
212
+ * Creates feedback for a DataAgent.
213
+ *
214
+ * @param request - CreateDataAgentFeedbackRequest
215
+ * @returns CreateDataAgentFeedbackResponse
216
+ */
217
+ createDataAgentFeedback(request: $_model.CreateDataAgentFeedbackRequest): Promise<$_model.CreateDataAgentFeedbackResponse>;
203
218
  /**
204
219
  * Creates a DataAgent knowledge base. The knowledge base creator has read and write permissions. Other workspace members have permission to use it.
205
220
  *
@@ -1107,6 +1122,9 @@ export default class Client extends OpenApi {
1107
1122
  /**
1108
1123
  * Queries the operation logs of the SQL window.
1109
1124
  *
1125
+ * @remarks
1126
+ * When you call this operation, the service endpoint must match the region where the instance resides. Otherwise, the complete SQL window operation logs cannot be retrieved.
1127
+ *
1110
1128
  * @param request - GetSqlConsoleOperationLogRequest
1111
1129
  * @param runtime - runtime options for this request RuntimeOptions
1112
1130
  * @returns GetSqlConsoleOperationLogResponse
@@ -1115,6 +1133,9 @@ export default class Client extends OpenApi {
1115
1133
  /**
1116
1134
  * Queries the operation logs of the SQL window.
1117
1135
  *
1136
+ * @remarks
1137
+ * When you call this operation, the service endpoint must match the region where the instance resides. Otherwise, the complete SQL window operation logs cannot be retrieved.
1138
+ *
1118
1139
  * @param request - GetSqlConsoleOperationLogRequest
1119
1140
  * @returns GetSqlConsoleOperationLogResponse
1120
1141
  */
@@ -1270,7 +1291,7 @@ export default class Client extends OpenApi {
1270
1291
  */
1271
1292
  listAirflows(request: $_model.ListAirflowsRequest): Promise<$_model.ListAirflowsResponse>;
1272
1293
  /**
1273
- * ListCustomAgent returns a list of all custom agents from the personal space and workspaces.
1294
+ * Lists all custom agents in a personal space or workspace.
1274
1295
  *
1275
1296
  * @param request - ListCustomAgentRequest
1276
1297
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1278,7 +1299,7 @@ export default class Client extends OpenApi {
1278
1299
  */
1279
1300
  listCustomAgentWithOptions(request: $_model.ListCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentResponse>;
1280
1301
  /**
1281
- * ListCustomAgent returns a list of all custom agents from the personal space and workspaces.
1302
+ * Lists all custom agents in a personal space or workspace.
1282
1303
  *
1283
1304
  * @param request - ListCustomAgentRequest
1284
1305
  * @returns ListCustomAgentResponse
@@ -1886,8 +1907,8 @@ export default class Client extends OpenApi {
1886
1907
  *
1887
1908
  * @remarks
1888
1909
  * ## Request description
1889
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
1890
- * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
1910
+ * - `message_type` defaults to `primary`. To append information or cancel a session, set it to `additional` or `cancel`.
1911
+ * - The `reply_to` field indicates which Agent message this message is a response to. The default value is `0`.
1891
1912
  * - When `message_type` is `additional`, the `question` field is required.
1892
1913
  * - `quoted_message` can be used to quote the content of a previous user message.
1893
1914
  *
@@ -1901,8 +1922,8 @@ export default class Client extends OpenApi {
1901
1922
  *
1902
1923
  * @remarks
1903
1924
  * ## Request description
1904
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
1905
- * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
1925
+ * - `message_type` defaults to `primary`. To append information or cancel a session, set it to `additional` or `cancel`.
1926
+ * - The `reply_to` field indicates which Agent message this message is a response to. The default value is `0`.
1906
1927
  * - When `message_type` is `additional`, the `question` field is required.
1907
1928
  * - `quoted_message` can be used to quote the content of a previous user message.
1908
1929
  *
package/dist/client.js CHANGED
@@ -69,16 +69,6 @@ class Client extends openapi_core_1.default {
69
69
  constructor(config) {
70
70
  super(config);
71
71
  this._endpointRule = "regional";
72
- this._endpointMap = {
73
- 'cn-shenzhen': "dms.cn-shenzhen.aliyuncs.com",
74
- 'cn-beijing': "dms.cn-beijing.aliyuncs.com",
75
- 'cn-shanghai': "dms.cn-shanghai.aliyuncs.com",
76
- 'cn-hongkong': "dms.cn-hongkong.aliyuncs.com",
77
- 'ap-southeast-1': "dms.ap-southeast-1.aliyuncs.com",
78
- 'cn-hangzhou': "dms.cn-hangzhou.aliyuncs.com",
79
- 'us-west-1': "dms.us-west-1.aliyuncs.com",
80
- 'us-east-1': "dms.us-east-1.aliyuncs.com",
81
- };
82
72
  this.checkConfig(config);
83
73
  this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
84
74
  }
@@ -849,6 +839,66 @@ class Client extends openapi_core_1.default {
849
839
  let runtime = new $dara.RuntimeOptions({});
850
840
  return await this.createDataAgentAccuracyTestWithOptions(request, runtime);
851
841
  }
842
+ /**
843
+ * Creates feedback for a DataAgent.
844
+ *
845
+ * @param request - CreateDataAgentFeedbackRequest
846
+ * @param runtime - runtime options for this request RuntimeOptions
847
+ * @returns CreateDataAgentFeedbackResponse
848
+ */
849
+ async createDataAgentFeedbackWithOptions(request, runtime) {
850
+ request.validate();
851
+ let query = {};
852
+ if (!$dara.isNull(request.DMSUnit)) {
853
+ query["DMSUnit"] = request.DMSUnit;
854
+ }
855
+ if (!$dara.isNull(request.feedbackContent)) {
856
+ query["FeedbackContent"] = request.feedbackContent;
857
+ }
858
+ if (!$dara.isNull(request.feedbackType)) {
859
+ query["FeedbackType"] = request.feedbackType;
860
+ }
861
+ if (!$dara.isNull(request.likeValue)) {
862
+ query["LikeValue"] = request.likeValue;
863
+ }
864
+ if (!$dara.isNull(request.sessionId)) {
865
+ query["SessionId"] = request.sessionId;
866
+ }
867
+ if (!$dara.isNull(request.targetId)) {
868
+ query["TargetId"] = request.targetId;
869
+ }
870
+ if (!$dara.isNull(request.targetType)) {
871
+ query["TargetType"] = request.targetType;
872
+ }
873
+ if (!$dara.isNull(request.workspaceId)) {
874
+ query["WorkspaceId"] = request.workspaceId;
875
+ }
876
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
877
+ query: openapi_core_2.OpenApiUtil.query(query),
878
+ });
879
+ let params = new openapi_core_2.$OpenApiUtil.Params({
880
+ action: "CreateDataAgentFeedback",
881
+ version: "2025-04-14",
882
+ protocol: "HTTPS",
883
+ pathname: "/",
884
+ method: "POST",
885
+ authType: "AK",
886
+ style: "RPC",
887
+ reqBodyType: "formData",
888
+ bodyType: "json",
889
+ });
890
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDataAgentFeedbackResponse({}));
891
+ }
892
+ /**
893
+ * Creates feedback for a DataAgent.
894
+ *
895
+ * @param request - CreateDataAgentFeedbackRequest
896
+ * @returns CreateDataAgentFeedbackResponse
897
+ */
898
+ async createDataAgentFeedback(request) {
899
+ let runtime = new $dara.RuntimeOptions({});
900
+ return await this.createDataAgentFeedbackWithOptions(request, runtime);
901
+ }
852
902
  /**
853
903
  * Creates a DataAgent knowledge base. The knowledge base creator has read and write permissions. Other workspace members have permission to use it.
854
904
  *
@@ -3673,6 +3723,9 @@ class Client extends openapi_core_1.default {
3673
3723
  /**
3674
3724
  * Queries the operation logs of the SQL window.
3675
3725
  *
3726
+ * @remarks
3727
+ * When you call this operation, the service endpoint must match the region where the instance resides. Otherwise, the complete SQL window operation logs cannot be retrieved.
3728
+ *
3676
3729
  * @param request - GetSqlConsoleOperationLogRequest
3677
3730
  * @param runtime - runtime options for this request RuntimeOptions
3678
3731
  * @returns GetSqlConsoleOperationLogResponse
@@ -3723,6 +3776,9 @@ class Client extends openapi_core_1.default {
3723
3776
  /**
3724
3777
  * Queries the operation logs of the SQL window.
3725
3778
  *
3779
+ * @remarks
3780
+ * When you call this operation, the service endpoint must match the region where the instance resides. Otherwise, the complete SQL window operation logs cannot be retrieved.
3781
+ *
3726
3782
  * @param request - GetSqlConsoleOperationLogRequest
3727
3783
  * @returns GetSqlConsoleOperationLogResponse
3728
3784
  */
@@ -4142,7 +4198,7 @@ class Client extends openapi_core_1.default {
4142
4198
  return await this.listAirflowsWithOptions(request, runtime);
4143
4199
  }
4144
4200
  /**
4145
- * ListCustomAgent returns a list of all custom agents from the personal space and workspaces.
4201
+ * Lists all custom agents in a personal space or workspace.
4146
4202
  *
4147
4203
  * @param request - ListCustomAgentRequest
4148
4204
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4186,7 +4242,7 @@ class Client extends openapi_core_1.default {
4186
4242
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCustomAgentResponse({}));
4187
4243
  }
4188
4244
  /**
4189
- * ListCustomAgent returns a list of all custom agents from the personal space and workspaces.
4245
+ * Lists all custom agents in a personal space or workspace.
4190
4246
  *
4191
4247
  * @param request - ListCustomAgentRequest
4192
4248
  * @returns ListCustomAgentResponse
@@ -6430,8 +6486,8 @@ class Client extends openapi_core_1.default {
6430
6486
  *
6431
6487
  * @remarks
6432
6488
  * ## Request description
6433
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
6434
- * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
6489
+ * - `message_type` defaults to `primary`. To append information or cancel a session, set it to `additional` or `cancel`.
6490
+ * - The `reply_to` field indicates which Agent message this message is a response to. The default value is `0`.
6435
6491
  * - When `message_type` is `additional`, the `question` field is required.
6436
6492
  * - `quoted_message` can be used to quote the content of a previous user message.
6437
6493
  *
@@ -6522,8 +6578,8 @@ class Client extends openapi_core_1.default {
6522
6578
  *
6523
6579
  * @remarks
6524
6580
  * ## Request description
6525
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
6526
- * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
6581
+ * - `message_type` defaults to `primary`. To append information or cancel a session, set it to `additional` or `cancel`.
6582
+ * - The `reply_to` field indicates which Agent message this message is a response to. The default value is `0`.
6527
6583
  * - When `message_type` is `additional`, the `question` field is required.
6528
6584
  * - `quoted_message` can be used to quote the content of a previous user message.
6529
6585
  *