kb-cloud-client-typescript 2.4.0-alpha.94 → 2.4.0-alpha.95

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 (175) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +1129 -38
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +1283 -149
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/mongodb-api.d.ts +943 -4
  6. package/dist/adminapi/apis/mongodb-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/mongodb-api.js +1005 -0
  8. package/dist/adminapi/apis/mongodb-api.js.map +1 -1
  9. package/dist/adminapi/apis/rdbms-api.d.ts +186 -34
  10. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/rdbms-api.js +166 -37
  12. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  13. package/dist/adminapi/apis/shared-api.d.ts +1196 -105
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +1273 -139
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/index.d.ts +11 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +11 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/adminapi/models/mongo-rbacbinding-change.d.ts +32 -0
  22. package/dist/adminapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
  23. package/dist/adminapi/models/mongo-rbacbinding-change.js +16 -0
  24. package/dist/adminapi/models/mongo-rbacbinding-change.js.map +1 -0
  25. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts +32 -0
  26. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
  27. package/dist/adminapi/models/mongo-rbaccapabilities.js +16 -0
  28. package/dist/adminapi/models/mongo-rbaccapabilities.js.map +1 -0
  29. package/dist/adminapi/models/mongo-rbacpassword-change.d.ts +25 -0
  30. package/dist/adminapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
  31. package/dist/adminapi/models/mongo-rbacpassword-change.js +16 -0
  32. package/dist/adminapi/models/mongo-rbacpassword-change.js.map +1 -0
  33. package/dist/adminapi/models/mongo-rbacprivilege.d.ts +32 -0
  34. package/dist/adminapi/models/mongo-rbacprivilege.d.ts.map +1 -0
  35. package/dist/adminapi/models/mongo-rbacprivilege.js +16 -0
  36. package/dist/adminapi/models/mongo-rbacprivilege.js.map +1 -0
  37. package/dist/adminapi/models/mongo-rbacresource-capability.d.ts +31 -0
  38. package/dist/adminapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
  39. package/dist/adminapi/models/mongo-rbacresource-capability.js +16 -0
  40. package/dist/adminapi/models/mongo-rbacresource-capability.js.map +1 -0
  41. package/dist/adminapi/models/mongo-rbacresource.d.ts +43 -0
  42. package/dist/adminapi/models/mongo-rbacresource.d.ts.map +1 -0
  43. package/dist/adminapi/models/mongo-rbacresource.js +16 -0
  44. package/dist/adminapi/models/mongo-rbacresource.js.map +1 -0
  45. package/dist/adminapi/models/mongo-rbacrole-ref.d.ts +31 -0
  46. package/dist/adminapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
  47. package/dist/adminapi/models/mongo-rbacrole-ref.js +16 -0
  48. package/dist/adminapi/models/mongo-rbacrole-ref.js.map +1 -0
  49. package/dist/adminapi/models/mongo-rbacrole-write.d.ts +51 -0
  50. package/dist/adminapi/models/mongo-rbacrole-write.d.ts.map +1 -0
  51. package/dist/adminapi/models/mongo-rbacrole-write.js +16 -0
  52. package/dist/adminapi/models/mongo-rbacrole-write.js.map +1 -0
  53. package/dist/adminapi/models/mongo-rbacrole.d.ts +69 -0
  54. package/dist/adminapi/models/mongo-rbacrole.d.ts.map +1 -0
  55. package/dist/adminapi/models/mongo-rbacrole.js +16 -0
  56. package/dist/adminapi/models/mongo-rbacrole.js.map +1 -0
  57. package/dist/adminapi/models/mongo-rbacuser-create.d.ts +44 -0
  58. package/dist/adminapi/models/mongo-rbacuser-create.d.ts.map +1 -0
  59. package/dist/adminapi/models/mongo-rbacuser-create.js +16 -0
  60. package/dist/adminapi/models/mongo-rbacuser-create.js.map +1 -0
  61. package/dist/adminapi/models/mongo-rbacuser.d.ts +57 -0
  62. package/dist/adminapi/models/mongo-rbacuser.d.ts.map +1 -0
  63. package/dist/adminapi/models/mongo-rbacuser.js +16 -0
  64. package/dist/adminapi/models/mongo-rbacuser.js.map +1 -0
  65. package/dist/adminapi/models/object-privilege-evidence.d.ts +6 -0
  66. package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -1
  67. package/dist/adminapi/models/object-privilege-reset-step.d.ts +1 -1
  68. package/dist/openapi/apis/account-api.d.ts +1129 -38
  69. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  70. package/dist/openapi/apis/account-api.js +1283 -149
  71. package/dist/openapi/apis/account-api.js.map +1 -1
  72. package/dist/openapi/apis/mongodb-api.d.ts +943 -4
  73. package/dist/openapi/apis/mongodb-api.d.ts.map +1 -1
  74. package/dist/openapi/apis/mongodb-api.js +1005 -0
  75. package/dist/openapi/apis/mongodb-api.js.map +1 -1
  76. package/dist/openapi/apis/rdbms-api.d.ts +186 -34
  77. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  78. package/dist/openapi/apis/rdbms-api.js +166 -37
  79. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  80. package/dist/openapi/apis/shared-api.d.ts +1196 -105
  81. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  82. package/dist/openapi/apis/shared-api.js +1273 -139
  83. package/dist/openapi/apis/shared-api.js.map +1 -1
  84. package/dist/openapi/models/index.d.ts +11 -0
  85. package/dist/openapi/models/index.d.ts.map +1 -1
  86. package/dist/openapi/models/index.js +11 -0
  87. package/dist/openapi/models/index.js.map +1 -1
  88. package/dist/openapi/models/mongo-rbacbinding-change.d.ts +32 -0
  89. package/dist/openapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
  90. package/dist/openapi/models/mongo-rbacbinding-change.js +16 -0
  91. package/dist/openapi/models/mongo-rbacbinding-change.js.map +1 -0
  92. package/dist/openapi/models/mongo-rbaccapabilities.d.ts +32 -0
  93. package/dist/openapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
  94. package/dist/openapi/models/mongo-rbaccapabilities.js +16 -0
  95. package/dist/openapi/models/mongo-rbaccapabilities.js.map +1 -0
  96. package/dist/openapi/models/mongo-rbacpassword-change.d.ts +25 -0
  97. package/dist/openapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
  98. package/dist/openapi/models/mongo-rbacpassword-change.js +16 -0
  99. package/dist/openapi/models/mongo-rbacpassword-change.js.map +1 -0
  100. package/dist/openapi/models/mongo-rbacprivilege.d.ts +32 -0
  101. package/dist/openapi/models/mongo-rbacprivilege.d.ts.map +1 -0
  102. package/dist/openapi/models/mongo-rbacprivilege.js +16 -0
  103. package/dist/openapi/models/mongo-rbacprivilege.js.map +1 -0
  104. package/dist/openapi/models/mongo-rbacresource-capability.d.ts +31 -0
  105. package/dist/openapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
  106. package/dist/openapi/models/mongo-rbacresource-capability.js +16 -0
  107. package/dist/openapi/models/mongo-rbacresource-capability.js.map +1 -0
  108. package/dist/openapi/models/mongo-rbacresource.d.ts +43 -0
  109. package/dist/openapi/models/mongo-rbacresource.d.ts.map +1 -0
  110. package/dist/openapi/models/mongo-rbacresource.js +16 -0
  111. package/dist/openapi/models/mongo-rbacresource.js.map +1 -0
  112. package/dist/openapi/models/mongo-rbacrole-ref.d.ts +31 -0
  113. package/dist/openapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
  114. package/dist/openapi/models/mongo-rbacrole-ref.js +16 -0
  115. package/dist/openapi/models/mongo-rbacrole-ref.js.map +1 -0
  116. package/dist/openapi/models/mongo-rbacrole-write.d.ts +51 -0
  117. package/dist/openapi/models/mongo-rbacrole-write.d.ts.map +1 -0
  118. package/dist/openapi/models/mongo-rbacrole-write.js +16 -0
  119. package/dist/openapi/models/mongo-rbacrole-write.js.map +1 -0
  120. package/dist/openapi/models/mongo-rbacrole.d.ts +69 -0
  121. package/dist/openapi/models/mongo-rbacrole.d.ts.map +1 -0
  122. package/dist/openapi/models/mongo-rbacrole.js +16 -0
  123. package/dist/openapi/models/mongo-rbacrole.js.map +1 -0
  124. package/dist/openapi/models/mongo-rbacuser-create.d.ts +44 -0
  125. package/dist/openapi/models/mongo-rbacuser-create.d.ts.map +1 -0
  126. package/dist/openapi/models/mongo-rbacuser-create.js +16 -0
  127. package/dist/openapi/models/mongo-rbacuser-create.js.map +1 -0
  128. package/dist/openapi/models/mongo-rbacuser.d.ts +57 -0
  129. package/dist/openapi/models/mongo-rbacuser.d.ts.map +1 -0
  130. package/dist/openapi/models/mongo-rbacuser.js +16 -0
  131. package/dist/openapi/models/mongo-rbacuser.js.map +1 -0
  132. package/dist/openapi/models/object-privilege-evidence.d.ts +6 -0
  133. package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -1
  134. package/dist/openapi/models/object-privilege-reset-step.d.ts +1 -1
  135. package/package.json +1 -1
  136. package/src/adminapi/.openapi-generator/FILES +11 -0
  137. package/src/adminapi/apis/account-api.ts +3961 -2069
  138. package/src/adminapi/apis/mongodb-api.ts +1757 -120
  139. package/src/adminapi/apis/rdbms-api.ts +298 -43
  140. package/src/adminapi/apis/shared-api.ts +2363 -471
  141. package/src/adminapi/models/index.ts +11 -0
  142. package/src/adminapi/models/mongo-rbacbinding-change.ts +39 -0
  143. package/src/adminapi/models/mongo-rbaccapabilities.ts +39 -0
  144. package/src/adminapi/models/mongo-rbacpassword-change.ts +30 -0
  145. package/src/adminapi/models/mongo-rbacprivilege.ts +39 -0
  146. package/src/adminapi/models/mongo-rbacresource-capability.ts +36 -0
  147. package/src/adminapi/models/mongo-rbacresource.ts +48 -0
  148. package/src/adminapi/models/mongo-rbacrole-ref.ts +36 -0
  149. package/src/adminapi/models/mongo-rbacrole-write.ts +60 -0
  150. package/src/adminapi/models/mongo-rbacrole.ts +78 -0
  151. package/src/adminapi/models/mongo-rbacuser-create.ts +51 -0
  152. package/src/adminapi/models/mongo-rbacuser.ts +66 -0
  153. package/src/adminapi/models/object-privilege-evidence.ts +6 -0
  154. package/src/adminapi/models/object-privilege-reset-step.ts +1 -1
  155. package/src/adminapi.yaml +958 -134
  156. package/src/openapi/.openapi-generator/FILES +11 -0
  157. package/src/openapi/apis/account-api.ts +3961 -2069
  158. package/src/openapi/apis/mongodb-api.ts +1757 -120
  159. package/src/openapi/apis/rdbms-api.ts +298 -43
  160. package/src/openapi/apis/shared-api.ts +2168 -276
  161. package/src/openapi/models/index.ts +11 -0
  162. package/src/openapi/models/mongo-rbacbinding-change.ts +39 -0
  163. package/src/openapi/models/mongo-rbaccapabilities.ts +39 -0
  164. package/src/openapi/models/mongo-rbacpassword-change.ts +30 -0
  165. package/src/openapi/models/mongo-rbacprivilege.ts +39 -0
  166. package/src/openapi/models/mongo-rbacresource-capability.ts +36 -0
  167. package/src/openapi/models/mongo-rbacresource.ts +48 -0
  168. package/src/openapi/models/mongo-rbacrole-ref.ts +36 -0
  169. package/src/openapi/models/mongo-rbacrole-write.ts +60 -0
  170. package/src/openapi/models/mongo-rbacrole.ts +78 -0
  171. package/src/openapi/models/mongo-rbacuser-create.ts +51 -0
  172. package/src/openapi/models/mongo-rbacuser.ts +66 -0
  173. package/src/openapi/models/object-privilege-evidence.ts +6 -0
  174. package/src/openapi/models/object-privilege-reset-step.ts +1 -1
  175. package/src/openapi.yaml +958 -134
