@nexgencloud/hyperstack-sdk-typescript 1.55.10-alpha → 1.56.1-alpha

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.
package/dist/esm/api.d.ts CHANGED
@@ -1108,6 +1108,12 @@ export interface ClusterFields {
1108
1108
  * @memberof ClusterFields
1109
1109
  */
1110
1110
  'environment_name'?: string;
1111
+ /**
1112
+ *
1113
+ * @type {boolean}
1114
+ * @memberof ClusterFields
1115
+ */
1116
+ 'has_persistent_storage'?: boolean;
1111
1117
  /**
1112
1118
  *
1113
1119
  * @type {number}
@@ -1624,6 +1630,56 @@ export interface ClusterResponse {
1624
1630
  */
1625
1631
  'status'?: boolean;
1626
1632
  }
1633
+ /**
1634
+ *
1635
+ * @export
1636
+ * @interface ClusterRestoreFailedNode
1637
+ */
1638
+ export interface ClusterRestoreFailedNode {
1639
+ /**
1640
+ *
1641
+ * @type {string}
1642
+ * @memberof ClusterRestoreFailedNode
1643
+ */
1644
+ 'error'?: string;
1645
+ /**
1646
+ *
1647
+ * @type {number}
1648
+ * @memberof ClusterRestoreFailedNode
1649
+ */
1650
+ 'id'?: number;
1651
+ }
1652
+ /**
1653
+ *
1654
+ * @export
1655
+ * @interface ClusterRestoreResponse
1656
+ */
1657
+ export interface ClusterRestoreResponse {
1658
+ /**
1659
+ *
1660
+ * @type {Array<ClusterRestoreFailedNode>}
1661
+ * @memberof ClusterRestoreResponse
1662
+ */
1663
+ 'failed_nodes'?: Array<ClusterRestoreFailedNode>;
1664
+ /**
1665
+ *
1666
+ * @type {string}
1667
+ * @memberof ClusterRestoreResponse
1668
+ */
1669
+ 'message'?: string;
1670
+ /**
1671
+ *
1672
+ * @type {Array<number>}
1673
+ * @memberof ClusterRestoreResponse
1674
+ */
1675
+ 'restoring_nodes'?: Array<number>;
1676
+ /**
1677
+ *
1678
+ * @type {boolean}
1679
+ * @memberof ClusterRestoreResponse
1680
+ */
1681
+ 'status'?: boolean;
1682
+ }
1627
1683
  /**
1628
1684
  *
1629
1685
  * @export
@@ -6029,6 +6085,19 @@ export interface ObjectStorageAccessKeyResponse {
6029
6085
  */
6030
6086
  'user_id': number;
6031
6087
  }
6088
+ /**
6089
+ *
6090
+ * @export
6091
+ * @interface ObjectStorageAccessKeyUpdateRequest
6092
+ */
6093
+ export interface ObjectStorageAccessKeyUpdateRequest {
6094
+ /**
6095
+ *
6096
+ * @type {string}
6097
+ * @memberof ObjectStorageAccessKeyUpdateRequest
6098
+ */
6099
+ 'description': string;
6100
+ }
6032
6101
  /**
6033
6102
  *
6034
6103
  * @export
@@ -10617,6 +10686,31 @@ export interface WorkloadBillingHistoryResponse {
10617
10686
  */
10618
10687
  'success'?: boolean;
10619
10688
  }
10689
+ /**
10690
+ *
10691
+ * @export
10692
+ * @interface ZendeskMessagingToken
10693
+ */
10694
+ export interface ZendeskMessagingToken {
10695
+ /**
10696
+ *
10697
+ * @type {string}
10698
+ * @memberof ZendeskMessagingToken
10699
+ */
10700
+ 'message'?: string;
10701
+ /**
10702
+ *
10703
+ * @type {boolean}
10704
+ * @memberof ZendeskMessagingToken
10705
+ */
10706
+ 'status'?: boolean;
10707
+ /**
10708
+ * Signed HS256 JWT to pass to the Zendesk Web Widget loginUser API
10709
+ * @type {string}
10710
+ * @memberof ZendeskMessagingToken
10711
+ */
10712
+ 'token'?: string;
10713
+ }
10620
10714
  /**
10621
10715
  * AccessKeysApi - axios parameter creator
10622
10716
  * @export
@@ -10648,6 +10742,15 @@ export declare const AccessKeysApiAxiosParamCreator: (configuration?: Configurat
10648
10742
  * @throws {RequiredError}
10649
10743
  */
