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
@@ -1144,6 +1144,68 @@ const AccountApiAxiosParamCreator = function (configuration) {
1144
1144
  options: localVarRequestOptions,
1145
1145
  };
1146
1146
  },
1147
+ /**
1148
+ * 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.
1149
+ * @summary Read native account privilege summary or selected database evidence
1150
+ * @param {string} engineName
1151
+ * @param {string} orgName
1152
+ * @param {string} clusterName
1153
+ * @param {string} accountName
1154
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
1155
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
1156
+ * @param {string} [subjectQualifiers]
1157
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ */
1161
+ getAccountPrivilegeOverview: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options = {}) => {
1162
+ // verify required parameter 'engineName' is not null or undefined
1163
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'engineName', engineName);
1164
+ // verify required parameter 'orgName' is not null or undefined
1165
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'orgName', orgName);
1166
+ // verify required parameter 'clusterName' is not null or undefined
1167
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'clusterName', clusterName);
1168
+ // verify required parameter 'accountName' is not null or undefined
1169
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'accountName', accountName);
1170
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/overview`
1171
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1172
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1173
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1174
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1176
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1177
+ let baseOptions;
1178
+ if (configuration) {
1179
+ baseOptions = configuration.baseOptions;
1180
+ }
1181
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1182
+ const localVarHeaderParameter = {};
1183
+ const localVarQueryParameter = {};
1184
+ // authentication BearerToken required
1185
+ // http bearer authentication required
1186
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1187
+ // authentication DigestAuth required
1188
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1189
+ if (subjectType !== undefined) {
1190
+ localVarQueryParameter['subjectType'] = subjectType;
1191
+ }
1192
+ if (host !== undefined) {
1193
+ localVarQueryParameter['host'] = host;
1194
+ }
1195
+ if (subjectQualifiers !== undefined) {
1196
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
1197
+ }
1198
+ if (databaseName !== undefined) {
1199
+ localVarQueryParameter['databaseName'] = databaseName;
1200
+ }
1201
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1203
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1204
+ return {
1205
+ url: (0, common_1.toPathString)(localVarUrlObj),
1206
+ options: localVarRequestOptions,
1207
+ };
1208
+ },
1147
1209
  /**
1148
1210
  * Get Hive accounts
1149
1211
  * @summary Get Hive accounts
@@ -1371,19 +1433,20 @@ const AccountApiAxiosParamCreator = function (configuration) {
1371
1433
  };
1372
1434
  },
1373
1435
  /**
1374
- * 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.
1436
+ * 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.
1375
1437
  * @summary List exact column names for account object privileges
1376
1438
  * @param {string} engineName
1377
1439
  * @param {string} orgName
1378
1440
  * @param {string} clusterName
1379
1441
  * @param {string} accountName
1380
- * @param {string} objectType Object type, either table or view
1442
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
1381
1443
  * @param {string} databaseName
1382
1444
  * @param {string} objectName
1445
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
1383
1446
  * @param {*} [options] Override http request option.
1384
1447
  * @throws {RequiredError}
1385
1448
  */
1386
- listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options = {}) => {
1449
+ listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options = {}) => {
1387
1450
  // verify required parameter 'engineName' is not null or undefined
1388
1451
  (0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'engineName', engineName);
1389
1452
  // verify required parameter 'orgName' is not null or undefined
@@ -1426,6 +1489,9 @@ const AccountApiAxiosParamCreator = function (configuration) {
1426
1489
  if (objectName !== undefined) {
1427
1490
  localVarQueryParameter['objectName'] = objectName;
1428
1491
  }
1492
+ if (schemaName !== undefined) {
1493
+ localVarQueryParameter['schemaName'] = schemaName;
1494
+ }
1429
1495
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1430
1496
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1431
1497
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1677,7 +1743,545 @@ const AccountApiAxiosParamCreator = function (configuration) {
1677
1743
  (0, common_1.assertParamExists)('listRabbitAccounts', 'clusterName', clusterName);
1678
1744
  const localVarPath = `/admin/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts`
1679
1745
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1680
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1746
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1747
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1748
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1749
+ let baseOptions;
1750
+ if (configuration) {
1751
+ baseOptions = configuration.baseOptions;
1752
+ }
1753
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1754
+ const localVarHeaderParameter = {};
1755
+ const localVarQueryParameter = {};
1756
+ // authentication BearerToken required
1757
+ // http bearer authentication required
1758
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1759
+ // authentication DigestAuth required
1760
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1761
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1762
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1763
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1764
+ return {
1765
+ url: (0, common_1.toPathString)(localVarUrlObj),
1766
+ options: localVarRequestOptions,
1767
+ };
1768
+ },
1769
+ /**
1770
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
1771
+ * @summary listSeaweedFSAccounts
1772
+ * @param {string} orgName name of the organization
1773
+ * @param {string} clusterName name of the cluster
1774
+ * @param {*} [options] Override http request option.
1775
+ * @throws {RequiredError}
1776
+ */
1777
+ listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
1778
+ // verify required parameter 'orgName' is not null or undefined
1779
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
1780
+ // verify required parameter 'clusterName' is not null or undefined
1781
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
1782
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
1783
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1784
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1785
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1786
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1787
+ let baseOptions;
1788
+ if (configuration) {
1789
+ baseOptions = configuration.baseOptions;
1790
+ }
1791
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1792
+ const localVarHeaderParameter = {};
1793
+ const localVarQueryParameter = {};
1794
+ // authentication BearerToken required
1795
+ // http bearer authentication required
1796
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1797
+ // authentication DigestAuth required
1798
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1799
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1801
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1802
+ return {
1803
+ url: (0, common_1.toPathString)(localVarUrlObj),
1804
+ options: localVarRequestOptions,
1805
+ };
1806
+ },
1807
+ /**
1808
+ *
1809
+ * @summary listSeaweedFSPolicies
1810
+ * @param {string} orgName
1811
+ * @param {string} clusterName
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ */
1815
+ listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
1816
+ // verify required parameter 'orgName' is not null or undefined
1817
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
1818
+ // verify required parameter 'clusterName' is not null or undefined
1819
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
1820
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
1821
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1822
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1824
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1825
+ let baseOptions;
1826
+ if (configuration) {
1827
+ baseOptions = configuration.baseOptions;
1828
+ }
1829
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1830
+ const localVarHeaderParameter = {};
1831
+ const localVarQueryParameter = {};
1832
+ // authentication BearerToken required
1833
+ // http bearer authentication required
1834
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1835
+ // authentication DigestAuth required
1836
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1837
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1838
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1839
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1840
+ return {
1841
+ url: (0, common_1.toPathString)(localVarUrlObj),
1842
+ options: localVarRequestOptions,
1843
+ };
1844
+ },
1845
+ /**
1846
+ * list MinIO service account access keys
1847
+ * @summary List MinIO access keys
1848
+ * @param {string} engineName name of the engine
1849
+ * @param {string} orgName name of the organization
1850
+ * @param {string} clusterName name of the cluster
1851
+ * @param {string} [userName] MinIO user that owns the service accounts
1852
+ * @param {*} [options] Override http request option.
1853
+ * @throws {RequiredError}
1854
+ */
1855
+ listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
1856
+ // verify required parameter 'engineName' is not null or undefined
1857
+ (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
1858
+ // verify required parameter 'orgName' is not null or undefined
1859
+ (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
1860
+ // verify required parameter 'clusterName' is not null or undefined
1861
+ (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
1862
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
1863
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1864
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1865
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1866
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1867
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1868
+ let baseOptions;
1869
+ if (configuration) {
1870
+ baseOptions = configuration.baseOptions;
1871
+ }
1872
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1873
+ const localVarHeaderParameter = {};
1874
+ const localVarQueryParameter = {};
1875
+ // authentication BearerToken required
1876
+ // http bearer authentication required
1877
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1878
+ // authentication DigestAuth required
1879
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1880
+ if (userName !== undefined) {
1881
+ localVarQueryParameter['userName'] = userName;
1882
+ }
1883
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1884
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1885
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1886
+ return {
1887
+ url: (0, common_1.toPathString)(localVarUrlObj),
1888
+ options: localVarRequestOptions,
1889
+ };
1890
+ },
1891
+ /**
1892
+ * lock an account in cluster
1893
+ * @summary Lock cluster account
1894
+ * @param {string} engineName name of the engine
1895
+ * @param {string} orgName name of the organization
1896
+ * @param {string} clusterName name of the cluster
1897
+ * @param {string} accountName name of the account
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ lockAccount: async (engineName, orgName, clusterName, accountName, options = {}) => {
1902
+ // verify required parameter 'engineName' is not null or undefined
1903
+ (0, common_1.assertParamExists)('lockAccount', 'engineName', engineName);
1904
+ // verify required parameter 'orgName' is not null or undefined
1905
+ (0, common_1.assertParamExists)('lockAccount', 'orgName', orgName);
1906
+ // verify required parameter 'clusterName' is not null or undefined
1907
+ (0, common_1.assertParamExists)('lockAccount', 'clusterName', clusterName);
1908
+ // verify required parameter 'accountName' is not null or undefined
1909
+ (0, common_1.assertParamExists)('lockAccount', 'accountName', accountName);
1910
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
1911
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1912
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1913
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1914
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1916
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1917
+ let baseOptions;
1918
+ if (configuration) {
1919
+ baseOptions = configuration.baseOptions;
1920
+ }
1921
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1922
+ const localVarHeaderParameter = {};
1923
+ const localVarQueryParameter = {};
1924
+ // authentication BearerToken required
1925
+ // http bearer authentication required
1926
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1927
+ // authentication DigestAuth required
1928
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1929
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1931
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1932
+ return {
1933
+ url: (0, common_1.toPathString)(localVarUrlObj),
1934
+ options: localVarRequestOptions,
1935
+ };
1936
+ },
1937
+ /**
1938
+ *
1939
+ * @summary ChangeRBACUserPassword
1940
+ * @param {string} orgName
1941
+ * @param {string} clusterName
1942
+ * @param {string} database
1943
+ * @param {string} username
1944
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
1945
+ * @param {*} [options] Override http request option.
1946
+ * @throws {RequiredError}
1947
+ */
1948
+ mongoChangeRBACUserPassword: async (orgName, clusterName, database, username, mongoRBACPasswordChange, options = {}) => {
1949
+ // verify required parameter 'orgName' is not null or undefined
1950
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'orgName', orgName);
1951
+ // verify required parameter 'clusterName' is not null or undefined
1952
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'clusterName', clusterName);
1953
+ // verify required parameter 'database' is not null or undefined
1954
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'database', database);
1955
+ // verify required parameter 'username' is not null or undefined
1956
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'username', username);
1957
+ // verify required parameter 'mongoRBACPasswordChange' is not null or undefined
1958
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'mongoRBACPasswordChange', mongoRBACPasswordChange);
1959
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/password`
1960
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1961
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1962
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
1963
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
1964
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1965
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1966
+ let baseOptions;
1967
+ if (configuration) {
1968
+ baseOptions = configuration.baseOptions;
1969
+ }
1970
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1971
+ const localVarHeaderParameter = {};
1972
+ const localVarQueryParameter = {};
1973
+ // authentication BearerToken required
1974
+ // http bearer authentication required
1975
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1976
+ // authentication DigestAuth required
1977
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1978
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1979
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1980
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1981
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1982
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACPasswordChange, localVarRequestOptions, configuration);
1983
+ return {
1984
+ url: (0, common_1.toPathString)(localVarUrlObj),
1985
+ options: localVarRequestOptions,
1986
+ };
1987
+ },
1988
+ /**
1989
+ *
1990
+ * @summary ChangeRBACUserRoles
1991
+ * @param {string} orgName
1992
+ * @param {string} clusterName
1993
+ * @param {string} database
1994
+ * @param {string} username
1995
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
1996
+ * @param {*} [options] Override http request option.
1997
+ * @throws {RequiredError}
1998
+ */
1999
+ mongoChangeRBACUserRoles: async (orgName, clusterName, database, username, mongoRBACBindingChange, options = {}) => {
2000
+ // verify required parameter 'orgName' is not null or undefined
2001
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'orgName', orgName);
2002
+ // verify required parameter 'clusterName' is not null or undefined
2003
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'clusterName', clusterName);
2004
+ // verify required parameter 'database' is not null or undefined
2005
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'database', database);
2006
+ // verify required parameter 'username' is not null or undefined
2007
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'username', username);
2008
+ // verify required parameter 'mongoRBACBindingChange' is not null or undefined
2009
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'mongoRBACBindingChange', mongoRBACBindingChange);
2010
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles`
2011
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2012
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2013
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
2014
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
2015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2016
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2017
+ let baseOptions;
2018
+ if (configuration) {
2019
+ baseOptions = configuration.baseOptions;
2020
+ }
2021
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2022
+ const localVarHeaderParameter = {};
2023
+ const localVarQueryParameter = {};
2024
+ // authentication BearerToken required
2025
+ // http bearer authentication required
2026
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2027
+ // authentication DigestAuth required
2028
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2029
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2030
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2032
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2033
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACBindingChange, localVarRequestOptions, configuration);
2034
+ return {
2035
+ url: (0, common_1.toPathString)(localVarUrlObj),
2036
+ options: localVarRequestOptions,
2037
+ };
2038
+ },
2039
+ /**
2040
+ *
2041
+ * @summary CreateRBACRole
2042
+ * @param {string} orgName
2043
+ * @param {string} clusterName
2044
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
2045
+ * @param {*} [options] Override http request option.
2046
+ * @throws {RequiredError}
2047
+ */
2048
+ mongoCreateRBACRole: async (orgName, clusterName, mongoRBACRoleWrite, options = {}) => {
2049
+ // verify required parameter 'orgName' is not null or undefined
2050
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'orgName', orgName);
2051
+ // verify required parameter 'clusterName' is not null or undefined
2052
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'clusterName', clusterName);
2053
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
2054
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
2055
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
2056
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2057
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
2058
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2059
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2060
+ let baseOptions;
2061
+ if (configuration) {
2062
+ baseOptions = configuration.baseOptions;
2063
+ }
2064
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2065
+ const localVarHeaderParameter = {};
2066
+ const localVarQueryParameter = {};
2067
+ // authentication BearerToken required
2068
+ // http bearer authentication required
2069
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2070
+ // authentication DigestAuth required
2071
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2072
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2073
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2075
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2076
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
2077
+ return {
2078
+ url: (0, common_1.toPathString)(localVarUrlObj),
2079
+ options: localVarRequestOptions,
2080
+ };
2081
+ },
2082
+ /**
2083
+ *
2084
+ * @summary CreateRBACUser
2085
+ * @param {string} orgName
2086
+ * @param {string} clusterName
2087
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
2088
+ * @param {*} [options] Override http request option.
2089
+ * @throws {RequiredError}
2090
+ */
2091
+ mongoCreateRBACUser: async (orgName, clusterName, mongoRBACUserCreate, options = {}) => {
2092
+ // verify required parameter 'orgName' is not null or undefined
2093
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'orgName', orgName);
2094
+ // verify required parameter 'clusterName' is not null or undefined
2095
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'clusterName', clusterName);
2096
+ // verify required parameter 'mongoRBACUserCreate' is not null or undefined
2097
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'mongoRBACUserCreate', mongoRBACUserCreate);
2098
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
2099
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2100
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
2101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2102
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2103
+ let baseOptions;
2104
+ if (configuration) {
2105
+ baseOptions = configuration.baseOptions;
2106
+ }
2107
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2108
+ const localVarHeaderParameter = {};
2109
+ const localVarQueryParameter = {};
2110
+ // authentication BearerToken required
2111
+ // http bearer authentication required
2112
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2113
+ // authentication DigestAuth required
2114
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2115
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2116
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2118
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2119
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACUserCreate, localVarRequestOptions, configuration);
2120
+ return {
2121
+ url: (0, common_1.toPathString)(localVarUrlObj),
2122
+ options: localVarRequestOptions,
2123
+ };
2124
+ },
2125
+ /**
2126
+ *
2127
+ * @summary DeleteRBACRole
2128
+ * @param {string} orgName
2129
+ * @param {string} clusterName
2130
+ * @param {string} database
2131
+ * @param {string} roleName
2132
+ * @param {string} expectedRevision
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ */
2136
+ mongoDeleteRBACRole: async (orgName, clusterName, database, roleName, expectedRevision, options = {}) => {
2137
+ // verify required parameter 'orgName' is not null or undefined
2138
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'orgName', orgName);
2139
+ // verify required parameter 'clusterName' is not null or undefined
2140
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'clusterName', clusterName);
2141
+ // verify required parameter 'database' is not null or undefined
2142
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'database', database);
2143
+ // verify required parameter 'roleName' is not null or undefined
2144
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'roleName', roleName);
2145
+ // verify required parameter 'expectedRevision' is not null or undefined
2146
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'expectedRevision', expectedRevision);
2147
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
2148
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2149
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2150
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
2151
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
2152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2153
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2154
+ let baseOptions;
2155
+ if (configuration) {
2156
+ baseOptions = configuration.baseOptions;
2157
+ }
2158
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2159
+ const localVarHeaderParameter = {};
2160
+ const localVarQueryParameter = {};
2161
+ // authentication BearerToken required
2162
+ // http bearer authentication required
2163
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2164
+ // authentication DigestAuth required
2165
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2166
+ if (expectedRevision !== undefined) {
2167
+ localVarQueryParameter['expectedRevision'] = expectedRevision;
2168
+ }
2169
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2171
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2172
+ return {
2173
+ url: (0, common_1.toPathString)(localVarUrlObj),
2174
+ options: localVarRequestOptions,
2175
+ };
2176
+ },
2177
+ /**
2178
+ *
2179
+ * @summary DeleteRBACUser
2180
+ * @param {string} orgName
2181
+ * @param {string} clusterName
2182
+ * @param {string} database
2183
+ * @param {string} username
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ */
2187
+ mongoDeleteRBACUser: async (orgName, clusterName, database, username, options = {}) => {
2188
+ // verify required parameter 'orgName' is not null or undefined
2189
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'orgName', orgName);
2190
+ // verify required parameter 'clusterName' is not null or undefined
2191
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'clusterName', clusterName);
2192
+ // verify required parameter 'database' is not null or undefined
2193
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'database', database);
2194
+ // verify required parameter 'username' is not null or undefined
2195
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'username', username);
2196
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
2197
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2198
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2199
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
2200
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
2201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2202
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2203
+ let baseOptions;
2204
+ if (configuration) {
2205
+ baseOptions = configuration.baseOptions;
2206
+ }
2207
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2208
+ const localVarHeaderParameter = {};
2209
+ const localVarQueryParameter = {};
2210
+ // authentication BearerToken required
2211
+ // http bearer authentication required
2212
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2213
+ // authentication DigestAuth required
2214
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2215
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2216
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2217
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2218
+ return {
2219
+ url: (0, common_1.toPathString)(localVarUrlObj),
2220
+ options: localVarRequestOptions,
2221
+ };
2222
+ },
2223
+ /**
2224
+ *
2225
+ * @summary GetRBACCapabilities
2226
+ * @param {string} orgName
2227
+ * @param {string} clusterName
2228
+ * @param {*} [options] Override http request option.
2229
+ * @throws {RequiredError}
2230
+ */
2231
+ mongoGetRBACCapabilities: async (orgName, clusterName, options = {}) => {
2232
+ // verify required parameter 'orgName' is not null or undefined
2233
+ (0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'orgName', orgName);
2234
+ // verify required parameter 'clusterName' is not null or undefined
2235
+ (0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'clusterName', clusterName);
2236
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities`
2237
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2238
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
2239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2240
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2241
+ let baseOptions;
2242
+ if (configuration) {
2243
+ baseOptions = configuration.baseOptions;
2244
+ }
2245
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2246
+ const localVarHeaderParameter = {};
2247
+ const localVarQueryParameter = {};
2248
+ // authentication BearerToken required
2249
+ // http bearer authentication required
2250
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2251
+ // authentication DigestAuth required
2252
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2255
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2256
+ return {
2257
+ url: (0, common_1.toPathString)(localVarUrlObj),
2258
+ options: localVarRequestOptions,
2259
+ };
2260
+ },
2261
+ /**
2262
+ *
2263
+ * @summary GetRBACRole
2264
+ * @param {string} orgName
2265
+ * @param {string} clusterName
2266
+ * @param {string} database
2267
+ * @param {string} roleName
2268
+ * @param {*} [options] Override http request option.
2269
+ * @throws {RequiredError}
2270
+ */
2271
+ mongoGetRBACRole: async (orgName, clusterName, database, roleName, options = {}) => {
2272
+ // verify required parameter 'orgName' is not null or undefined
2273
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'orgName', orgName);
2274
+ // verify required parameter 'clusterName' is not null or undefined
2275
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'clusterName', clusterName);
2276
+ // verify required parameter 'database' is not null or undefined
2277
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'database', database);
2278
+ // verify required parameter 'roleName' is not null or undefined
2279
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'roleName', roleName);
2280
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
2281
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2282
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2283
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
2284
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
1681
2285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1682
2286
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1683
2287
  let baseOptions;
