kb-cloud-client-typescript 2.3.0-alpha.154 → 2.3.0-alpha.155

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 (59) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +73 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +80 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/inspection-api.d.ts +4 -5
  6. package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/inspection-api.js.map +1 -1
  8. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  9. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  10. package/dist/adminapi/apis/shared-api.js +80 -0
  11. package/dist/adminapi/apis/shared-api.js.map +1 -1
  12. package/dist/adminapi/models/cluster-mode-transition.d.ts +32 -0
  13. package/dist/adminapi/models/cluster-mode-transition.d.ts.map +1 -0
  14. package/dist/adminapi/models/cluster-mode-transition.js +16 -0
  15. package/dist/adminapi/models/cluster-mode-transition.js.map +1 -0
  16. package/dist/adminapi/models/index.d.ts +1 -0
  17. package/dist/adminapi/models/index.d.ts.map +1 -1
  18. package/dist/adminapi/models/index.js +1 -0
  19. package/dist/adminapi/models/index.js.map +1 -1
  20. package/dist/openapi/apis/llm-api.d.ts +0 -411
  21. package/dist/openapi/apis/llm-api.d.ts.map +1 -1
  22. package/dist/openapi/apis/llm-api.js +0 -471
  23. package/dist/openapi/apis/llm-api.js.map +1 -1
  24. package/dist/openapi/models/index.d.ts +0 -4
  25. package/dist/openapi/models/index.d.ts.map +1 -1
  26. package/dist/openapi/models/index.js +0 -4
  27. package/dist/openapi/models/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/adminapi/.openapi-generator/FILES +1 -0
  30. package/src/adminapi/apis/cluster-api.ts +130 -0
  31. package/src/adminapi/apis/inspection-api.ts +3 -5
  32. package/src/adminapi/apis/shared-api.ts +128 -0
  33. package/src/adminapi/models/cluster-mode-transition.ts +39 -0
  34. package/src/adminapi/models/index.ts +1 -0
  35. package/src/adminapi.yaml +136 -84
  36. package/src/openapi/.openapi-generator/FILES +0 -4
  37. package/src/openapi/apis/llm-api.ts +0 -714
  38. package/src/openapi/models/index.ts +0 -4
  39. package/src/openapi.yaml +0 -262
  40. package/dist/openapi/models/access-level.d.ts +0 -22
  41. package/dist/openapi/models/access-level.d.ts.map +0 -1
  42. package/dist/openapi/models/access-level.js +0 -26
  43. package/dist/openapi/models/access-level.js.map +0 -1
  44. package/dist/openapi/models/check-apikey.d.ts +0 -31
  45. package/dist/openapi/models/check-apikey.d.ts.map +0 -1
  46. package/dist/openapi/models/check-apikey.js +0 -16
  47. package/dist/openapi/models/check-apikey.js.map +0 -1
  48. package/dist/openapi/models/llm-list.d.ts +0 -26
  49. package/dist/openapi/models/llm-list.d.ts.map +0 -1
  50. package/dist/openapi/models/llm-list.js +0 -16
  51. package/dist/openapi/models/llm-list.js.map +0 -1
  52. package/dist/openapi/models/llm.d.ts +0 -64
  53. package/dist/openapi/models/llm.d.ts.map +0 -1
  54. package/dist/openapi/models/llm.js +0 -16
  55. package/dist/openapi/models/llm.js.map +0 -1
  56. package/src/openapi/models/access-level.ts +0 -31
  57. package/src/openapi/models/check-apikey.ts +0 -36
  58. package/src/openapi/models/llm-list.ts +0 -33
  59. package/src/openapi/models/llm.ts +0 -71
@@ -10148,6 +10148,49 @@ const SharedApiAxiosParamCreator = function (configuration) {
10148
10148
  options: localVarRequestOptions,
10149
10149
  };
10150
10150
  },