@@ -4621,6 +4621,68 @@ const SharedApiAxiosParamCreator = function (configuration) {
4621
4621
  options: localVarRequestOptions,
4622
4622
  };
4623
4623
  },
4624
+ /**
4625
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
4626
+ * @summary Read native account privilege summary or selected database evidence
4627
+ * @param {string} engineName
4628
+ * @param {string} orgName
4629
+ * @param {string} clusterName
4630
+ * @param {string} accountName
4631
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
4632
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
4633
+ * @param {string} [subjectQualifiers]
4634
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
4635
+ * @param {*} [options] Override http request option.
4636
+ * @throws {RequiredError}
4637
+ */
4638
+ getAccountPrivilegeOverview: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options = {}) => {
4639
+ // verify required parameter 'engineName' is not null or undefined
4640
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'engineName', engineName);
4641
+ // verify required parameter 'orgName' is not null or undefined
4642
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'orgName', orgName);
4643
+ // verify required parameter 'clusterName' is not null or undefined
4644
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'clusterName', clusterName);
4645
+ // verify required parameter 'accountName' is not null or undefined
4646
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'accountName', accountName);
4647
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/overview`
4648
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
4649
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4650
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4651
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
4652
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4653
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4654
+ let baseOptions;
4655
+ if (configuration) {
4656
+ baseOptions = configuration.baseOptions;
4657
+ }
4658
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4659
+ const localVarHeaderParameter = {};
4660
+ const localVarQueryParameter = {};
4661
+ // authentication BearerToken required
4662
+ // http bearer authentication required
4663
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4664
+ // authentication DigestAuth required
4665
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4666
+ if (subjectType !== undefined) {
4667
+ localVarQueryParameter['subjectType'] = subjectType;
4668
+ }
4669
+ if (host !== undefined) {
4670
+ localVarQueryParameter['host'] = host;
4671
+ }
4672
+ if (subjectQualifiers !== undefined) {
4673
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
4674
+ }
4675
+ if (databaseName !== undefined) {
4676
+ localVarQueryParameter['databaseName'] = databaseName;
4677
+ }
4678
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4679
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4680
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4681
+ return {
4682
+ url: (0, common_1.toPathString)(localVarUrlObj),
4683
+ options: localVarRequestOptions,
4684
+ };
4685
+ },
4624
4686
  /**
4625
4687
  *
4626
4688
  * @summary Get alert config
@@ -7369,19 +7431,20 @@ const SharedApiAxiosParamCreator = function (configuration) {
7369
7431
  };
7370
7432
  },
7371
7433
  /**
7372
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
7434
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
7373
7435
  * @summary List exact column names for account object privileges
7374
7436
  * @param {string} engineName
7375
7437
  * @param {string} orgName
7376
7438
  * @param {string} clusterName
7377
7439
  * @param {string} accountName
7378
- * @param {string} objectType Object type, either table or view
7440
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
7379
7441
  * @param {string} databaseName
7380
7442
  * @param {string} objectName
7443
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
7381
7444
  * @param {*} [options] Override http request option.
7382
7445
  * @throws {RequiredError}
7383
7446
  */
7384
- listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options = {}) => {
7447
+ listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options = {}) => {
7385
7448
  // verify required parameter 'engineName' is not null or undefined
7386
7449
  (0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'engineName', engineName);
7387
7450
  // verify required parameter 'orgName' is not null or undefined
@@ -7424,6 +7487,9 @@ const SharedApiAxiosParamCreator = function (configuration) {
7424
7487
  if (objectName !== undefined) {
7425
7488
  localVarQueryParameter['objectName'] = objectName;
7426
7489
  }
7490
+ if (schemaName !== undefined) {
7491
+ localVarQueryParameter['schemaName'] = schemaName;
7492
+ }
7427
7493
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7428
7494
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7429
7495
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -10207,21 +10273,558 @@ const SharedApiAxiosParamCreator = function (configuration) {
10207
10273
  // verify required parameter 'orgName' is not null or undefined
10208
10274
  (0, common_1.assertParamExists)('lockAccount', 'orgName', orgName);
10209
10275
  // verify required parameter 'clusterName' is not null or undefined
10210
- (0, common_1.assertParamExists)('lockAccount', 'clusterName', clusterName);
10211
- // verify required parameter 'accountName' is not null or undefined
10212
- (0, common_1.assertParamExists)('lockAccount', 'accountName', accountName);
10213
- const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
10214
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
10276
+ (0, common_1.assertParamExists)('lockAccount', 'clusterName', clusterName);
10277
+ // verify required parameter 'accountName' is not null or undefined
10278
+ (0, common_1.assertParamExists)('lockAccount', 'accountName', accountName);
10279
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
10280
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
10281
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10282
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10283
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
10284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10285
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10286
+ let baseOptions;
10287
+ if (configuration) {
10288
+ baseOptions = configuration.baseOptions;
10289
+ }
10290
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10291
+ const localVarHeaderParameter = {};
10292
+ const localVarQueryParameter = {};
10293
+ // authentication BearerToken required
10294
+ // http bearer authentication required
10295
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10296
+ // authentication DigestAuth required
10297
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10298
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10300
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10301
+ return {
10302
+ url: (0, common_1.toPathString)(localVarUrlObj),
10303
+ options: localVarRequestOptions,
10304
+ };
10305
+ },
10306
+ /**
10307
+ *
10308
+ * @summary Lock Elasticsearch account
10309
+ * @param {string} orgName
10310
+ * @param {string} clusterName
10311
+ * @param {string} username
10312
+ * @param {*} [options] Override http request option.
10313
+ * @throws {RequiredError}
10314
+ */
10315
+ lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
10316
+ // verify required parameter 'orgName' is not null or undefined
10317
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
10318
+ // verify required parameter 'clusterName' is not null or undefined
10319
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
10320
+ // verify required parameter 'username' is not null or undefined
10321
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
10322
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
10323
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10324
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10325
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10327
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10328
+ let baseOptions;
10329
+ if (configuration) {
10330
+ baseOptions = configuration.baseOptions;
10331
+ }
10332
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10333
+ const localVarHeaderParameter = {};
10334
+ const localVarQueryParameter = {};
10335
+ // authentication BearerToken required
10336
+ // http bearer authentication required
10337
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10338
+ // authentication DigestAuth required
10339
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10340
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10342
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10343
+ return {
10344
+ url: (0, common_1.toPathString)(localVarUrlObj),
10345
+ options: localVarRequestOptions,
10346
+ };
10347
+ },
10348
+ /**
10349
+ *
10350
+ * @summary batch modify database tde status
10351
+ * @param {string} orgName name of the organization
10352
+ * @param {string} clusterName name of the cluster
10353
+ * @param {DbTDERequest} [dbTDERequest]
10354
+ * @param {*} [options] Override http request option.
10355
+ * @throws {RequiredError}
10356
+ */
10357
+ manageMssqlTDEDatabase: async (orgName, clusterName, dbTDERequest, options = {}) => {
10358
+ // verify required parameter 'orgName' is not null or undefined
10359
+ (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'orgName', orgName);
10360
+ // verify required parameter 'clusterName' is not null or undefined
10361
+ (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'clusterName', clusterName);
10362
+ const localVarPath = `/api/v1/data/mssql/organizations/{orgName}/clusters/{clusterName}/tde`
10363
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10364
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10366
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10367
+ let baseOptions;
10368
+ if (configuration) {
10369
+ baseOptions = configuration.baseOptions;
10370
+ }
10371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10372
+ const localVarHeaderParameter = {};
10373
+ const localVarQueryParameter = {};
10374
+ // authentication BearerToken required
10375
+ // http bearer authentication required
10376
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10377
+ // authentication DigestAuth required
10378
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10379
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10380
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10382
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10383
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dbTDERequest, localVarRequestOptions, configuration);
10384
+ return {
10385
+ url: (0, common_1.toPathString)(localVarUrlObj),
10386
+ options: localVarRequestOptions,
10387
+ };
10388
+ },
10389
+ /**
10390
+ *
10391
+ * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
10392
+ * @param {string} orgName name of the Org
10393
+ * @param {string} clusterName name of the KubeBlocks cluster
10394
+ * @param {*} [options] Override http request option.
10395
+ * @throws {RequiredError}
10396
+ */
10397
+ markClusterRestoreCompleted: async (orgName, clusterName, options = {}) => {
10398
+ // verify required parameter 'orgName' is not null or undefined
10399
+ (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'orgName', orgName);
10400
+ // verify required parameter 'clusterName' is not null or undefined
10401
+ (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'clusterName', clusterName);
10402
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/markClusterRestoreCompleted`
10403
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10404
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10406
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10407
+ let baseOptions;
10408
+ if (configuration) {
10409
+ baseOptions = configuration.baseOptions;
10410
+ }
10411
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10412
+ const localVarHeaderParameter = {};
10413
+ const localVarQueryParameter = {};
10414
+ // authentication BearerToken required
10415
+ // http bearer authentication required
10416
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10417
+ // authentication DigestAuth required
10418
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10419
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10421
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10422
+ return {
10423
+ url: (0, common_1.toPathString)(localVarUrlObj),
10424
+ options: localVarRequestOptions,
10425
+ };
10426
+ },
10427
+ /**
10428
+ *
10429
+ * @summary ChangeRBACUserPassword
10430
+ * @param {string} orgName
10431
+ * @param {string} clusterName
10432
+ * @param {string} database
10433
+ * @param {string} username
10434
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
10435
+ * @param {*} [options] Override http request option.
10436
+ * @throws {RequiredError}
10437
+ */
10438
+ mongoChangeRBACUserPassword: async (orgName, clusterName, database, username, mongoRBACPasswordChange, options = {}) => {
10439
+ // verify required parameter 'orgName' is not null or undefined
10440
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'orgName', orgName);
10441
+ // verify required parameter 'clusterName' is not null or undefined
10442
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'clusterName', clusterName);
10443
+ // verify required parameter 'database' is not null or undefined
10444
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'database', database);
10445
+ // verify required parameter 'username' is not null or undefined
10446
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'username', username);
10447
+ // verify required parameter 'mongoRBACPasswordChange' is not null or undefined
10448
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'mongoRBACPasswordChange', mongoRBACPasswordChange);
10449
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/password`
10450
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10451
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10452
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10453
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10455
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10456
+ let baseOptions;
10457
+ if (configuration) {
10458
+ baseOptions = configuration.baseOptions;
10459
+ }
10460
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10461
+ const localVarHeaderParameter = {};
10462
+ const localVarQueryParameter = {};
10463
+ // authentication BearerToken required
10464
+ // http bearer authentication required
10465
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10466
+ // authentication DigestAuth required
10467
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10468
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10469
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10471
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10472
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACPasswordChange, localVarRequestOptions, configuration);
10473
+ return {
10474
+ url: (0, common_1.toPathString)(localVarUrlObj),
10475
+ options: localVarRequestOptions,
10476
+ };
10477
+ },
10478
+ /**
10479
+ *
10480
+ * @summary ChangeRBACUserRoles
10481
+ * @param {string} orgName
10482
+ * @param {string} clusterName
10483
+ * @param {string} database
10484
+ * @param {string} username
10485
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
10486
+ * @param {*} [options] Override http request option.
10487
+ * @throws {RequiredError}
10488
+ */
10489
+ mongoChangeRBACUserRoles: async (orgName, clusterName, database, username, mongoRBACBindingChange, options = {}) => {
10490
+ // verify required parameter 'orgName' is not null or undefined
10491
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'orgName', orgName);
10492
+ // verify required parameter 'clusterName' is not null or undefined
10493
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'clusterName', clusterName);
10494
+ // verify required parameter 'database' is not null or undefined
10495
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'database', database);
10496
+ // verify required parameter 'username' is not null or undefined
10497
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'username', username);
10498
+ // verify required parameter 'mongoRBACBindingChange' is not null or undefined
10499
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'mongoRBACBindingChange', mongoRBACBindingChange);
10500
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles`
10501
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10502
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10503
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10504
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10505
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10506
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10507
+ let baseOptions;
10508
+ if (configuration) {
10509
+ baseOptions = configuration.baseOptions;
10510
+ }
10511
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10512
+ const localVarHeaderParameter = {};
10513
+ const localVarQueryParameter = {};
10514
+ // authentication BearerToken required
10515
+ // http bearer authentication required
10516
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10517
+ // authentication DigestAuth required
10518
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10519
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10520
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10522
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10523
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACBindingChange, localVarRequestOptions, configuration);
10524
+ return {
10525
+ url: (0, common_1.toPathString)(localVarUrlObj),
10526
+ options: localVarRequestOptions,
10527
+ };
10528
+ },
10529
+ /**
10530
+ *
10531
+ * @summary CreateRBACRole
10532
+ * @param {string} orgName
10533
+ * @param {string} clusterName
10534
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
10535
+ * @param {*} [options] Override http request option.
10536
+ * @throws {RequiredError}
10537
+ */
10538
+ mongoCreateRBACRole: async (orgName, clusterName, mongoRBACRoleWrite, options = {}) => {
10539
+ // verify required parameter 'orgName' is not null or undefined
10540
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'orgName', orgName);
10541
+ // verify required parameter 'clusterName' is not null or undefined
10542
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'clusterName', clusterName);
10543
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
10544
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
10545
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
10546
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10547
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10548
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10549
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10550
+ let baseOptions;
10551
+ if (configuration) {
10552
+ baseOptions = configuration.baseOptions;
10553
+ }
10554
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10555
+ const localVarHeaderParameter = {};
10556
+ const localVarQueryParameter = {};
10557
+ // authentication BearerToken required
10558
+ // http bearer authentication required
10559
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10560
+ // authentication DigestAuth required
10561
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10562
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10563
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10566
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
10567
+ return {
10568
+ url: (0, common_1.toPathString)(localVarUrlObj),
10569
+ options: localVarRequestOptions,
10570
+ };
10571
+ },
10572
+ /**
10573
+ *
10574
+ * @summary CreateRBACUser
10575
+ * @param {string} orgName
10576
+ * @param {string} clusterName
10577
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
10578
+ * @param {*} [options] Override http request option.
10579
+ * @throws {RequiredError}
10580
+ */
10581
+ mongoCreateRBACUser: async (orgName, clusterName, mongoRBACUserCreate, options = {}) => {
10582
+ // verify required parameter 'orgName' is not null or undefined
10583
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'orgName', orgName);
10584
+ // verify required parameter 'clusterName' is not null or undefined
10585
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'clusterName', clusterName);
10586
+ // verify required parameter 'mongoRBACUserCreate' is not null or undefined
10587
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'mongoRBACUserCreate', mongoRBACUserCreate);
10588
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
10589
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10590
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10591
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10592
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10593
+ let baseOptions;
10594
+ if (configuration) {
10595
+ baseOptions = configuration.baseOptions;
10596
+ }
10597
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10598
+ const localVarHeaderParameter = {};
10599
+ const localVarQueryParameter = {};
10600
+ // authentication BearerToken required
10601
+ // http bearer authentication required
10602
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10603
+ // authentication DigestAuth required
10604
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10605
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10606
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10608
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10609
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACUserCreate, localVarRequestOptions, configuration);
10610
+ return {
10611
+ url: (0, common_1.toPathString)(localVarUrlObj),
10612
+ options: localVarRequestOptions,
10613
+ };
10614
+ },
10615
+ /**
10616
+ *
10617
+ * @summary DeleteRBACRole
10618
+ * @param {string} orgName
10619
+ * @param {string} clusterName
10620
+ * @param {string} database
10621
+ * @param {string} roleName
10622
+ * @param {string} expectedRevision
10623
+ * @param {*} [options] Override http request option.
10624
+ * @throws {RequiredError}
10625
+ */
10626
+ mongoDeleteRBACRole: async (orgName, clusterName, database, roleName, expectedRevision, options = {}) => {
10627
+ // verify required parameter 'orgName' is not null or undefined
10628
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'orgName', orgName);
10629
+ // verify required parameter 'clusterName' is not null or undefined
10630
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'clusterName', clusterName);
10631
+ // verify required parameter 'database' is not null or undefined
10632
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'database', database);
10633
+ // verify required parameter 'roleName' is not null or undefined
10634
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'roleName', roleName);
10635
+ // verify required parameter 'expectedRevision' is not null or undefined
10636
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'expectedRevision', expectedRevision);
10637
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
10638
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10639
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10640
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10641
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
10642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10643
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10644
+ let baseOptions;
10645
+ if (configuration) {
10646
+ baseOptions = configuration.baseOptions;
10647
+ }
10648
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
10649
+ const localVarHeaderParameter = {};
10650
+ const localVarQueryParameter = {};
10651
+ // authentication BearerToken required
10652
+ // http bearer authentication required
10653
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10654
+ // authentication DigestAuth required
10655
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10656
+ if (expectedRevision !== undefined) {
10657
+ localVarQueryParameter['expectedRevision'] = expectedRevision;
10658
+ }
10659
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10660
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10661
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10662
+ return {
10663
+ url: (0, common_1.toPathString)(localVarUrlObj),
10664
+ options: localVarRequestOptions,
10665
+ };
10666
+ },
10667
+ /**
10668
+ *
10669
+ * @summary DeleteRBACUser
10670
+ * @param {string} orgName
10671
+ * @param {string} clusterName
10672
+ * @param {string} database
10673
+ * @param {string} username
10674
+ * @param {*} [options] Override http request option.
10675
+ * @throws {RequiredError}
10676
+ */
10677
+ mongoDeleteRBACUser: async (orgName, clusterName, database, username, options = {}) => {
10678
+ // verify required parameter 'orgName' is not null or undefined
10679
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'orgName', orgName);
10680
+ // verify required parameter 'clusterName' is not null or undefined
10681
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'clusterName', clusterName);
10682
+ // verify required parameter 'database' is not null or undefined
10683
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'database', database);
10684
+ // verify required parameter 'username' is not null or undefined
10685
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'username', username);
10686
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
10687
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10688
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10689
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10690
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10691
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10692
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10693
+ let baseOptions;
10694
+ if (configuration) {
10695
+ baseOptions = configuration.baseOptions;
10696
+ }
10697
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
10698
+ const localVarHeaderParameter = {};
10699
+ const localVarQueryParameter = {};
10700
+ // authentication BearerToken required
10701
+ // http bearer authentication required
10702
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10703
+ // authentication DigestAuth required
10704
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10705
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10707
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10708
+ return {
10709
+ url: (0, common_1.toPathString)(localVarUrlObj),
10710
+ options: localVarRequestOptions,
10711
+ };
10712
+ },
10713
+ /**
10714
+ *
10715
+ * @summary GetRBACCapabilities
10716
+ * @param {string} orgName
10717
+ * @param {string} clusterName
10718
+ * @param {*} [options] Override http request option.
10719
+ * @throws {RequiredError}
10720
+ */
10721
+ mongoGetRBACCapabilities: async (orgName, clusterName, options = {}) => {
10722
+ // verify required parameter 'orgName' is not null or undefined
10723
+ (0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'orgName', orgName);
10724
+ // verify required parameter 'clusterName' is not null or undefined
10725
+ (0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'clusterName', clusterName);
10726
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities`
10727
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10728
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10730
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10731
+ let baseOptions;
10732
+ if (configuration) {
10733
+ baseOptions = configuration.baseOptions;
10734
+ }
10735
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10736
+ const localVarHeaderParameter = {};
10737
+ const localVarQueryParameter = {};
10738
+ // authentication BearerToken required
10739
+ // http bearer authentication required
10740
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10741
+ // authentication DigestAuth required
10742
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10743
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10745
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10746
+ return {
10747
+ url: (0, common_1.toPathString)(localVarUrlObj),
10748
+ options: localVarRequestOptions,
10749
+ };
10750
+ },
10751
+ /**
10752
+ *
10753
+ * @summary GetRBACRole
10754
+ * @param {string} orgName
10755
+ * @param {string} clusterName
10756
+ * @param {string} database
10757
+ * @param {string} roleName
10758
+ * @param {*} [options] Override http request option.
10759
+ * @throws {RequiredError}
10760
+ */
10761
+ mongoGetRBACRole: async (orgName, clusterName, database, roleName, options = {}) => {
10762
+ // verify required parameter 'orgName' is not null or undefined
10763
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'orgName', orgName);
10764
+ // verify required parameter 'clusterName' is not null or undefined
10765
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'clusterName', clusterName);
10766
+ // verify required parameter 'database' is not null or undefined
10767
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'database', database);
10768
+ // verify required parameter 'roleName' is not null or undefined
10769
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'roleName', roleName);
10770
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
10771
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10772
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10773
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10774
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
10775
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10776
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10777
+ let baseOptions;
10778
+ if (configuration) {
10779
+ baseOptions = configuration.baseOptions;
10780
+ }
10781
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10782
+ const localVarHeaderParameter = {};
10783
+ const localVarQueryParameter = {};
10784
+ // authentication BearerToken required
10785
+ // http bearer authentication required
10786
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10787
+ // authentication DigestAuth required
10788
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10789
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10790
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10791
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10792
+ return {
10793
+ url: (0, common_1.toPathString)(localVarUrlObj),
10794
+ options: localVarRequestOptions,
10795
+ };
10796
+ },
10797
+ /**
10798
+ *
10799
+ * @summary GetRBACUser
10800
+ * @param {string} orgName
10801
+ * @param {string} clusterName
10802
+ * @param {string} database
10803
+ * @param {string} username
10804
+ * @param {*} [options] Override http request option.
10805
+ * @throws {RequiredError}
10806
+ */
10807
+ mongoGetRBACUser: async (orgName, clusterName, database, username, options = {}) => {
10808
+ // verify required parameter 'orgName' is not null or undefined
10809
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'orgName', orgName);
10810
+ // verify required parameter 'clusterName' is not null or undefined
10811
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'clusterName', clusterName);
10812
+ // verify required parameter 'database' is not null or undefined
10813
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'database', database);
10814
+ // verify required parameter 'username' is not null or undefined
10815
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'username', username);
10816
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
10215
10817
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10216
10818
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10217
- .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
10819
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10820
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10218
10821
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10219
10822
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10220
10823
  let baseOptions;
10221
10824
  if (configuration) {
10222
10825
  baseOptions = configuration.baseOptions;
10223
10826
  }
10224
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10827
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10225
10828
  const localVarHeaderParameter = {};
10226
10829
  const localVarQueryParameter = {};
10227
10830
  // authentication BearerToken required
@@ -10239,31 +10842,28 @@ const SharedApiAxiosParamCreator = function (configuration) {
10239
10842
  },
10240
10843
  /**
10241
10844
  *
10242
- * @summary Lock Elasticsearch account
10845
+ * @summary ListRBACRoles
10243
10846
  * @param {string} orgName
10244
10847
  * @param {string} clusterName
10245
- * @param {string} username
10848
+ * @param {string} [database]
10246
10849
  * @param {*} [options] Override http request option.
10247
10850
  * @throws {RequiredError}
10248
10851
  */
10249
- lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
10852
+ mongoListRBACRoles: async (orgName, clusterName, database, options = {}) => {
10250
10853
  // verify required parameter 'orgName' is not null or undefined
10251
- (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
10854
+ (0, common_1.assertParamExists)('mongoListRBACRoles', 'orgName', orgName);
10252
10855
  // verify required parameter 'clusterName' is not null or undefined
10253
- (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
10254
- // verify required parameter 'username' is not null or undefined
10255
- (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
10256
- const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
10856
+ (0, common_1.assertParamExists)('mongoListRBACRoles', 'clusterName', clusterName);
10857
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
10257
10858
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10258
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10259
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10859
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10260
10860
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10261
10861
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10262
10862
  let baseOptions;
10263
10863
  if (configuration) {
10264
10864
  baseOptions = configuration.baseOptions;
10265
10865
  }
10266
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10866
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10267
10867
  const localVarHeaderParameter = {};
10268
10868
  const localVarQueryParameter = {};
10269
10869
  // authentication BearerToken required
@@ -10271,6 +10871,9 @@ const SharedApiAxiosParamCreator = function (configuration) {
10271
10871
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10272
10872
  // authentication DigestAuth required
10273
10873
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10874
+ if (database !== undefined) {
10875
+ localVarQueryParameter['database'] = database;
10876
+ }
10274
10877
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10275
10878
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10276
10879
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -10281,19 +10884,19 @@ const SharedApiAxiosParamCreator = function (configuration) {
10281
10884
  },
10282
10885
  /**
10283
10886
  *
10284
- * @summary batch modify database tde status
10285
- * @param {string} orgName name of the organization
10286
- * @param {string} clusterName name of the cluster
10287
- * @param {DbTDERequest} [dbTDERequest]
10887
+ * @summary ListRBACUsers
10888
+ * @param {string} orgName
10889
+ * @param {string} clusterName
10890
+ * @param {string} [database]
10288
10891
  * @param {*} [options] Override http request option.
10289
10892
  * @throws {RequiredError}
10290
10893
  */
10291
- manageMssqlTDEDatabase: async (orgName, clusterName, dbTDERequest, options = {}) => {
10894
+ mongoListRBACUsers: async (orgName, clusterName, database, options = {}) => {
10292
10895
  // verify required parameter 'orgName' is not null or undefined
10293
- (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'orgName', orgName);
10896
+ (0, common_1.assertParamExists)('mongoListRBACUsers', 'orgName', orgName);
10294
10897
  // verify required parameter 'clusterName' is not null or undefined
10295
- (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'clusterName', clusterName);
10296
- const localVarPath = `/api/v1/data/mssql/organizations/{orgName}/clusters/{clusterName}/tde`
10898
+ (0, common_1.assertParamExists)('mongoListRBACUsers', 'clusterName', clusterName);
10899
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
10297
10900
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10298
10901
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10299
10902
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -10302,7 +10905,7 @@ const SharedApiAxiosParamCreator = function (configuration) {
10302
10905
  if (configuration) {
10303
10906
  baseOptions = configuration.baseOptions;
10304
10907
  }
10305
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10306
10909
  const localVarHeaderParameter = {};
10307
10910
  const localVarQueryParameter = {};
10308
10911
  // authentication BearerToken required
@@ -10310,11 +10913,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
10310
10913
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10311
10914
  // authentication DigestAuth required
10312
10915
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10313
- localVarHeaderParameter['Content-Type'] = 'application/json';
10916
+ if (database !== undefined) {
10917
+ localVarQueryParameter['database'] = database;
10918
+ }
10314
10919
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10315
10920
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10316
10921
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10317
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dbTDERequest, localVarRequestOptions, configuration);
10318
10922
  return {
10319
10923
  url: (0, common_1.toPathString)(localVarUrlObj),
10320
10924
  options: localVarRequestOptions,
@@ -10322,27 +10926,38 @@ const SharedApiAxiosParamCreator = function (configuration) {
10322
10926
  },
10323
10927
  /**
10324
10928
  *
10325
- * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
10326
- * @param {string} orgName name of the Org
10327
- * @param {string} clusterName name of the KubeBlocks cluster
10929
+ * @summary UpdateRBACRole
10930
+ * @param {string} orgName
10931
+ * @param {string} clusterName
10932
+ * @param {string} database
10933
+ * @param {string} roleName
10934
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
10328
10935
  * @param {*} [options] Override http request option.
10329
10936
  * @throws {RequiredError}
10330
10937
  */
10331
- markClusterRestoreCompleted: async (orgName, clusterName, options = {}) => {
10938
+ mongoUpdateRBACRole: async (orgName, clusterName, database, roleName, mongoRBACRoleWrite, options = {}) => {
10332
10939
  // verify required parameter 'orgName' is not null or undefined
10333
- (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'orgName', orgName);
10940
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'orgName', orgName);
10334
10941
  // verify required parameter 'clusterName' is not null or undefined
10335
- (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'clusterName', clusterName);
10336
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/markClusterRestoreCompleted`
10942
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'clusterName', clusterName);
10943
+ // verify required parameter 'database' is not null or undefined
10944
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'database', database);
10945
+ // verify required parameter 'roleName' is not null or undefined
10946
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'roleName', roleName);
10947
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
10948
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
10949
+ const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
10337
10950
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10338
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10951
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10952
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10953
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
10339
10954
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10340
10955
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10341
10956
  let baseOptions;