@@ -1701,21 +2305,29 @@ const AccountApiAxiosParamCreator = function (configuration) {
1701
2305
  };
1702
2306
  },
1703
2307
  /**
1704
- * Lists SeaweedFS identities and access-key metadata without secret keys.
1705
- * @summary listSeaweedFSAccounts
1706
- * @param {string} orgName name of the organization
1707
- * @param {string} clusterName name of the cluster
2308
+ *
2309
+ * @summary GetRBACUser
2310
+ * @param {string} orgName
2311
+ * @param {string} clusterName
2312
+ * @param {string} database
2313
+ * @param {string} username
1708
2314
  * @param {*} [options] Override http request option.
1709
2315
  * @throws {RequiredError}
1710
2316
  */
1711
- listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
2317
+ mongoGetRBACUser: async (orgName, clusterName, database, username, options = {}) => {
1712
2318
  // verify required parameter 'orgName' is not null or undefined
1713
- (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
2319
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'orgName', orgName);
1714
2320
  // verify required parameter 'clusterName' is not null or undefined
1715
- (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
1716
- const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
2321
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'clusterName', clusterName);
2322
+ // verify required parameter 'database' is not null or undefined
2323
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'database', database);
2324
+ // verify required parameter 'username' is not null or undefined
2325
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'username', username);
2326
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
1717
2327
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1718
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
2328
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2329
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
2330
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
1719
2331
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1720
2332
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1721
2333
  let baseOptions;