10151
+ /**
10152
+ * Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
10153
+ * @summary Transition cluster engine mode
10154
+ * @param {string} orgName name of the Org
10155
+ * @param {string} clusterName name of the KubeBlocks cluster
10156
+ * @param {ClusterModeTransition} body
10157
+ * @param {*} [options] Override http request option.
10158
+ * @throws {RequiredError}
10159
+ */
10160
+ transitionClusterMode: async (orgName, clusterName, body, options = {}) => {
10161
+ // verify required parameter 'orgName' is not null or undefined
10162
+ (0, common_1.assertParamExists)('transitionClusterMode', 'orgName', orgName);
10163
+ // verify required parameter 'clusterName' is not null or undefined
10164
+ (0, common_1.assertParamExists)('transitionClusterMode', 'clusterName', clusterName);
10165
+ // verify required parameter 'body' is not null or undefined
10166
+ (0, common_1.assertParamExists)('transitionClusterMode', 'body', body);
10167
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/modeTransition`
10168
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10169
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10171
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10172
+ let baseOptions;
10173
+ if (configuration) {
10174
+ baseOptions = configuration.baseOptions;
10175
+ }
10176
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10177
+ const localVarHeaderParameter = {};
10178
+ const localVarQueryParameter = {};
10179
+ // authentication BearerToken required
10180
+ // http bearer authentication required
10181
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10182
+ // authentication DigestAuth required
10183
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10184
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10187
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10188
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
10189
+ return {
10190
+ url: (0, common_1.toPathString)(localVarUrlObj),
10191
+ options: localVarRequestOptions,
10192
+ };
10193
+ },
10151
10194
  /**
10152
10195
  * unfreeze the member in org
10153
10196
  * @summary unfreeze the member in org
@@ -15032,6 +15075,22 @@ const SharedApiFp = function (configuration) {
15032
15075
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.tlsSwitcher']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15033
15076
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15034
15077
  },
15078
+ /**
15079
+ * Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
15080
+ * @summary Transition cluster engine mode
15081
+ * @param {string} orgName name of the Org
15082
+ * @param {string} clusterName name of the KubeBlocks cluster
15083
+ * @param {ClusterModeTransition} body
15084
+ * @param {*} [options] Override http request option.
15085
+ * @throws {RequiredError}
15086
+ */
15087
+ async transitionClusterMode(orgName, clusterName, body, options) {
15088
+ var _a, _b, _c;
15089
+ const localVarAxiosArgs = await localVarAxiosParamCreator.transitionClusterMode(orgName, clusterName, body, options);
15090
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15091
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.transitionClusterMode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15092
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15093
+ },
15035
15094
  /**
15036
15095
  * unfreeze the member in org
15037
15096
  * @summary unfreeze the member in org
@@ -17668,6 +17727,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
17668
17727
  tlsSwitcher(requestParameters, options) {
17669
17728
  return localVarFp.tlsSwitcher(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
17670
17729
  },
17730
+ /**
17731
+ * Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
17732
+ * @summary Transition cluster engine mode
17733
+ * @param {SharedApiTransitionClusterModeRequest} requestParameters Request parameters.
17734
+ * @param {*} [options] Override http request option.
17735
+ * @throws {RequiredError}
17736
+ */
17737
+ transitionClusterMode(requestParameters, options) {
17738
+ return localVarFp.transitionClusterMode(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
17739
+ },
17671
17740
  /**
17672
17741
  * unfreeze the member in org
17673
17742
  * @summary unfreeze the member in org
@@ -20352,6 +20421,17 @@ class SharedApi extends base_1.BaseAPI {
20352
20421
  tlsSwitcher(requestParameters, options) {
20353
20422
  return (0, exports.SharedApiFp)(this.configuration).tlsSwitcher(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
20354
20423
  }
20424
+ /**
20425
+ * Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
20426
+ * @summary Transition cluster engine mode
20427
+ * @param {SharedApiTransitionClusterModeRequest} requestParameters Request parameters.
20428
+ * @param {*} [options] Override http request option.
20429
+ * @throws {RequiredError}
20430
+ * @memberof SharedApi
20431
+ */
20432
+ transitionClusterMode(requestParameters, options) {
20433
+ return (0, exports.SharedApiFp)(this.configuration).transitionClusterMode(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
20434
+ }
20355
20435
  /**
20356
20436
  * unfreeze the member in org
20357
20437
  * @summary unfreeze the member in org