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

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
@@ -44,6 +44,8 @@ import type { ObjectPrivilegeCapabilities } from '../models';
44
44
  // @ts-ignore
45
45
  import type { ObjectPrivilegeChange } from '../models';
46
46
  // @ts-ignore
47
+ import type { ObjectPrivilegeEvidence } from '../models';
48
+ // @ts-ignore
47
49
  import type { ObjectPrivilegeObjectList } from '../models';
48
50
  // @ts-ignore
49
51
  import type { ObjectPrivilegeResetStep } from '../models';
@@ -657,6 +659,79 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
657
659
 
658
660
 
659
661
 
662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
664
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
665
+
666
+ return {
667
+ url: toPathString(localVarUrlObj),
668
+ options: localVarRequestOptions,
669
+ };
670
+ },
671
+ /**
672
+ * 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.
673
+ * @summary Read native account privilege summary or selected database evidence
674
+ * @param {string} engineName
675
+ * @param {string} orgName
676
+ * @param {string} clusterName
677
+ * @param {string} accountName
678
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
679
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
680
+ * @param {string} [subjectQualifiers]
681
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
682
+ * @param {*} [options] Override http request option.
683
+ * @throws {RequiredError}
684
+ */
685
+ getAccountPrivilegeOverview: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
686
+ // verify required parameter 'engineName' is not null or undefined
687
+ assertParamExists('getAccountPrivilegeOverview', 'engineName', engineName)
688
+ // verify required parameter 'orgName' is not null or undefined
689
+ assertParamExists('getAccountPrivilegeOverview', 'orgName', orgName)
690
+ // verify required parameter 'clusterName' is not null or undefined
691
+ assertParamExists('getAccountPrivilegeOverview', 'clusterName', clusterName)
692
+ // verify required parameter 'accountName' is not null or undefined
693
+ assertParamExists('getAccountPrivilegeOverview', 'accountName', accountName)
694
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/overview`
695
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
696
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
697
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
698
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
700
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
701
+ let baseOptions;
702
+ if (configuration) {
703
+ baseOptions = configuration.baseOptions;
704
+ }
705
+
706
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
707
+ const localVarHeaderParameter = {} as any;
708
+ const localVarQueryParameter = {} as any;
709
+
710
+ // authentication BearerToken required
711
+ // http bearer authentication required
712
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
713
+
714
+ // authentication DigestAuth required
715
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
716
+
717
+ if (subjectType !== undefined) {
718
+ localVarQueryParameter['subjectType'] = subjectType;
719
+ }
720
+
721
+ if (host !== undefined) {
722
+ localVarQueryParameter['host'] = host;
723
+ }
724
+
725
+ if (subjectQualifiers !== undefined) {
726
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
727
+ }
728
+
729
+ if (databaseName !== undefined) {
730
+ localVarQueryParameter['databaseName'] = databaseName;
731
+ }
732
+
733
+
734
+
660
735
  setSearchParams(localVarUrlObj, localVarQueryParameter);
661
736
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
662
737
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -896,19 +971,20 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
896
971
  };
897
972
  },
898
973
  /**
899
- * 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.
974
+ * 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.
900
975
  * @summary List exact column names for account object privileges
901
976
  * @param {string} engineName
902
977
  * @param {string} orgName
903
978
  * @param {string} clusterName
904
979
  * @param {string} accountName
905
- * @param {string} objectType Object type, either table or view
980
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
906
981
  * @param {string} databaseName
907
982
  * @param {string} objectName
983
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
908
984
  * @param {*} [options] Override http request option.
909
985
  * @throws {RequiredError}
910
986
  */
911
- listAccountObjectPrivilegeColumns: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
987
+ listAccountObjectPrivilegeColumns: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, schemaName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
912
988
  // verify required parameter 'engineName' is not null or undefined
913
989
  assertParamExists('listAccountObjectPrivilegeColumns', 'engineName', engineName)
914
990
  // verify required parameter 'orgName' is not null or undefined
@@ -958,6 +1034,10 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
958
1034
  localVarQueryParameter['objectName'] = objectName;
959
1035
  }
960
1036
 
1037
+ if (schemaName !== undefined) {
1038
+ localVarQueryParameter['schemaName'] = schemaName;
1039
+ }
1040
+
961
1041
 
962
1042
 
963
1043
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1314,8 +1394,8 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
1314
1394
  };
1315
1395
  },
1316
1396
  /**
1317
- * 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.
1318
- * @summary Preview clearing all MySQL account privileges
1397
+ * 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.
1398
+ * @summary Preview clearing explicit account privileges
1319
1399
  * @param {string} engineName
1320
1400
  * @param {string} orgName
1321
1401
  * @param {string} clusterName
@@ -1323,10 +1403,12 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
1323
1403
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
1324
1404
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
1325
1405
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
1406
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
1407
+ * @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.
1326
1408
  * @param {*} [options] Override http request option.
1327
1409
  * @throws {RequiredError}
1328
1410
  */
1329
- previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1411
+ previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1330
1412
  // verify required parameter 'engineName' is not null or undefined
1331
1413
  assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
1332
1414
  // verify required parameter 'orgName' is not null or undefined
@@ -1370,6 +1452,14 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
1370
1452
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
1371
1453
  }
1372
1454
 
1455
+ if (databaseNames) {
1456
+ localVarQueryParameter['databaseNames'] = databaseNames;
1457
+ }
1458
+
1459
+ if (allDatabases !== undefined) {
1460
+ localVarQueryParameter['allDatabases'] = allDatabases;
1461
+ }
1462
+
1373
1463
 
1374
1464
 
1375
1465
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1382,8 +1472,8 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
1382
1472
  };
1383
1473
  },
1384
1474
  /**
1385
- * 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.
1386
- * @summary Clear all MySQL account privileges
1475
+ * 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.
1476
+ * @summary Clear explicit account privileges
1387
1477
  * @param {string} engineName
1388
1478
  * @param {string} orgName
1389
1479
  * @param {string} clusterName
@@ -1391,10 +1481,12 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
1391
1481
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
1392
1482
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
1393
1483
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
1484
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
1485
+ * @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.
1394
1486
  * @param {*} [options] Override http request option.
1395
1487
  * @throws {RequiredError}
1396
1488
  */
1397
- resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1489
+ resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1398
1490
  // verify required parameter 'engineName' is not null or undefined
1399
1491
  assertParamExists('resetAccountPrivileges', 'engineName', engineName)
1400
1492
  // verify required parameter 'orgName' is not null or undefined
@@ -1438,6 +1530,14 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
1438
1530
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
1439
1531
  }
1440
1532
 
1533
+ if (databaseNames) {
1534
+ localVarQueryParameter['databaseNames'] = databaseNames;
1535
+ }
1536
+
1537
+ if (allDatabases !== undefined) {
1538
+ localVarQueryParameter['allDatabases'] = allDatabases;
1539
+ }
1540
+
1441
1541
 
1442
1542
 
1443
1543
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1919,6 +2019,26 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
1919
2019
  const localVarOperationServerBasePath = operationServerMap['RdbmsApi.getAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
1920
2020
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1921
2021
  },
2022
+ /**
2023
+ * 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.
2024
+ * @summary Read native account privilege summary or selected database evidence
2025
+ * @param {string} engineName
2026
+ * @param {string} orgName
2027
+ * @param {string} clusterName
2028
+ * @param {string} accountName
2029
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2030
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2031
+ * @param {string} [subjectQualifiers]
2032
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ */
2036
+ async getAccountPrivilegeOverview(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeEvidence>>> {
2037
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options);
2038
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2039
+ const localVarOperationServerBasePath = operationServerMap['RdbmsApi.getAccountPrivilegeOverview']?.[localVarOperationServerIndex]?.url;
2040
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2041
+ },
1922
2042
  /**
1923
2043
  * get a database info in cluster
1924
2044
  * @param {string} engineName name of the engine
@@ -1986,20 +2106,21 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
1986
2106
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1987
2107
  },
1988
2108
  /**
1989
- * 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.
2109
+ * 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.
1990
2110
  * @summary List exact column names for account object privileges
1991
2111
  * @param {string} engineName
1992
2112
  * @param {string} orgName
1993
2113
  * @param {string} clusterName
1994
2114
  * @param {string} accountName
1995
- * @param {string} objectType Object type, either table or view
2115
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
1996
2116
  * @param {string} databaseName
1997
2117
  * @param {string} objectName
2118
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
1998
2119
  * @param {*} [options] Override http request option.
1999
2120
  * @throws {RequiredError}
2000
2121
  */
2001
- async listAccountObjectPrivilegeColumns(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
2002
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
2122
+ async listAccountObjectPrivilegeColumns(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, schemaName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
2123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options);
2003
2124
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2004
2125
  const localVarOperationServerBasePath = operationServerMap['RdbmsApi.listAccountObjectPrivilegeColumns']?.[localVarOperationServerIndex]?.url;
2005
2126
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2105,8 +2226,8 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
2105
2226
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2106
2227
  },
2107
2228
  /**
2108
- * 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.
2109
- * @summary Preview clearing all MySQL account privileges
2229
+ * 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.
2230
+ * @summary Preview clearing explicit account privileges
2110
2231
  * @param {string} engineName
2111
2232
  * @param {string} orgName
2112
2233
  * @param {string} clusterName
@@ -2114,18 +2235,20 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
2114
2235
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2115
2236
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2116
2237
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
2238
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
2239
+ * @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.
2117
2240
  * @param {*} [options] Override http request option.
2118
2241
  * @throws {RequiredError}
2119
2242
  */
2120
- async previewAccountPrivilegeReset(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeResetStep>>> {
2121
- const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
2243
+ async previewAccountPrivilegeReset(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeResetStep>>> {
2244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
2122
2245
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2123
2246
  const localVarOperationServerBasePath = operationServerMap['RdbmsApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
2124
2247
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2125
2248
  },
2126
2249
  /**
2127
- * 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.
2128
- * @summary Clear all MySQL account privileges
2250
+ * 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.
2251
+ * @summary Clear explicit account privileges
2129
2252
  * @param {string} engineName
2130
2253
  * @param {string} orgName
2131
2254
  * @param {string} clusterName
@@ -2133,11 +2256,13 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
2133
2256
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2134
2257
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2135
2258
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
2259
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
2260
+ * @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.
2136
2261
  * @param {*} [options] Override http request option.
2137
2262
  * @throws {RequiredError}
2138
2263
  */
2139
- async resetAccountPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2140
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
2264
+ async resetAccountPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
2141
2266
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2142
2267
  const localVarOperationServerBasePath = operationServerMap['RdbmsApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
2143
2268
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2336,6 +2461,16 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
2336
2461
  getAccountObjectPrivileges(requestParameters: RdbmsApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot> {
2337
2462
  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));
2338
2463
  },
2464
+ /**
2465
+ * 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.
2466
+ * @summary Read native account privilege summary or selected database evidence
2467
+ * @param {RdbmsApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
2468
+ * @param {*} [options] Override http request option.
2469
+ * @throws {RequiredError}
2470
+ */
2471
+ getAccountPrivilegeOverview(requestParameters: RdbmsApiGetAccountPrivilegeOverviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeEvidence>> {
2472
+ 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));
2473
+ },
2339
2474
  /**
2340
2475
  * get a database info in cluster
2341
2476
  * @param {RdbmsApiGetDatabaseRequest} requestParameters Request parameters.
@@ -2376,14 +2511,14 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
2376
2511
  return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
2377
2512
  },
2378
2513
  /**
2379
- * 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.
2514
+ * 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.
2380
2515
  * @summary List exact column names for account object privileges
2381
2516
  * @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
2382
2517
  * @param {*} [options] Override http request option.
2383
2518
  * @throws {RequiredError}
2384
2519
  */
2385
2520
  listAccountObjectPrivilegeColumns(requestParameters: RdbmsApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
2386
- return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
2521
+ 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));
2387
2522
  },
2388
2523
  /**
2389
2524
  * 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.
@@ -2446,24 +2581,24 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
2446
2581
  return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
2447
2582
  },
2448
2583
  /**
2449
- * 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.
2450
- * @summary Preview clearing all MySQL account privileges
2584
+ * 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.
2585
+ * @summary Preview clearing explicit account privileges
2451
2586
  * @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
2452
2587
  * @param {*} [options] Override http request option.
2453
2588
  * @throws {RequiredError}
2454
2589
  */
2455
2590
  previewAccountPrivilegeReset(requestParameters: RdbmsApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
2456
- return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
2591
+ 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));
2457
2592
  },
2458
2593
  /**
2459
- * 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.
2460
- * @summary Clear all MySQL account privileges
2594
+ * 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.
2595
+ * @summary Clear explicit account privileges
2461
2596
  * @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
2462
2597
  * @param {*} [options] Override http request option.
2463
2598
  * @throws {RequiredError}
2464
2599
  */
2465
2600
  resetAccountPrivileges(requestParameters: RdbmsApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2466
- return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
2601
+ 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));
2467
2602
  },
2468
2603
  /**
2469
2604
  * unlock an account in cluster
@@ -2624,6 +2759,16 @@ export interface RdbmsApiInterface {
2624
2759
  */
2625
2760
  getAccountObjectPrivileges(requestParameters: RdbmsApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot>;
2626
2761
 
2762
+ /**
2763
+ * 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.
2764
+ * @summary Read native account privilege summary or selected database evidence
2765
+ * @param {RdbmsApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
2766
+ * @param {*} [options] Override http request option.
2767
+ * @throws {RequiredError}
2768
+ * @memberof RdbmsApiInterface
2769
+ */
2770
+ getAccountPrivilegeOverview(requestParameters: RdbmsApiGetAccountPrivilegeOverviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeEvidence>>;
2771
+
2627
2772
  /**
2628
2773
  * get a database info in cluster
2629
2774
  * @param {RdbmsApiGetDatabaseRequest} requestParameters Request parameters.
@@ -2664,7 +2809,7 @@ export interface RdbmsApiInterface {
2664
2809
  killSession(requestParameters: RdbmsApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2665
2810
 
2666
2811
  /**
2667
- * 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.
2812
+ * 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.
2668
2813
  * @summary List exact column names for account object privileges
2669
2814
  * @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
2670
2815
  * @param {*} [options] Override http request option.
@@ -2734,8 +2879,8 @@ export interface RdbmsApiInterface {
2734
2879
  lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2735
2880
 
2736
2881
  /**
2737
- * 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.
2738
- * @summary Preview clearing all MySQL account privileges
2882
+ * 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.
2883
+ * @summary Preview clearing explicit account privileges
2739
2884
  * @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
2740
2885
  * @param {*} [options] Override http request option.
2741
2886
  * @throws {RequiredError}
@@ -2744,8 +2889,8 @@ export interface RdbmsApiInterface {
2744
2889
  previewAccountPrivilegeReset(requestParameters: RdbmsApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
2745
2890
 
2746
2891
  /**
2747
- * 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.
2748
- * @summary Clear all MySQL account privileges
2892
+ * 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.
2893
+ * @summary Clear explicit account privileges
2749
2894
  * @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
2750
2895
  * @param {*} [options] Override http request option.
2751
2896
  * @throws {RequiredError}
@@ -3246,6 +3391,69 @@ export interface RdbmsApiGetAccountObjectPrivilegesRequest {
3246
3391
  readonly subjectQualifiers?: string
3247
3392
  }
3248
3393
 
3394
+ /**
3395
+ * Request parameters for getAccountPrivilegeOverview operation in RdbmsApi.
3396
+ * @export
3397
+ * @interface RdbmsApiGetAccountPrivilegeOverviewRequest
3398
+ */
3399
+ export interface RdbmsApiGetAccountPrivilegeOverviewRequest {
3400
+ /**
3401
+ *
3402
+ * @type {string}
3403
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3404
+ */
3405
+ readonly engineName: string
3406
+
3407
+ /**
3408
+ *
3409
+ * @type {string}
3410
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3411
+ */
3412
+ readonly orgName: string
3413
+
3414
+ /**
3415
+ *
3416
+ * @type {string}
3417
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3418
+ */
3419
+ readonly clusterName: string
3420
+
3421
+ /**
3422
+ *
3423
+ * @type {string}
3424
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3425
+ */
3426
+ readonly accountName: string
3427
+
3428
+ /**
3429
+ * Native subject kind; path account name identifies the subject.
3430
+ * @type {ObjectPrivilegeSubjectType}
3431
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3432
+ */
3433
+ readonly subjectType?: ObjectPrivilegeSubjectType
3434
+
3435
+ /**
3436
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
3437
+ * @type {string}
3438
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3439
+ */
3440
+ readonly host?: string
3441
+
3442
+ /**
3443
+ *
3444
+ * @type {string}
3445
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3446
+ */
3447
+ readonly subjectQualifiers?: string
3448
+
3449
+ /**
3450
+ * PostgreSQL database to inspect on demand. Omit for the global summary.
3451
+ * @type {string}
3452
+ * @memberof RdbmsApiGetAccountPrivilegeOverview
3453
+ */
3454
+ readonly databaseName?: string
3455
+ }
3456
+
3249
3457
  /**
3250
3458
  * Request parameters for getDatabase operation in RdbmsApi.
3251
3459
  * @export
@@ -3442,7 +3650,7 @@ export interface RdbmsApiListAccountObjectPrivilegeColumnsRequest {
3442
3650
  readonly accountName: string
3443
3651
 
3444
3652
  /**
3445
- * Object type, either table or view
3653
+ * Object type, table/view; PostgreSQL also supports materializedView/foreignTable
3446
3654
  * @type {string}
3447
3655
  * @memberof RdbmsApiListAccountObjectPrivilegeColumns
3448
3656
  */
@@ -3461,6 +3669,13 @@ export interface RdbmsApiListAccountObjectPrivilegeColumnsRequest {
3461
3669
  * @memberof RdbmsApiListAccountObjectPrivilegeColumns
3462
3670
  */
3463
3671
  readonly objectName: string
3672
+
3673
+ /**
3674
+ * Required for PostgreSQL; not accepted for MySQL
3675
+ * @type {string}
3676
+ * @memberof RdbmsApiListAccountObjectPrivilegeColumns
3677
+ */
3678
+ readonly schemaName?: string
3464
3679
  }
3465
3680
 
3466
3681
  /**
@@ -3755,6 +3970,20 @@ export interface RdbmsApiPreviewAccountPrivilegeResetRequest {
3755
3970
  * @memberof RdbmsApiPreviewAccountPrivilegeReset
3756
3971
  */
3757
3972
  readonly subjectQualifiers?: string
3973
+
3974
+ /**
3975
+ * PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
3976
+ * @type {Array<string>}
3977
+ * @memberof RdbmsApiPreviewAccountPrivilegeReset
3978
+ */
3979
+ readonly databaseNames?: Array<string>
3980
+
3981
+ /**
3982
+ * PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
3983
+ * @type {boolean}
3984
+ * @memberof RdbmsApiPreviewAccountPrivilegeReset
3985
+ */
3986
+ readonly allDatabases?: boolean
3758
3987
  }
3759
3988
 
3760
3989
  /**
@@ -3811,6 +4040,20 @@ export interface RdbmsApiResetAccountPrivilegesRequest {
3811
4040
  * @memberof RdbmsApiResetAccountPrivileges
3812
4041
  */
3813
4042
  readonly subjectQualifiers?: string
4043
+
4044
+ /**
4045
+ * PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
4046
+ * @type {Array<string>}
4047
+ * @memberof RdbmsApiResetAccountPrivileges
4048
+ */
4049
+ readonly databaseNames?: Array<string>
4050
+
4051
+ /**
4052
+ * PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
4053
+ * @type {boolean}
4054
+ * @memberof RdbmsApiResetAccountPrivileges
4055
+ */
4056
+ readonly allDatabases?: boolean
3814
4057
  }
3815
4058
 
3816
4059
  /**
@@ -4143,6 +4386,18 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
4143
4386
  return RdbmsApiFp(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));
4144
4387
  }
4145
4388
 
4389
+ /**
4390
+ * 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.
4391
+ * @summary Read native account privilege summary or selected database evidence
4392
+ * @param {RdbmsApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
4393
+ * @param {*} [options] Override http request option.
4394
+ * @throws {RequiredError}
4395
+ * @memberof RdbmsApi
4396
+ */
4397
+ public getAccountPrivilegeOverview(requestParameters: RdbmsApiGetAccountPrivilegeOverviewRequest, options?: RawAxiosRequestConfig) {
4398
+ return RdbmsApiFp(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));
4399
+ }
4400
+
4146
4401
  /**
4147
4402
  * get a database info in cluster
4148
4403
  * @param {RdbmsApiGetDatabaseRequest} requestParameters Request parameters.
@@ -4191,7 +4446,7 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
4191
4446
  }
4192
4447
 
4193
4448
  /**
4194
- * 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.
4449
+ * 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.
4195
4450
  * @summary List exact column names for account object privileges
4196
4451
  * @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
4197
4452
  * @param {*} [options] Override http request option.
@@ -4199,7 +4454,7 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
4199
4454
  * @memberof RdbmsApi
4200
4455
  */
4201
4456
  public listAccountObjectPrivilegeColumns(requestParameters: RdbmsApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig) {
4202
- return RdbmsApiFp(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));
4457
+ return RdbmsApiFp(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));
4203
4458
  }
4204
4459
 
4205
4460
  /**
@@ -4275,27 +4530,27 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
4275
4530
  }
4276
4531
 
4277
4532
  /**
4278
- * 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.
4279
- * @summary Preview clearing all MySQL account privileges
4533
+ * 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.
4534
+ * @summary Preview clearing explicit account privileges
4280
4535
  * @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
4281
4536
  * @param {*} [options] Override http request option.
4282
4537
  * @throws {RequiredError}
4283
4538
  * @memberof RdbmsApi
4284
4539
  */
4285
4540
  public previewAccountPrivilegeReset(requestParameters: RdbmsApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
4286
- return RdbmsApiFp(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));
4541
+ return RdbmsApiFp(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));
4287
4542
  }
4288
4543
 
4289
4544
  /**
4290
- * 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.
4291
- * @summary Clear all MySQL account privileges
4545
+ * 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.
4546
+ * @summary Clear explicit account privileges
4292
4547
  * @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
4293
4548
  * @param {*} [options] Override http request option.
4294
4549
  * @throws {RequiredError}
4295
4550
  * @memberof RdbmsApi
4296
4551
  */
4297
4552
  public resetAccountPrivileges(requestParameters: RdbmsApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
4298
- return RdbmsApiFp(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));
4553
+ return RdbmsApiFp(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));
4299
4554
  }
4300
4555
 
4301
4556
  /**