@alicloud/dms20250414 4.2.1 → 4.3.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 (48) hide show
  1. package/dist/client.d.ts +31 -2
  2. package/dist/client.js +67 -2
  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/CreateDataAgentSkillMetaRequest.d.ts +12 -6
  15. package/dist/models/CreateDataAgentSkillMetaRequest.js +2 -0
  16. package/dist/models/CreateDataAgentSkillMetaRequest.js.map +1 -1
  17. package/dist/models/CreateDataAgentSkillMetaResponseBody.d.ts +5 -8
  18. package/dist/models/CreateDataAgentSkillMetaResponseBody.js.map +1 -1
  19. package/dist/models/ListAgenticSecurityPoliciesRequest.d.ts +45 -0
  20. package/dist/models/ListAgenticSecurityPoliciesRequest.js +64 -0
  21. package/dist/models/ListAgenticSecurityPoliciesRequest.js.map +1 -0
  22. package/dist/models/ListAgenticSecurityPoliciesResponse.d.ts +19 -0
  23. package/dist/models/ListAgenticSecurityPoliciesResponse.js +69 -0
  24. package/dist/models/ListAgenticSecurityPoliciesResponse.js.map +1 -0
  25. package/dist/models/ListAgenticSecurityPoliciesResponseBody.d.ts +160 -0
  26. package/dist/models/ListAgenticSecurityPoliciesResponseBody.js +110 -0
  27. package/dist/models/ListAgenticSecurityPoliciesResponseBody.js.map +1 -0
  28. package/dist/models/UpdateAgenticDataSourceRequest.d.ts +31 -16
  29. package/dist/models/UpdateAgenticDataSourceRequest.js.map +1 -1
  30. package/dist/models/UpdateAgenticDataSourceResponseBody.d.ts +21 -21
  31. package/dist/models/model.d.ts +4 -0
  32. package/dist/models/model.js +20 -12
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +74 -2
  36. package/src/models/AgenticDatabase.ts +0 -103
  37. package/src/models/AgenticDatabaseEngineMeta.ts +0 -28
  38. package/src/models/AgenticTableBaseInfo.ts +0 -60
  39. package/src/models/AgenticTableEngineMeta.ts +0 -84
  40. package/src/models/AgenticTableIndex.ts +0 -49
  41. package/src/models/CreateDataAgentSkillMetaRequest.ts +14 -6
  42. package/src/models/CreateDataAgentSkillMetaResponseBody.ts +5 -8
  43. package/src/models/ListAgenticSecurityPoliciesRequest.ts +64 -0
  44. package/src/models/ListAgenticSecurityPoliciesResponse.ts +40 -0
  45. package/src/models/ListAgenticSecurityPoliciesResponseBody.ts +216 -0
  46. package/src/models/UpdateAgenticDataSourceRequest.ts +31 -16
  47. package/src/models/UpdateAgenticDataSourceResponseBody.ts +21 -21
  48. 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
  *
@@ -2007,7 +2036,7 @@ export default class Client extends OpenApi {
2007
2036
  * Updates the connection, authentication, or display information of an existing data source.
2008
2037
  *
2009
2038
  * @remarks
2010
- * Only the parameters passed in the current request are modified. Unpassed parameters remain unchanged. The data source type cannot be modified.
2039
+ * Only the parameters passed in the current request are modified. Unspecified parameters remain unchanged. The data source type cannot be modified.
2011
2040
  *
2012
2041
  * @param request - UpdateAgenticDataSourceRequest
2013
2042
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2018,7 +2047,7 @@ export default class Client extends OpenApi {
2018
2047
  * Updates the connection, authentication, or display information of an existing data source.
2019
2048
  *
2020
2049
  * @remarks
2021
- * Only the parameters passed in the current request are modified. Unpassed parameters remain unchanged. The data source type cannot be modified.
2050
+ * Only the parameters passed in the current request are modified. Unspecified parameters remain unchanged. The data source type cannot be modified.
2022
2051
  *
2023
2052
  * @param request - UpdateAgenticDataSourceRequest
2024
2053
  * @returns UpdateAgenticDataSourceResponse
package/dist/client.js CHANGED
@@ -1062,6 +1062,9 @@ class Client extends openapi_core_1.default {
1062
1062
  if (!$dara.isNull(request.description)) {
1063
1063
  query["Description"] = request.description;
1064
1064
  }
1065
+ if (!$dara.isNull(request.skillId)) {
1066
+ query["SkillId"] = request.skillId;
1067
+ }
1065
1068
  if (!$dara.isNull(request.skillName)) {
1066
1069
  query["SkillName"] = request.skillName;
1067
1070
  }
@@ -3991,6 +3994,68 @@ class Client extends openapi_core_1.default {
3991
3994
  let runtime = new $dara.RuntimeOptions({});
3992
3995
  return await this.listAgenticGlobalSqlExecutionHistoriesWithOptions(request, runtime);
3993
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
+ }
3994
4059
  /**
3995
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.
3996
4061
  *
@@ -6624,7 +6689,7 @@ class Client extends openapi_core_1.default {
6624
6689
  * Updates the connection, authentication, or display information of an existing data source.
6625
6690
  *
6626
6691
  * @remarks
6627
- * Only the parameters passed in the current request are modified. Unpassed parameters remain unchanged. The data source type cannot be modified.
6692
+ * Only the parameters passed in the current request are modified. Unspecified parameters remain unchanged. The data source type cannot be modified.
6628
6693
  *
6629
6694
  * @param request - UpdateAgenticDataSourceRequest
6630
6695
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6713,7 +6778,7 @@ class Client extends openapi_core_1.default {
6713
6778
  * Updates the connection, authentication, or display information of an existing data source.
6714
6779
  *
6715
6780
  * @remarks
6716
- * Only the parameters passed in the current request are modified. Unpassed parameters remain unchanged. The data source type cannot be modified.
6781
+ * Only the parameters passed in the current request are modified. Unspecified parameters remain unchanged. The data source type cannot be modified.
6717
6782
  *
6718
6783
  * @param request - UpdateAgenticDataSourceRequest
6719
6784
  * @returns UpdateAgenticDataSourceResponse