@alicloud/dms20250414 4.2.2 → 4.3.1

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 (43) hide show
  1. package/dist/client.d.ts +37 -8
  2. package/dist/client.js +70 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AgenticDatabase.d.ts +0 -103
  5. package/dist/models/AgenticDatabase.js.map +1 -1
  6. package/dist/models/AgenticDatabaseEngineMeta.d.ts +0 -28
  7. package/dist/models/AgenticDatabaseEngineMeta.js.map +1 -1
  8. package/dist/models/AgenticTableBaseInfo.d.ts +0 -60
  9. package/dist/models/AgenticTableBaseInfo.js.map +1 -1
  10. package/dist/models/AgenticTableEngineMeta.d.ts +0 -84
  11. package/dist/models/AgenticTableEngineMeta.js.map +1 -1
  12. package/dist/models/AgenticTableIndex.d.ts +0 -49
  13. package/dist/models/AgenticTableIndex.js.map +1 -1
  14. package/dist/models/ListAgenticSecurityPoliciesRequest.d.ts +45 -0
  15. package/dist/models/ListAgenticSecurityPoliciesRequest.js +64 -0
  16. package/dist/models/ListAgenticSecurityPoliciesRequest.js.map +1 -0
  17. package/dist/models/ListAgenticSecurityPoliciesResponse.d.ts +19 -0
  18. package/dist/models/ListAgenticSecurityPoliciesResponse.js +69 -0
  19. package/dist/models/ListAgenticSecurityPoliciesResponse.js.map +1 -0
  20. package/dist/models/ListAgenticSecurityPoliciesResponseBody.d.ts +160 -0
  21. package/dist/models/ListAgenticSecurityPoliciesResponseBody.js +110 -0
  22. package/dist/models/ListAgenticSecurityPoliciesResponseBody.js.map +1 -0
  23. package/dist/models/SendChatMessageRequest.d.ts +59 -51
  24. package/dist/models/SendChatMessageRequest.js +2 -0
  25. package/dist/models/SendChatMessageRequest.js.map +1 -1
  26. package/dist/models/SendChatMessageShrinkRequest.d.ts +16 -19
  27. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  28. package/dist/models/model.d.ts +4 -0
  29. package/dist/models/model.js +20 -12
  30. package/dist/models/model.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client.ts +76 -8
  33. package/src/models/AgenticDatabase.ts +0 -103
  34. package/src/models/AgenticDatabaseEngineMeta.ts +0 -28
  35. package/src/models/AgenticTableBaseInfo.ts +0 -60
  36. package/src/models/AgenticTableEngineMeta.ts +0 -84
  37. package/src/models/AgenticTableIndex.ts +0 -49
  38. package/src/models/ListAgenticSecurityPoliciesRequest.ts +64 -0
  39. package/src/models/ListAgenticSecurityPoliciesResponse.ts +40 -0
  40. package/src/models/ListAgenticSecurityPoliciesResponseBody.ts +216 -0
  41. package/src/models/SendChatMessageRequest.ts +61 -51
  42. package/src/models/SendChatMessageShrinkRequest.ts +16 -19
  43. package/src/models/model.ts +4 -0
