kb-cloud-client-typescript 2.4.0-alpha.92 → 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 +207 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +198 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +198 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +207 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +198 -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 +207 -0
  22. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  23. package/dist/openapi/apis/account-api.js +198 -0
  24. package/dist/openapi/apis/account-api.js.map +1 -1
  25. package/dist/openapi/apis/rdbms-api.d.ts +207 -0
  26. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  27. package/dist/openapi/apis/rdbms-api.js +198 -0
  28. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  29. package/dist/openapi/apis/shared-api.d.ts +207 -0
  30. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  31. package/dist/openapi/apis/shared-api.js +198 -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 +352 -0
  44. package/src/adminapi/apis/rdbms-api.ts +352 -0
  45. package/src/adminapi/apis/shared-api.ts +352 -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 +139 -0
  49. package/src/openapi/.openapi-generator/FILES +1 -0
  50. package/src/openapi/apis/account-api.ts +352 -0
  51. package/src/openapi/apis/rdbms-api.ts +352 -0
  52. package/src/openapi/apis/shared-api.ts +352 -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 +139 -0
@@ -294,6 +294,8 @@ import type { ObjectPrivilegeChange } from '../models';
294
294
  // @ts-ignore
295
295
  import type { ObjectPrivilegeObjectList } from '../models';
296
296
  // @ts-ignore
297
+ import type { ObjectPrivilegeResetStep } from '../models';
298
+ // @ts-ignore
297
299
  import type { ObjectPrivilegeSnapshot } from '../models';
298
300
  // @ts-ignore
299
301
  import type { ObjectPrivilegeSubjectType } from '../models';
@@ -13002,6 +13004,74 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13002
13004
  options: localVarRequestOptions,
13003
13005
  };
13004
13006
  },
13007
+ /**
13008
+ * 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.
13009
+ * @summary Preview clearing all MySQL account privileges
13010
+ * @param {string} engineName
13011
+ * @param {string} orgName
13012
+ * @param {string} clusterName
13013
+ * @param {string} accountName
13014
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
13015
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
13016
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
13017
+ * @param {*} [options] Override http request option.
13018
+ * @throws {RequiredError}
13019
+ */
13020
+ previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13021
+ // verify required parameter 'engineName' is not null or undefined
13022
+ assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
13023
+ // verify required parameter 'orgName' is not null or undefined
13024
+ assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
13025
+ // verify required parameter 'clusterName' is not null or undefined
13026
+ assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
13027
+ // verify required parameter 'accountName' is not null or undefined
13028
+ assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
13029
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
13030
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
13031
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13032
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13033
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13034
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13035
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13036
+ let baseOptions;
13037
+ if (configuration) {
13038
+ baseOptions = configuration.baseOptions;
13039
+ }
13040
+
13041
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13042
+ const localVarHeaderParameter = {} as any;
13043
+ const localVarQueryParameter = {} as any;
13044
+
13045
+ // authentication BearerToken required
13046
+ // http bearer authentication required
13047
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13048
+
13049
+ // authentication DigestAuth required
13050
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13051
+
13052
+ if (subjectType !== undefined) {
13053
+ localVarQueryParameter['subjectType'] = subjectType;
13054
+ }
13055
+
13056
+ if (host !== undefined) {
13057
+ localVarQueryParameter['host'] = host;
13058
+ }
13059
+
13060
+ if (subjectQualifiers !== undefined) {
13061
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
13062
+ }
13063
+
13064
+
13065
+
13066
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13068
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13069
+
13070
+ return {
13071
+ url: toPathString(localVarUrlObj),
13072
+ options: localVarRequestOptions,
13073
+ };
13074
+ },
13005
13075
  /**
13006
13076
  *
13007
13077
  * @summary Produce message to topic
@@ -15173,6 +15243,74 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
15173
15243
  options: localVarRequestOptions,
15174
15244
  };
15175
15245
  },
15246
+ /**
15247
+ * 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.
15248
+ * @summary Clear all MySQL account privileges
15249
+ * @param {string} engineName
15250
+ * @param {string} orgName
15251
+ * @param {string} clusterName
15252
+ * @param {string} accountName
15253
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
15254
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
15255
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
15256
+ * @param {*} [options] Override http request option.
15257
+ * @throws {RequiredError}
15258
+ */
15259
+ resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15260
+ // verify required parameter 'engineName' is not null or undefined
15261
+ assertParamExists('resetAccountPrivileges', 'engineName', engineName)
15262
+ // verify required parameter 'orgName' is not null or undefined
15263
+ assertParamExists('resetAccountPrivileges', 'orgName', orgName)
15264
+ // verify required parameter 'clusterName' is not null or undefined
15265
+ assertParamExists('resetAccountPrivileges', 'clusterName', clusterName)
15266
+ // verify required parameter 'accountName' is not null or undefined
15267
+ assertParamExists('resetAccountPrivileges', 'accountName', accountName)
15268
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
15269
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
15270
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
15271
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
15272
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
15273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15275
+ let baseOptions;
15276
+ if (configuration) {
15277
+ baseOptions = configuration.baseOptions;
15278
+ }
15279
+
15280
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15281
+ const localVarHeaderParameter = {} as any;
15282
+ const localVarQueryParameter = {} as any;
15283
+
15284
+ // authentication BearerToken required
15285
+ // http bearer authentication required
15286
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15287
+
15288
+ // authentication DigestAuth required
15289
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
15290
+
15291
+ if (subjectType !== undefined) {
15292
+ localVarQueryParameter['subjectType'] = subjectType;
15293
+ }
15294
+
15295
+ if (host !== undefined) {
15296
+ localVarQueryParameter['host'] = host;
15297
+ }
15298
+
15299
+ if (subjectQualifiers !== undefined) {
15300
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
15301
+ }
15302
+
15303
+
15304
+
15305
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15306
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15307
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15308
+
15309
+ return {
15310
+ url: toPathString(localVarUrlObj),
15311
+ options: localVarRequestOptions,
15312
+ };
15313
+ },
15176
15314
  /**
15177
15315
  *
15178
15316
  * @summary Reset consumer offset of topic
@@ -21808,6 +21946,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
21808
21946
  const localVarOperationServerBasePath = operationServerMap['SharedApi.patchOrgParameter']?.[localVarOperationServerIndex]?.url;
21809
21947
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21810
21948
  },
21949
+ /**
21950
+ * 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.
21951
+ * @summary Preview clearing all MySQL account privileges
21952
+ * @param {string} engineName
21953
+ * @param {string} orgName
21954
+ * @param {string} clusterName
21955
+ * @param {string} accountName
21956
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
21957
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
21958
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
21959
+ * @param {*} [options] Override http request option.
21960
+ * @throws {RequiredError}
21961
+ */
21962
+ 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>>> {
21963
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
21964
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21965
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
21966
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21967
+ },
21811
21968
  /**
21812
21969
  *
21813
21970
  * @summary Produce message to topic
@@ -22368,6 +22525,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
22368
22525
  const localVarOperationServerBasePath = operationServerMap['SharedApi.reconfigureCluster']?.[localVarOperationServerIndex]?.url;
22369
22526
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22370
22527
  },
22528
+ /**
22529
+ * 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.
22530
+ * @summary Clear all MySQL account privileges
22531
+ * @param {string} engineName
22532
+ * @param {string} orgName
22533
+ * @param {string} clusterName
22534
+ * @param {string} accountName
22535
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
22536
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
22537
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
22538
+ * @param {*} [options] Override http request option.
22539
+ * @throws {RequiredError}
22540
+ */
22541
+ 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>> {
22542
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
22543
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22544
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
22545
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22546
+ },
22371
22547
  /**
22372
22548
  *
22373
22549
  * @summary Reset consumer offset of topic
@@ -25614,6 +25790,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25614
25790
  patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter> {
25615
25791
  return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
25616
25792
  },
25793
+ /**
25794
+ * 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.
25795
+ * @summary Preview clearing all MySQL account privileges
25796
+ * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
25797
+ * @param {*} [options] Override http request option.
25798
+ * @throws {RequiredError}
25799
+ */
25800
+ previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
25801
+ return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
25802
+ },
25617
25803
  /**
25618
25804
  *
25619
25805
  * @summary Produce message to topic
@@ -25893,6 +26079,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25893
26079
  reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
25894
26080
  return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
25895
26081
  },
26082
+ /**
26083
+ * 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.
26084
+ * @summary Clear all MySQL account privileges
26085
+ * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
26086
+ * @param {*} [options] Override http request option.
26087
+ * @throws {RequiredError}
26088
+ */
26089
+ resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26090
+ return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
26091
+ },
25896
26092
  /**
25897
26093
  *
25898
26094
  * @summary Reset consumer offset of topic
@@ -28826,6 +29022,16 @@ export interface SharedApiInterface {
28826
29022
  */