@@ -1740,18 +2352,19 @@ const AccountApiAxiosParamCreator = function (configuration) {
1740
2352
  },
1741
2353
  /**
1742
2354
  *
1743
- * @summary listSeaweedFSPolicies
2355
+ * @summary ListRBACRoles
1744
2356
  * @param {string} orgName
1745
2357
  * @param {string} clusterName
2358
+ * @param {string} [database]
1746
2359
  * @param {*} [options] Override http request option.
1747
2360
  * @throws {RequiredError}
1748
2361
  */
1749
- listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
2362
+ mongoListRBACRoles: async (orgName, clusterName, database, options = {}) => {
1750
2363
  // verify required parameter 'orgName' is not null or undefined
1751
- (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
2364
+ (0, common_1.assertParamExists)('mongoListRBACRoles', 'orgName', orgName);
1752
2365
  // verify required parameter 'clusterName' is not null or undefined
1753
- (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
1754
- const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
2366
+ (0, common_1.assertParamExists)('mongoListRBACRoles', 'clusterName', clusterName);
2367
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
1755
2368
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1756
2369
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1757
2370
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1768,6 +2381,9 @@ const AccountApiAxiosParamCreator = function (configuration) {
1768
2381
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1769
2382
  // authentication DigestAuth required
1770
2383
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2384
+ if (database !== undefined) {
2385
+ localVarQueryParameter['database'] = database;
2386
+ }
1771
2387
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1772
2388
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1773
2389
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1777,24 +2393,20 @@ const AccountApiAxiosParamCreator = function (configuration) {
1777
2393
  };
1778
2394
  },
1779
2395
  /**
1780
- * list MinIO service account access keys
1781
- * @summary List MinIO access keys
1782
- * @param {string} engineName name of the engine
1783
- * @param {string} orgName name of the organization
1784
- * @param {string} clusterName name of the cluster
1785
- * @param {string} [userName] MinIO user that owns the service accounts
2396
+ *
2397
+ * @summary ListRBACUsers
2398
+ * @param {string} orgName
2399
+ * @param {string} clusterName
2400
+ * @param {string} [database]
1786
2401
  * @param {*} [options] Override http request option.
1787
2402
  * @throws {RequiredError}
1788
2403
  */
1789
- listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
1790
- // verify required parameter 'engineName' is not null or undefined
1791
- (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
2404
+ mongoListRBACUsers: async (orgName, clusterName, database, options = {}) => {
1792
2405
  // verify required parameter 'orgName' is not null or undefined
1793
- (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
2406
+ (0, common_1.assertParamExists)('mongoListRBACUsers', 'orgName', orgName);
1794
2407
  // verify required parameter 'clusterName' is not null or undefined
1795
- (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
1796
- const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
1797
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
2408
+ (0, common_1.assertParamExists)('mongoListRBACUsers', 'clusterName', clusterName);
2409
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
1798
2410
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1799
2411
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1800
2412
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1811,8 +2423,8 @@ const AccountApiAxiosParamCreator = function (configuration) {
1811
2423
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1812
2424
  // authentication DigestAuth required
1813
2425
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1814
- if (userName !== undefined) {
1815
- localVarQueryParameter['userName'] = userName;
2426
+ if (database !== undefined) {
2427
+ localVarQueryParameter['database'] = database;
1816
2428
  }
1817
2429
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1818
2430
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1823,36 +2435,39 @@ const AccountApiAxiosParamCreator = function (configuration) {
1823
2435
  };
1824
2436
  },
1825
2437
  /**
1826
- * lock an account in cluster
1827
- * @summary Lock cluster account
1828
- * @param {string} engineName name of the engine
1829
- * @param {string} orgName name of the organization
1830
- * @param {string} clusterName name of the cluster
1831
- * @param {string} accountName name of the account
2438
+ *
2439
+ * @summary UpdateRBACRole
2440
+ * @param {string} orgName
2441
+ * @param {string} clusterName
2442
+ * @param {string} database
2443
+ * @param {string} roleName
2444
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
1832
2445
  * @param {*} [options] Override http request option.
1833
2446
  * @throws {RequiredError}
1834
2447
  */
1835
- lockAccount: async (engineName, orgName, clusterName, accountName, options = {}) => {
1836
- // verify required parameter 'engineName' is not null or undefined
1837
- (0, common_1.assertParamExists)('lockAccount', 'engineName', engineName);
2448
+ mongoUpdateRBACRole: async (orgName, clusterName, database, roleName, mongoRBACRoleWrite, options = {}) => {
1838
2449
  // verify required parameter 'orgName' is not null or undefined
1839
- (0, common_1.assertParamExists)('lockAccount', 'orgName', orgName);
2450
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'orgName', orgName);
1840
2451
  // verify required parameter 'clusterName' is not null or undefined
1841
- (0, common_1.assertParamExists)('lockAccount', 'clusterName', clusterName);
1842
- // verify required parameter 'accountName' is not null or undefined
1843
- (0, common_1.assertParamExists)('lockAccount', 'accountName', accountName);
1844
- const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
1845
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
2452
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'clusterName', clusterName);
2453
+ // verify required parameter 'database' is not null or undefined
2454
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'database', database);
2455
+ // verify required parameter 'roleName' is not null or undefined
2456
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'roleName', roleName);
2457
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
2458
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
2459
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
1846
2460
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1847
2461
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1848
- .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
2462
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
2463
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
1849
2464
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1850
2465
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1851
2466
  let baseOptions;
1852
2467
  if (configuration) {
1853
2468
  baseOptions = configuration.baseOptions;
1854
2469
  }
1855
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2470
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1856
2471
  const localVarHeaderParameter = {};
1857
2472
  const localVarQueryParameter = {};
1858
2473
  // authentication BearerToken required
@@ -1860,17 +2475,19 @@ const AccountApiAxiosParamCreator = function (configuration) {
1860
2475
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1861
2476
  // authentication DigestAuth required
1862
2477
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2478
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1863
2479
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1864
2480
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1865
2481
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2482
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
1866
2483
  return {
1867
2484
  url: (0, common_1.toPathString)(localVarUrlObj),
1868
2485
  options: localVarRequestOptions,
1869
2486
  };
1870
2487
  },
1871
2488
  /**
1872
- * 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.
1873
- * @summary Preview clearing all MySQL account privileges
2489
+ * 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.
2490
+ * @summary Preview clearing explicit account privileges
1874
2491
  * @param {string} engineName
1875
2492
  * @param {string} orgName
1876
2493
  * @param {string} clusterName
@@ -1878,10 +2495,12 @@ const AccountApiAxiosParamCreator = function (configuration) {
1878
2495
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
1879
2496
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
1880
2497
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
2498
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
2499
+ * @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.
1881
2500
  * @param {*} [options] Override http request option.
1882
2501
  * @throws {RequiredError}
1883
2502
  */
1884
- previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
2503
+ previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options = {}) => {
1885
2504
  // verify required parameter 'engineName' is not null or undefined
1886
2505
  (0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'engineName', engineName);
1887
2506
  // verify required parameter 'orgName' is not null or undefined
@@ -1918,6 +2537,12 @@ const AccountApiAxiosParamCreator = function (configuration) {
1918
2537
  if (subjectQualifiers !== undefined) {
1919
2538
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
1920
2539
  }
2540
+ if (databaseNames) {
2541
+ localVarQueryParameter['databaseNames'] = databaseNames;
2542
+ }
2543
+ if (allDatabases !== undefined) {
2544
+ localVarQueryParameter['allDatabases'] = allDatabases;
2545
+ }
1921
2546
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1922
2547
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1923
2548
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1974,8 +2599,8 @@ const AccountApiAxiosParamCreator = function (configuration) {
1974
2599
  };
1975
2600
  },
1976
2601
  /**
1977
- * 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.
1978
- * @summary Clear all MySQL account privileges
2602
+ * 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.
2603
+ * @summary Clear explicit account privileges
1979
2604
  * @param {string} engineName
1980
2605
  * @param {string} orgName
1981
2606
  * @param {string} clusterName
@@ -1983,10 +2608,12 @@ const AccountApiAxiosParamCreator = function (configuration) {
1983
2608
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
1984
2609
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
1985
2610
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
2611
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
2612
+ * @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.
1986
2613
  * @param {*} [options] Override http request option.
1987
2614
  * @throws {RequiredError}
1988
2615
  */
1989
- resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
2616
+ resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options = {}) => {
1990
2617
  // verify required parameter 'engineName' is not null or undefined
1991
2618
  (0, common_1.assertParamExists)('resetAccountPrivileges', 'engineName', engineName);
1992
2619
  // verify required parameter 'orgName' is not null or undefined
@@ -2023,6 +2650,12 @@ const AccountApiAxiosParamCreator = function (configuration) {
2023
2650
  if (subjectQualifiers !== undefined) {
2024
2651
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
2025
2652
  }
2653
+ if (databaseNames) {
2654
+ localVarQueryParameter['databaseNames'] = databaseNames;
2655
+ }
2656
+ if (allDatabases !== undefined) {
2657
+ localVarQueryParameter['allDatabases'] = allDatabases;
2658
+ }
2026
2659
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2027
2660
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2028
2661
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3111,6 +3744,27 @@ const AccountApiFp = function (configuration) {
3111
3744
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getAccountObjectPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3112
3745
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3113
3746
  },
3747
+ /**
3748
+ * 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.
3749
+ * @summary Read native account privilege summary or selected database evidence
3750
+ * @param {string} engineName
3751
+ * @param {string} orgName
3752
+ * @param {string} clusterName
3753
+ * @param {string} accountName
3754
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
3755
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
3756
+ * @param {string} [subjectQualifiers]
3757
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
3758
+ * @param {*} [options] Override http request option.
3759
+ * @throws {RequiredError}
3760
+ */
3761
+ async getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options) {
3762
+ var _a, _b, _c;
3763
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options);
3764
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3765
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getAccountPrivilegeOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3766
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3767
+ },
3114
3768
  /**
3115
3769
  * Get Hive accounts
3116
3770
  * @summary Get Hive accounts
@@ -3195,21 +3849,22 @@ const AccountApiFp = function (configuration) {
3195
3849
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3196
3850
  },
3197
3851
  /**
3198
- * 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.
3852
+ * 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.
3199
3853
  * @summary List exact column names for account object privileges
3200
3854
  * @param {string} engineName
3201
3855
  * @param {string} orgName
3202
3856
  * @param {string} clusterName
3203
3857
  * @param {string} accountName
3204
- * @param {string} objectType Object type, either table or view
3858
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
3205
3859
  * @param {string} databaseName
3206
3860
  * @param {string} objectName
3861
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
3207
3862
  * @param {*} [options] Override http request option.
3208
3863
  * @throws {RequiredError}
3209
3864
  */
3210
- async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options) {
3865
+ async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options) {
3211
3866
  var _a, _b, _c;
3212
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
3867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options);
3213
3868
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3214
3869
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listAccountObjectPrivilegeColumns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3215
3870
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3238,148 +3893,350 @@ const AccountApiFp = function (configuration) {
3238
3893
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3239
3894
  },
3240
3895
  /**
3241
- * list accounts in cluster
3242
- * @summary List cluster accounts
3243
- * @param {string} engineName name of the engine
3244
- * @param {string} orgName name of the organization
3245
- * @param {string} clusterName name of the cluster
3896
+ * list accounts in cluster
3897
+ * @summary List cluster accounts
3898
+ * @param {string} engineName name of the engine
3899
+ * @param {string} orgName name of the organization
3900
+ * @param {string} clusterName name of the cluster
3901
+ * @param {*} [options] Override http request option.
3902
+ * @throws {RequiredError}
3903
+ */
3904
+ async listAccounts(engineName, orgName, clusterName, options) {
3905
+ var _a, _b, _c;
3906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(engineName, orgName, clusterName, options);
3907
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3908
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3909
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3910
+ },
3911
+ /**
3912
+ * list accounts in cluster
3913
+ * @summary List cluster accounts
3914
+ * @param {string} orgName name of the Org
3915
+ * @param {string} clusterName name of the Cluster
3916
+ * @param {*} [options] Override http request option.
3917
+ * @throws {RequiredError}
3918
+ */
3919
+ async listKafkaAccounts(orgName, clusterName, options) {
3920
+ var _a, _b, _c;
3921
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaAccounts(orgName, clusterName, options);
3922
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3923
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listKafkaAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3924
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3925
+ },
3926
+ /**
3927
+ * List Milvus native roles and their privilege grants.
3928
+ * @summary List Milvus roles
3929
+ * @param {string} orgName name of the Org
3930
+ * @param {string} clusterName name of the Cluster
3931
+ * @param {*} [options] Override http request option.
3932
+ * @throws {RequiredError}
3933
+ */
3934
+ async listMilvusRoles(orgName, clusterName, options) {
3935
+ var _a, _b, _c;
3936
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMilvusRoles(orgName, clusterName, options);
3937
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3938
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listMilvusRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3939
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3940
+ },
3941
+ /**
3942
+ * list accounts in mongodb
3943
+ * @summary List mongodb accounts
3944
+ * @param {string} orgName name of the Org
3945
+ * @param {string} clusterName name of the Cluster
3946
+ * @param {*} [options] Override http request option.
3947
+ * @throws {RequiredError}
3948
+ */
3949
+ async listMongoDBAccounts(orgName, clusterName, options) {
3950
+ var _a, _b, _c;
3951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMongoDBAccounts(orgName, clusterName, options);
3952
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3953
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listMongoDBAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3954
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3955
+ },
3956
+ /**
3957
+ * List all RabbitMQ accounts
3958
+ * @summary List RabbitMQ accounts
3959
+ * @param {string} orgName name of the Org
3960
+ * @param {string} clusterName name of the Cluster
3961
+ * @param {*} [options] Override http request option.
3962
+ * @throws {RequiredError}
3963
+ */
3964
+ async listRabbitAccounts(orgName, clusterName, options) {
3965
+ var _a, _b, _c;
3966
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRabbitAccounts(orgName, clusterName, options);
3967
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3968
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listRabbitAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3969
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3970
+ },
3971
+ /**
3972
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
3973
+ * @summary listSeaweedFSAccounts
3974
+ * @param {string} orgName name of the organization
3975
+ * @param {string} clusterName name of the cluster
3976
+ * @param {*} [options] Override http request option.
3977
+ * @throws {RequiredError}
3978
+ */
3979
+ async listSeaweedFSAccounts(orgName, clusterName, options) {
3980
+ var _a, _b, _c;
3981
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
3982
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3983
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listSeaweedFSAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3984
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3985
+ },
3986
+ /**
3987
+ *
3988
+ * @summary listSeaweedFSPolicies
3989
+ * @param {string} orgName
3990
+ * @param {string} clusterName
3991
+ * @param {*} [options] Override http request option.
3992
+ * @throws {RequiredError}
3993
+ */
3994
+ async listSeaweedFSPolicies(orgName, clusterName, options) {
3995
+ var _a, _b, _c;
3996
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
3997
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3998
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3999
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4000
+ },
4001
+ /**
4002
+ * list MinIO service account access keys
4003
+ * @summary List MinIO access keys
4004
+ * @param {string} engineName name of the engine
4005
+ * @param {string} orgName name of the organization
4006
+ * @param {string} clusterName name of the cluster
4007
+ * @param {string} [userName] MinIO user that owns the service accounts
4008
+ * @param {*} [options] Override http request option.
4009
+ * @throws {RequiredError}
4010
+ */
4011
+ async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
4012
+ var _a, _b, _c;
4013
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
4014
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4015
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listServiceAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4016
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4017
+ },
4018
+ /**
4019
+ * lock an account in cluster
4020
+ * @summary Lock cluster account
4021
+ * @param {string} engineName name of the engine
4022
+ * @param {string} orgName name of the organization
4023
+ * @param {string} clusterName name of the cluster
4024
+ * @param {string} accountName name of the account
4025
+ * @param {*} [options] Override http request option.
4026
+ * @throws {RequiredError}
4027
+ */
4028
+ async lockAccount(engineName, orgName, clusterName, accountName, options) {
4029
+ var _a, _b, _c;
4030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
4031
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4032
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4033
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4034
+ },
4035
+ /**
4036
+ *
4037
+ * @summary ChangeRBACUserPassword
4038
+ * @param {string} orgName
4039
+ * @param {string} clusterName
4040
+ * @param {string} database
4041
+ * @param {string} username
4042
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
4043
+ * @param {*} [options] Override http request option.
4044
+ * @throws {RequiredError}
4045
+ */
4046
+ async mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options) {
4047
+ var _a, _b, _c;
4048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options);
4049
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4050
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoChangeRBACUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4051
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4052
+ },
4053
+ /**
4054
+ *
4055
+ * @summary ChangeRBACUserRoles
4056
+ * @param {string} orgName
4057
+ * @param {string} clusterName
4058
+ * @param {string} database
4059
+ * @param {string} username
4060
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
4061
+ * @param {*} [options] Override http request option.
4062
+ * @throws {RequiredError}
4063
+ */
4064
+ async mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options) {
4065
+ var _a, _b, _c;
4066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options);
4067
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4068
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoChangeRBACUserRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4069
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4070
+ },
4071
+ /**
4072
+ *
4073
+ * @summary CreateRBACRole
4074
+ * @param {string} orgName
4075
+ * @param {string} clusterName
4076
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
4077
+ * @param {*} [options] Override http request option.
4078
+ * @throws {RequiredError}
4079
+ */
4080
+ async mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options) {
4081
+ var _a, _b, _c;
4082
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options);
4083
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4084
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoCreateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4085
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4086
+ },
4087
+ /**
4088
+ *
4089
+ * @summary CreateRBACUser
4090
+ * @param {string} orgName
4091
+ * @param {string} clusterName
4092
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
3246
4093
  * @param {*} [options] Override http request option.
3247
4094
  * @throws {RequiredError}
3248
4095
  */