10342
10957
  if (configuration) {
10343
10958
  baseOptions = configuration.baseOptions;
10344
10959
  }
10345
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10960
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10346
10961
  const localVarHeaderParameter = {};
10347
10962
  const localVarQueryParameter = {};
10348
10963
  // authentication BearerToken required
@@ -10350,9 +10965,11 @@ const SharedApiAxiosParamCreator = function (configuration) {
10350
10965
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10351
10966
  // authentication DigestAuth required
10352
10967
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10968
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10353
10969
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10354
10970
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10355
10971
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10972
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
10356
10973
  return {
10357
10974
  url: (0, common_1.toPathString)(localVarUrlObj),
10358
10975
  options: localVarRequestOptions,
@@ -10566,8 +11183,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
10566
11183
  };
10567
11184
  },
10568
11185
  /**
10569
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
10570
- * @summary Preview clearing all MySQL account privileges
11186
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
11187
+ * @summary Preview clearing explicit account privileges
10571
11188
  * @param {string} engineName
10572
11189
  * @param {string} orgName
10573
11190
  * @param {string} clusterName
@@ -10575,10 +11192,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
10575
11192
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
10576
11193
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
10577
11194
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
11195
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
11196
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
10578
11197
  * @param {*} [options] Override http request option.
10579
11198
  * @throws {RequiredError}
10580
11199
  */