10650
10744
  listAccessKeysEndpoint: (search?: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10745
+ /**
10746
+ *
10747
+ * @summary Rename an existing access key
10748
+ * @param {string} accessKeyId
10749
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
10750
+ * @param {*} [options] Override http request option.
10751
+ * @throws {RequiredError}
10752
+ */
10753
+ updateAccessKeyEndpoint: (accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10651
10754
  };
10652
10755
  /**
10653
10756
  * AccessKeysApi - functional programming interface
@@ -10680,6 +10783,15 @@ export declare const AccessKeysApiFp: (configuration?: Configuration) => {
10680
10783
  * @throws {RequiredError}
10681
10784
  */
10682
10785
  listAccessKeysEndpoint(search?: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectStorageAccessKeyListResponse>>;
10786
+ /**
10787
+ *
10788
+ * @summary Rename an existing access key
10789
+ * @param {string} accessKeyId
10790
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
10791
+ * @param {*} [options] Override http request option.
10792
+ * @throws {RequiredError}
10793
+ */
10794
+ updateAccessKeyEndpoint(accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectStorageAccessKeyResponse>>;
10683
10795
  };
10684
10796
  /**
10685
10797
  * AccessKeysApi - factory interface
@@ -10712,6 +10824,15 @@ export declare const AccessKeysApiFactory: (configuration?: Configuration, baseP
10712
10824
  * @throws {RequiredError}
10713
10825
  */
10714
10826
  listAccessKeysEndpoint(search?: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): AxiosPromise<ObjectStorageAccessKeyListResponse>;
10827
+ /**
10828
+ *
10829
+ * @summary Rename an existing access key
10830
+ * @param {string} accessKeyId
10831
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
10832
+ * @param {*} [options] Override http request option.
10833
+ * @throws {RequiredError}
10834
+ */
10835
+ updateAccessKeyEndpoint(accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectStorageAccessKeyResponse>;
10715
10836
  };
10716
10837
  /**
10717
10838
  * AccessKeysApi - object-oriented interface
@@ -10749,6 +10870,16 @@ export declare class AccessKeysApi extends BaseAPI {
10749
10870
  * @memberof AccessKeysApi
10750
10871
  */
10751
10872
  listAccessKeysEndpoint(search?: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ObjectStorageAccessKeyListResponse, any, {}, any>>;
10873
+ /**
10874
+ *
10875
+ * @summary Rename an existing access key
10876
+ * @param {string} accessKeyId
10877
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
10878
+ * @param {*} [options] Override http request option.
10879
+ * @throws {RequiredError}
10880
+ * @memberof AccessKeysApi
10881
+ */
10882
+ updateAccessKeyEndpoint(accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ObjectStorageAccessKeyResponse, any, {}, any>>;
10752
10883
  }
10753
10884
  /**
10754
10885
  * AliveApi - axios parameter creator
@@ -13860,6 +13991,14 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
13860
13991
  * @throws {RequiredError}
13861
13992
  */
13862
13993
  reconcileCluster: (clusterId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13994
+ /**
13995
+ *
13996
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
13997
+ * @param {number} clusterId
13998
+ * @param {*} [options] Override http request option.
13999
+ * @throws {RequiredError}
14000
+ */
14001
+ restoreAHibernatedCluster: (clusterId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13863
14002
  /**
13864
14003
  *
13865
14004
  * @summary Update a node group in a cluster
@@ -14012,6 +14151,14 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
14012
14151
  * @throws {RequiredError}
14013
14152
  */
14014
14153
  reconcileCluster(clusterId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManualReconciliationModel>>;
14154
+ /**
14155
+ *
14156
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
14157
+ * @param {number} clusterId
14158
+ * @param {*} [options] Override http request option.
14159
+ * @throws {RequiredError}
14160
+ */
14161
+ restoreAHibernatedCluster(clusterId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRestoreResponse>>;
14015
14162
  /**
14016
14163
  *
14017
14164
  * @summary Update a node group in a cluster
@@ -14164,6 +14311,14 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
14164
14311
  * @throws {RequiredError}
14165
14312
  */
14166
14313
  reconcileCluster(clusterId: number, options?: RawAxiosRequestConfig): AxiosPromise<ManualReconciliationModel>;
14314
+ /**
14315
+ *
14316
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
14317
+ * @param {number} clusterId
14318
+ * @param {*} [options] Override http request option.
14319
+ * @throws {RequiredError}
14320
+ */
14321
+ restoreAHibernatedCluster(clusterId: number, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRestoreResponse>;
14167
14322
  /**
14168
14323
  *
14169
14324
  * @summary Update a node group in a cluster
@@ -14334,6 +14489,15 @@ export declare class ClustersApi extends BaseAPI {
14334
14489
  * @memberof ClustersApi
14335
14490
  */
14336
14491
  reconcileCluster(clusterId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ManualReconciliationModel, any, {}, any>>;
14492
+ /**
14493
+ *
14494
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
14495
+ * @param {number} clusterId
14496
+ * @param {*} [options] Override http request option.
14497
+ * @throws {RequiredError}
14498
+ * @memberof ClustersApi
14499
+ */
14500
+ restoreAHibernatedCluster(clusterId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterRestoreResponse, any, {}, any>>;
14337
14501
  /**
14338
14502
  *
14339
14503
  * @summary Update a node group in a cluster
@@ -19470,3 +19634,58 @@ export declare class VouchersApi extends BaseAPI {
19470
19634
  */
19471
19635
  redeemAVoucher(payload: RedeemVoucherPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VoucherRedeemResponseSchema, any, {}, any>>;
19472
19636
  }
19637
+ /**
19638
+ * ZendeskApi - axios parameter creator
19639
+ * @export
19640
+ */
19641
+ export declare const ZendeskApiAxiosParamCreator: (configuration?: Configuration) => {
19642
+ /**
19643
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
19644
+ * @summary Retrieve a Zendesk messaging JWT for the current user
19645
+ * @param {*} [options] Override http request option.
19646
+ * @throws {RequiredError}
19647
+ */
19648
+ getZendeskMessagingToken: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19649
+ };
19650
+ /**
19651
+ * ZendeskApi - functional programming interface
19652
+ * @export
19653
+ */
19654
+ export declare const ZendeskApiFp: (configuration?: Configuration) => {
19655
+ /**
19656
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
19657
+ * @summary Retrieve a Zendesk messaging JWT for the current user
19658
+ * @param {*} [options] Override http request option.
19659
+ * @throws {RequiredError}
19660
+ */
19661
+ getZendeskMessagingToken(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ZendeskMessagingToken>>;
19662
+ };
19663
+ /**
19664
+ * ZendeskApi - factory interface
19665
+ * @export
19666
+ */
19667
+ export declare const ZendeskApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19668
+ /**
19669
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
19670
+ * @summary Retrieve a Zendesk messaging JWT for the current user
19671
+ * @param {*} [options] Override http request option.
19672
+ * @throws {RequiredError}
19673
+ */
19674
+ getZendeskMessagingToken(options?: RawAxiosRequestConfig): AxiosPromise<ZendeskMessagingToken>;
19675
+ };
19676
+ /**
19677
+ * ZendeskApi - object-oriented interface
19678
+ * @export
19679
+ * @class ZendeskApi
19680
+ * @extends {BaseAPI}
19681
+ */
19682
+ export declare class ZendeskApi extends BaseAPI {
19683
+ /**
19684
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
19685
+ * @summary Retrieve a Zendesk messaging JWT for the current user
19686
+ * @param {*} [options] Override http request option.
19687
+ * @throws {RequiredError}
19688
+ * @memberof ZendeskApi
19689
+ */
19690
+ getZendeskMessagingToken(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ZendeskMessagingToken, any, {}, any>>;
19691
+ }
package/dist/esm/api.js CHANGED
@@ -262,6 +262,40 @@ export const AccessKeysApiAxiosParamCreator = function (configuration) {
262
262
  options: localVarRequestOptions,
263
263
  };
264
264
  }),
265
+ /**
266
+ *
267
+ * @summary Rename an existing access key
268
+ * @param {string} accessKeyId
269
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ updateAccessKeyEndpoint: (accessKeyId_1, body_1, ...args_1) => __awaiter(this, [accessKeyId_1, body_1, ...args_1], void 0, function* (accessKeyId, body, options = {}) {
274
+ // verify required parameter 'accessKeyId' is not null or undefined
275
+ assertParamExists('updateAccessKeyEndpoint', 'accessKeyId', accessKeyId);
276
+ const localVarPath = `/object-storage/access-keys/{access_key_id}`
277
+ .replace(`{${"access_key_id"}}`, encodeURIComponent(String(accessKeyId)));
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
285
+ const localVarHeaderParameter = {};
286
+ const localVarQueryParameter = {};
287
+ // authentication apiKey required
288
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
289
+ localVarHeaderParameter['Content-Type'] = 'application/json';
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
293
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
294
+ return {
295
+ url: toPathString(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ };
298
+ }),
265
299
  };
266
300
  };
267
301
  /**
@@ -321,6 +355,23 @@ export const AccessKeysApiFp = function (configuration) {
321
355
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
322
356
  });
323
357
  },
358
+ /**
359
+ *
360
+ * @summary Rename an existing access key
361
+ * @param {string} accessKeyId
362
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ updateAccessKeyEndpoint(accessKeyId, body, options) {
367
+ return __awaiter(this, void 0, void 0, function* () {
368
+ var _a, _b, _c;
369
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAccessKeyEndpoint(accessKeyId, body, options);
370
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
371
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccessKeysApi.updateAccessKeyEndpoint']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
372
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
373
+ });
374
+ },
324
375
  };
325
376
  };
326
377
  /**
@@ -362,6 +413,17 @@ export const AccessKeysApiFactory = function (configuration, basePath, axios) {
362
413
  listAccessKeysEndpoint(search, page, pageSize, options) {
363
414
  return localVarFp.listAccessKeysEndpoint(search, page, pageSize, options).then((request) => request(axios, basePath));
364
415
  },
416
+ /**
417
+ *
418
+ * @summary Rename an existing access key
419
+ * @param {string} accessKeyId
420
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ updateAccessKeyEndpoint(accessKeyId, body, options) {
425
+ return localVarFp.updateAccessKeyEndpoint(accessKeyId, body, options).then((request) => request(axios, basePath));
426
+ },
365
427
  };
366
428
  };
367
429
  /**
@@ -406,6 +468,18 @@ export class AccessKeysApi extends BaseAPI {
406
468
  listAccessKeysEndpoint(search, page, pageSize, options) {
407
469
  return AccessKeysApiFp(this.configuration).listAccessKeysEndpoint(search, page, pageSize, options).then((request) => request(this.axios, this.basePath));
408
470
  }
471
+ /**
472
+ *
473
+ * @summary Rename an existing access key
474
+ * @param {string} accessKeyId
475
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ * @memberof AccessKeysApi
479
+ */
480
+ updateAccessKeyEndpoint(accessKeyId, body, options) {
481
+ return AccessKeysApiFp(this.configuration).updateAccessKeyEndpoint(accessKeyId, body, options).then((request) => request(this.axios, this.basePath));
482
+ }
409
483
  }
410
484
  /**
411
485
  * AliveApi - axios parameter creator
@@ -6775,6 +6849,37 @@ export const ClustersApiAxiosParamCreator = function (configuration) {
6775
6849
  options: localVarRequestOptions,
6776
6850
  };
6777
6851
  }),
6852
+ /**
6853
+ *
6854
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
6855
+ * @param {number} clusterId
6856
+ * @param {*} [options] Override http request option.
6857
+ * @throws {RequiredError}
6858
+ */
6859
+ restoreAHibernatedCluster: (clusterId_1, ...args_1) => __awaiter(this, [clusterId_1, ...args_1], void 0, function* (clusterId, options = {}) {
6860
+ // verify required parameter 'clusterId' is not null or undefined
6861
+ assertParamExists('restoreAHibernatedCluster', 'clusterId', clusterId);
6862
+ const localVarPath = `/core/clusters/{cluster_id}/restore`
6863
+ .replace(`{${"cluster_id"}}`, encodeURIComponent(String(clusterId)));
6864
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6865
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6866
+ let baseOptions;
6867
+ if (configuration) {
6868
+ baseOptions = configuration.baseOptions;
6869
+ }
6870
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6871
+ const localVarHeaderParameter = {};
6872
+ const localVarQueryParameter = {};
6873
+ // authentication apiKey required
6874
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
6875
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6877
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6878
+ return {
6879
+ url: toPathString(localVarUrlObj),
6880
+ options: localVarRequestOptions,
6881
+ };
6882
+ }),
6778
6883
  /**
6779
6884
  *
6780
6885
  * @summary Update a node group in a cluster
@@ -7088,6 +7193,22 @@ export const ClustersApiFp = function (configuration) {
7088
7193
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7089
7194
  });
7090
7195
  },
7196
+ /**
7197
+ *
7198
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
7199
+ * @param {number} clusterId
7200
+ * @param {*} [options] Override http request option.
7201
+ * @throws {RequiredError}
7202
+ */
7203
+ restoreAHibernatedCluster(clusterId, options) {
7204
+ return __awaiter(this, void 0, void 0, function* () {
7205
+ var _a, _b, _c;
7206
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreAHibernatedCluster(clusterId, options);
7207
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7208
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClustersApi.restoreAHibernatedCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7209
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7210
+ });
7211
+ },
7091
7212
  /**
7092
7213
  *
7093
7214
  * @summary Update a node group in a cluster
@@ -7283,6 +7404,16 @@ export const ClustersApiFactory = function (configuration, basePath, axios) {
7283
7404
  reconcileCluster(clusterId, options) {
7284
7405
  return localVarFp.reconcileCluster(clusterId, options).then((request) => request(axios, basePath));
7285
7406
  },
7407
+ /**
7408
+ *
7409
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
7410
+ * @param {number} clusterId
7411
+ * @param {*} [options] Override http request option.
7412
+ * @throws {RequiredError}
7413
+ */
7414
+ restoreAHibernatedCluster(clusterId, options) {
7415
+ return localVarFp.restoreAHibernatedCluster(clusterId, options).then((request) => request(axios, basePath));
7416
+ },
7286
7417
  /**
7287
7418
  *
7288
7419
  * @summary Update a node group in a cluster
@@ -7488,6 +7619,17 @@ export class ClustersApi extends BaseAPI {
7488
7619
  reconcileCluster(clusterId, options) {
7489
7620
  return ClustersApiFp(this.configuration).reconcileCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
7490
7621
  }
7622
+ /**
7623
+ *
7624
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
7625
+ * @param {number} clusterId
7626
+ * @param {*} [options] Override http request option.
7627
+ * @throws {RequiredError}
7628
+ * @memberof ClustersApi
7629
+ */
7630
+ restoreAHibernatedCluster(clusterId, options) {
7631
+ return ClustersApiFp(this.configuration).restoreAHibernatedCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
7632
+ }
7491
7633
  /**
7492
7634
  *
7493
7635
  * @summary Update a node group in a cluster
@@ -17273,3 +17415,98 @@ export class VouchersApi extends BaseAPI {
17273
17415
  return VouchersApiFp(this.configuration).redeemAVoucher(payload, options).then((request) => request(this.axios, this.basePath));
17274
17416
  }
17275
17417
  }
17418
+ /**
17419
+ * ZendeskApi - axios parameter creator
17420
+ * @export
17421
+ */
17422
+ export const ZendeskApiAxiosParamCreator = function (configuration) {
17423
+ return {
17424
+ /**
17425
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
17426
+ * @summary Retrieve a Zendesk messaging JWT for the current user
17427
+ * @param {*} [options] Override http request option.
17428
+ * @throws {RequiredError}
17429
+ */
17430
+ getZendeskMessagingToken: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
17431
+ const localVarPath = `/auth/zendesk/messaging-token`;
17432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17433
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17434
+ let baseOptions;
17435
+ if (configuration) {
17436
+ baseOptions = configuration.baseOptions;
17437
+ }
17438
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17439
+ const localVarHeaderParameter = {};
17440
+ const localVarQueryParameter = {};
17441
+ // authentication apiKey required
17442
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
17443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17446
+ return {
17447
+ url: toPathString(localVarUrlObj),
17448
+ options: localVarRequestOptions,
17449
+ };
17450
+ }),
17451
+ };
17452
+ };
17453
+ /**
17454
+ * ZendeskApi - functional programming interface
17455
+ * @export
17456
+ */
17457
+ export const ZendeskApiFp = function (configuration) {
17458
+ const localVarAxiosParamCreator = ZendeskApiAxiosParamCreator(configuration);
17459
+ return {
17460
+ /**
17461
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
17462
+ * @summary Retrieve a Zendesk messaging JWT for the current user
17463
+ * @param {*} [options] Override http request option.
17464
+ * @throws {RequiredError}
17465
+ */
17466
+ getZendeskMessagingToken(options) {
17467
+ return __awaiter(this, void 0, void 0, function* () {
17468
+ var _a, _b, _c;
17469
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getZendeskMessagingToken(options);
17470
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17471
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ZendeskApi.getZendeskMessagingToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17472
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17473
+ });
17474
+ },
17475
+ };
17476
+ };
17477
+ /**
17478
+ * ZendeskApi - factory interface
17479
+ * @export
17480
+ */
17481
+ export const ZendeskApiFactory = function (configuration, basePath, axios) {
17482
+ const localVarFp = ZendeskApiFp(configuration);
17483
+ return {
17484
+ /**
17485
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
17486
+ * @summary Retrieve a Zendesk messaging JWT for the current user
17487
+ * @param {*} [options] Override http request option.
17488
+ * @throws {RequiredError}
17489
+ */
17490
+ getZendeskMessagingToken(options) {
17491
+ return localVarFp.getZendeskMessagingToken(options).then((request) => request(axios, basePath));
17492
+ },
17493
+ };
17494
+ };
17495
+ /**
17496
+ * ZendeskApi - object-oriented interface
17497
+ * @export
17498
+ * @class ZendeskApi
17499
+ * @extends {BaseAPI}
17500
+ */
17501
+ export class ZendeskApi extends BaseAPI {
17502
+ /**
17503
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
17504
+ * @summary Retrieve a Zendesk messaging JWT for the current user
17505
+ * @param {*} [options] Override http request option.
17506
+ * @throws {RequiredError}
17507
+ * @memberof ZendeskApi
17508
+ */
17509
+ getZendeskMessagingToken(options) {
17510
+ return ZendeskApiFp(this.configuration).getZendeskMessagingToken(options).then((request) => request(this.axios, this.basePath));
17511
+ }
17512
+ }
@@ -7,7 +7,7 @@
7
7
  * the generated SDK by the `add-hyperstack-headers` task. Do not edit in the SDK repo.
8
8
  */
9
9
  const SDK_NAME = 'hyperstack-typescript-sdk';
10
- const SDK_VERSION = 'v1.55.10-alpha';
10
+ const SDK_VERSION = 'v1.56.1-alpha';
11
11
  export const HYPERSTACK_CLIENT_HEADER = 'Hyperstack-Client';
12
12
  export const USER_AGENT_HEADER = 'User-Agent';
13
13
  const FORCED = [HYPERSTACK_CLIENT_HEADER.toLowerCase(), USER_AGENT_HEADER.toLowerCase()];
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.applyHyperstackHeaders = exports.HYPERSTACK_USER_AGENT = exports.HYPERSTACK_CLIENT = exports.USER_AGENT_HEADER = exports.HYPERSTACK_CLIENT_HEADER = void 0;
12
12
  const SDK_NAME = 'hyperstack-typescript-sdk';
13
- const SDK_VERSION = 'v1.55.10-alpha';
13
+ const SDK_VERSION = 'v1.56.1-alpha';
14
14
  exports.HYPERSTACK_CLIENT_HEADER = 'Hyperstack-Client';
15
15
  exports.USER_AGENT_HEADER = 'User-Agent';
16
16
  const FORCED = [exports.HYPERSTACK_CLIENT_HEADER.toLowerCase(), exports.USER_AGENT_HEADER.toLowerCase()];
@@ -13,7 +13,7 @@
13
13
  declare const process: any;
14
14
 
15
15
  const SDK_NAME: string = 'hyperstack-typescript-sdk';
16
- const SDK_VERSION: string = 'v1.55.10-alpha';
16
+ const SDK_VERSION: string = 'v1.56.1-alpha';
17
17
 
18
18
  export const HYPERSTACK_CLIENT_HEADER: string = 'Hyperstack-Client';
19
19
  export const USER_AGENT_HEADER: string = 'User-Agent';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexgencloud/hyperstack-sdk-typescript",
3
- "version": "v1.55.10-alpha",
3
+ "version": "v1.56.1-alpha",
4
4
  "description": "Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {