@nexgencloud/hyperstack-sdk-typescript 1.55.7-alpha → 1.56.0-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/README.md +2 -2
- package/api.ts +408 -34
- package/dist/api.d.ts +279 -35
- package/dist/api.js +274 -33
- package/dist/esm/api.d.ts +279 -35
- package/dist/esm/api.js +269 -32
- package/dist/esm/hyperstackHeaders.js +1 -1
- package/dist/hyperstackHeaders.js +1 -1
- package/hyperstackHeaders.ts +1 -1
- package/package.json +1 -1
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
|
|
@@ -414,7 +488,7 @@ export class AccessKeysApi extends BaseAPI {
|
|
|
414
488
|
export const AliveApiAxiosParamCreator = function (configuration) {
|
|
415
489
|
return {
|
|
416
490
|
/**
|
|
417
|
-
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](
|
|
491
|
+
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/alive/).
|
|
418
492
|
* @summary GET: Alive
|
|
419
493
|
* @param {*} [options] Override http request option.
|
|
420
494
|
* @throws {RequiredError}
|
|
@@ -476,7 +550,7 @@ export const AliveApiFp = function (configuration) {
|
|
|
476
550
|
const localVarAxiosParamCreator = AliveApiAxiosParamCreator(configuration);
|
|
477
551
|
return {
|
|
478
552
|
/**
|
|
479
|
-
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](
|
|
553
|
+
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/alive/).
|
|
480
554
|
* @summary GET: Alive
|
|
481
555
|
* @param {*} [options] Override http request option.
|
|
482
556
|
* @throws {RequiredError}
|
|
@@ -514,7 +588,7 @@ export const AliveApiFactory = function (configuration, basePath, axios) {
|
|
|
514
588
|
const localVarFp = AliveApiFp(configuration);
|
|
515
589
|
return {
|
|
516
590
|
/**
|
|
517
|
-
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](
|
|
591
|
+
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/alive/).
|
|
518
592
|
* @summary GET: Alive
|
|
519
593
|
* @param {*} [options] Override http request option.
|
|
520
594
|
* @throws {RequiredError}
|
|
@@ -540,7 +614,7 @@ export const AliveApiFactory = function (configuration, basePath, axios) {
|
|
|
540
614
|
*/
|
|
541
615
|
export class AliveApi extends BaseAPI {
|
|
542
616
|
/**
|
|
543
|
-
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](
|
|
617
|
+
* Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/alive/).
|
|
544
618
|
* @summary GET: Alive
|
|
545
619
|
* @param {*} [options] Override http request option.
|
|
546
620
|
* @throws {RequiredError}
|
|
@@ -1419,7 +1493,7 @@ export const AutoTopupApiAxiosParamCreator = function (configuration) {
|
|
|
1419
1493
|
};
|
|
1420
1494
|
}),
|
|
1421
1495
|
/**
|
|
1422
|
-
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](
|
|
1496
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/).
|
|
1423
1497
|
* @summary Get auto top-up status and configuration
|
|
1424
1498
|
* @param {*} [options] Override http request option.
|
|
1425
1499
|
* @throws {RequiredError}
|
|
@@ -1533,7 +1607,7 @@ export const AutoTopupApiFp = function (configuration) {
|
|
|
1533
1607
|
});
|
|
1534
1608
|
},
|
|
1535
1609
|
/**
|
|
1536
|
-
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](
|
|
1610
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/).
|
|
1537
1611
|
* @summary Get auto top-up status and configuration
|
|
1538
1612
|
* @param {*} [options] Override http request option.
|
|
1539
1613
|
* @throws {RequiredError}
|
|
@@ -1601,7 +1675,7 @@ export const AutoTopupApiFactory = function (configuration, basePath, axios) {
|
|
|
1601
1675
|
return localVarFp.getAutoTopUp(options).then((request) => request(axios, basePath));
|
|
1602
1676
|
},
|
|
1603
1677
|
/**
|
|
1604
|
-
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](
|
|
1678
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/).
|
|
1605
1679
|
* @summary Get auto top-up status and configuration
|
|
1606
1680
|
* @param {*} [options] Override http request option.
|
|
1607
1681
|
* @throws {RequiredError}
|
|
@@ -1660,7 +1734,7 @@ export class AutoTopupApi extends BaseAPI {
|
|
|
1660
1734
|
return AutoTopupApiFp(this.configuration).getAutoTopUp(options).then((request) => request(this.axios, this.basePath));
|
|
1661
1735
|
}
|
|
1662
1736
|
/**
|
|
1663
|
-
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](
|
|
1737
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/).
|
|
1664
1738
|
* @summary Get auto top-up status and configuration
|
|
1665
1739
|
* @param {*} [options] Override http request option.
|
|
1666
1740
|
* @throws {RequiredError}
|
|
@@ -2410,7 +2484,7 @@ export const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
2410
2484
|
};
|
|
2411
2485
|
}),
|
|
2412
2486
|
/**
|
|
2413
|
-
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](
|
|
2487
|
+
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/last-day-usage/)
|
|
2414
2488
|
* @summary GET: Last Day Cost
|
|
2415
2489
|
* @param {*} [options] Override http request option.
|
|
2416
2490
|
* @throws {RequiredError}
|
|
@@ -2791,7 +2865,7 @@ export const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
2791
2865
|
};
|
|
2792
2866
|
}),
|
|
2793
2867
|
/**
|
|
2794
|
-
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](
|
|
2868
|
+
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://docs.hyperstack.cloud/docs/billing/pricebook/)
|
|
2795
2869
|
* @summary GET: Billing usage
|
|
2796
2870
|
* @param {string} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
2797
2871
|
* @param {string} [environment] Filter resources by environment ID or Name
|
|
@@ -3754,7 +3828,7 @@ export const BillingApiFp = function (configuration) {
|
|
|
3754
3828
|
});
|
|
3755
3829
|
},
|
|
3756
3830
|
/**
|
|
3757
|
-
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](
|
|
3831
|
+
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/last-day-usage/)
|
|
3758
3832
|
* @summary GET: Last Day Cost
|
|
3759
3833
|
* @param {*} [options] Override http request option.
|
|
3760
3834
|
* @throws {RequiredError}
|
|
@@ -3930,7 +4004,7 @@ export const BillingApiFp = function (configuration) {
|
|
|
3930
4004
|
});
|
|
3931
4005
|
},
|
|
3932
4006
|
/**
|
|
3933
|
-
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](
|
|
4007
|
+
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://docs.hyperstack.cloud/docs/billing/pricebook/)
|
|
3934
4008
|
* @summary GET: Billing usage
|
|
3935
4009
|
* @param {string} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
3936
4010
|
* @param {string} [environment] Filter resources by environment ID or Name
|
|
@@ -4419,7 +4493,7 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
4419
4493
|
return localVarFp.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
4420
4494
|
},
|
|
4421
4495
|
/**
|
|
4422
|
-
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](
|
|
4496
|
+
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/last-day-usage/)
|
|
4423
4497
|
* @summary GET: Last Day Cost
|
|
4424
4498
|
* @param {*} [options] Override http request option.
|
|
4425
4499
|
* @throws {RequiredError}
|
|
@@ -4535,7 +4609,7 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
4535
4609
|
return localVarFp.getSnapshotBillingHistoryGraph(snapshotId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
4536
4610
|
},
|
|
4537
4611
|
/**
|
|
4538
|
-
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](
|
|
4612
|
+
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://docs.hyperstack.cloud/docs/billing/pricebook/)
|
|
4539
4613
|
* @summary GET: Billing usage
|
|
4540
4614
|
* @param {string} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
4541
4615
|
* @param {string} [environment] Filter resources by environment ID or Name
|
|
@@ -4928,7 +5002,7 @@ export class BillingApi extends BaseAPI {
|
|
|
4928
5002
|
return BillingApiFp(this.configuration).getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
4929
5003
|
}
|
|
4930
5004
|
/**
|
|
4931
|
-
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](
|
|
5005
|
+
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/last-day-usage/)
|
|
4932
5006
|
* @summary GET: Last Day Cost
|
|
4933
5007
|
* @param {*} [options] Override http request option.
|
|
4934
5008
|
* @throws {RequiredError}
|
|
@@ -5054,7 +5128,7 @@ export class BillingApi extends BaseAPI {
|
|
|
5054
5128
|
return BillingApiFp(this.configuration).getSnapshotBillingHistoryGraph(snapshotId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
5055
5129
|
}
|
|
5056
5130
|
/**
|
|
5057
|
-
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](
|
|
5131
|
+
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://docs.hyperstack.cloud/docs/billing/pricebook/)
|
|
5058
5132
|
* @summary GET: Billing usage
|
|
5059
5133
|
* @param {string} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
5060
5134
|
* @param {string} [environment] Filter resources by environment ID or Name
|
|
@@ -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
|
|
@@ -7509,7 +7651,7 @@ export class ClustersApi extends BaseAPI {
|
|
|
7509
7651
|
export const CreditApiAxiosParamCreator = function (configuration) {
|
|
7510
7652
|
return {
|
|
7511
7653
|
/**
|
|
7512
|
-
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](
|
|
7654
|
+
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-credit-balance/).
|
|
7513
7655
|
* @summary GET: View credit and threshold
|
|
7514
7656
|
* @param {*} [options] Override http request option.
|
|
7515
7657
|
* @throws {RequiredError}
|
|
@@ -7545,7 +7687,7 @@ export const CreditApiFp = function (configuration) {
|
|
|
7545
7687
|
const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration);
|
|
7546
7688
|
return {
|
|
7547
7689
|
/**
|
|
7548
|
-
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](
|
|
7690
|
+
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-credit-balance/).
|
|
7549
7691
|
* @summary GET: View credit and threshold
|
|
7550
7692
|
* @param {*} [options] Override http request option.
|
|
7551
7693
|
* @throws {RequiredError}
|
|
@@ -7569,7 +7711,7 @@ export const CreditApiFactory = function (configuration, basePath, axios) {
|
|
|
7569
7711
|
const localVarFp = CreditApiFp(configuration);
|
|
7570
7712
|
return {
|
|
7571
7713
|
/**
|
|
7572
|
-
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](
|
|
7714
|
+
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-credit-balance/).
|
|
7573
7715
|
* @summary GET: View credit and threshold
|
|
7574
7716
|
* @param {*} [options] Override http request option.
|
|
7575
7717
|
* @throws {RequiredError}
|
|
@@ -7587,7 +7729,7 @@ export const CreditApiFactory = function (configuration, basePath, axios) {
|
|
|
7587
7729
|
*/
|
|
7588
7730
|
export class CreditApi extends BaseAPI {
|
|
7589
7731
|
/**
|
|
7590
|
-
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](
|
|
7732
|
+
* Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-credit-balance/).
|
|
7591
7733
|
* @summary GET: View credit and threshold
|
|
7592
7734
|
* @param {*} [options] Override http request option.
|
|
7593
7735
|
* @throws {RequiredError}
|
|
@@ -11303,7 +11445,7 @@ export class PartnerConfigApi extends BaseAPI {
|
|
|
11303
11445
|
export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
11304
11446
|
return {
|
|
11305
11447
|
/**
|
|
11306
|
-
* Retrieve the
|
|
11448
|
+
* Retrieve the URL of the Stripe-hosted invoice page for a specific payment. The hosted URL is refreshed by Stripe on every retrieval, so it never expires.
|
|
11307
11449
|
* @summary Retrieve Payment Receipt
|
|
11308
11450
|
* @param {string} paymentId
|
|
11309
11451
|
* @param {*} [options] Override http request option.
|
|
@@ -11334,7 +11476,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
11334
11476
|
};
|
|
11335
11477
|
}),
|
|
11336
11478
|
/**
|
|
11337
|
-
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](
|
|
11479
|
+
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/create-payment).
|
|
11338
11480
|
* @summary POST: Initiate payment
|
|
11339
11481
|
* @param {PaymentInitiatePayload} payload
|
|
11340
11482
|
* @param {*} [options] Override http request option.
|
|
@@ -11366,7 +11508,7 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
11366
11508
|
};
|
|
11367
11509
|
}),
|
|
11368
11510
|
/**
|
|
11369
|
-
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](
|
|
11511
|
+
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
11370
11512
|
* @summary GET: View payment details
|
|
11371
11513
|
* @param {*} [options] Override http request option.
|
|
11372
11514
|
* @throws {RequiredError}
|
|
@@ -11402,7 +11544,7 @@ export const PaymentApiFp = function (configuration) {
|
|
|
11402
11544
|
const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration);
|
|
11403
11545
|
return {
|
|
11404
11546
|
/**
|
|
11405
|
-
* Retrieve the
|
|
11547
|
+
* Retrieve the URL of the Stripe-hosted invoice page for a specific payment. The hosted URL is refreshed by Stripe on every retrieval, so it never expires.
|
|
11406
11548
|
* @summary Retrieve Payment Receipt
|
|
11407
11549
|
* @param {string} paymentId
|
|
11408
11550
|
* @param {*} [options] Override http request option.
|
|
@@ -11418,7 +11560,7 @@ export const PaymentApiFp = function (configuration) {
|
|
|
11418
11560
|
});
|
|
11419
11561
|
},
|
|
11420
11562
|
/**
|
|
11421
|
-
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](
|
|
11563
|
+
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/create-payment).
|
|
11422
11564
|
* @summary POST: Initiate payment
|
|
11423
11565
|
* @param {PaymentInitiatePayload} payload
|
|
11424
11566
|
* @param {*} [options] Override http request option.
|
|
@@ -11434,7 +11576,7 @@ export const PaymentApiFp = function (configuration) {
|
|
|
11434
11576
|
});
|
|
11435
11577
|
},
|
|
11436
11578
|
/**
|
|
11437
|
-
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](
|
|
11579
|
+
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
11438
11580
|
* @summary GET: View payment details
|
|
11439
11581
|
* @param {*} [options] Override http request option.
|
|
11440
11582
|
* @throws {RequiredError}
|
|
@@ -11458,7 +11600,7 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
11458
11600
|
const localVarFp = PaymentApiFp(configuration);
|
|
11459
11601
|
return {
|
|
11460
11602
|
/**
|
|
11461
|
-
* Retrieve the
|
|
11603
|
+
* Retrieve the URL of the Stripe-hosted invoice page for a specific payment. The hosted URL is refreshed by Stripe on every retrieval, so it never expires.
|
|
11462
11604
|
* @summary Retrieve Payment Receipt
|
|
11463
11605
|
* @param {string} paymentId
|
|
11464
11606
|
* @param {*} [options] Override http request option.
|
|
@@ -11468,7 +11610,7 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
11468
11610
|
return localVarFp.getPaymentReceipt(paymentId, options).then((request) => request(axios, basePath));
|
|
11469
11611
|
},
|
|
11470
11612
|
/**
|
|
11471
|
-
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](
|
|
11613
|
+
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/create-payment).
|
|
11472
11614
|
* @summary POST: Initiate payment
|
|
11473
11615
|
* @param {PaymentInitiatePayload} payload
|
|
11474
11616
|
* @param {*} [options] Override http request option.
|
|
@@ -11478,7 +11620,7 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
11478
11620
|
return localVarFp.initiatePayment(payload, options).then((request) => request(axios, basePath));
|
|
11479
11621
|
},
|
|
11480
11622
|
/**
|
|
11481
|
-
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](
|
|
11623
|
+
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
11482
11624
|
* @summary GET: View payment details
|
|
11483
11625
|
* @param {*} [options] Override http request option.
|
|
11484
11626
|
* @throws {RequiredError}
|
|
@@ -11496,7 +11638,7 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
11496
11638
|
*/
|
|
11497
11639
|
export class PaymentApi extends BaseAPI {
|
|
11498
11640
|
/**
|
|
11499
|
-
* Retrieve the
|
|
11641
|
+
* Retrieve the URL of the Stripe-hosted invoice page for a specific payment. The hosted URL is refreshed by Stripe on every retrieval, so it never expires.
|
|
11500
11642
|
* @summary Retrieve Payment Receipt
|
|
11501
11643
|
* @param {string} paymentId
|
|
11502
11644
|
* @param {*} [options] Override http request option.
|
|
@@ -11507,7 +11649,7 @@ export class PaymentApi extends BaseAPI {
|
|
|
11507
11649
|
return PaymentApiFp(this.configuration).getPaymentReceipt(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
11508
11650
|
}
|
|
11509
11651
|
/**
|
|
11510
|
-
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](
|
|
11652
|
+
* Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/create-payment).
|
|
11511
11653
|
* @summary POST: Initiate payment
|
|
11512
11654
|
* @param {PaymentInitiatePayload} payload
|
|
11513
11655
|
* @param {*} [options] Override http request option.
|
|
@@ -11518,7 +11660,7 @@ export class PaymentApi extends BaseAPI {
|
|
|
11518
11660
|
return PaymentApiFp(this.configuration).initiatePayment(payload, options).then((request) => request(this.axios, this.basePath));
|
|
11519
11661
|
}
|
|
11520
11662
|
/**
|
|
11521
|
-
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](
|
|
11663
|
+
* Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](https://docs.hyperstack.cloud/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
11522
11664
|
* @summary GET: View payment details
|
|
11523
11665
|
* @param {*} [options] Override http request option.
|
|
11524
11666
|
* @throws {RequiredError}
|
|
@@ -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.
|
|
10
|
+
const SDK_VERSION = 'v1.56.0-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.
|
|
13
|
+
const SDK_VERSION = 'v1.56.0-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()];
|
package/hyperstackHeaders.ts
CHANGED
|
@@ -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.
|
|
16
|
+
const SDK_VERSION: string = 'v1.56.0-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.
|
|
3
|
+
"version": "v1.56.0-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": {
|