kb-cloud-client-typescript 2.4.0-alpha.89 → 2.4.0-alpha.90

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 (215) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +473 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +436 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +473 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +436 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +473 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +436 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/index.d.ts +17 -0
  14. package/dist/adminapi/models/index.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.js +17 -0
  16. package/dist/adminapi/models/index.js.map +1 -1
  17. package/dist/adminapi/models/object-privilege-capabilities.d.ts +46 -0
  18. package/dist/adminapi/models/object-privilege-capabilities.d.ts.map +1 -0
  19. package/dist/adminapi/models/object-privilege-capabilities.js +16 -0
  20. package/dist/adminapi/models/object-privilege-capabilities.js.map +1 -0
  21. package/dist/adminapi/models/object-privilege-capability.d.ts +95 -0
  22. package/dist/adminapi/models/object-privilege-capability.d.ts.map +1 -0
  23. package/dist/adminapi/models/object-privilege-capability.js +16 -0
  24. package/dist/adminapi/models/object-privilege-capability.js.map +1 -0
  25. package/dist/adminapi/models/object-privilege-change.d.ts +71 -0
  26. package/dist/adminapi/models/object-privilege-change.d.ts.map +1 -0
  27. package/dist/adminapi/models/object-privilege-change.js +16 -0
  28. package/dist/adminapi/models/object-privilege-change.js.map +1 -0
  29. package/dist/adminapi/models/object-privilege-definition.d.ts +38 -0
  30. package/dist/adminapi/models/object-privilege-definition.d.ts.map +1 -0
  31. package/dist/adminapi/models/object-privilege-definition.js +16 -0
  32. package/dist/adminapi/models/object-privilege-definition.js.map +1 -0
  33. package/dist/adminapi/models/object-privilege-evidence.d.ts +37 -0
  34. package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -0
  35. package/dist/adminapi/models/object-privilege-evidence.js +16 -0
  36. package/dist/adminapi/models/object-privilege-evidence.js.map +1 -0
  37. package/dist/adminapi/models/object-privilege-grant-option-scope.d.ts +23 -0
  38. package/dist/adminapi/models/object-privilege-grant-option-scope.d.ts.map +1 -0
  39. package/dist/adminapi/models/object-privilege-grant-option-scope.js +27 -0
  40. package/dist/adminapi/models/object-privilege-grant-option-scope.js.map +1 -0
  41. package/dist/adminapi/models/object-privilege-grant.d.ts +43 -0
  42. package/dist/adminapi/models/object-privilege-grant.d.ts.map +1 -0
  43. package/dist/adminapi/models/object-privilege-grant.js +16 -0
  44. package/dist/adminapi/models/object-privilege-grant.js.map +1 -0
  45. package/dist/adminapi/models/object-privilege-object-list.d.ts +38 -0
  46. package/dist/adminapi/models/object-privilege-object-list.d.ts.map +1 -0
  47. package/dist/adminapi/models/object-privilege-object-list.js +16 -0
  48. package/dist/adminapi/models/object-privilege-object-list.js.map +1 -0
  49. package/dist/adminapi/models/object-privilege-object.d.ts +32 -0
  50. package/dist/adminapi/models/object-privilege-object.d.ts.map +1 -0
  51. package/dist/adminapi/models/object-privilege-object.js +16 -0
  52. package/dist/adminapi/models/object-privilege-object.js.map +1 -0
  53. package/dist/adminapi/models/object-privilege-prerequisite-check.d.ts +45 -0
  54. package/dist/adminapi/models/object-privilege-prerequisite-check.d.ts.map +1 -0
  55. package/dist/adminapi/models/object-privilege-prerequisite-check.js +16 -0
  56. package/dist/adminapi/models/object-privilege-prerequisite-check.js.map +1 -0
  57. package/dist/adminapi/models/object-privilege-prerequisite-status.d.ts +23 -0
  58. package/dist/adminapi/models/object-privilege-prerequisite-status.d.ts.map +1 -0
  59. package/dist/adminapi/models/object-privilege-prerequisite-status.js +27 -0
  60. package/dist/adminapi/models/object-privilege-prerequisite-status.js.map +1 -0
  61. package/dist/adminapi/models/object-privilege-qualifier.d.ts +43 -0
  62. package/dist/adminapi/models/object-privilege-qualifier.d.ts.map +1 -0
  63. package/dist/adminapi/models/object-privilege-qualifier.js +16 -0
  64. package/dist/adminapi/models/object-privilege-qualifier.js.map +1 -0
  65. package/dist/adminapi/models/object-privilege-snapshot.d.ts +92 -0
  66. package/dist/adminapi/models/object-privilege-snapshot.d.ts.map +1 -0
  67. package/dist/adminapi/models/object-privilege-snapshot.js +16 -0
  68. package/dist/adminapi/models/object-privilege-snapshot.js.map +1 -0
  69. package/dist/adminapi/models/object-privilege-spec.d.ts +31 -0
  70. package/dist/adminapi/models/object-privilege-spec.d.ts.map +1 -0
  71. package/dist/adminapi/models/object-privilege-spec.js +16 -0
  72. package/dist/adminapi/models/object-privilege-spec.js.map +1 -0
  73. package/dist/adminapi/models/object-privilege-subject-type.d.ts +22 -0
  74. package/dist/adminapi/models/object-privilege-subject-type.d.ts.map +1 -0
  75. package/dist/adminapi/models/object-privilege-subject-type.js +26 -0
  76. package/dist/adminapi/models/object-privilege-subject-type.js.map +1 -0
  77. package/dist/adminapi/models/object-privilege-subject.d.ts +40 -0
  78. package/dist/adminapi/models/object-privilege-subject.d.ts.map +1 -0
  79. package/dist/adminapi/models/object-privilege-subject.js +16 -0
  80. package/dist/adminapi/models/object-privilege-subject.js.map +1 -0
  81. package/dist/adminapi/models/object-privilege-target.d.ts +55 -0
  82. package/dist/adminapi/models/object-privilege-target.d.ts.map +1 -0
  83. package/dist/adminapi/models/object-privilege-target.js +16 -0
  84. package/dist/adminapi/models/object-privilege-target.js.map +1 -0
  85. package/dist/openapi/apis/account-api.d.ts +473 -0
  86. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  87. package/dist/openapi/apis/account-api.js +436 -0
  88. package/dist/openapi/apis/account-api.js.map +1 -1
  89. package/dist/openapi/apis/rdbms-api.d.ts +473 -0
  90. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  91. package/dist/openapi/apis/rdbms-api.js +436 -0
  92. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  93. package/dist/openapi/apis/shared-api.d.ts +473 -0
  94. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  95. package/dist/openapi/apis/shared-api.js +436 -0
  96. package/dist/openapi/apis/shared-api.js.map +1 -1
  97. package/dist/openapi/models/index.d.ts +17 -0
  98. package/dist/openapi/models/index.d.ts.map +1 -1
  99. package/dist/openapi/models/index.js +17 -0
  100. package/dist/openapi/models/index.js.map +1 -1
  101. package/dist/openapi/models/object-privilege-capabilities.d.ts +46 -0
  102. package/dist/openapi/models/object-privilege-capabilities.d.ts.map +1 -0
  103. package/dist/openapi/models/object-privilege-capabilities.js +16 -0
  104. package/dist/openapi/models/object-privilege-capabilities.js.map +1 -0
  105. package/dist/openapi/models/object-privilege-capability.d.ts +95 -0
  106. package/dist/openapi/models/object-privilege-capability.d.ts.map +1 -0
  107. package/dist/openapi/models/object-privilege-capability.js +16 -0
  108. package/dist/openapi/models/object-privilege-capability.js.map +1 -0
  109. package/dist/openapi/models/object-privilege-change.d.ts +71 -0
  110. package/dist/openapi/models/object-privilege-change.d.ts.map +1 -0
  111. package/dist/openapi/models/object-privilege-change.js +16 -0
  112. package/dist/openapi/models/object-privilege-change.js.map +1 -0
  113. package/dist/openapi/models/object-privilege-definition.d.ts +38 -0
  114. package/dist/openapi/models/object-privilege-definition.d.ts.map +1 -0
  115. package/dist/openapi/models/object-privilege-definition.js +16 -0
  116. package/dist/openapi/models/object-privilege-definition.js.map +1 -0
  117. package/dist/openapi/models/object-privilege-evidence.d.ts +37 -0
  118. package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -0
  119. package/dist/openapi/models/object-privilege-evidence.js +16 -0
  120. package/dist/openapi/models/object-privilege-evidence.js.map +1 -0
  121. package/dist/openapi/models/object-privilege-grant-option-scope.d.ts +23 -0
  122. package/dist/openapi/models/object-privilege-grant-option-scope.d.ts.map +1 -0
  123. package/dist/openapi/models/object-privilege-grant-option-scope.js +27 -0
  124. package/dist/openapi/models/object-privilege-grant-option-scope.js.map +1 -0
  125. package/dist/openapi/models/object-privilege-grant.d.ts +43 -0
  126. package/dist/openapi/models/object-privilege-grant.d.ts.map +1 -0
  127. package/dist/openapi/models/object-privilege-grant.js +16 -0
  128. package/dist/openapi/models/object-privilege-grant.js.map +1 -0
  129. package/dist/openapi/models/object-privilege-object-list.d.ts +38 -0
  130. package/dist/openapi/models/object-privilege-object-list.d.ts.map +1 -0
  131. package/dist/openapi/models/object-privilege-object-list.js +16 -0
  132. package/dist/openapi/models/object-privilege-object-list.js.map +1 -0
  133. package/dist/openapi/models/object-privilege-object.d.ts +32 -0
  134. package/dist/openapi/models/object-privilege-object.d.ts.map +1 -0
  135. package/dist/openapi/models/object-privilege-object.js +16 -0
  136. package/dist/openapi/models/object-privilege-object.js.map +1 -0
  137. package/dist/openapi/models/object-privilege-prerequisite-check.d.ts +45 -0
  138. package/dist/openapi/models/object-privilege-prerequisite-check.d.ts.map +1 -0
  139. package/dist/openapi/models/object-privilege-prerequisite-check.js +16 -0
  140. package/dist/openapi/models/object-privilege-prerequisite-check.js.map +1 -0
  141. package/dist/openapi/models/object-privilege-prerequisite-status.d.ts +23 -0
  142. package/dist/openapi/models/object-privilege-prerequisite-status.d.ts.map +1 -0
  143. package/dist/openapi/models/object-privilege-prerequisite-status.js +27 -0
  144. package/dist/openapi/models/object-privilege-prerequisite-status.js.map +1 -0
  145. package/dist/openapi/models/object-privilege-qualifier.d.ts +43 -0
  146. package/dist/openapi/models/object-privilege-qualifier.d.ts.map +1 -0
  147. package/dist/openapi/models/object-privilege-qualifier.js +16 -0
  148. package/dist/openapi/models/object-privilege-qualifier.js.map +1 -0
  149. package/dist/openapi/models/object-privilege-snapshot.d.ts +92 -0
  150. package/dist/openapi/models/object-privilege-snapshot.d.ts.map +1 -0
  151. package/dist/openapi/models/object-privilege-snapshot.js +16 -0
  152. package/dist/openapi/models/object-privilege-snapshot.js.map +1 -0
  153. package/dist/openapi/models/object-privilege-spec.d.ts +31 -0
  154. package/dist/openapi/models/object-privilege-spec.d.ts.map +1 -0
  155. package/dist/openapi/models/object-privilege-spec.js +16 -0
  156. package/dist/openapi/models/object-privilege-spec.js.map +1 -0
  157. package/dist/openapi/models/object-privilege-subject-type.d.ts +22 -0
  158. package/dist/openapi/models/object-privilege-subject-type.d.ts.map +1 -0
  159. package/dist/openapi/models/object-privilege-subject-type.js +26 -0
  160. package/dist/openapi/models/object-privilege-subject-type.js.map +1 -0
  161. package/dist/openapi/models/object-privilege-subject.d.ts +40 -0
  162. package/dist/openapi/models/object-privilege-subject.d.ts.map +1 -0
  163. package/dist/openapi/models/object-privilege-subject.js +16 -0
  164. package/dist/openapi/models/object-privilege-subject.js.map +1 -0
  165. package/dist/openapi/models/object-privilege-target.d.ts +55 -0
  166. package/dist/openapi/models/object-privilege-target.d.ts.map +1 -0
  167. package/dist/openapi/models/object-privilege-target.js +16 -0
  168. package/dist/openapi/models/object-privilege-target.js.map +1 -0
  169. package/package.json +1 -1
  170. package/src/adminapi/.openapi-generator/FILES +17 -0
  171. package/src/adminapi/apis/account-api.ts +811 -5
  172. package/src/adminapi/apis/rdbms-api.ts +806 -0
  173. package/src/adminapi/apis/shared-api.ts +806 -0
  174. package/src/adminapi/models/index.ts +17 -0
  175. package/src/adminapi/models/object-privilege-capabilities.ts +57 -0
  176. package/src/adminapi/models/object-privilege-capability.ts +104 -0
  177. package/src/adminapi/models/object-privilege-change.ts +78 -0
  178. package/src/adminapi/models/object-privilege-definition.ts +47 -0
  179. package/src/adminapi/models/object-privilege-evidence.ts +42 -0
  180. package/src/adminapi/models/object-privilege-grant-option-scope.ts +32 -0
  181. package/src/adminapi/models/object-privilege-grant.ts +48 -0
  182. package/src/adminapi/models/object-privilege-object-list.ts +45 -0
  183. package/src/adminapi/models/object-privilege-object.ts +39 -0
  184. package/src/adminapi/models/object-privilege-prerequisite-check.ts +56 -0
  185. package/src/adminapi/models/object-privilege-prerequisite-status.ts +32 -0
  186. package/src/adminapi/models/object-privilege-qualifier.ts +48 -0
  187. package/src/adminapi/models/object-privilege-snapshot.ts +105 -0
  188. package/src/adminapi/models/object-privilege-spec.ts +36 -0
  189. package/src/adminapi/models/object-privilege-subject-type.ts +31 -0
  190. package/src/adminapi/models/object-privilege-subject.ts +47 -0
  191. package/src/adminapi/models/object-privilege-target.ts +60 -0
  192. package/src/adminapi.yaml +675 -0
  193. package/src/openapi/.openapi-generator/FILES +17 -0
  194. package/src/openapi/apis/account-api.ts +811 -5
  195. package/src/openapi/apis/rdbms-api.ts +806 -0
  196. package/src/openapi/apis/shared-api.ts +942 -136
  197. package/src/openapi/models/index.ts +17 -0
  198. package/src/openapi/models/object-privilege-capabilities.ts +57 -0
  199. package/src/openapi/models/object-privilege-capability.ts +104 -0
  200. package/src/openapi/models/object-privilege-change.ts +78 -0
  201. package/src/openapi/models/object-privilege-definition.ts +47 -0
  202. package/src/openapi/models/object-privilege-evidence.ts +42 -0
  203. package/src/openapi/models/object-privilege-grant-option-scope.ts +32 -0
  204. package/src/openapi/models/object-privilege-grant.ts +48 -0
  205. package/src/openapi/models/object-privilege-object-list.ts +45 -0
  206. package/src/openapi/models/object-privilege-object.ts +39 -0
  207. package/src/openapi/models/object-privilege-prerequisite-check.ts +56 -0
  208. package/src/openapi/models/object-privilege-prerequisite-status.ts +32 -0
  209. package/src/openapi/models/object-privilege-qualifier.ts +48 -0
  210. package/src/openapi/models/object-privilege-snapshot.ts +105 -0
  211. package/src/openapi/models/object-privilege-spec.ts +36 -0
  212. package/src/openapi/models/object-privilege-subject-type.ts +31 -0
  213. package/src/openapi/models/object-privilege-subject.ts +47 -0
  214. package/src/openapi/models/object-privilege-target.ts +60 -0
  215. package/src/openapi.yaml +675 -0
