kb-cloud-client-typescript 2.4.0-alpha.91 → 2.4.0-alpha.93

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 (55) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +310 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +303 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +310 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +303 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +310 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +303 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/index.d.ts +1 -0
  14. package/dist/adminapi/models/index.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.js +1 -0
  16. package/dist/adminapi/models/index.js.map +1 -1
  17. package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
  18. package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
  19. package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
  20. package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
  21. package/dist/openapi/apis/account-api.d.ts +310 -0
  22. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  23. package/dist/openapi/apis/account-api.js +303 -0
  24. package/dist/openapi/apis/account-api.js.map +1 -1
  25. package/dist/openapi/apis/rdbms-api.d.ts +310 -0
  26. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  27. package/dist/openapi/apis/rdbms-api.js +303 -0
  28. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  29. package/dist/openapi/apis/shared-api.d.ts +310 -0
  30. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  31. package/dist/openapi/apis/shared-api.js +303 -0
  32. package/dist/openapi/apis/shared-api.js.map +1 -1
  33. package/dist/openapi/models/index.d.ts +1 -0
  34. package/dist/openapi/models/index.d.ts.map +1 -1
  35. package/dist/openapi/models/index.js +1 -0
  36. package/dist/openapi/models/index.js.map +1 -1
  37. package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
  38. package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
  39. package/dist/openapi/models/object-privilege-reset-step.js +16 -0
  40. package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
  41. package/package.json +1 -1
  42. package/src/adminapi/.openapi-generator/FILES +1 -0
  43. package/src/adminapi/apis/account-api.ts +533 -0
  44. package/src/adminapi/apis/rdbms-api.ts +533 -0
  45. package/src/adminapi/apis/shared-api.ts +533 -0
  46. package/src/adminapi/models/index.ts +1 -0
  47. package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
  48. package/src/adminapi.yaml +204 -0
  49. package/src/openapi/.openapi-generator/FILES +1 -0
  50. package/src/openapi/apis/account-api.ts +533 -0
  51. package/src/openapi/apis/rdbms-api.ts +533 -0
  52. package/src/openapi/apis/shared-api.ts +533 -0
  53. package/src/openapi/models/index.ts +1 -0
  54. package/src/openapi/models/object-privilege-reset-step.ts +36 -0
  55. package/src/openapi.yaml +204 -0
@@ -56,6 +56,8 @@ import type { ObjectPrivilegeChange } from '../models';
56
56
  // @ts-ignore
57
57
  import type { ObjectPrivilegeObjectList } from '../models';
58
58
  // @ts-ignore
59
+ import type { ObjectPrivilegeResetStep } from '../models';
60
+ // @ts-ignore
59
61
  import type { ObjectPrivilegeSnapshot } from '../models';
60
62
  // @ts-ignore
61
63
  import type { ObjectPrivilegeSubjectType } from '../models';
@@ -1638,6 +1640,80 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
1638
1640
 
1639
1641
 
1640
1642
 