10581
- previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
11200
+ previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options = {}) => {
10582
11201
  // verify required parameter 'engineName' is not null or undefined
10583
11202
  (0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'engineName', engineName);
10584
11203
  // verify required parameter 'orgName' is not null or undefined
@@ -10615,6 +11234,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
10615
11234
  if (subjectQualifiers !== undefined) {
10616
11235
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
10617
11236
  }
11237
+ if (databaseNames) {
11238
+ localVarQueryParameter['databaseNames'] = databaseNames;
11239
+ }
11240
+ if (allDatabases !== undefined) {
11241
+ localVarQueryParameter['allDatabases'] = allDatabases;
11242
+ }
10618
11243
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10619
11244
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10620
11245
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12434,8 +13059,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
12434
13059
  };
12435
13060
  },
12436
13061
  /**
12437
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
12438
- * @summary Clear all MySQL account privileges
13062
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
13063
+ * @summary Clear explicit account privileges
12439
13064
  * @param {string} engineName
12440
13065
  * @param {string} orgName
12441
13066
  * @param {string} clusterName
@@ -12443,10 +13068,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
12443
13068
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
12444
13069
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
12445
13070
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
13071
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
13072
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
12446
13073
  * @param {*} [options] Override http request option.
12447
13074
  * @throws {RequiredError}
12448
13075
  */