@@ -76,6 +76,69 @@ const AccountApiAxiosParamCreator = function (configuration) {
76
76
  options: localVarRequestOptions,
77
77
  };
78
78
  },
79
+ /**
80
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
81
+ * @summary Grant or revoke native object and column privileges
82
+ * @param {string} engineName
83
+ * @param {string} orgName
84
+ * @param {string} clusterName
85
+ * @param {string} accountName
86
+ * @param {ObjectPrivilegeChange} body
87
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
88
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
89
+ * @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ changeAccountObjectPrivileges: async (engineName, orgName, clusterName, accountName, body, subjectType, host, subjectQualifiers, options = {}) => {
94
+ // verify required parameter 'engineName' is not null or undefined
95
+ (0, common_1.assertParamExists)('changeAccountObjectPrivileges', 'engineName', engineName);
96
+ // verify required parameter 'orgName' is not null or undefined
97
+ (0, common_1.assertParamExists)('changeAccountObjectPrivileges', 'orgName', orgName);
98
+ // verify required parameter 'clusterName' is not null or undefined
99
+ (0, common_1.assertParamExists)('changeAccountObjectPrivileges', 'clusterName', clusterName);
100
+ // verify required parameter 'accountName' is not null or undefined
101
+ (0, common_1.assertParamExists)('changeAccountObjectPrivileges', 'accountName', accountName);
102
+ // verify required parameter 'body' is not null or undefined
103
+ (0, common_1.assertParamExists)('changeAccountObjectPrivileges', 'body', body);
104
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
105
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
106
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
107
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
108
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ }
115
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
116
+ const localVarHeaderParameter = {};
117
+ const localVarQueryParameter = {};
118
+ // authentication BearerToken required
119
+ // http bearer authentication required
120
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
121
+ // authentication DigestAuth required
122
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
123
+ if (subjectType !== undefined) {
124
+ localVarQueryParameter['subjectType'] = subjectType;
125
+ }
126
+ if (host !== undefined) {
127
+ localVarQueryParameter['host'] = host;
128
+ }
129
+ if (subjectQualifiers !== undefined) {
130
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
131
+ }
132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
133
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
136
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
137
+ return {
138
+ url: (0, common_1.toPathString)(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ },
79
142
  /**
80
143
  * create an account in cluster
81
144
  * @summary Create cluster account
@@ -951,6 +1014,136 @@ const AccountApiAxiosParamCreator = function (configuration) {
951
1014
  options: localVarRequestOptions,
952
1015
  };
953
1016
  },
1017
+ /**
1018
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
1019
+ * @summary List native object privilege capabilities for the connected server
1020
+ * @param {string} engineName
1021
+ * @param {string} orgName
1022
+ * @param {string} clusterName
1023
+ * @param {string} accountName
1024
+ * @param {*} [options] Override http request option.
1025
+ * @throws {RequiredError}
1026
+ */
1027
+ getAccountObjectPrivilegeCapabilities: async (engineName, orgName, clusterName, accountName, options = {}) => {
1028
+ // verify required parameter 'engineName' is not null or undefined
1029
+ (0, common_1.assertParamExists)('getAccountObjectPrivilegeCapabilities', 'engineName', engineName);
1030
+ // verify required parameter 'orgName' is not null or undefined
1031
+ (0, common_1.assertParamExists)('getAccountObjectPrivilegeCapabilities', 'orgName', orgName);
1032
+ // verify required parameter 'clusterName' is not null or undefined
1033
+ (0, common_1.assertParamExists)('getAccountObjectPrivilegeCapabilities', 'clusterName', clusterName);
1034
+ // verify required parameter 'accountName' is not null or undefined
1035
+ (0, common_1.assertParamExists)('getAccountObjectPrivilegeCapabilities', 'accountName', accountName);
1036
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/capabilities`
1037
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1038
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1039
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1040
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1041
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1042
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1043
+ let baseOptions;
1044
+ if (configuration) {
1045
+ baseOptions = configuration.baseOptions;
1046
+ }
1047
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1048
+ const localVarHeaderParameter = {};
1049
+ const localVarQueryParameter = {};
1050
+ // authentication BearerToken required
1051
+ // http bearer authentication required
1052
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1053
+ // authentication DigestAuth required
1054
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1055
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1056
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1057
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1058
+ return {
1059
+ url: (0, common_1.toPathString)(localVarUrlObj),
1060
+ options: localVarRequestOptions,
1061
+ };
1062
+ },
1063
+ /**
1064
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
1065
+ * @summary Inspect native object and column privileges
1066
+ * @param {string} engineName
1067
+ * @param {string} orgName
1068
+ * @param {string} clusterName
1069
+ * @param {string} accountName
1070
+ * @param {string} objectType
1071
+ * @param {string} [databaseName]
1072
+ * @param {string} [schemaName]
1073
+ * @param {string} [objectName]
1074
+ * @param {string} [objectId]
1075
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
1076
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
1077
+ * @param {string} [catalogName]
1078
+ * @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ getAccountObjectPrivileges: async (engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, objectName, objectId, subjectType, host, catalogName, subjectQualifiers, options = {}) => {
1083
+ // verify required parameter 'engineName' is not null or undefined
1084
+ (0, common_1.assertParamExists)('getAccountObjectPrivileges', 'engineName', engineName);
1085
+ // verify required parameter 'orgName' is not null or undefined
1086
+ (0, common_1.assertParamExists)('getAccountObjectPrivileges', 'orgName', orgName);
1087
+ // verify required parameter 'clusterName' is not null or undefined
1088
+ (0, common_1.assertParamExists)('getAccountObjectPrivileges', 'clusterName', clusterName);
1089
+ // verify required parameter 'accountName' is not null or undefined
1090
+ (0, common_1.assertParamExists)('getAccountObjectPrivileges', 'accountName', accountName);
1091
+ // verify required parameter 'objectType' is not null or undefined
1092
+ (0, common_1.assertParamExists)('getAccountObjectPrivileges', 'objectType', objectType);
1093
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
1094
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1095
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1096
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1097
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1098
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1099
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1100
+ let baseOptions;
1101
+ if (configuration) {
1102
+ baseOptions = configuration.baseOptions;
1103
+ }
1104
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1105
+ const localVarHeaderParameter = {};
1106
+ const localVarQueryParameter = {};
1107
+ // authentication BearerToken required
1108
+ // http bearer authentication required
1109
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1110
+ // authentication DigestAuth required
1111
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1112
+ if (objectType !== undefined) {
1113
+ localVarQueryParameter['objectType'] = objectType;
1114
+ }
1115
+ if (databaseName !== undefined) {
1116
+ localVarQueryParameter['databaseName'] = databaseName;
1117
+ }
1118
+ if (schemaName !== undefined) {
1119
+ localVarQueryParameter['schemaName'] = schemaName;
1120
+ }
1121
+ if (objectName !== undefined) {
1122
+ localVarQueryParameter['objectName'] = objectName;
1123
+ }
1124
+ if (objectId !== undefined) {
1125
+ localVarQueryParameter['objectId'] = objectId;
1126
+ }
1127
+ if (subjectType !== undefined) {
1128
+ localVarQueryParameter['subjectType'] = subjectType;
1129
+ }
1130
+ if (host !== undefined) {
1131
+ localVarQueryParameter['host'] = host;
1132
+ }
1133
+ if (catalogName !== undefined) {
1134
+ localVarQueryParameter['catalogName'] = catalogName;
1135
+ }
1136
+ if (subjectQualifiers !== undefined) {
1137
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
1138
+ }
1139
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1141
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1142
+ return {
1143
+ url: (0, common_1.toPathString)(localVarUrlObj),
1144
+ options: localVarRequestOptions,
1145
+ };
1146
+ },
954
1147
  /**
955
1148
  * Get Hive accounts
956
1149
  * @summary Get Hive accounts
@@ -1177,6 +1370,78 @@ const AccountApiAxiosParamCreator = function (configuration) {
1177
1370
  options: localVarRequestOptions,
1178
1371
  };
1179
1372
  },
1373
+ /**
1374
+ * 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.
1375
+ * @summary Discover existing native privilege objects with stable routine identities
1376
+ * @param {string} engineName
1377
+ * @param {string} orgName
1378
+ * @param {string} clusterName
1379
+ * @param {string} accountName
1380
+ * @param {string} objectType
1381
+ * @param {string} [databaseName]
1382
+ * @param {string} [schemaName]
1383
+ * @param {number} [offset]
1384
+ * @param {number} [limit]
1385
+ * @param {string} [catalogName]
1386
+ * @param {*} [options] Override http request option.
1387
+ * @throws {RequiredError}
1388
+ */
1389
+ listAccountObjectPrivilegeObjects: async (engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, offset, limit, catalogName, options = {}) => {
1390
+ // verify required parameter 'engineName' is not null or undefined
1391
+ (0, common_1.assertParamExists)('listAccountObjectPrivilegeObjects', 'engineName', engineName);
1392
+ // verify required parameter 'orgName' is not null or undefined
1393
+ (0, common_1.assertParamExists)('listAccountObjectPrivilegeObjects', 'orgName', orgName);
1394
+ // verify required parameter 'clusterName' is not null or undefined
1395
+ (0, common_1.assertParamExists)('listAccountObjectPrivilegeObjects', 'clusterName', clusterName);
1396
+ // verify required parameter 'accountName' is not null or undefined
1397
+ (0, common_1.assertParamExists)('listAccountObjectPrivilegeObjects', 'accountName', accountName);
1398
+ // verify required parameter 'objectType' is not null or undefined
1399
+ (0, common_1.assertParamExists)('listAccountObjectPrivilegeObjects', 'objectType', objectType);
1400
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects`
1401
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1402
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1403
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1404
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1406
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1407
+ let baseOptions;
1408
+ if (configuration) {
1409
+ baseOptions = configuration.baseOptions;
1410
+ }
1411
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1412
+ const localVarHeaderParameter = {};
1413
+ const localVarQueryParameter = {};
1414
+ // authentication BearerToken required
1415
+ // http bearer authentication required
1416
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1417
+ // authentication DigestAuth required
1418
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1419
+ if (objectType !== undefined) {
1420
+ localVarQueryParameter['objectType'] = objectType;
1421
+ }
1422
+ if (databaseName !== undefined) {
1423
+ localVarQueryParameter['databaseName'] = databaseName;
1424
+ }
1425
+ if (schemaName !== undefined) {
1426
+ localVarQueryParameter['schemaName'] = schemaName;
1427
+ }
1428
+ if (offset !== undefined) {
1429
+ localVarQueryParameter['offset'] = offset;
1430
+ }
1431
+ if (limit !== undefined) {
1432
+ localVarQueryParameter['limit'] = limit;
1433
+ }
1434
+ if (catalogName !== undefined) {
1435
+ localVarQueryParameter['catalogName'] = catalogName;
1436
+ }
1437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1438
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1439
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1440
+ return {
1441
+ url: (0, common_1.toPathString)(localVarUrlObj),
1442
+ options: localVarRequestOptions,
1443
+ };
1444
+ },
1180
1445
  /**
1181
1446
  * list accounts in cluster
1182
1447
  * @summary List cluster accounts
@@ -2276,6 +2541,27 @@ const AccountApiFp = function (configuration) {
2276
2541
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.bindSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2277
2542
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2278
2543
  },
2544
+ /**
2545
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
2546
+ * @summary Grant or revoke native object and column privileges
2547
+ * @param {string} engineName
2548
+ * @param {string} orgName
2549
+ * @param {string} clusterName
2550
+ * @param {string} accountName
2551
+ * @param {ObjectPrivilegeChange} body
2552
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2553
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2554
+ * @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
2555
+ * @param {*} [options] Override http request option.
2556
+ * @throws {RequiredError}
2557
+ */
2558
+ async changeAccountObjectPrivileges(engineName, orgName, clusterName, accountName, body, subjectType, host, subjectQualifiers, options) {
2559
+ var _a, _b, _c;
2560
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeAccountObjectPrivileges(engineName, orgName, clusterName, accountName, body, subjectType, host, subjectQualifiers, options);
2561
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2562
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.changeAccountObjectPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2563
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2564
+ },
2279
2565
  /**
2280
2566
  * create an account in cluster
2281
2567
  * @summary Create cluster account
@@ -2602,6 +2888,49 @@ const AccountApiFp = function (configuration) {
2602
2888
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2603
2889
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2604
2890
  },
2891
+ /**
2892
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
2893
+ * @summary List native object privilege capabilities for the connected server
2894
+ * @param {string} engineName
2895
+ * @param {string} orgName
2896
+ * @param {string} clusterName
2897
+ * @param {string} accountName
2898
+ * @param {*} [options] Override http request option.
2899
+ * @throws {RequiredError}
2900
+ */
2901
+ async getAccountObjectPrivilegeCapabilities(engineName, orgName, clusterName, accountName, options) {
2902
+ var _a, _b, _c;
2903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivilegeCapabilities(engineName, orgName, clusterName, accountName, options);
2904
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2905
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getAccountObjectPrivilegeCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2906
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2907
+ },
2908
+ /**
2909
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
2910
+ * @summary Inspect native object and column privileges
2911
+ * @param {string} engineName
2912
+ * @param {string} orgName
2913
+ * @param {string} clusterName
2914
+ * @param {string} accountName
2915
+ * @param {string} objectType
2916
+ * @param {string} [databaseName]
2917
+ * @param {string} [schemaName]
2918
+ * @param {string} [objectName]
2919
+ * @param {string} [objectId]
2920
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2921
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2922
+ * @param {string} [catalogName]
2923
+ * @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
2924
+ * @param {*} [options] Override http request option.
2925
+ * @throws {RequiredError}
2926
+ */
2927
+ async getAccountObjectPrivileges(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, objectName, objectId, subjectType, host, catalogName, subjectQualifiers, options) {
2928
+ var _a, _b, _c;
2929
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivileges(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, objectName, objectId, subjectType, host, catalogName, subjectQualifiers, options);
2930
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2931
+ 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;
2932
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2933
+ },
2605
2934
  /**
2606
2935
  * Get Hive accounts
2607
2936
  * @summary Get Hive accounts
@@ -2685,6 +3014,29 @@ const AccountApiFp = function (configuration) {
2685
3014
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2686
3015
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2687
3016
  },
3017
+ /**
3018
+ * 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.
3019
+ * @summary Discover existing native privilege objects with stable routine identities
3020
+ * @param {string} engineName
3021
+ * @param {string} orgName
3022
+ * @param {string} clusterName
3023
+ * @param {string} accountName
3024
+ * @param {string} objectType
3025
+ * @param {string} [databaseName]
3026
+ * @param {string} [schemaName]
3027
+ * @param {number} [offset]
3028
+ * @param {number} [limit]
3029
+ * @param {string} [catalogName]
3030
+ * @param {*} [options] Override http request option.
3031
+ * @throws {RequiredError}
3032
+ */
3033
+ async listAccountObjectPrivilegeObjects(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, offset, limit, catalogName, options) {
3034
+ var _a, _b, _c;
3035
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeObjects(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, offset, limit, catalogName, options);
3036
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3037
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listAccountObjectPrivilegeObjects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3038
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3039
+ },
2688
3040
  /**
2689
3041
  * list accounts in cluster
2690
3042
  * @summary List cluster accounts
@@ -3102,6 +3454,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
3102
3454
  bindSeaweedFSPolicies(requestParameters, options) {
3103
3455
  return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
3104
3456
  },
3457
+ /**
3458
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
3459
+ * @summary Grant or revoke native object and column privileges
3460
+ * @param {AccountApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ */
3464
+ changeAccountObjectPrivileges(requestParameters, options) {
3465
+ return localVarFp.changeAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
3466
+ },
3105
3467
  /**
3106
3468
  * create an account in cluster
3107
3469
  * @summary Create cluster account
@@ -3302,6 +3664,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
3302
3664
  deleteServiceAccount(requestParameters, options) {
3303
3665
  return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
3304
3666
  },
3667
+ /**
3668
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
3669
+ * @summary List native object privilege capabilities for the connected server
3670
+ * @param {AccountApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
3671
+ * @param {*} [options] Override http request option.
3672
+ * @throws {RequiredError}
3673
+ */
3674
+ getAccountObjectPrivilegeCapabilities(requestParameters, options) {
3675
+ return localVarFp.getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
3676
+ },
3677
+ /**
3678
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
3679
+ * @summary Inspect native object and column privileges
3680
+ * @param {AccountApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
3681
+ * @param {*} [options] Override http request option.
3682
+ * @throws {RequiredError}
3683
+ */
3684
+ getAccountObjectPrivileges(requestParameters, options) {
3685
+ 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));
3686
+ },
3305
3687
  /**
3306
3688
  * Get Hive accounts
3307
3689
  * @summary Get Hive accounts
@@ -3352,6 +3734,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
3352
3734
  getServiceAccount(requestParameters, options) {
3353
3735
  return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
3354
3736
  },
3737
+ /**
3738
+ * 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.
3739
+ * @summary Discover existing native privilege objects with stable routine identities
3740
+ * @param {AccountApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
3741
+ * @param {*} [options] Override http request option.
3742
+ * @throws {RequiredError}
3743
+ */
3744
+ listAccountObjectPrivilegeObjects(requestParameters, options) {
3745
+ return localVarFp.listAccountObjectPrivilegeObjects(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.offset, requestParameters.limit, requestParameters.catalogName, options).then((request) => request(axios, basePath));
3746
+ },
3355
3747
  /**
3356
3748
  * list accounts in cluster
3357
3749
  * @summary List cluster accounts
@@ -3613,6 +4005,17 @@ class AccountApi extends base_1.BaseAPI {
3613
4005
  bindSeaweedFSPolicies(requestParameters, options) {
3614
4006
  return (0, exports.AccountApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
3615
4007
  }
4008
+ /**
4009
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
4010
+ * @summary Grant or revoke native object and column privileges
4011
+ * @param {AccountApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
4012
+ * @param {*} [options] Override http request option.
4013
+ * @throws {RequiredError}
4014
+ * @memberof AccountApi
4015
+ */
4016
+ changeAccountObjectPrivileges(requestParameters, options) {
4017
+ return (0, exports.AccountApiFp)(this.configuration).changeAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
4018
+ }
3616
4019
  /**
3617
4020
  * create an account in cluster
3618
4021
  * @summary Create cluster account
@@ -3833,6 +4236,28 @@ class AccountApi extends base_1.BaseAPI {
3833
4236
  deleteServiceAccount(requestParameters, options) {
3834
4237
  return (0, exports.AccountApiFp)(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
3835
4238
  }
4239
+ /**
4240
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
4241
+ * @summary List native object privilege capabilities for the connected server
4242
+ * @param {AccountApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
4243
+ * @param {*} [options] Override http request option.
4244
+ * @throws {RequiredError}
4245
+ * @memberof AccountApi
4246
+ */
4247
+ getAccountObjectPrivilegeCapabilities(requestParameters, options) {
4248
+ return (0, exports.AccountApiFp)(this.configuration).getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
4249
+ }
4250
+ /**
4251
+ * Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
4252
+ * @summary Inspect native object and column privileges
4253
+ * @param {AccountApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
4254
+ * @param {*} [options] Override http request option.
4255
+ * @throws {RequiredError}
4256
+ * @memberof AccountApi
4257
+ */
4258
+ getAccountObjectPrivileges(requestParameters, options) {
4259
+ 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));
4260
+ }
3836
4261
  /**
3837
4262
  * Get Hive accounts
3838
4263
  * @summary Get Hive accounts
@@ -3888,6 +4313,17 @@ class AccountApi extends base_1.BaseAPI {
3888
4313
  getServiceAccount(requestParameters, options) {
3889
4314
  return (0, exports.AccountApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
3890
4315
  }
4316
+ /**
4317
+ * 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.
4318
+ * @summary Discover existing native privilege objects with stable routine identities
4319
+ * @param {AccountApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
4320
+ * @param {*} [options] Override http request option.
4321
+ * @throws {RequiredError}
4322
+ * @memberof AccountApi
4323
+ */
4324
+ listAccountObjectPrivilegeObjects(requestParameters, options) {
4325
+ return (0, exports.AccountApiFp)(this.configuration).listAccountObjectPrivilegeObjects(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.offset, requestParameters.limit, requestParameters.catalogName, options).then((request) => request(this.axios, this.basePath));
4326
+ }
3891
4327
  /**
3892
4328
  * list accounts in cluster
3893
4329
  * @summary List cluster accounts