3249
- async listAccounts(engineName, orgName, clusterName, options) {
4096
+ async mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options) {
3250
4097
  var _a, _b, _c;
3251
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(engineName, orgName, clusterName, options);
4098
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options);
3252
4099
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3253
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4100
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoCreateRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3254
4101
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3255
4102
  },
3256
4103
  /**
3257
- * list accounts in cluster
3258
- * @summary List cluster accounts
3259
- * @param {string} orgName name of the Org
3260
- * @param {string} clusterName name of the Cluster
4104
+ *
4105
+ * @summary DeleteRBACRole
4106
+ * @param {string} orgName
4107
+ * @param {string} clusterName
4108
+ * @param {string} database
4109
+ * @param {string} roleName
4110
+ * @param {string} expectedRevision
3261
4111
  * @param {*} [options] Override http request option.
3262
4112
  * @throws {RequiredError}
3263
4113
  */
3264
- async listKafkaAccounts(orgName, clusterName, options) {
4114
+ async mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options) {
3265
4115
  var _a, _b, _c;
3266
- const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaAccounts(orgName, clusterName, options);
4116
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options);
3267
4117
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3268
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listKafkaAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4118
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoDeleteRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3269
4119
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3270
4120
  },
3271
4121
  /**
3272
- * List Milvus native roles and their privilege grants.
3273
- * @summary List Milvus roles
3274
- * @param {string} orgName name of the Org
3275
- * @param {string} clusterName name of the Cluster
4122
+ *
4123
+ * @summary DeleteRBACUser
4124
+ * @param {string} orgName
4125
+ * @param {string} clusterName
4126
+ * @param {string} database
4127
+ * @param {string} username
3276
4128
  * @param {*} [options] Override http request option.
3277
4129
  * @throws {RequiredError}
3278
4130
  */