12449
- resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
13076
+ resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options = {}) => {
12450
13077
  // verify required parameter 'engineName' is not null or undefined
12451
13078
  (0, common_1.assertParamExists)('resetAccountPrivileges', 'engineName', engineName);
12452
13079
  // verify required parameter 'orgName' is not null or undefined
@@ -12483,6 +13110,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
12483
13110
  if (subjectQualifiers !== undefined) {
12484
13111
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
12485
13112
  }
13113
+ if (databaseNames) {
13114
+ localVarQueryParameter['databaseNames'] = databaseNames;
13115
+ }
13116
+ if (allDatabases !== undefined) {
13117
+ localVarQueryParameter['allDatabases'] = allDatabases;
13118
+ }
12486
13119
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12487
13120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12488
13121
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -16797,6 +17430,27 @@ const SharedApiFp = function (configuration) {
16797
17430
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getAccountObjectPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16798
17431
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16799
17432
  },
17433
+ /**
17434
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
17435
+ * @summary Read native account privilege summary or selected database evidence
17436
+ * @param {string} engineName
17437
+ * @param {string} orgName
17438
+ * @param {string} clusterName
17439
+ * @param {string} accountName
17440
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
17441
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
17442
+ * @param {string} [subjectQualifiers]
17443
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
17444
+ * @param {*} [options] Override http request option.
17445
+ * @throws {RequiredError}
17446
+ */
17447
+ async getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options) {
17448
+ var _a, _b, _c;
17449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options);
17450
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17451
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getAccountPrivilegeOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17452
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17453
+ },
16800
17454
  /**
16801
17455
  *
16802
17456
  * @summary Get alert config
@@ -17806,21 +18460,22 @@ const SharedApiFp = function (configuration) {
17806
18460
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17807
18461
  },
17808
18462
  /**
17809
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
18463
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
17810
18464
  * @summary List exact column names for account object privileges
17811
18465
  * @param {string} engineName
17812
18466
  * @param {string} orgName
17813
18467
  * @param {string} clusterName
17814
18468
  * @param {string} accountName
17815
- * @param {string} objectType Object type, either table or view
18469
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
17816
18470
  * @param {string} databaseName
17817
18471
  * @param {string} objectName
18472
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
17818
18473
  * @param {*} [options] Override http request option.
17819
18474
  * @throws {RequiredError}
17820
18475
  */