1643
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1644
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1645
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1646
+
1647
+ return {
1648
+ url: toPathString(localVarUrlObj),
1649
+ options: localVarRequestOptions,
1650
+ };
1651
+ },
1652
+ /**
1653
+ * 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.
1654
+ * @summary List exact column names for account object privileges
1655
+ * @param {string} engineName
1656
+ * @param {string} orgName
1657
+ * @param {string} clusterName
1658
+ * @param {string} accountName
1659
+ * @param {string} objectType Object type, either table or view
1660
+ * @param {string} databaseName
1661
+ * @param {string} objectName
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ */
1665
+ listAccountObjectPrivilegeColumns: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1666
+ // verify required parameter 'engineName' is not null or undefined
1667
+ assertParamExists('listAccountObjectPrivilegeColumns', 'engineName', engineName)
1668
+ // verify required parameter 'orgName' is not null or undefined
1669
+ assertParamExists('listAccountObjectPrivilegeColumns', 'orgName', orgName)
1670
+ // verify required parameter 'clusterName' is not null or undefined
1671
+ assertParamExists('listAccountObjectPrivilegeColumns', 'clusterName', clusterName)
1672
+ // verify required parameter 'accountName' is not null or undefined
1673
+ assertParamExists('listAccountObjectPrivilegeColumns', 'accountName', accountName)
1674
+ // verify required parameter 'objectType' is not null or undefined
1675
+ assertParamExists('listAccountObjectPrivilegeColumns', 'objectType', objectType)
1676
+ // verify required parameter 'databaseName' is not null or undefined
1677
+ assertParamExists('listAccountObjectPrivilegeColumns', 'databaseName', databaseName)
1678
+ // verify required parameter 'objectName' is not null or undefined
1679
+ assertParamExists('listAccountObjectPrivilegeColumns', 'objectName', objectName)
1680
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns`
1681
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1682
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1683
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1684
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1687
+ let baseOptions;
1688
+ if (configuration) {
1689
+ baseOptions = configuration.baseOptions;
1690
+ }
1691
+
1692
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1693
+ const localVarHeaderParameter = {} as any;
1694
+ const localVarQueryParameter = {} as any;
1695
+
1696
+ // authentication BearerToken required
1697
+ // http bearer authentication required
1698
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1699
+
1700
+ // authentication DigestAuth required
1701
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1702
+
1703
+ if (objectType !== undefined) {
1704
+ localVarQueryParameter['objectType'] = objectType;
1705
+ }
1706
+
1707
+ if (databaseName !== undefined) {
1708
+ localVarQueryParameter['databaseName'] = databaseName;
1709
+ }
1710
+
1711
+ if (objectName !== undefined) {
1712
+ localVarQueryParameter['objectName'] = objectName;
1713
+ }
1714
+
1715
+
1716
+
1641
1717
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1642
1718
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1643
1719
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2149,6 +2225,74 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
2149
2225
 
2150
2226
 
2151
2227
 
2228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2230
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2231
+
2232
+ return {
2233
+ url: toPathString(localVarUrlObj),
2234
+ options: localVarRequestOptions,
2235
+ };
2236
+ },
2237
+ /**
2238
+ * 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.
2239
+ * @summary Preview clearing all MySQL account privileges
2240
+ * @param {string} engineName
2241
+ * @param {string} orgName
2242
+ * @param {string} clusterName
2243
+ * @param {string} accountName
2244
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2245
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2246
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
2247
+ * @param {*} [options] Override http request option.
2248
+ * @throws {RequiredError}
2249
+ */
2250
+ previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2251
+ // verify required parameter 'engineName' is not null or undefined
2252
+ assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
2253
+ // verify required parameter 'orgName' is not null or undefined
2254
+ assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
2255
+ // verify required parameter 'clusterName' is not null or undefined
2256
+ assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
2257
+ // verify required parameter 'accountName' is not null or undefined
2258
+ assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
2259
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
2260
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
2261
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2262
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2263
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
2264
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2265
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2266
+ let baseOptions;
2267
+ if (configuration) {
2268
+ baseOptions = configuration.baseOptions;
2269
+ }
2270
+
2271
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2272
+ const localVarHeaderParameter = {} as any;
2273
+ const localVarQueryParameter = {} as any;
2274
+
2275
+ // authentication BearerToken required
2276
+ // http bearer authentication required
2277
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2278
+
2279
+ // authentication DigestAuth required
2280
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2281
+
2282
+ if (subjectType !== undefined) {
2283
+ localVarQueryParameter['subjectType'] = subjectType;
2284
+ }
2285
+
2286
+ if (host !== undefined) {
2287
+ localVarQueryParameter['host'] = host;
2288
+ }
2289
+
2290
+ if (subjectQualifiers !== undefined) {
2291
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
2292
+ }
2293
+
2294
+
2295
+
2152
2296
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2153
2297
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2154
2298
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2213,6 +2357,74 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
2213
2357
  options: localVarRequestOptions,
2214
2358
  };
2215
2359
  },
2360
+ /**
2361
+ * 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.
2362
+ * @summary Clear all MySQL account privileges
2363
+ * @param {string} engineName
2364
+ * @param {string} orgName
2365
+ * @param {string} clusterName
2366
+ * @param {string} accountName
2367
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
2368
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
2369
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
2370
+ * @param {*} [options] Override http request option.
2371
+ * @throws {RequiredError}
2372
+ */
2373
+ resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2374
+ // verify required parameter 'engineName' is not null or undefined
2375
+ assertParamExists('resetAccountPrivileges', 'engineName', engineName)
2376
+ // verify required parameter 'orgName' is not null or undefined
2377
+ assertParamExists('resetAccountPrivileges', 'orgName', orgName)
2378
+ // verify required parameter 'clusterName' is not null or undefined
2379
+ assertParamExists('resetAccountPrivileges', 'clusterName', clusterName)
2380
+ // verify required parameter 'accountName' is not null or undefined
2381
+ assertParamExists('resetAccountPrivileges', 'accountName', accountName)
2382
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
2383
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
2384
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2385
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2386
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
2387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2389
+ let baseOptions;
2390
+ if (configuration) {
2391
+ baseOptions = configuration.baseOptions;
2392
+ }
2393
+
2394
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2395
+ const localVarHeaderParameter = {} as any;
2396
+ const localVarQueryParameter = {} as any;
2397
+
2398
+ // authentication BearerToken required
2399
+ // http bearer authentication required
2400
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2401
+
2402
+ // authentication DigestAuth required
2403
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2404
+
2405
+ if (subjectType !== undefined) {
2406
+ localVarQueryParameter['subjectType'] = subjectType;
2407
+ }
2408
+
2409
+ if (host !== undefined) {
2410
+ localVarQueryParameter['host'] = host;
2411
+ }
2412
+
2413
+ if (subjectQualifiers !== undefined) {
2414
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
2415
+ }
2416
+
2417
+
2418
+
2419
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2421
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2422
+
2423
+ return {
2424
+ url: toPathString(localVarUrlObj),
2425
+ options: localVarRequestOptions,
2426
+ };
2427
+ },
2216
2428
  /**
2217
2429
  * unlock an account in cluster
2218
2430
  * @summary Unlock cluster account
@@ -3458,6 +3670,25 @@ export const AccountApiFp = function(configuration?: Configuration) {
3458
3670
  const localVarOperationServerBasePath = operationServerMap['AccountApi.getServiceAccount']?.[localVarOperationServerIndex]?.url;
3459
3671
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3460
3672
  },
3673
+ /**
3674
+ * 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.
3675
+ * @summary List exact column names for account object privileges
3676
+ * @param {string} engineName
3677
+ * @param {string} orgName
3678
+ * @param {string} clusterName
3679
+ * @param {string} accountName
3680
+ * @param {string} objectType Object type, either table or view
3681
+ * @param {string} databaseName
3682
+ * @param {string} objectName
3683
+ * @param {*} [options] Override http request option.
3684
+ * @throws {RequiredError}
3685
+ */
3686
+ 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>>> {
3687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
3688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3689
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.listAccountObjectPrivilegeColumns']?.[localVarOperationServerIndex]?.url;
3690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3691
+ },
3461
3692
  /**
3462
3693
  * 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.
3463
3694
  * @summary Discover existing native privilege objects with stable routine identities
@@ -3611,6 +3842,25 @@ export const AccountApiFp = function(configuration?: Configuration) {
3611
3842
  const localVarOperationServerBasePath = operationServerMap['AccountApi.lockAccount']?.[localVarOperationServerIndex]?.url;
3612
3843
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3613
3844
  },
3845
+ /**
3846
+ * 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.
3847
+ * @summary Preview clearing all MySQL account privileges
3848
+ * @param {string} engineName
3849
+ * @param {string} orgName
3850
+ * @param {string} clusterName
3851
+ * @param {string} accountName
3852
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
3853
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
3854
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
3855
+ * @param {*} [options] Override http request option.
3856
+ * @throws {RequiredError}
3857
+ */
3858
+ 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>>> {
3859
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
3860
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3861
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
3862
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3863
+ },
3614
3864
  /**
3615
3865
  * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
3616
3866
  * @summary putSeaweedFSPolicy
@@ -3627,6 +3877,25 @@ export const AccountApiFp = function(configuration?: Configuration) {
3627
3877
  const localVarOperationServerBasePath = operationServerMap['AccountApi.putSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
3628
3878
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3629
3879
  },
3880
+ /**
3881
+ * 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.
3882
+ * @summary Clear all MySQL account privileges
3883
+ * @param {string} engineName
3884
+ * @param {string} orgName
3885
+ * @param {string} clusterName
3886
+ * @param {string} accountName
3887
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
3888
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
3889
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
3890
+ * @param {*} [options] Override http request option.
3891
+ * @throws {RequiredError}
3892
+ */
3893
+ 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>> {
3894
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
3895
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3896
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
3897
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3898
+ },
3630
3899
  /**
3631
3900
  * unlock an account in cluster
3632
3901
  * @summary Unlock cluster account
@@ -4153,6 +4422,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
4153
4422
  getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount> {
4154
4423
  return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
4155
4424
  },
4425
+ /**
4426
+ * 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.
4427
+ * @summary List exact column names for account object privileges
4428
+ * @param {AccountApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
4429
+ * @param {*} [options] Override http request option.
4430
+ * @throws {RequiredError}
4431
+ */
4432
+ listAccountObjectPrivilegeColumns(requestParameters: AccountApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
4433
+ return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
4434
+ },
4156
4435
  /**
4157
4436
  * 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.
4158
4437
  * @summary Discover existing native privilege objects with stable routine identities
@@ -4253,6 +4532,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
4253
4532
  lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4254
4533
  return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
4255
4534
  },
4535
+ /**
4536
+ * 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.
4537
+ * @summary Preview clearing all MySQL account privileges
4538
+ * @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
4539
+ * @param {*} [options] Override http request option.
4540
+ * @throws {RequiredError}
4541
+ */
4542
+ previewAccountPrivilegeReset(requestParameters: AccountApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
4543
+ return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
4544
+ },
4256
4545
  /**
4257
4546
  * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
4258
4547
  * @summary putSeaweedFSPolicy
@@ -4263,6 +4552,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
4263
4552
  putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4264
4553
  return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
4265
4554
  },
4555
+ /**
4556
+ * 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.
4557
+ * @summary Clear all MySQL account privileges
4558
+ * @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
4559
+ * @param {*} [options] Override http request option.
4560
+ * @throws {RequiredError}
4561
+ */
4562
+ resetAccountPrivileges(requestParameters: AccountApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4563
+ return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
4564
+ },
4266
4565
  /**
4267
4566
  * unlock an account in cluster
4268
4567
  * @summary Unlock cluster account
@@ -4702,6 +5001,16 @@ export interface AccountApiInterface {
4702
5001
  */
4703
5002
  getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount>;
4704
5003
 
5004
+ /**
5005
+ * 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.
5006
+ * @summary List exact column names for account object privileges
5007
+ * @param {AccountApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
5008
+ * @param {*} [options] Override http request option.
5009
+ * @throws {RequiredError}
5010
+ * @memberof AccountApiInterface
5011
+ */
5012
+ listAccountObjectPrivilegeColumns(requestParameters: AccountApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
5013
+
4705
5014
  /**
4706
5015
  * 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.
4707
5016
  * @summary Discover existing native privilege objects with stable routine identities
@@ -4802,6 +5111,16 @@ export interface AccountApiInterface {
4802
5111
  */
4803
5112
  lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
4804
5113
 
5114
+ /**
5115
+ * 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.
5116
+ * @summary Preview clearing all MySQL account privileges
5117
+ * @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
5118
+ * @param {*} [options] Override http request option.
5119
+ * @throws {RequiredError}
5120
+ * @memberof AccountApiInterface
5121
+ */
5122
+ previewAccountPrivilegeReset(requestParameters: AccountApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
5123
+
4805
5124
  /**
4806
5125
  * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
4807
5126
  * @summary putSeaweedFSPolicy
@@ -4812,6 +5131,16 @@ export interface AccountApiInterface {
4812
5131
  */
4813
5132
  putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
4814
5133
 
5134
+ /**
5135
+ * 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.
5136
+ * @summary Clear all MySQL account privileges
5137
+ * @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
5138
+ * @param {*} [options] Override http request option.
5139
+ * @throws {RequiredError}
5140
+ * @memberof AccountApiInterface
5141
+ */
5142
+ resetAccountPrivileges(requestParameters: AccountApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5143
+
4815
5144
  /**
4816
5145
  * unlock an account in cluster
4817
5146
  * @summary Unlock cluster account
@@ -5948,6 +6277,62 @@ export interface AccountApiGetServiceAccountRequest {
5948
6277
  readonly accessKey: string
5949
6278
  }
5950
6279
 
6280
+ /**
6281
+ * Request parameters for listAccountObjectPrivilegeColumns operation in AccountApi.
6282
+ * @export
6283
+ * @interface AccountApiListAccountObjectPrivilegeColumnsRequest
6284
+ */
6285
+ export interface AccountApiListAccountObjectPrivilegeColumnsRequest {
6286
+ /**
6287
+ *
6288
+ * @type {string}
6289
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6290
+ */
6291
+ readonly engineName: string
6292
+
6293
+ /**
6294
+ *
6295
+ * @type {string}
6296
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6297
+ */
6298
+ readonly orgName: string
6299
+
6300
+ /**
6301
+ *
6302
+ * @type {string}
6303
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6304
+ */
6305
+ readonly clusterName: string
6306
+
6307
+ /**
6308
+ *
6309
+ * @type {string}
6310
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6311
+ */
6312
+ readonly accountName: string
6313
+
6314
+ /**
6315
+ * Object type, either table or view
6316
+ * @type {string}
6317
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6318
+ */
6319
+ readonly objectType: string
6320
+
6321
+ /**
6322
+ *
6323
+ * @type {string}
6324
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6325
+ */
6326
+ readonly databaseName: string
6327
+
6328
+ /**
6329
+ *
6330
+ * @type {string}
6331
+ * @memberof AccountApiListAccountObjectPrivilegeColumns
6332
+ */
6333
+ readonly objectName: string
6334
+ }
6335
+
5951
6336
  /**
5952
6337
  * Request parameters for listAccountObjectPrivilegeObjects operation in AccountApi.
5953
6338
  * @export
@@ -6249,6 +6634,62 @@ export interface AccountApiLockAccountRequest {
6249
6634
  readonly accountName: string
6250
6635
  }
6251
6636
 
6637
+ /**
6638
+ * Request parameters for previewAccountPrivilegeReset operation in AccountApi.
6639
+ * @export
6640
+ * @interface AccountApiPreviewAccountPrivilegeResetRequest
6641
+ */
6642
+ export interface AccountApiPreviewAccountPrivilegeResetRequest {
6643
+ /**
6644
+ *
6645
+ * @type {string}
6646
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6647
+ */
6648
+ readonly engineName: string
6649
+
6650
+ /**
6651
+ *
6652
+ * @type {string}
6653
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6654
+ */
6655
+ readonly orgName: string
6656
+
6657
+ /**
6658
+ *
6659
+ * @type {string}
6660
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6661
+ */
6662
+ readonly clusterName: string
6663
+
6664
+ /**
6665
+ *
6666
+ * @type {string}
6667
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6668
+ */
6669
+ readonly accountName: string
6670
+
6671
+ /**
6672
+ * Native subject kind; path account name identifies the subject.
6673
+ * @type {ObjectPrivilegeSubjectType}
6674
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6675
+ */
6676
+ readonly subjectType?: ObjectPrivilegeSubjectType
6677
+
6678
+ /**
6679
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
6680
+ * @type {string}
6681
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6682
+ */
6683
+ readonly host?: string
6684
+
6685
+ /**
6686
+ * JSON identity qualifiers; MySQL host defaults to %.
6687
+ * @type {string}
6688
+ * @memberof AccountApiPreviewAccountPrivilegeReset
6689
+ */
6690
+ readonly subjectQualifiers?: string
6691
+ }
6692
+
6252
6693
  /**
6253
6694
  * Request parameters for putSeaweedFSPolicy operation in AccountApi.
6254
6695
  * @export
@@ -6284,6 +6725,62 @@ export interface AccountApiPutSeaweedFSPolicyRequest {
6284
6725
  readonly requestBody: { [key: string]: any; }
6285
6726
  }
6286
6727
 
6728
+ /**
6729
+ * Request parameters for resetAccountPrivileges operation in AccountApi.
6730
+ * @export
6731
+ * @interface AccountApiResetAccountPrivilegesRequest
6732
+ */
6733
+ export interface AccountApiResetAccountPrivilegesRequest {
6734
+ /**
6735
+ *
6736
+ * @type {string}
6737
+ * @memberof AccountApiResetAccountPrivileges
6738
+ */
6739
+ readonly engineName: string
6740
+
6741
+ /**
6742
+ *
6743
+ * @type {string}
6744
+ * @memberof AccountApiResetAccountPrivileges
6745
+ */
6746
+ readonly orgName: string
6747
+
6748
+ /**
6749
+ *
6750
+ * @type {string}
6751
+ * @memberof AccountApiResetAccountPrivileges
6752
+ */
6753
+ readonly clusterName: string
6754
+
6755
+ /**
6756
+ *
6757
+ * @type {string}
6758
+ * @memberof AccountApiResetAccountPrivileges
6759
+ */
6760
+ readonly accountName: string
6761
+
6762
+ /**
6763
+ * Native subject kind; path account name identifies the subject.
6764
+ * @type {ObjectPrivilegeSubjectType}
6765
+ * @memberof AccountApiResetAccountPrivileges
6766
+ */
6767
+ readonly subjectType?: ObjectPrivilegeSubjectType
6768
+
6769
+ /**
6770
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
6771
+ * @type {string}
6772
+ * @memberof AccountApiResetAccountPrivileges
6773
+ */
6774
+ readonly host?: string
6775
+
6776
+ /**
6777
+ * JSON identity qualifiers; MySQL host defaults to %.
6778
+ * @type {string}
6779
+ * @memberof AccountApiResetAccountPrivileges
6780
+ */
6781
+ readonly subjectQualifiers?: string
6782
+ }
6783
+
6287
6784
  /**
6288
6785
  * Request parameters for unlockAccount operation in AccountApi.
6289
6786
  * @export
@@ -7143,6 +7640,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
7143
7640
  return AccountApiFp(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
7144
7641
  }
7145
7642
 
7643
+ /**
7644
+ * 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.
7645
+ * @summary List exact column names for account object privileges
7646
+ * @param {AccountApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
7647
+ * @param {*} [options] Override http request option.
7648
+ * @throws {RequiredError}
7649
+ * @memberof AccountApi
7650
+ */
7651
+ public listAccountObjectPrivilegeColumns(requestParameters: AccountApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig) {
7652
+ return AccountApiFp(this.configuration).listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(this.axios, this.basePath));
7653
+ }
7654
+
7146
7655
  /**
7147
7656
  * 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.
7148
7657
  * @summary Discover existing native privilege objects with stable routine identities
@@ -7263,6 +7772,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
7263
7772
  return AccountApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
7264
7773
  }
7265
7774
 
7775
+ /**
7776
+ * 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.
7777
+ * @summary Preview clearing all MySQL account privileges
7778
+ * @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
7779
+ * @param {*} [options] Override http request option.
7780
+ * @throws {RequiredError}
7781
+ * @memberof AccountApi
7782
+ */
7783
+ public previewAccountPrivilegeReset(requestParameters: AccountApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
7784
+ return AccountApiFp(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
7785
+ }
7786
+
7266
7787
  /**
7267
7788
  * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
7268
7789
  * @summary putSeaweedFSPolicy
@@ -7275,6 +7796,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
7275
7796
  return AccountApiFp(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
7276
7797
  }
7277
7798
 
7799
+ /**
7800
+ * 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.
7801
+ * @summary Clear all MySQL account privileges
7802
+ * @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
7803
+ * @param {*} [options] Override http request option.
7804
+ * @throws {RequiredError}
7805
+ * @memberof AccountApi
7806
+ */
7807
+ public resetAccountPrivileges(requestParameters: AccountApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
7808
+ return AccountApiFp(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
7809
+ }
7810
+
7278
7811
  /**
7279
7812
  * unlock an account in cluster
7280
7813
  * @summary Unlock cluster account