3279
- async listMilvusRoles(orgName, clusterName, options) {
4131
+ async mongoDeleteRBACUser(orgName, clusterName, database, username, options) {
3280
4132
  var _a, _b, _c;
3281
- const localVarAxiosArgs = await localVarAxiosParamCreator.listMilvusRoles(orgName, clusterName, options);
4133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACUser(orgName, clusterName, database, username, options);
3282
4134
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3283
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listMilvusRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4135
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoDeleteRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3284
4136
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3285
4137
  },
3286
4138
  /**
3287
- * list accounts in mongodb
3288
- * @summary List mongodb accounts
3289
- * @param {string} orgName name of the Org
3290
- * @param {string} clusterName name of the Cluster
4139
+ *
4140
+ * @summary GetRBACCapabilities
4141
+ * @param {string} orgName
4142
+ * @param {string} clusterName
3291
4143
  * @param {*} [options] Override http request option.
3292
4144
  * @throws {RequiredError}
3293
4145
  */
3294
- async listMongoDBAccounts(orgName, clusterName, options) {
4146
+ async mongoGetRBACCapabilities(orgName, clusterName, options) {
3295
4147
  var _a, _b, _c;
3296
- const localVarAxiosArgs = await localVarAxiosParamCreator.listMongoDBAccounts(orgName, clusterName, options);
4148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACCapabilities(orgName, clusterName, options);
3297
4149
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3298
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listMongoDBAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4150
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoGetRBACCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3299
4151
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3300
4152
  },
3301
4153
  /**
3302
- * List all RabbitMQ accounts
3303
- * @summary List RabbitMQ accounts
3304
- * @param {string} orgName name of the Org
3305
- * @param {string} clusterName name of the Cluster
4154
+ *
4155
+ * @summary GetRBACRole
4156
+ * @param {string} orgName
4157
+ * @param {string} clusterName
4158
+ * @param {string} database
4159
+ * @param {string} roleName
3306
4160
  * @param {*} [options] Override http request option.
3307
4161
  * @throws {RequiredError}
3308
4162
  */
3309
- async listRabbitAccounts(orgName, clusterName, options) {
4163
+ async mongoGetRBACRole(orgName, clusterName, database, roleName, options) {
3310
4164
  var _a, _b, _c;
3311
- const localVarAxiosArgs = await localVarAxiosParamCreator.listRabbitAccounts(orgName, clusterName, options);
4165
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACRole(orgName, clusterName, database, roleName, options);
3312
4166
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3313
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listRabbitAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4167
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoGetRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3314
4168
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3315
4169
  },
3316
4170
  /**
3317
- * Lists SeaweedFS identities and access-key metadata without secret keys.
3318
- * @summary listSeaweedFSAccounts
3319
- * @param {string} orgName name of the organization
3320
- * @param {string} clusterName name of the cluster
4171
+ *
4172
+ * @summary GetRBACUser
4173
+ * @param {string} orgName
4174
+ * @param {string} clusterName
4175
+ * @param {string} database
4176
+ * @param {string} username
3321
4177
  * @param {*} [options] Override http request option.
3322
4178
  * @throws {RequiredError}
3323
4179
  */
3324
- async listSeaweedFSAccounts(orgName, clusterName, options) {
4180
+ async mongoGetRBACUser(orgName, clusterName, database, username, options) {
3325
4181
  var _a, _b, _c;
3326
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
4182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACUser(orgName, clusterName, database, username, options);
3327
4183
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3328
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listSeaweedFSAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4184
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoGetRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3329
4185
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3330
4186
  },
3331
4187
  /**
3332
4188
  *
3333
- * @summary listSeaweedFSPolicies
4189
+ * @summary ListRBACRoles
3334
4190
  * @param {string} orgName
3335
4191
  * @param {string} clusterName
4192
+ * @param {string} [database]
3336
4193
  * @param {*} [options] Override http request option.
3337
4194
  * @throws {RequiredError}
3338
4195
  */
3339
- async listSeaweedFSPolicies(orgName, clusterName, options) {
4196
+ async mongoListRBACRoles(orgName, clusterName, database, options) {
3340
4197
  var _a, _b, _c;
3341
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
4198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACRoles(orgName, clusterName, database, options);
3342
4199
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3343
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4200
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoListRBACRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3344
4201
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3345
4202
  },
3346
4203
  /**
3347
- * list MinIO service account access keys
3348
- * @summary List MinIO access keys
3349
- * @param {string} engineName name of the engine
3350
- * @param {string} orgName name of the organization
3351
- * @param {string} clusterName name of the cluster
3352
- * @param {string} [userName] MinIO user that owns the service accounts
4204
+ *
4205
+ * @summary ListRBACUsers
4206
+ * @param {string} orgName
4207
+ * @param {string} clusterName
4208
+ * @param {string} [database]
3353
4209
  * @param {*} [options] Override http request option.
3354
4210
  * @throws {RequiredError}
3355
4211
  */
3356
- async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
4212
+ async mongoListRBACUsers(orgName, clusterName, database, options) {
3357
4213
  var _a, _b, _c;
3358
- const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
4214
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
3359
4215
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3360
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listServiceAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4216
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoListRBACUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3361
4217
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3362
4218
  },
3363
4219
  /**
3364
- * lock an account in cluster
3365
- * @summary Lock cluster account
3366
- * @param {string} engineName name of the engine
3367
- * @param {string} orgName name of the organization
3368
- * @param {string} clusterName name of the cluster
3369
- * @param {string} accountName name of the account
4220
+ *
4221
+ * @summary UpdateRBACRole
4222
+ * @param {string} orgName
4223
+ * @param {string} clusterName
4224
+ * @param {string} database
4225
+ * @param {string} roleName
4226
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
3370
4227
  * @param {*} [options] Override http request option.
3371
4228
  * @throws {RequiredError}
3372
4229
  */
3373
- async lockAccount(engineName, orgName, clusterName, accountName, options) {
4230
+ async mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options) {
3374
4231
  var _a, _b, _c;
3375
- const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
4232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options);
3376
4233
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3377
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4234
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.mongoUpdateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3378
4235
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3379
4236
  },
3380
4237
  /**
3381
- * 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.
3382
- * @summary Preview clearing all MySQL account privileges
4238
+ * 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.
4239
+ * @summary Preview clearing explicit account privileges
3383
4240
  * @param {string} engineName
3384
4241
  * @param {string} orgName
3385
4242
  * @param {string} clusterName
@@ -3387,12 +4244,14 @@ const AccountApiFp = function (configuration) {
3387
4244
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
3388
4245
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
3389
4246
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
4247
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
4248
+ * @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.
3390
4249
  * @param {*} [options] Override http request option.
3391
4250
  * @throws {RequiredError}
3392
4251
  */
3393
- async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
4252
+ async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options) {
3394
4253
  var _a, _b, _c;
3395
- const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
4254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
3396
4255
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3397
4256
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.previewAccountPrivilegeReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3398
4257
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3415,8 +4274,8 @@ const AccountApiFp = function (configuration) {
3415
4274
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3416
4275
  },
3417
4276
  /**
3418
- * 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.
3419
- * @summary Clear all MySQL account privileges
4277
+ * 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.
4278
+ * @summary Clear explicit account privileges
3420
4279
  * @param {string} engineName
3421
4280
  * @param {string} orgName
3422
4281
  * @param {string} clusterName
@@ -3424,12 +4283,14 @@ const AccountApiFp = function (configuration) {
3424
4283
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
3425
4284
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
3426
4285
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
4286
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
4287
+ * @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.
3427
4288
  * @param {*} [options] Override http request option.
3428
4289
  * @throws {RequiredError}
3429
4290
  */
3430
- async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
4291
+ async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options) {
3431
4292
  var _a, _b, _c;
3432
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
4293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
3433
4294
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3434
4295
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.resetAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3435
4296
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3924,6 +4785,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
3924
4785
  getAccountObjectPrivileges(requestParameters, options) {
3925
4786
  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));
3926
4787
  },
4788
+ /**
4789
+ * 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.
4790
+ * @summary Read native account privilege summary or selected database evidence
4791
+ * @param {AccountApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
4792
+ * @param {*} [options] Override http request option.
4793
+ * @throws {RequiredError}
4794
+ */
4795
+ getAccountPrivilegeOverview(requestParameters, options) {
4796
+ 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));
4797
+ },
3927
4798
  /**
3928
4799
  * Get Hive accounts
3929
4800
  * @summary Get Hive accounts
@@ -3975,14 +4846,14 @@ const AccountApiFactory = function (configuration, basePath, axios) {
3975
4846
  return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
3976
4847
  },
3977
4848
  /**
3978
- * 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.
4849
+ * 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.
3979
4850
  * @summary List exact column names for account object privileges
3980
4851
  * @param {AccountApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
3981
4852
  * @param {*} [options] Override http request option.
3982
4853
  * @throws {RequiredError}
3983
4854
  */