17821
- async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options) {
18476
+ async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options) {
17822
18477
  var _a, _b, _c;
17823
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
18478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options);
17824
18479
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17825
18480
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listAccountObjectPrivilegeColumns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17826
18481
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18786,149 +19441,351 @@ const SharedApiFp = function (configuration) {
18786
19441
  var _a, _b, _c;
18787
19442
  const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceVersion(environmentName, engineName, engineMode, engineVersion, component, options);
18788
19443
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18789
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19444
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19445
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19446
+ },
19447
+ /**
19448
+ * list sessions in cluster
19449
+ * @summary List cluster sessions
19450
+ * @param {string} engineName name of the engine
19451
+ * @param {string} orgName name of the Org
19452
+ * @param {string} clusterName name of the Cluster
19453
+ * @param {boolean} [all] whether list all session includes sleep
19454
+ * @param {*} [options] Override http request option.
19455
+ * @throws {RequiredError}
19456
+ */
19457
+ async listSessions(engineName, orgName, clusterName, all, options) {
19458
+ var _a, _b, _c;
19459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(engineName, orgName, clusterName, all, options);
19460
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19461
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19462
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19463
+ },
19464
+ /**
19465
+ *
19466
+ * @summary list all session for the cluster
19467
+ * @param {string} orgName name of the Org
19468
+ * @param {string} clusterName name of the cluster
19469
+ * @param {string} [all] whether list all session includes sleep
19470
+ * @param {*} [options] Override http request option.
19471
+ * @deprecated
19472
+ * @throws {RequiredError}
19473
+ */
19474
+ async listSessionsOld(orgName, clusterName, all, options) {
19475
+ var _a, _b, _c;
19476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOld(orgName, clusterName, all, options);
19477
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19478
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessionsOld']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19479
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19480
+ },
19481
+ /**
19482
+ * List task types
19483
+ * @summary List task types
19484
+ * @param {*} [options] Override http request option.
19485
+ * @throws {RequiredError}
19486
+ */
19487
+ async listTaskTypes(options) {
19488
+ var _a, _b, _c;
19489
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskTypes(options);
19490
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19491
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTaskTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19492
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19493
+ },
19494
+ /**
19495
+ *
19496
+ * @summary list all tenants for the oceanbase cluster
19497
+ * @param {string} orgName name of the Org
19498
+ * @param {string} clusterName name of the cluster
19499
+ * @param {*} [options] Override http request option.
19500
+ * @throws {RequiredError}
19501
+ */
19502
+ async listTenants(orgName, clusterName, options) {
19503
+ var _a, _b, _c;
19504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(orgName, clusterName, options);
19505
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19506
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTenants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19507
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19508
+ },
19509
+ /**
19510
+ * list upgraded service version of the component
19511
+ * @summary list upgraded service version of the component
19512
+ * @param {string} clusterName Name of the cluster
19513
+ * @param {string} orgName organization name
19514
+ * @param {string} component component type
19515
+ * @param {*} [options] Override http request option.
19516
+ * @throws {RequiredError}
19517
+ */
19518
+ async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
19519
+ var _a, _b, _c;
19520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
19521
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19522
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19523
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19524
+ },
19525
+ /**
19526
+ * lock an account in cluster
19527
+ * @summary Lock cluster account
19528
+ * @param {string} engineName name of the engine
19529
+ * @param {string} orgName name of the organization
19530
+ * @param {string} clusterName name of the cluster
19531
+ * @param {string} accountName name of the account
19532
+ * @param {*} [options] Override http request option.
19533
+ * @throws {RequiredError}
19534
+ */
19535
+ async lockAccount(engineName, orgName, clusterName, accountName, options) {
19536
+ var _a, _b, _c;
19537
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
19538
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19539
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19540
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19541
+ },
19542
+ /**
19543
+ *
19544
+ * @summary Lock Elasticsearch account
19545
+ * @param {string} orgName
19546
+ * @param {string} clusterName
19547
+ * @param {string} username
19548
+ * @param {*} [options] Override http request option.
19549
+ * @throws {RequiredError}
19550
+ */
19551
+ async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
19552
+ var _a, _b, _c;
19553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
19554
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19555
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19556
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19557
+ },
19558
+ /**
19559
+ *
19560
+ * @summary batch modify database tde status
19561
+ * @param {string} orgName name of the organization
19562
+ * @param {string} clusterName name of the cluster
19563
+ * @param {DbTDERequest} [dbTDERequest]
19564
+ * @param {*} [options] Override http request option.
19565
+ * @throws {RequiredError}
19566
+ */
19567
+ async manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options) {
19568
+ var _a, _b, _c;
19569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options);
19570
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19571
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.manageMssqlTDEDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19572
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19573
+ },
19574
+ /**
19575
+ *
19576
+ * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
19577
+ * @param {string} orgName name of the Org
19578
+ * @param {string} clusterName name of the KubeBlocks cluster
19579
+ * @param {*} [options] Override http request option.
19580
+ * @throws {RequiredError}
19581
+ */
19582
+ async markClusterRestoreCompleted(orgName, clusterName, options) {
19583
+ var _a, _b, _c;
19584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markClusterRestoreCompleted(orgName, clusterName, options);
19585
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19586
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.markClusterRestoreCompleted']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19587
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19588
+ },
19589
+ /**
19590
+ *
19591
+ * @summary ChangeRBACUserPassword
19592
+ * @param {string} orgName
19593
+ * @param {string} clusterName
19594
+ * @param {string} database
19595
+ * @param {string} username
19596
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
19597
+ * @param {*} [options] Override http request option.
19598
+ * @throws {RequiredError}
19599
+ */
19600
+ async mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options) {
19601
+ var _a, _b, _c;
19602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options);
19603
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19604
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoChangeRBACUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19605
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19606
+ },
19607
+ /**
19608
+ *
19609
+ * @summary ChangeRBACUserRoles
19610
+ * @param {string} orgName
19611
+ * @param {string} clusterName
19612
+ * @param {string} database
19613
+ * @param {string} username
19614
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
19615
+ * @param {*} [options] Override http request option.
19616
+ * @throws {RequiredError}
19617
+ */
19618
+ async mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options) {
19619
+ var _a, _b, _c;
19620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options);
19621
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19622
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoChangeRBACUserRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19623
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19624
+ },
19625
+ /**
19626
+ *
19627
+ * @summary CreateRBACRole
19628
+ * @param {string} orgName
19629
+ * @param {string} clusterName
19630
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
19631
+ * @param {*} [options] Override http request option.
19632
+ * @throws {RequiredError}
19633
+ */
19634
+ async mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options) {
19635
+ var _a, _b, _c;
19636
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options);
19637
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19638
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoCreateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18790
19639
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18791
19640
  },
18792
19641
  /**
18793
- * list sessions in cluster
18794
- * @summary List cluster sessions
18795
- * @param {string} engineName name of the engine
18796
- * @param {string} orgName name of the Org
18797
- * @param {string} clusterName name of the Cluster
18798
- * @param {boolean} [all] whether list all session includes sleep
19642
+ *
19643
+ * @summary CreateRBACUser
19644
+ * @param {string} orgName
19645
+ * @param {string} clusterName
19646
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
18799
19647
  * @param {*} [options] Override http request option.
18800
19648
  * @throws {RequiredError}
18801
19649
  */
18802
- async listSessions(engineName, orgName, clusterName, all, options) {
19650
+ async mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options) {
18803
19651
  var _a, _b, _c;
18804
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(engineName, orgName, clusterName, all, options);
19652
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options);
18805
19653
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18806
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19654
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoCreateRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18807
19655
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18808
19656
  },
18809
19657
  /**
18810
19658
  *
18811
- * @summary list all session for the cluster
18812
- * @param {string} orgName name of the Org
18813
- * @param {string} clusterName name of the cluster
18814
- * @param {string} [all] whether list all session includes sleep
19659
+ * @summary DeleteRBACRole
19660
+ * @param {string} orgName
19661
+ * @param {string} clusterName
19662
+ * @param {string} database
19663
+ * @param {string} roleName
19664
+ * @param {string} expectedRevision
18815
19665
  * @param {*} [options] Override http request option.
18816
- * @deprecated
18817
19666
  * @throws {RequiredError}
18818
19667
  */
18819
- async listSessionsOld(orgName, clusterName, all, options) {
19668
+ async mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options) {
18820
19669
  var _a, _b, _c;
18821
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOld(orgName, clusterName, all, options);
19670
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options);
18822
19671
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18823
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessionsOld']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19672
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoDeleteRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18824
19673
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18825
19674
  },
18826
19675
  /**
18827
- * List task types
18828
- * @summary List task types
19676
+ *
19677
+ * @summary DeleteRBACUser
19678
+ * @param {string} orgName
19679
+ * @param {string} clusterName
19680
+ * @param {string} database
19681
+ * @param {string} username
18829
19682
  * @param {*} [options] Override http request option.
18830
19683
  * @throws {RequiredError}
18831
19684
  */