28827
29023
  patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter>;
28828
29024
 
29025
+ /**
29026
+ * 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.
29027
+ * @summary Preview clearing all MySQL account privileges
29028
+ * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
29029
+ * @param {*} [options] Override http request option.
29030
+ * @throws {RequiredError}
29031
+ * @memberof SharedApiInterface
29032
+ */
29033
+ previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
29034
+
28829
29035
  /**
28830
29036
  *
28831
29037
  * @summary Produce message to topic
@@ -29105,6 +29311,16 @@ export interface SharedApiInterface {
29105
29311
  */
29106
29312
  reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
29107
29313
 
29314
+ /**
29315
+ * 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.
29316
+ * @summary Clear all MySQL account privileges
29317
+ * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
29318
+ * @param {*} [options] Override http request option.
29319
+ * @throws {RequiredError}
29320
+ * @memberof SharedApiInterface
29321
+ */
29322
+ resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
29323
+
29108
29324
  /**
29109
29325
  *
29110
29326
  * @summary Reset consumer offset of topic
@@ -37076,6 +37292,62 @@ export interface SharedApiPatchOrgParameterRequest {
37076
37292
  readonly orgParameter: OrgParameter
37077
37293
  }
37078
37294
 
37295
+ /**
37296
+ * Request parameters for previewAccountPrivilegeReset operation in SharedApi.
37297
+ * @export
37298
+ * @interface SharedApiPreviewAccountPrivilegeResetRequest
37299
+ */
37300
+ export interface SharedApiPreviewAccountPrivilegeResetRequest {
37301
+ /**
37302
+ *
37303
+ * @type {string}
37304
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37305
+ */
37306
+ readonly engineName: string
37307
+
37308
+ /**
37309
+ *
37310
+ * @type {string}
37311
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37312
+ */
37313
+ readonly orgName: string
37314
+
37315
+ /**
37316
+ *
37317
+ * @type {string}
37318
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37319
+ */
37320
+ readonly clusterName: string
37321
+
37322
+ /**
37323
+ *
37324
+ * @type {string}
37325
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37326
+ */
37327
+ readonly accountName: string
37328
+
37329
+ /**
37330
+ * Native subject kind; path account name identifies the subject.
37331
+ * @type {ObjectPrivilegeSubjectType}
37332
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37333
+ */
37334
+ readonly subjectType?: ObjectPrivilegeSubjectType
37335
+
37336
+ /**
37337
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
37338
+ * @type {string}
37339
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37340
+ */
37341
+ readonly host?: string
37342
+
37343
+ /**
37344
+ * JSON identity qualifiers; MySQL host defaults to %.
37345
+ * @type {string}
37346
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37347
+ */
37348
+ readonly subjectQualifiers?: string
37349
+ }
37350
+
37079
37351
  /**
37080
37352
  * Request parameters for produceKafkaTopicMessage operation in SharedApi.
37081
37353
  * @export
@@ -38833,6 +39105,62 @@ export interface SharedApiReconfigureClusterRequest {
38833
39105
  readonly body: ReconfigureCreate
38834
39106
  }
38835
39107
 
39108
+ /**
39109
+ * Request parameters for resetAccountPrivileges operation in SharedApi.
39110
+ * @export
39111
+ * @interface SharedApiResetAccountPrivilegesRequest
39112
+ */
39113
+ export interface SharedApiResetAccountPrivilegesRequest {
39114
+ /**
39115
+ *
39116
+ * @type {string}
39117
+ * @memberof SharedApiResetAccountPrivileges
39118
+ */
39119
+ readonly engineName: string
39120
+
39121
+ /**
39122
+ *
39123
+ * @type {string}
39124
+ * @memberof SharedApiResetAccountPrivileges
39125
+ */
39126
+ readonly orgName: string
39127
+
39128
+ /**
39129
+ *
39130
+ * @type {string}
39131
+ * @memberof SharedApiResetAccountPrivileges
39132
+ */
39133
+ readonly clusterName: string
39134
+
39135
+ /**
39136
+ *
39137
+ * @type {string}
39138
+ * @memberof SharedApiResetAccountPrivileges
39139
+ */
39140
+ readonly accountName: string
39141
+
39142
+ /**
39143
+ * Native subject kind; path account name identifies the subject.
39144
+ * @type {ObjectPrivilegeSubjectType}
39145
+ * @memberof SharedApiResetAccountPrivileges
39146
+ */
39147
+ readonly subjectType?: ObjectPrivilegeSubjectType
39148
+
39149
+ /**
39150
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
39151
+ * @type {string}
39152
+ * @memberof SharedApiResetAccountPrivileges
39153
+ */
39154
+ readonly host?: string
39155
+
39156
+ /**
39157
+ * JSON identity qualifiers; MySQL host defaults to %.
39158
+ * @type {string}
39159
+ * @memberof SharedApiResetAccountPrivileges
39160
+ */
39161
+ readonly subjectQualifiers?: string
39162
+ }
39163
+
38836
39164
  /**
38837
39165
  * Request parameters for resetKafkaTopicConsumerOffset operation in SharedApi.
38838
39166
  * @export
@@ -43490,6 +43818,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
43490
43818
  return SharedApiFp(this.configuration).patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
43491
43819
  }
43492
43820
 
43821
+ /**
43822
+ * 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.
43823
+ * @summary Preview clearing all MySQL account privileges
43824
+ * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
43825
+ * @param {*} [options] Override http request option.
43826
+ * @throws {RequiredError}
43827
+ * @memberof SharedApi
43828
+ */
43829
+ public previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
43830
+ return SharedApiFp(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
43831
+ }
43832
+
43493
43833
  /**
43494
43834
  *
43495
43835
  * @summary Produce message to topic
@@ -43825,6 +44165,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
43825
44165
  return SharedApiFp(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
43826
44166
  }
43827
44167
 
44168
+ /**
44169
+ * 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.
44170
+ * @summary Clear all MySQL account privileges
44171
+ * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
44172
+ * @param {*} [options] Override http request option.
44173
+ * @throws {RequiredError}
44174
+ * @memberof SharedApi
44175
+ */
44176
+ public resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
44177
+ return SharedApiFp(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
44178
+ }
44179
+
43828
44180
  /**
43829
44181
  *
43830
44182
  * @summary Reset consumer offset of topic
@@ -763,6 +763,7 @@ export * from './object-privilege-object-list';
763
763
  export * from './object-privilege-prerequisite-check';
764
764
  export * from './object-privilege-prerequisite-status';
765
765
  export * from './object-privilege-qualifier';
766
+ export * from './object-privilege-reset-step';
766
767
  export * from './object-privilege-snapshot';
767
768
  export * from './object-privilege-spec';
768
769
  export * from './object-privilege-subject';
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * One ordered, engine-generated step of an account privilege reset.
19
+ * @export
20
+ * @interface ObjectPrivilegeResetStep
21
+ */
22
+ export interface ObjectPrivilegeResetStep {
23
+ /**
24
+ * Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
25
+ * @type {string}
26
+ * @memberof ObjectPrivilegeResetStep
27
+ */
28
+ 'databaseName'?: string;
29
+ /**
30
+ * Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
31
+ * @type {string}
32
+ * @memberof ObjectPrivilegeResetStep
33
+ */
34
+ 'sql': string;
35
+ }
36
+
package/src/adminapi.yaml CHANGED
@@ -24122,6 +24122,131 @@ paths:
24122
24122
  $ref: '#/components/responses/404'