3984
4855
  listAccountObjectPrivilegeColumns(requestParameters, options) {
3985
- return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
4856
+ 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));
3986
4857
  },
3987
4858
  /**
3988
4859
  * 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.
@@ -4085,14 +4956,134 @@ const AccountApiFactory = function (configuration, basePath, axios) {
4085
4956
  return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
4086
4957
  },
4087
4958
  /**
4088
- * 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.
4089
- * @summary Preview clearing all MySQL account privileges
4959
+ *
4960
+ * @summary ChangeRBACUserPassword
4961
+ * @param {AccountApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
4962
+ * @param {*} [options] Override http request option.
4963
+ * @throws {RequiredError}
4964
+ */
4965
+ mongoChangeRBACUserPassword(requestParameters, options) {
4966
+ return localVarFp.mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(axios, basePath));
4967
+ },
4968
+ /**
4969
+ *
4970
+ * @summary ChangeRBACUserRoles
4971
+ * @param {AccountApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
4972
+ * @param {*} [options] Override http request option.
4973
+ * @throws {RequiredError}
4974
+ */
4975
+ mongoChangeRBACUserRoles(requestParameters, options) {
4976
+ return localVarFp.mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(axios, basePath));
4977
+ },
4978
+ /**
4979
+ *
4980
+ * @summary CreateRBACRole
4981
+ * @param {AccountApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
4982
+ * @param {*} [options] Override http request option.
4983
+ * @throws {RequiredError}
4984
+ */
4985
+ mongoCreateRBACRole(requestParameters, options) {
4986
+ return localVarFp.mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
4987
+ },
4988
+ /**
4989
+ *
4990
+ * @summary CreateRBACUser
4991
+ * @param {AccountApiMongoCreateRBACUserRequest} requestParameters Request parameters.
4992
+ * @param {*} [options] Override http request option.
4993
+ * @throws {RequiredError}
4994
+ */
4995
+ mongoCreateRBACUser(requestParameters, options) {
4996
+ return localVarFp.mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(axios, basePath));
4997
+ },
4998
+ /**
4999
+ *
5000
+ * @summary DeleteRBACRole
5001
+ * @param {AccountApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
5002
+ * @param {*} [options] Override http request option.
5003
+ * @throws {RequiredError}
5004
+ */
5005
+ mongoDeleteRBACRole(requestParameters, options) {
5006
+ return localVarFp.mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(axios, basePath));
5007
+ },
5008
+ /**
5009
+ *
5010
+ * @summary DeleteRBACUser
5011
+ * @param {AccountApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
5012
+ * @param {*} [options] Override http request option.
5013
+ * @throws {RequiredError}
5014
+ */
5015
+ mongoDeleteRBACUser(requestParameters, options) {
5016
+ return localVarFp.mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
5017
+ },
5018
+ /**
5019
+ *
5020
+ * @summary GetRBACCapabilities
5021
+ * @param {AccountApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
5022
+ * @param {*} [options] Override http request option.
5023
+ * @throws {RequiredError}
5024
+ */
5025
+ mongoGetRBACCapabilities(requestParameters, options) {
5026
+ return localVarFp.mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
5027
+ },
5028
+ /**
5029
+ *
5030
+ * @summary GetRBACRole
5031
+ * @param {AccountApiMongoGetRBACRoleRequest} requestParameters Request parameters.
5032
+ * @param {*} [options] Override http request option.
5033
+ * @throws {RequiredError}
5034
+ */
5035
+ mongoGetRBACRole(requestParameters, options) {
5036
+ return localVarFp.mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(axios, basePath));
5037
+ },
5038
+ /**
5039
+ *
5040
+ * @summary GetRBACUser
5041
+ * @param {AccountApiMongoGetRBACUserRequest} requestParameters Request parameters.
5042
+ * @param {*} [options] Override http request option.
5043
+ * @throws {RequiredError}
5044
+ */
5045
+ mongoGetRBACUser(requestParameters, options) {
5046
+ return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
5047
+ },
5048
+ /**
5049
+ *
5050
+ * @summary ListRBACRoles
5051
+ * @param {AccountApiMongoListRBACRolesRequest} requestParameters Request parameters.
5052
+ * @param {*} [options] Override http request option.
5053
+ * @throws {RequiredError}
5054
+ */
5055
+ mongoListRBACRoles(requestParameters, options) {
5056
+ return localVarFp.mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
5057
+ },
5058
+ /**
5059
+ *
5060
+ * @summary ListRBACUsers
5061
+ * @param {AccountApiMongoListRBACUsersRequest} requestParameters Request parameters.
5062
+ * @param {*} [options] Override http request option.
5063
+ * @throws {RequiredError}
5064
+ */
5065
+ mongoListRBACUsers(requestParameters, options) {
5066
+ return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
5067
+ },
5068
+ /**
5069
+ *
5070
+ * @summary UpdateRBACRole
5071
+ * @param {AccountApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
5072
+ * @param {*} [options] Override http request option.
5073
+ * @throws {RequiredError}
5074
+ */
5075
+ mongoUpdateRBACRole(requestParameters, options) {
5076
+ return localVarFp.mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
5077
+ },
5078
+ /**
5079
+ * 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.
5080
+ * @summary Preview clearing explicit account privileges
4090
5081
  * @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
4091
5082
  * @param {*} [options] Override http request option.
4092
5083
  * @throws {RequiredError}
4093
5084
  */