18832
- async listTaskTypes(options) {
19685
+ async mongoDeleteRBACUser(orgName, clusterName, database, username, options) {
18833
19686
  var _a, _b, _c;
18834
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskTypes(options);
19687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACUser(orgName, clusterName, database, username, options);
18835
19688
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18836
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTaskTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19689
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoDeleteRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18837
19690
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18838
19691
  },
18839
19692
  /**
18840
19693
  *
18841
- * @summary list all tenants for the oceanbase cluster
18842
- * @param {string} orgName name of the Org
18843
- * @param {string} clusterName name of the cluster
19694
+ * @summary GetRBACCapabilities
19695
+ * @param {string} orgName
19696
+ * @param {string} clusterName
18844
19697
  * @param {*} [options] Override http request option.
18845
19698
  * @throws {RequiredError}
18846
19699
  */
18847
- async listTenants(orgName, clusterName, options) {
19700
+ async mongoGetRBACCapabilities(orgName, clusterName, options) {
18848
19701
  var _a, _b, _c;
18849
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(orgName, clusterName, options);
19702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACCapabilities(orgName, clusterName, options);
18850
19703
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18851
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTenants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19704
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoGetRBACCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18852
19705
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18853
19706
  },
18854
19707
  /**
18855
- * list upgraded service version of the component
18856
- * @summary list upgraded service version of the component
18857
- * @param {string} clusterName Name of the cluster
18858
- * @param {string} orgName organization name
18859
- * @param {string} component component type
19708
+ *
19709
+ * @summary GetRBACRole
19710
+ * @param {string} orgName
19711
+ * @param {string} clusterName
19712
+ * @param {string} database
19713
+ * @param {string} roleName
18860
19714
  * @param {*} [options] Override http request option.
18861
19715
  * @throws {RequiredError}
18862
19716
  */
18863
- async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
19717
+ async mongoGetRBACRole(orgName, clusterName, database, roleName, options) {
18864
19718
  var _a, _b, _c;
18865
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
19719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACRole(orgName, clusterName, database, roleName, options);
18866
19720
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18867
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19721
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoGetRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18868
19722
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18869
19723
  },
18870
19724
  /**
18871
- * lock an account in cluster
18872
- * @summary Lock cluster account
18873
- * @param {string} engineName name of the engine
18874
- * @param {string} orgName name of the organization
18875
- * @param {string} clusterName name of the cluster
18876
- * @param {string} accountName name of the account
19725
+ *
19726
+ * @summary GetRBACUser
19727
+ * @param {string} orgName
19728
+ * @param {string} clusterName
19729
+ * @param {string} database
19730
+ * @param {string} username
18877
19731
  * @param {*} [options] Override http request option.
18878
19732
  * @throws {RequiredError}
18879
19733
  */
18880
- async lockAccount(engineName, orgName, clusterName, accountName, options) {
19734
+ async mongoGetRBACUser(orgName, clusterName, database, username, options) {
18881
19735
  var _a, _b, _c;
18882
- const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
19736
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACUser(orgName, clusterName, database, username, options);
18883
19737
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18884
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19738
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoGetRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18885
19739
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18886
19740
  },
18887
19741
  /**
18888
19742
  *
18889
- * @summary Lock Elasticsearch account
19743
+ * @summary ListRBACRoles
18890
19744
  * @param {string} orgName
18891
19745
  * @param {string} clusterName
18892
- * @param {string} username
19746
+ * @param {string} [database]
18893
19747
  * @param {*} [options] Override http request option.
18894
19748
  * @throws {RequiredError}
18895
19749
  */
18896
- async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
19750
+ async mongoListRBACRoles(orgName, clusterName, database, options) {
18897
19751
  var _a, _b, _c;
18898
- const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
19752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACRoles(orgName, clusterName, database, options);
18899
19753
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18900
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19754
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoListRBACRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18901
19755
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18902
19756
  },
18903
19757
  /**
18904
19758
  *
18905
- * @summary batch modify database tde status
18906
- * @param {string} orgName name of the organization
18907
- * @param {string} clusterName name of the cluster
18908
- * @param {DbTDERequest} [dbTDERequest]
19759
+ * @summary ListRBACUsers
19760
+ * @param {string} orgName
19761
+ * @param {string} clusterName
19762
+ * @param {string} [database]
18909
19763
  * @param {*} [options] Override http request option.
18910
19764
  * @throws {RequiredError}
18911
19765
  */
18912
- async manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options) {
19766
+ async mongoListRBACUsers(orgName, clusterName, database, options) {
18913
19767
  var _a, _b, _c;
18914
- const localVarAxiosArgs = await localVarAxiosParamCreator.manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options);
19768
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
18915
19769
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18916
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.manageMssqlTDEDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19770
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoListRBACUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18917
19771
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18918
19772
  },
18919
19773
  /**
18920
19774
  *
18921
- * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
18922
- * @param {string} orgName name of the Org
18923
- * @param {string} clusterName name of the KubeBlocks cluster
19775
+ * @summary UpdateRBACRole
19776
+ * @param {string} orgName
19777
+ * @param {string} clusterName
19778
+ * @param {string} database
19779
+ * @param {string} roleName
19780
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
18924
19781
  * @param {*} [options] Override http request option.
18925
19782
  * @throws {RequiredError}
18926
19783
  */
18927
- async markClusterRestoreCompleted(orgName, clusterName, options) {
19784
+ async mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options) {
18928
19785
  var _a, _b, _c;
18929
- const localVarAxiosArgs = await localVarAxiosParamCreator.markClusterRestoreCompleted(orgName, clusterName, options);
19786
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options);
18930
19787
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18931
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.markClusterRestoreCompleted']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19788
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoUpdateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18932
19789
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18933
19790
  },
18934
19791
  /**
@@ -19010,8 +19867,8 @@ const SharedApiFp = function (configuration) {
19010
19867
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19011
19868
  },
19012
19869
  /**
19013
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
19014
- * @summary Preview clearing all MySQL account privileges
19870
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
19871
+ * @summary Preview clearing explicit account privileges
19015
19872
  * @param {string} engineName
19016
19873
  * @param {string} orgName
19017
19874
  * @param {string} clusterName
@@ -19019,12 +19876,14 @@ const SharedApiFp = function (configuration) {
19019
19876
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
19020
19877
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
19021
19878
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
19879
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
19880
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
19022
19881
  * @param {*} [options] Override http request option.
19023
19882
  * @throws {RequiredError}
19024
19883
  */
19025
- async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
19884
+ async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options) {
19026
19885
  var _a, _b, _c;
19027
- const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
19886
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
19028
19887
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19029
19888
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.previewAccountPrivilegeReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19030
19889
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19618,8 +20477,8 @@ const SharedApiFp = function (configuration) {
19618
20477
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19619
20478
  },
19620
20479
  /**
19621
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
19622
- * @summary Clear all MySQL account privileges
20480
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
20481
+ * @summary Clear explicit account privileges
19623
20482
  * @param {string} engineName
19624
20483
  * @param {string} orgName
19625
20484
  * @param {string} clusterName
@@ -19627,12 +20486,14 @@ const SharedApiFp = function (configuration) {
19627
20486
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
19628
20487
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
19629
20488
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
20489
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
20490
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
19630
20491
  * @param {*} [options] Override http request option.
19631
20492
  * @throws {RequiredError}
19632
20493
  */
19633
- async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
20494
+ async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options) {
19634
20495
  var _a, _b, _c;
19635
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
20496
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
19636
20497
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19637
20498
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.resetAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19638
20499
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21591,6 +22452,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
21591
22452
  getAccountObjectPrivileges(requestParameters, options) {
21592
22453
  return localVarFp.getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
21593
22454
  },
22455
+ /**
22456
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
22457
+ * @summary Read native account privilege summary or selected database evidence
22458
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
22459
+ * @param {*} [options] Override http request option.
22460
+ * @throws {RequiredError}
22461
+ */
22462
+ getAccountPrivilegeOverview(requestParameters, options) {
22463
+ return localVarFp.getAccountPrivilegeOverview(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseName, options).then((request) => request(axios, basePath));
22464
+ },
21594
22465
  /**
21595
22466
  *
21596
22467
  * @summary Get alert config
@@ -22190,14 +23061,14 @@ const SharedApiFactory = function (configuration, basePath, axios) {
22190
23061
  return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
22191
23062
  },
22192
23063
  /**
22193
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
23064
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
22194
23065
  * @summary List exact column names for account object privileges
22195
23066
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
22196
23067
  * @param {*} [options] Override http request option.
22197
23068
  * @throws {RequiredError}
22198
23069
  */
22199
23070
  listAccountObjectPrivilegeColumns(requestParameters, options) {
22200
- return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
23071
+ return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, requestParameters.schemaName, options).then((request) => request(axios, basePath));
22201
23072
  },
22202
23073
  /**
22203
23074
  * Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
@@ -22887,6 +23758,126 @@ const SharedApiFactory = function (configuration, basePath, axios) {
22887
23758
  markClusterRestoreCompleted(requestParameters, options) {
22888
23759
  return localVarFp.markClusterRestoreCompleted(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
22889
23760
  },
23761
+ /**
23762
+ *
23763
+ * @summary ChangeRBACUserPassword
23764
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
23765
+ * @param {*} [options] Override http request option.
23766
+ * @throws {RequiredError}
23767
+ */
23768
+ mongoChangeRBACUserPassword(requestParameters, options) {
23769
+ return localVarFp.mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(axios, basePath));
23770
+ },
23771
+ /**
23772
+ *
23773
+ * @summary ChangeRBACUserRoles
23774
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
23775
+ * @param {*} [options] Override http request option.
23776
+ * @throws {RequiredError}
23777
+ */
23778
+ mongoChangeRBACUserRoles(requestParameters, options) {
23779
+ return localVarFp.mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(axios, basePath));
23780
+ },
23781
+ /**
23782
+ *
23783
+ * @summary CreateRBACRole
23784
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
23785
+ * @param {*} [options] Override http request option.
23786
+ * @throws {RequiredError}
23787
+ */
23788
+ mongoCreateRBACRole(requestParameters, options) {
23789
+ return localVarFp.mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
23790
+ },
23791
+ /**
23792
+ *
23793
+ * @summary CreateRBACUser
23794
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
23795
+ * @param {*} [options] Override http request option.
23796
+ * @throws {RequiredError}
23797
+ */
23798
+ mongoCreateRBACUser(requestParameters, options) {
23799
+ return localVarFp.mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(axios, basePath));
23800
+ },
23801
+ /**
23802
+ *
23803
+ * @summary DeleteRBACRole
23804
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
23805
+ * @param {*} [options] Override http request option.
23806
+ * @throws {RequiredError}
23807
+ */
23808
+ mongoDeleteRBACRole(requestParameters, options) {
23809
+ return localVarFp.mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(axios, basePath));
23810
+ },
23811
+ /**
23812
+ *
23813
+ * @summary DeleteRBACUser
23814
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
23815
+ * @param {*} [options] Override http request option.
23816
+ * @throws {RequiredError}
23817
+ */
23818
+ mongoDeleteRBACUser(requestParameters, options) {
23819
+ return localVarFp.mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
23820
+ },
23821
+ /**
23822
+ *
23823
+ * @summary GetRBACCapabilities
23824
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
23825
+ * @param {*} [options] Override http request option.
23826
+ * @throws {RequiredError}
23827
+ */
23828
+ mongoGetRBACCapabilities(requestParameters, options) {
23829
+ return localVarFp.mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
23830
+ },
23831
+ /**
23832
+ *
23833
+ * @summary GetRBACRole
23834
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
23835
+ * @param {*} [options] Override http request option.
23836
+ * @throws {RequiredError}
23837
+ */
23838
+ mongoGetRBACRole(requestParameters, options) {
23839
+ return localVarFp.mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(axios, basePath));
23840
+ },
23841
+ /**
23842
+ *
23843
+ * @summary GetRBACUser
23844
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
23845
+ * @param {*} [options] Override http request option.
23846
+ * @throws {RequiredError}
23847
+ */
23848
+ mongoGetRBACUser(requestParameters, options) {
23849
+ return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
23850
+ },
23851
+ /**
23852
+ *
23853
+ * @summary ListRBACRoles
23854
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
23855
+ * @param {*} [options] Override http request option.
23856
+ * @throws {RequiredError}
23857
+ */
23858
+ mongoListRBACRoles(requestParameters, options) {
23859
+ return localVarFp.mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
23860
+ },
23861
+ /**
23862
+ *
23863
+ * @summary ListRBACUsers
23864
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
23865
+ * @param {*} [options] Override http request option.
23866
+ * @throws {RequiredError}
23867
+ */
23868
+ mongoListRBACUsers(requestParameters, options) {
23869
+ return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
23870
+ },
23871
+ /**
23872
+ *
23873
+ * @summary UpdateRBACRole
23874
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
23875
+ * @param {*} [options] Override http request option.
23876
+ * @throws {RequiredError}
23877
+ */
23878
+ mongoUpdateRBACRole(requestParameters, options) {
23879
+ return localVarFp.mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
23880
+ },
22890
23881
  /**
22891
23882
  * partially update the specified apikey
22892
23883
  * @summary Update apikey information
@@ -22938,14 +23929,14 @@ const SharedApiFactory = function (configuration, basePath, axios) {
22938
23929
  return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
22939
23930
  },
22940
23931
  /**
22941
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
22942
- * @summary Preview clearing all MySQL account privileges
23932
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
23933
+ * @summary Preview clearing explicit account privileges
22943
23934
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
22944
23935
  * @param {*} [options] Override http request option.
22945
23936
  * @throws {RequiredError}
22946
23937
  */