24123
24123
  '500':
24124
24124
  $ref: '#/components/responses/500'
24125
+ /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset:
24126
+ get:
24127
+ tags:
24128
+ - account
24129
+ - rdbms
24130
+ - shared
24131
+ summary: Preview clearing all MySQL account privileges
24132
+ operationId: previewAccountPrivilegeReset
24133
+ description: 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.
24134
+ parameters:
24135
+ - name: engineName
24136
+ in: path
24137
+ required: true
24138
+ schema:
24139
+ type: string
24140
+ - name: orgName
24141
+ in: path
24142
+ required: true
24143
+ schema:
24144
+ type: string
24145
+ - name: clusterName
24146
+ in: path
24147
+ required: true
24148
+ schema:
24149
+ type: string
24150
+ - name: accountName
24151
+ in: path
24152
+ required: true
24153
+ schema:
24154
+ type: string
24155
+ - name: subjectType
24156
+ in: query
24157
+ required: false
24158
+ schema:
24159
+ $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
24160
+ description: Native subject kind; path account name identifies the subject.
24161
+ - name: host
24162
+ in: query
24163
+ required: false
24164
+ schema:
24165
+ type: string
24166
+ description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
24167
+ - name: subjectQualifiers
24168
+ in: query
24169
+ schema:
24170
+ type: string
24171
+ description: JSON identity qualifiers; MySQL host defaults to %.
24172
+ responses:
24173
+ '200':
24174
+ description: Server-generated steps with connection database, in execution order
24175
+ content:
24176
+ application/json:
24177
+ schema:
24178
+ type: array
24179
+ items:
24180
+ $ref: '#/components/schemas/ObjectPrivilegeResetStep'
24181
+ '400':
24182
+ $ref: '#/components/responses/400'
24183
+ '401':
24184
+ $ref: '#/components/responses/401'
24185
+ '403':
24186
+ $ref: '#/components/responses/403'
24187
+ '404':
24188
+ $ref: '#/components/responses/404'
24189
+ '500':
24190
+ $ref: '#/components/responses/500'
24191
+ delete:
24192
+ tags:
24193
+ - account
24194
+ - rdbms
24195
+ - shared
24196
+ summary: Clear all MySQL account privileges
24197
+ operationId: resetAccountPrivileges
24198
+ description: 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.
24199
+ parameters:
24200
+ - name: engineName
24201
+ in: path
24202
+ required: true
24203
+ schema:
24204
+ type: string
24205
+ - name: orgName
24206
+ in: path
24207
+ required: true
24208
+ schema:
24209
+ type: string
24210
+ - name: clusterName
24211
+ in: path
24212
+ required: true
24213
+ schema:
24214
+ type: string
24215
+ - name: accountName
24216
+ in: path
24217
+ required: true
24218
+ schema:
24219
+ type: string
24220
+ - name: subjectType
24221
+ in: query
24222
+ required: false
24223
+ schema:
24224
+ $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
24225
+ description: Native subject kind; path account name identifies the subject.
24226
+ - name: host
24227
+ in: query
24228
+ required: false
24229
+ schema:
24230
+ type: string
24231
+ description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
24232
+ - name: subjectQualifiers
24233
+ in: query
24234
+ schema:
24235
+ type: string
24236
+ description: JSON identity qualifiers; MySQL host defaults to %.
24237
+ responses:
24238
+ '204':
24239
+ description: Privileges cleared; account and password preserved
24240
+ '400':
24241
+ $ref: '#/components/responses/400'
24242
+ '401':
24243
+ $ref: '#/components/responses/401'
24244
+ '403':
24245
+ $ref: '#/components/responses/403'
24246
+ '404':
24247
+ $ref: '#/components/responses/404'
24248
+ '500':
24249
+ $ref: '#/components/responses/500'
24125
24250
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns:
24126
24251
  get:
24127
24252
  tags:
@@ -47201,6 +47326,20 @@ components:
47201
47326
  type: array
47202
47327
  items:
47203
47328
  $ref: '#/components/schemas/ObjectPrivilegeQualifier'
47329
+ ObjectPrivilegeResetStep:
47330
+ type: object
47331
+ description: One ordered, engine-generated step of an account privilege reset.
47332
+ required:
47333
+ - sql
47334
+ properties:
47335
+ databaseName:
47336
+ type: string
47337
+ description: Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
47338
+ sql:
47339
+ type: string
47340
+ x-nullable: false
47341
+ minLength: 1
47342
+ description: Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
47204
47343
  ObjectPrivilegeObject:
47205
47344
  type: object
47206
47345
  required:
@@ -764,6 +764,7 @@ models/object-privilege-object.ts
764
764
  models/object-privilege-prerequisite-check.ts
765
765
  models/object-privilege-prerequisite-status.ts
766
766
  models/object-privilege-qualifier.ts
767
+ models/object-privilege-reset-step.ts
767
768
  models/object-privilege-snapshot.ts
768
769
  models/object-privilege-spec.ts
769
770
  models/object-privilege-subject-type.ts