4094
5085
  previewAccountPrivilegeReset(requestParameters, options) {
4095
- return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
5086
+ 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));
4096
5087
  },
4097
5088
  /**
4098
5089
  * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
@@ -4105,14 +5096,14 @@ const AccountApiFactory = function (configuration, basePath, axios) {
4105
5096
  return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
4106
5097
  },
4107
5098
  /**
4108
- * 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.
4109
- * @summary Clear all MySQL account privileges
5099
+ * 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.
5100
+ * @summary Clear explicit account privileges
4110
5101
  * @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
4111
5102
  * @param {*} [options] Override http request option.
4112
5103
  * @throws {RequiredError}
4113
5104
  */
4114
5105
  resetAccountPrivileges(requestParameters, options) {
4115
- return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
5106
+ 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));
4116
5107
  },
4117
5108
  /**
4118
5109
  * unlock an account in cluster
@@ -4528,6 +5519,17 @@ class AccountApi extends base_1.BaseAPI {
4528
5519
  getAccountObjectPrivileges(requestParameters, options) {
4529
5520
  return (0, exports.AccountApiFp)(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));
4530
5521
  }
5522
+ /**
5523
+ * 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.
5524
+ * @summary Read native account privilege summary or selected database evidence
5525
+ * @param {AccountApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
5526
+ * @param {*} [options] Override http request option.
5527
+ * @throws {RequiredError}
5528
+ * @memberof AccountApi
5529
+ */
5530
+ getAccountPrivilegeOverview(requestParameters, options) {
5531
+ return (0, exports.AccountApiFp)(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));
5532
+ }
4531
5533
  /**
4532
5534
  * Get Hive accounts
4533
5535
  * @summary Get Hive accounts
@@ -4584,7 +5586,7 @@ class AccountApi extends base_1.BaseAPI {
4584
5586
  return (0, exports.AccountApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
4585
5587
  }
4586
5588
  /**
4587
- * 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.
5589
+ * 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.
4588
5590
  * @summary List exact column names for account object privileges
4589
5591
  * @param {AccountApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
4590
5592
  * @param {*} [options] Override http request option.
@@ -4592,7 +5594,7 @@ class AccountApi extends base_1.BaseAPI {
4592
5594
  * @memberof AccountApi
4593
5595
  */