22947
23938
  previewAccountPrivilegeReset(requestParameters, options) {
22948
- return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
23939
+ return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
22949
23940
  },
22950
23941
  /**
22951
23942
  *
@@ -23227,14 +24218,14 @@ const SharedApiFactory = function (configuration, basePath, axios) {
23227
24218
  return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
23228
24219
  },
23229
24220
  /**
23230
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
23231
- * @summary Clear all MySQL account privileges
24221
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
24222
+ * @summary Clear explicit account privileges
23232
24223
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
23233
24224
  * @param {*} [options] Override http request option.
23234
24225
  * @throws {RequiredError}
23235
24226
  */
23236
24227
  resetAccountPrivileges(requestParameters, options) {
23237
- return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
24228
+ return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
23238
24229
  },
23239
24230
  /**
23240
24231
  *
@@ -24904,6 +25895,17 @@ class SharedApi extends base_1.BaseAPI {
24904
25895
  getAccountObjectPrivileges(requestParameters, options) {
24905
25896
  return (0, exports.SharedApiFp)(this.configuration).getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
24906
25897
  }
25898
+ /**
25899
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
25900
+ * @summary Read native account privilege summary or selected database evidence
25901
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
25902
+ * @param {*} [options] Override http request option.
25903
+ * @throws {RequiredError}
25904
+ * @memberof SharedApi
25905
+ */
25906
+ getAccountPrivilegeOverview(requestParameters, options) {
25907
+ return (0, exports.SharedApiFp)(this.configuration).getAccountPrivilegeOverview(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
25908
+ }
24907
25909
  /**
24908
25910
  *
24909
25911
  * @summary Get alert config
@@ -25563,7 +26565,7 @@ class SharedApi extends base_1.BaseAPI {
25563
26565
  return (0, exports.SharedApiFp)(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
25564
26566
  }
25565
26567
  /**
25566
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
26568
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
25567
26569
  * @summary List exact column names for account object privileges
25568
26570
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
25569
26571
  * @param {*} [options] Override http request option.
@@ -25571,7 +26573,7 @@ class SharedApi extends base_1.BaseAPI {
25571
26573
  * @memberof SharedApi
25572
26574
  */
25573
26575
  listAccountObjectPrivilegeColumns(requestParameters, options) {
25574
- return (0, exports.SharedApiFp)(this.configuration).listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(this.axios, this.basePath));
26576
+ return (0, exports.SharedApiFp)(this.configuration).listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, requestParameters.schemaName, options).then((request) => request(this.axios, this.basePath));
25575
26577
  }
25576
26578
  /**
25577
26579
  * Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
@@ -26330,6 +27332,138 @@ class SharedApi extends base_1.BaseAPI {
26330
27332
  markClusterRestoreCompleted(requestParameters, options) {
26331
27333
  return (0, exports.SharedApiFp)(this.configuration).markClusterRestoreCompleted(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
26332
27334
  }
27335
+ /**
27336
+ *
27337
+ * @summary ChangeRBACUserPassword
27338
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
27339
+ * @param {*} [options] Override http request option.
27340
+ * @throws {RequiredError}
27341
+ * @memberof SharedApi
27342
+ */
27343
+ mongoChangeRBACUserPassword(requestParameters, options) {
27344
+ return (0, exports.SharedApiFp)(this.configuration).mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(this.axios, this.basePath));
27345
+ }
27346
+ /**
27347
+ *
27348
+ * @summary ChangeRBACUserRoles
27349
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
27350
+ * @param {*} [options] Override http request option.
27351
+ * @throws {RequiredError}
27352
+ * @memberof SharedApi
27353
+ */
27354
+ mongoChangeRBACUserRoles(requestParameters, options) {
27355
+ return (0, exports.SharedApiFp)(this.configuration).mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(this.axios, this.basePath));
27356
+ }
27357
+ /**
27358
+ *
27359
+ * @summary CreateRBACRole
27360
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
27361
+ * @param {*} [options] Override http request option.
27362
+ * @throws {RequiredError}
27363
+ * @memberof SharedApi
27364
+ */
27365
+ mongoCreateRBACRole(requestParameters, options) {
27366
+ return (0, exports.SharedApiFp)(this.configuration).mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
27367
+ }
27368
+ /**
27369
+ *
27370
+ * @summary CreateRBACUser
27371
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
27372
+ * @param {*} [options] Override http request option.
27373
+ * @throws {RequiredError}
27374
+ * @memberof SharedApi
27375
+ */
27376
+ mongoCreateRBACUser(requestParameters, options) {
27377
+ return (0, exports.SharedApiFp)(this.configuration).mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(this.axios, this.basePath));
27378
+ }
27379
+ /**
27380
+ *
27381
+ * @summary DeleteRBACRole
27382
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
27383
+ * @param {*} [options] Override http request option.
27384
+ * @throws {RequiredError}
27385
+ * @memberof SharedApi
27386
+ */
27387
+ mongoDeleteRBACRole(requestParameters, options) {
27388
+ return (0, exports.SharedApiFp)(this.configuration).mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(this.axios, this.basePath));
27389
+ }
27390
+ /**
27391
+ *
27392
+ * @summary DeleteRBACUser
27393
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
27394
+ * @param {*} [options] Override http request option.
27395
+ * @throws {RequiredError}
27396
+ * @memberof SharedApi
27397
+ */
27398
+ mongoDeleteRBACUser(requestParameters, options) {
27399
+ return (0, exports.SharedApiFp)(this.configuration).mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
27400
+ }
27401
+ /**
27402
+ *
27403
+ * @summary GetRBACCapabilities
27404
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
27405
+ * @param {*} [options] Override http request option.
27406
+ * @throws {RequiredError}
27407
+ * @memberof SharedApi
27408
+ */
27409
+ mongoGetRBACCapabilities(requestParameters, options) {
27410
+ return (0, exports.SharedApiFp)(this.configuration).mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
27411
+ }
27412
+ /**
27413
+ *
27414
+ * @summary GetRBACRole
27415
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
27416
+ * @param {*} [options] Override http request option.
27417
+ * @throws {RequiredError}
27418
+ * @memberof SharedApi
27419
+ */
27420
+ mongoGetRBACRole(requestParameters, options) {
27421
+ return (0, exports.SharedApiFp)(this.configuration).mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
27422
+ }
27423
+ /**
27424
+ *
27425
+ * @summary GetRBACUser
27426
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
27427
+ * @param {*} [options] Override http request option.
27428
+ * @throws {RequiredError}
27429
+ * @memberof SharedApi
27430
+ */
27431
+ mongoGetRBACUser(requestParameters, options) {
27432
+ return (0, exports.SharedApiFp)(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
27433
+ }
27434
+ /**
27435
+ *
27436
+ * @summary ListRBACRoles
27437
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
27438
+ * @param {*} [options] Override http request option.
27439
+ * @throws {RequiredError}
27440
+ * @memberof SharedApi
27441
+ */
27442
+ mongoListRBACRoles(requestParameters, options) {
27443
+ return (0, exports.SharedApiFp)(this.configuration).mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
27444
+ }
27445
+ /**
27446
+ *
27447
+ * @summary ListRBACUsers
27448
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
27449
+ * @param {*} [options] Override http request option.
27450
+ * @throws {RequiredError}
27451
+ * @memberof SharedApi
27452
+ */
27453
+ mongoListRBACUsers(requestParameters, options) {
27454
+ return (0, exports.SharedApiFp)(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
27455
+ }
27456
+ /**
27457
+ *
27458
+ * @summary UpdateRBACRole
27459
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
27460
+ * @param {*} [options] Override http request option.
27461
+ * @throws {RequiredError}
27462
+ * @memberof SharedApi
27463
+ */
27464
+ mongoUpdateRBACRole(requestParameters, options) {
27465
+ return (0, exports.SharedApiFp)(this.configuration).mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
27466
+ }
26333
27467
  /**
26334
27468
  * partially update the specified apikey
26335
27469
  * @summary Update apikey information
@@ -26386,15 +27520,15 @@ class SharedApi extends base_1.BaseAPI {
26386
27520
  return (0, exports.SharedApiFp)(this.configuration).patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
26387
27521
  }
26388
27522
  /**
26389
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
26390
- * @summary Preview clearing all MySQL account privileges
27523
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
27524
+ * @summary Preview clearing explicit account privileges
26391
27525
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
26392
27526
  * @param {*} [options] Override http request option.
26393
27527
  * @throws {RequiredError}
26394
27528
  * @memberof SharedApi
26395
27529
  */
26396
27530
  previewAccountPrivilegeReset(requestParameters, options) {
26397
- return (0, exports.SharedApiFp)(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
27531
+ return (0, exports.SharedApiFp)(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
26398
27532
  }
26399
27533
  /**
26400
27534
  *
@@ -26704,15 +27838,15 @@ class SharedApi extends base_1.BaseAPI {
26704
27838
  return (0, exports.SharedApiFp)(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
26705
27839
  }
26706
27840
  /**
26707
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
26708
- * @summary Clear all MySQL account privileges
27841
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
27842
+ * @summary Clear explicit account privileges
26709
27843
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
26710
27844
  * @param {*} [options] Override http request option.
26711
27845
  * @throws {RequiredError}
26712
27846
  * @memberof SharedApi
26713
27847
  */
26714
27848
  resetAccountPrivileges(requestParameters, options) {
26715
- return (0, exports.SharedApiFp)(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
27849
+ return (0, exports.SharedApiFp)(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
26716
27850
  }
26717
27851
  /**
26718
27852
  *