package/dist/client.d.ts CHANGED
@@ -1266,6 +1266,35 @@ export default class Client extends OpenApi {
1266
1266
  * @returns ListAgenticGlobalSqlExecutionHistoriesResponse
1267
1267
  */
1268
1268
  listAgenticGlobalSqlExecutionHistories(request: $_model.ListAgenticGlobalSqlExecutionHistoriesRequest): Promise<$_model.ListAgenticGlobalSqlExecutionHistoriesResponse>;
1269
+ /**
1270
+ * Queries the user security policy of the current Alibaba Cloud account by page and returns the enabled system default security policy.
1271
+ *
1272
+ * @remarks
1273
+ * This operation returns the enabled system default policies and the user policies of the current Alibaba Cloud account.
1274
+ * - System default policies are placed at the beginning of the list. Only policies in the ON (enabled) state are returned. They are not filtered by PolicyStatus or IncludeArchived.
1275
+ * - Page and Size are used to paginate user policies. Each call also returns up to Size enabled system default policies. Therefore, the number of items in Data may be greater than Size, and the same system default policies may be repeatedly returned during pagination.
1276
+ * - TotalCount is the sum of the number of all enabled system default policies and the number of user policies that meet the filter conditions.
1277
+ * - You can use Readonly to distinguish between the two types of policies: true indicates a system default policy, and false indicates a user policy.
1278
+ *
1279
+ * @param request - ListAgenticSecurityPoliciesRequest
1280
+ * @param runtime - runtime options for this request RuntimeOptions
1281
+ * @returns ListAgenticSecurityPoliciesResponse
1282
+ */
1283
+ listAgenticSecurityPoliciesWithOptions(request: $_model.ListAgenticSecurityPoliciesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgenticSecurityPoliciesResponse>;
1284
+ /**
1285
+ * Queries the user security policy of the current Alibaba Cloud account by page and returns the enabled system default security policy.
1286
+ *
1287
+ * @remarks
1288
+ * This operation returns the enabled system default policies and the user policies of the current Alibaba Cloud account.
1289
+ * - System default policies are placed at the beginning of the list. Only policies in the ON (enabled) state are returned. They are not filtered by PolicyStatus or IncludeArchived.
1290
+ * - Page and Size are used to paginate user policies. Each call also returns up to Size enabled system default policies. Therefore, the number of items in Data may be greater than Size, and the same system default policies may be repeatedly returned during pagination.
1291
+ * - TotalCount is the sum of the number of all enabled system default policies and the number of user policies that meet the filter conditions.
1292
+ * - You can use Readonly to distinguish between the two types of policies: true indicates a system default policy, and false indicates a user policy.
1293
+ *
1294
+ * @param request - ListAgenticSecurityPoliciesRequest
1295
+ * @returns ListAgenticSecurityPoliciesResponse
1296
+ */
1297
+ listAgenticSecurityPolicies(request: $_model.ListAgenticSecurityPoliciesRequest): Promise<$_model.ListAgenticSecurityPoliciesResponse>;
1269
1298
  /**
1270
1299
  * Queries the SQL execution history visible to the current caller, sorted in descending order by execution start time. Only AGENT_QUERY and WORKFLOW_QUERY are included.
1271
1300
  *
@@ -1859,10 +1888,10 @@ export default class Client extends OpenApi {
1859
1888
  *
1860
1889
  * @remarks
1861
1890
  * ## Request description
1862
- * - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
1863
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
1864
- * - When `message_type` is `additional`, the `question` field is required.
1865
- * - `quoted_message` can be used to quote previous user messages.
1891
+ * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
1892
+ * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
1893
+ * - When message_type is set to additional, the question field is required.
1894
+ * - You can use quoted_message to quote previous user messages.
1866
1895
  *
1867
1896
  * @param tmpReq - SendChatMessageRequest
1868
1897
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1874,10 +1903,10 @@ export default class Client extends OpenApi {
1874
1903
  *
1875
1904
  * @remarks
1876
1905
  * ## Request description
1877
- * - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
1878
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
1879
- * - When `message_type` is `additional`, the `question` field is required.
1880
- * - `quoted_message` can be used to quote previous user messages.
1906
+ * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
1907
+ * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
1908
+ * - When message_type is set to additional, the question field is required.
1909
+ * - You can use quoted_message to quote previous user messages.
1881
1910
  *
1882
1911
  * @param request - SendChatMessageRequest
1883
1912
  * @returns SendChatMessageResponse
package/dist/client.js CHANGED
@@ -3994,6 +3994,68 @@ class Client extends openapi_core_1.default {
3994
3994
  let runtime = new $dara.RuntimeOptions({});
3995
3995
  return await this.listAgenticGlobalSqlExecutionHistoriesWithOptions(request, runtime);
3996
3996
  }
3997
+ /**
3998
+ * Queries the user security policy of the current Alibaba Cloud account by page and returns the enabled system default security policy.
3999
+ *
4000
+ * @remarks
4001
+ * This operation returns the enabled system default policies and the user policies of the current Alibaba Cloud account.
4002
+ * - System default policies are placed at the beginning of the list. Only policies in the ON (enabled) state are returned. They are not filtered by PolicyStatus or IncludeArchived.
4003
+ * - Page and Size are used to paginate user policies. Each call also returns up to Size enabled system default policies. Therefore, the number of items in Data may be greater than Size, and the same system default policies may be repeatedly returned during pagination.
4004
+ * - TotalCount is the sum of the number of all enabled system default policies and the number of user policies that meet the filter conditions.
4005
+ * - You can use Readonly to distinguish between the two types of policies: true indicates a system default policy, and false indicates a user policy.
4006
+ *
4007
+ * @param request - ListAgenticSecurityPoliciesRequest
4008
+ * @param runtime - runtime options for this request RuntimeOptions
4009
+ * @returns ListAgenticSecurityPoliciesResponse
4010
+ */
4011
+ async listAgenticSecurityPoliciesWithOptions(request, runtime) {
4012
+ request.validate();
4013
+ let query = {};
4014
+ if (!$dara.isNull(request.includeArchived)) {
4015
+ query["IncludeArchived"] = request.includeArchived;
4016
+ }
4017
+ if (!$dara.isNull(request.page)) {
4018
+ query["Page"] = request.page;
4019
+ }
4020
+ if (!$dara.isNull(request.policyStatus)) {
4021
+ query["PolicyStatus"] = request.policyStatus;
4022
+ }
4023
+ if (!$dara.isNull(request.size)) {
4024
+ query["Size"] = request.size;
4025
+ }
4026
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4027
+ query: openapi_core_2.OpenApiUtil.query(query),
4028
+ });
4029
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4030
+ action: "ListAgenticSecurityPolicies",
4031
+ version: "2025-04-14",
4032
+ protocol: "HTTPS",
4033
+ pathname: "/",
4034
+ method: "POST",
4035
+ authType: "AK",
4036
+ style: "RPC",
4037
+ reqBodyType: "formData",
4038
+ bodyType: "json",
4039
+ });
4040
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAgenticSecurityPoliciesResponse({}));
4041
+ }
4042
+ /**
4043
+ * Queries the user security policy of the current Alibaba Cloud account by page and returns the enabled system default security policy.
4044
+ *
4045
+ * @remarks
4046
+ * This operation returns the enabled system default policies and the user policies of the current Alibaba Cloud account.
4047
+ * - System default policies are placed at the beginning of the list. Only policies in the ON (enabled) state are returned. They are not filtered by PolicyStatus or IncludeArchived.
4048
+ * - Page and Size are used to paginate user policies. Each call also returns up to Size enabled system default policies. Therefore, the number of items in Data may be greater than Size, and the same system default policies may be repeatedly returned during pagination.
4049
+ * - TotalCount is the sum of the number of all enabled system default policies and the number of user policies that meet the filter conditions.
4050
+ * - You can use Readonly to distinguish between the two types of policies: true indicates a system default policy, and false indicates a user policy.
4051
+ *
4052
+ * @param request - ListAgenticSecurityPoliciesRequest
4053
+ * @returns ListAgenticSecurityPoliciesResponse
4054
+ */
4055
+ async listAgenticSecurityPolicies(request) {
4056
+ let runtime = new $dara.RuntimeOptions({});
4057
+ return await this.listAgenticSecurityPoliciesWithOptions(request, runtime);
4058
+ }
3997
4059
  /**
3998
4060
  * Queries the SQL execution history visible to the current caller, sorted in descending order by execution start time. Only AGENT_QUERY and WORKFLOW_QUERY are included.
3999
4061
  *
@@ -6151,10 +6213,10 @@ class Client extends openapi_core_1.default {
6151
6213
  *
6152
6214
  * @remarks
6153
6215
  * ## Request description
6154
- * - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
6155
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
6156
- * - When `message_type` is `additional`, the `question` field is required.
6157
- * - `quoted_message` can be used to quote previous user messages.
6216
+ * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
6217
+ * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
6218
+ * - When message_type is set to additional, the question field is required.
6219
+ * - You can use quoted_message to quote previous user messages.
6158
6220
  *
6159
6221
  * @param tmpReq - SendChatMessageRequest
6160
6222
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6243,10 +6305,10 @@ class Client extends openapi_core_1.default {
6243
6305
  *
6244
6306
  * @remarks
6245
6307
  * ## Request description
6246
- * - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
6247
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
6248
- * - When `message_type` is `additional`, the `question` field is required.
6249
- * - `quoted_message` can be used to quote previous user messages.
6308
+ * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
6309
+ * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
6310
+ * - When message_type is set to additional, the question field is required.
6311
+ * - You can use quoted_message to quote previous user messages.
6250
6312
  *
6251
6313
  * @param request - SendChatMessageRequest
6252
6314
  * @returns SendChatMessageResponse