4594
5596
  listAccountObjectPrivilegeColumns(requestParameters, options) {
4595
- return (0, exports.AccountApiFp)(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));
5597
+ return (0, exports.AccountApiFp)(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));
4596
5598
  }
4597
5599
  /**
4598
5600
  * 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.
@@ -4705,15 +5707,147 @@ class AccountApi extends base_1.BaseAPI {
4705
5707
  return (0, exports.AccountApiFp)(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
4706
5708
  }
4707
5709
  /**
4708
- * 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.
4709
- * @summary Preview clearing all MySQL account privileges
5710
+ *
5711
+ * @summary ChangeRBACUserPassword
5712
+ * @param {AccountApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
5713
+ * @param {*} [options] Override http request option.
5714
+ * @throws {RequiredError}
5715
+ * @memberof AccountApi
5716
+ */
5717
+ mongoChangeRBACUserPassword(requestParameters, options) {
5718
+ return (0, exports.AccountApiFp)(this.configuration).mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(this.axios, this.basePath));
5719
+ }
5720
+ /**
5721
+ *
5722
+ * @summary ChangeRBACUserRoles
5723
+ * @param {AccountApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
5724
+ * @param {*} [options] Override http request option.
5725
+ * @throws {RequiredError}
5726
+ * @memberof AccountApi
5727
+ */
5728
+ mongoChangeRBACUserRoles(requestParameters, options) {
5729
+ return (0, exports.AccountApiFp)(this.configuration).mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(this.axios, this.basePath));
5730
+ }
5731
+ /**
5732
+ *
5733
+ * @summary CreateRBACRole
5734
+ * @param {AccountApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
5735
+ * @param {*} [options] Override http request option.
5736
+ * @throws {RequiredError}
5737
+ * @memberof AccountApi
5738
+ */
5739
+ mongoCreateRBACRole(requestParameters, options) {
5740
+ return (0, exports.AccountApiFp)(this.configuration).mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
5741
+ }
5742
+ /**
5743
+ *
5744
+ * @summary CreateRBACUser
5745
+ * @param {AccountApiMongoCreateRBACUserRequest} requestParameters Request parameters.
5746
+ * @param {*} [options] Override http request option.
5747
+ * @throws {RequiredError}
5748
+ * @memberof AccountApi
5749
+ */
5750
+ mongoCreateRBACUser(requestParameters, options) {
5751
+ return (0, exports.AccountApiFp)(this.configuration).mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(this.axios, this.basePath));
5752
+ }
5753
+ /**
5754
+ *
5755
+ * @summary DeleteRBACRole
5756
+ * @param {AccountApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
5757
+ * @param {*} [options] Override http request option.
5758
+ * @throws {RequiredError}
5759
+ * @memberof AccountApi
5760
+ */
5761
+ mongoDeleteRBACRole(requestParameters, options) {
5762
+ return (0, exports.AccountApiFp)(this.configuration).mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(this.axios, this.basePath));
5763
+ }
5764
+ /**
5765
+ *
5766
+ * @summary DeleteRBACUser
5767
+ * @param {AccountApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
5768
+ * @param {*} [options] Override http request option.
5769
+ * @throws {RequiredError}
5770
+ * @memberof AccountApi
5771
+ */
5772
+ mongoDeleteRBACUser(requestParameters, options) {
5773
+ return (0, exports.AccountApiFp)(this.configuration).mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
5774
+ }
5775
+ /**
5776
+ *
5777
+ * @summary GetRBACCapabilities
5778
+ * @param {AccountApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
5779
+ * @param {*} [options] Override http request option.
5780
+ * @throws {RequiredError}
5781
+ * @memberof AccountApi
5782
+ */
5783
+ mongoGetRBACCapabilities(requestParameters, options) {
5784
+ return (0, exports.AccountApiFp)(this.configuration).mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
5785
+ }
5786
+ /**
5787
+ *
5788
+ * @summary GetRBACRole
5789
+ * @param {AccountApiMongoGetRBACRoleRequest} requestParameters Request parameters.
5790
+ * @param {*} [options] Override http request option.
5791
+ * @throws {RequiredError}
5792
+ * @memberof AccountApi
5793
+ */
5794
+ mongoGetRBACRole(requestParameters, options) {
5795
+ return (0, exports.AccountApiFp)(this.configuration).mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
5796
+ }
5797
+ /**
5798
+ *
5799
+ * @summary GetRBACUser
5800
+ * @param {AccountApiMongoGetRBACUserRequest} requestParameters Request parameters.
5801
+ * @param {*} [options] Override http request option.
5802
+ * @throws {RequiredError}
5803
+ * @memberof AccountApi
5804
+ */
5805
+ mongoGetRBACUser(requestParameters, options) {
5806
+ return (0, exports.AccountApiFp)(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
5807
+ }
5808
+ /**
5809
+ *
5810
+ * @summary ListRBACRoles
5811
+ * @param {AccountApiMongoListRBACRolesRequest} requestParameters Request parameters.
5812
+ * @param {*} [options] Override http request option.
5813
+ * @throws {RequiredError}
5814
+ * @memberof AccountApi
5815
+ */
5816
+ mongoListRBACRoles(requestParameters, options) {
5817
+ return (0, exports.AccountApiFp)(this.configuration).mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
5818
+ }
5819
+ /**
5820
+ *
5821
+ * @summary ListRBACUsers
5822
+ * @param {AccountApiMongoListRBACUsersRequest} requestParameters Request parameters.
5823
+ * @param {*} [options] Override http request option.
5824
+ * @throws {RequiredError}
5825
+ * @memberof AccountApi
5826
+ */
5827
+ mongoListRBACUsers(requestParameters, options) {
5828
+ return (0, exports.AccountApiFp)(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
5829
+ }
5830
+ /**
5831
+ *
5832
+ * @summary UpdateRBACRole
5833
+ * @param {AccountApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
5834
+ * @param {*} [options] Override http request option.
5835
+ * @throws {RequiredError}
5836
+ * @memberof AccountApi
5837
+ */
5838
+ mongoUpdateRBACRole(requestParameters, options) {
5839
+ return (0, exports.AccountApiFp)(this.configuration).mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
5840
+ }
5841
+ /**
5842
+ * 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.
5843
+ * @summary Preview clearing explicit account privileges
4710
5844
  * @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
4711
5845
  * @param {*} [options] Override http request option.
4712
5846
  * @throws {RequiredError}
4713
5847
  * @memberof AccountApi
4714
5848
  */
4715
5849
  previewAccountPrivilegeReset(requestParameters, options) {
4716
- return (0, exports.AccountApiFp)(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));
5850
+ return (0, exports.AccountApiFp)(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));
4717
5851
  }
4718
5852
  /**
4719
5853
  * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
@@ -4727,15 +5861,15 @@ class AccountApi extends base_1.BaseAPI {
4727
5861
  return (0, exports.AccountApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
4728
5862
  }
4729
5863
  /**
4730
- * 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.
4731
- * @summary Clear all MySQL account privileges
5864
+ * 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.
5865
+ * @summary Clear explicit account privileges
4732
5866
  * @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
4733
5867
  * @param {*} [options] Override http request option.
4734
5868
  * @throws {RequiredError}
4735
5869
  * @memberof AccountApi
4736
5870
  */
4737
5871
  resetAccountPrivileges(requestParameters, options) {
4738
- return (0, exports.AccountApiFp)(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));
5872
+ return (0, exports.AccountApiFp)(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));
4739
5873
  }
4740
5874
  /**
4741
5875
  * unlock an account in cluster