@nexgencloud/hyperstack-sdk-typescript 1.52.0-alpha → 1.52.3-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 +1069 -50
- package/dist/api.d.ts +670 -4
- package/dist/api.js +620 -5
- package/dist/esm/api.d.ts +670 -4
- package/dist/esm/api.js +611 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.VouchersApi = exports.VouchersApiFactory = exports.VouchersApiFp = exports.VouchersApiAxiosParamCreator = exports.VolumeAttachmentApi = exports.VolumeAttachmentApiFactory = exports.VolumeAttachmentApiFp = exports.VolumeAttachmentApiAxiosParamCreator = exports.VolumeApi = exports.VolumeApiFactory = exports.VolumeApiFp = exports.VolumeApiAxiosParamCreator = exports.VncUrlApi = exports.VncUrlApiFactory = exports.VncUrlApiFp = exports.VncUrlApiAxiosParamCreator = exports.VirtualMachineEventsApi = exports.VirtualMachineEventsApiFactory = exports.VirtualMachineEventsApiFp = exports.VirtualMachineEventsApiAxiosParamCreator = exports.GetVMMetricsDurationEnum = exports.VirtualMachineApi = exports.VirtualMachineApiFactory = exports.VirtualMachineApiFp = exports.VirtualMachineApiAxiosParamCreator = exports.UserPermissionApi = exports.UserPermissionApiFactory = exports.UserPermissionApiFp = exports.UserPermissionApiAxiosParamCreator = exports.UserDetailChoiceApi = exports.UserDetailChoiceApiFactory = exports.UserDetailChoiceApiFp = exports.UserDetailChoiceApiAxiosParamCreator = exports.UserConsentEventsApi = void 0;
|
|
25
|
+
exports.BucketsApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BetaAccessApi = exports.BetaAccessApiFactory = exports.BetaAccessApiFp = exports.BetaAccessApiAxiosParamCreator = exports.AutoTopupApi = exports.AutoTopupApiFactory = exports.AutoTopupApiFp = exports.AutoTopupApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AssigningMemberRoleApi = exports.AssigningMemberRoleApiFactory = exports.AssigningMemberRoleApiFp = exports.AssigningMemberRoleApiAxiosParamCreator = exports.ApiKeyApi = exports.ApiKeyApiFactory = exports.ApiKeyApiFp = exports.ApiKeyApiAxiosParamCreator = exports.AliveApi = exports.AliveApiFactory = exports.AliveApiFp = exports.AliveApiAxiosParamCreator = exports.AccessKeysApi = exports.AccessKeysApiFactory = exports.AccessKeysApiFp = exports.AccessKeysApiAxiosParamCreator = exports.UpdateConsentRequestConsentMethodEnum = exports.UpdateConsentRequestActionEnum = exports.RegionFieldsGreenStatusEnum = exports.RecordConsentRequestConsentTypeEnum = exports.RecordConsentRequestConsentMethodEnum = exports.RecordConsentRequestActionEnum = exports.ObjectStorageRegionsEnum = exports.KeypairEnvironmentFeaturesGreenStatusEnum = exports.EnvironmentFeaturesGreenStatusEnum = exports.CreateSecurityRulePayloadProtocolEnum = exports.CreateFirewallRulePayloadProtocolEnum = exports.CreateClusterPayloadDeploymentModeEnum = exports.CreateClusterNodeGroupPayloadRoleEnum = exports.CreateClusterNodeFieldsRoleEnum = exports.ConsentBlockTypeEnum = exports.BetaAccessStatusItemStatusEnum = exports.BetaAccessRequestFieldsStatusEnum = void 0;
|
|
26
|
+
exports.FirewallAttachmentApiFactory = exports.FirewallAttachmentApiFp = exports.FirewallAttachmentApiAxiosParamCreator = exports.FIPExclusionsApi = exports.FIPExclusionsApiFactory = exports.FIPExclusionsApiFp = exports.FIPExclusionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.CustomerContractApi = exports.CustomerContractApiFactory = exports.CustomerContractApiFp = exports.CustomerContractApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ComplianceApi = exports.ComplianceApiFactory = exports.ComplianceApiFp = exports.ComplianceApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.ClusterEventsApi = exports.ClusterEventsApiFactory = exports.ClusterEventsApiFp = exports.ClusterEventsApiAxiosParamCreator = exports.CallbacksApi = exports.CallbacksApiFactory = exports.CallbacksApiFp = exports.CallbacksApiAxiosParamCreator = exports.CalculateApi = exports.CalculateApiFactory = exports.CalculateApiFp = exports.CalculateApiAxiosParamCreator = exports.BucketsApi = exports.BucketsApiFactory = exports.BucketsApiFp = void 0;
|
|
27
|
+
exports.PolicyApiAxiosParamCreator = exports.PermissionApi = exports.PermissionApiFactory = exports.PermissionApiFp = exports.PermissionApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PartnerConfigApi = exports.PartnerConfigApiFactory = exports.PartnerConfigApiFp = exports.PartnerConfigApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.KeypairApi = exports.KeypairApiFactory = exports.KeypairApiFp = exports.KeypairApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.ImageApi = exports.ImageApiFactory = exports.ImageApiFp = exports.ImageApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GpuApi = exports.GpuApiFactory = exports.GpuApiFp = exports.GpuApiAxiosParamCreator = exports.FloatingIpApi = exports.FloatingIpApiFactory = exports.FloatingIpApiFp = exports.FloatingIpApiAxiosParamCreator = exports.FlavorApi = exports.FlavorApiFactory = exports.FlavorApiFp = exports.FlavorApiAxiosParamCreator = exports.FirewallsApi = exports.FirewallsApiFactory = exports.FirewallsApiFp = exports.FirewallsApiAxiosParamCreator = exports.FirewallAttachmentApi = void 0;
|
|
28
|
+
exports.UserConsentApiFactory = exports.UserConsentApiFp = exports.UserConsentApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.StockApi = exports.StockApiFactory = exports.StockApiFp = exports.StockApiAxiosParamCreator = exports.SnapshotsApi = exports.SnapshotsApiFactory = exports.SnapshotsApiFp = exports.SnapshotsApiAxiosParamCreator = exports.SnapshotEventsApi = exports.SnapshotEventsApiFactory = exports.SnapshotEventsApiFp = exports.SnapshotEventsApiAxiosParamCreator = exports.SecurityRulesApi = exports.SecurityRulesApiFactory = exports.SecurityRulesApiFp = exports.SecurityRulesApiAxiosParamCreator = exports.RegionsApi = exports.RegionsApiFactory = exports.RegionsApiFp = exports.RegionsApiAxiosParamCreator = exports.RegionApi = exports.RegionApiFactory = exports.RegionApiFp = exports.RegionApiAxiosParamCreator = exports.RbacRoleApi = exports.RbacRoleApiFactory = exports.RbacRoleApiFp = exports.RbacRoleApiAxiosParamCreator = exports.ProfileApi = exports.ProfileApiFactory = exports.ProfileApiFp = exports.ProfileApiAxiosParamCreator = exports.PricebookApi = exports.PricebookApiFactory = exports.PricebookApiFp = exports.PricebookApiAxiosParamCreator = exports.PolicyApi = exports.PolicyApiFactory = exports.PolicyApiFp = void 0;
|
|
29
|
+
exports.VouchersApi = exports.VouchersApiFactory = exports.VouchersApiFp = exports.VouchersApiAxiosParamCreator = exports.VolumeAttachmentApi = exports.VolumeAttachmentApiFactory = exports.VolumeAttachmentApiFp = exports.VolumeAttachmentApiAxiosParamCreator = exports.VolumeApi = exports.VolumeApiFactory = exports.VolumeApiFp = exports.VolumeApiAxiosParamCreator = exports.VncUrlApi = exports.VncUrlApiFactory = exports.VncUrlApiFp = exports.VncUrlApiAxiosParamCreator = exports.VirtualMachineEventsApi = exports.VirtualMachineEventsApiFactory = exports.VirtualMachineEventsApiFp = exports.VirtualMachineEventsApiAxiosParamCreator = exports.GetVMMetricsDurationEnum = exports.VirtualMachineApi = exports.VirtualMachineApiFactory = exports.VirtualMachineApiFp = exports.VirtualMachineApiAxiosParamCreator = exports.UserPermissionApi = exports.UserPermissionApiFactory = exports.UserPermissionApiFp = exports.UserPermissionApiAxiosParamCreator = exports.UserDetailChoiceApi = exports.UserDetailChoiceApiFactory = exports.UserDetailChoiceApiFp = exports.UserDetailChoiceApiAxiosParamCreator = exports.UserConsentEventsApi = exports.UserConsentEventsApiFactory = exports.UserConsentEventsApiFp = exports.UserConsentEventsApiAxiosParamCreator = exports.UserConsentApi = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -1410,6 +1410,365 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
1412
|
exports.AuthApi = AuthApi;
|
|
1413
|
+
/**
|
|
1414
|
+
* AutoTopupApi - axios parameter creator
|
|
1415
|
+
* @export
|
|
1416
|
+
*/
|
|
1417
|
+
const AutoTopupApiAxiosParamCreator = function (configuration) {
|
|
1418
|
+
return {
|
|
1419
|
+
/**
|
|
1420
|
+
*
|
|
1421
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
1422
|
+
* @param {CreateAutoTopupPayload} payload
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
createAutoTopUp: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
1427
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1428
|
+
(0, common_1.assertParamExists)('createAutoTopUp', 'payload', payload);
|
|
1429
|
+
const localVarPath = `/billing/auto-topup`;
|
|
1430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1431
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1432
|
+
let baseOptions;
|
|
1433
|
+
if (configuration) {
|
|
1434
|
+
baseOptions = configuration.baseOptions;
|
|
1435
|
+
}
|
|
1436
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1437
|
+
const localVarHeaderParameter = {};
|
|
1438
|
+
const localVarQueryParameter = {};
|
|
1439
|
+
// authentication apiKey required
|
|
1440
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
1441
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1445
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
1446
|
+
return {
|
|
1447
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1448
|
+
options: localVarRequestOptions,
|
|
1449
|
+
};
|
|
1450
|
+
}),
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
disableAutoTopUp: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1458
|
+
const localVarPath = `/billing/auto-topup`;
|
|
1459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1460
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1461
|
+
let baseOptions;
|
|
1462
|
+
if (configuration) {
|
|
1463
|
+
baseOptions = configuration.baseOptions;
|
|
1464
|
+
}
|
|
1465
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1466
|
+
const localVarHeaderParameter = {};
|
|
1467
|
+
const localVarQueryParameter = {};
|
|
1468
|
+
// authentication apiKey required
|
|
1469
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
1470
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1471
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1472
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1473
|
+
return {
|
|
1474
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1475
|
+
options: localVarRequestOptions,
|
|
1476
|
+
};
|
|
1477
|
+
}),
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
1481
|
+
* @param {*} [options] Override http request option.
|
|
1482
|
+
* @throws {RequiredError}
|
|
1483
|
+
*/
|
|
1484
|
+
getAutoTopUp: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1485
|
+
const localVarPath = `/billing/auto-topup`;
|
|
1486
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1487
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1488
|
+
let baseOptions;
|
|
1489
|
+
if (configuration) {
|
|
1490
|
+
baseOptions = configuration.baseOptions;
|
|
1491
|
+
}
|
|
1492
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1493
|
+
const localVarHeaderParameter = {};
|
|
1494
|
+
const localVarQueryParameter = {};
|
|
1495
|
+
// authentication apiKey required
|
|
1496
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
1497
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1499
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1500
|
+
return {
|
|
1501
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1502
|
+
options: localVarRequestOptions,
|
|
1503
|
+
};
|
|
1504
|
+
}),
|
|
1505
|
+
/**
|
|
1506
|
+
* 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**](None/docs/api-reference/billing-resources/).
|
|
1507
|
+
* @summary Get auto top-up status and configuration
|
|
1508
|
+
* @param {*} [options] Override http request option.
|
|
1509
|
+
* @throws {RequiredError}
|
|
1510
|
+
*/
|
|
1511
|
+
getAutoTopUpStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1512
|
+
const localVarPath = `/billing/auto-topup/status`;
|
|
1513
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1514
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1515
|
+
let baseOptions;
|
|
1516
|
+
if (configuration) {
|
|
1517
|
+
baseOptions = configuration.baseOptions;
|
|
1518
|
+
}
|
|
1519
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1520
|
+
const localVarHeaderParameter = {};
|
|
1521
|
+
const localVarQueryParameter = {};
|
|
1522
|
+
// authentication apiKey required
|
|
1523
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
1524
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1526
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1527
|
+
return {
|
|
1528
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1529
|
+
options: localVarRequestOptions,
|
|
1530
|
+
};
|
|
1531
|
+
}),
|
|
1532
|
+
/**
|
|
1533
|
+
*
|
|
1534
|
+
* @summary Update an existing active auto top up configuration
|
|
1535
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
1536
|
+
* @param {*} [options] Override http request option.
|
|
1537
|
+
* @throws {RequiredError}
|
|
1538
|
+
*/
|
|
1539
|
+
updateAutoTopUp: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
1540
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1541
|
+
(0, common_1.assertParamExists)('updateAutoTopUp', 'payload', payload);
|
|
1542
|
+
const localVarPath = `/billing/auto-topup`;
|
|
1543
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1544
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1545
|
+
let baseOptions;
|
|
1546
|
+
if (configuration) {
|
|
1547
|
+
baseOptions = configuration.baseOptions;
|
|
1548
|
+
}
|
|
1549
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1550
|
+
const localVarHeaderParameter = {};
|
|
1551
|
+
const localVarQueryParameter = {};
|
|
1552
|
+
// authentication apiKey required
|
|
1553
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
1554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1557
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1558
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
1559
|
+
return {
|
|
1560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1561
|
+
options: localVarRequestOptions,
|
|
1562
|
+
};
|
|
1563
|
+
}),
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1566
|
+
exports.AutoTopupApiAxiosParamCreator = AutoTopupApiAxiosParamCreator;
|
|
1567
|
+
/**
|
|
1568
|
+
* AutoTopupApi - functional programming interface
|
|
1569
|
+
* @export
|
|
1570
|
+
*/
|
|
1571
|
+
const AutoTopupApiFp = function (configuration) {
|
|
1572
|
+
const localVarAxiosParamCreator = (0, exports.AutoTopupApiAxiosParamCreator)(configuration);
|
|
1573
|
+
return {
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
1577
|
+
* @param {CreateAutoTopupPayload} payload
|
|
1578
|
+
* @param {*} [options] Override http request option.
|
|
1579
|
+
* @throws {RequiredError}
|
|
1580
|
+
*/
|
|
1581
|
+
createAutoTopUp(payload, options) {
|
|
1582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1583
|
+
var _a, _b, _c;
|
|
1584
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAutoTopUp(payload, options);
|
|
1585
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1586
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AutoTopupApi.createAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1587
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1588
|
+
});
|
|
1589
|
+
},
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
*/
|
|
1596
|
+
disableAutoTopUp(options) {
|
|
1597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1598
|
+
var _a, _b, _c;
|
|
1599
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoTopUp(options);
|
|
1600
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1601
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AutoTopupApi.disableAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1602
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1603
|
+
});
|
|
1604
|
+
},
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
*/
|
|
1611
|
+
getAutoTopUp(options) {
|
|
1612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1613
|
+
var _a, _b, _c;
|
|
1614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAutoTopUp(options);
|
|
1615
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1616
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AutoTopupApi.getAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1617
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1618
|
+
});
|
|
1619
|
+
},
|
|
1620
|
+
/**
|
|
1621
|
+
* 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**](None/docs/api-reference/billing-resources/).
|
|
1622
|
+
* @summary Get auto top-up status and configuration
|
|
1623
|
+
* @param {*} [options] Override http request option.
|
|
1624
|
+
* @throws {RequiredError}
|
|
1625
|
+
*/
|
|
1626
|
+
getAutoTopUpStatus(options) {
|
|
1627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1628
|
+
var _a, _b, _c;
|
|
1629
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAutoTopUpStatus(options);
|
|
1630
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1631
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AutoTopupApi.getAutoTopUpStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1632
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1633
|
+
});
|
|
1634
|
+
},
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @summary Update an existing active auto top up configuration
|
|
1638
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
1639
|
+
* @param {*} [options] Override http request option.
|
|
1640
|
+
* @throws {RequiredError}
|
|
1641
|
+
*/
|
|
1642
|
+
updateAutoTopUp(payload, options) {
|
|
1643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1644
|
+
var _a, _b, _c;
|
|
1645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAutoTopUp(payload, options);
|
|
1646
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1647
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AutoTopupApi.updateAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1648
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1649
|
+
});
|
|
1650
|
+
},
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
exports.AutoTopupApiFp = AutoTopupApiFp;
|
|
1654
|
+
/**
|
|
1655
|
+
* AutoTopupApi - factory interface
|
|
1656
|
+
* @export
|
|
1657
|
+
*/
|
|
1658
|
+
const AutoTopupApiFactory = function (configuration, basePath, axios) {
|
|
1659
|
+
const localVarFp = (0, exports.AutoTopupApiFp)(configuration);
|
|
1660
|
+
return {
|
|
1661
|
+
/**
|
|
1662
|
+
*
|
|
1663
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
1664
|
+
* @param {CreateAutoTopupPayload} payload
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
createAutoTopUp(payload, options) {
|
|
1669
|
+
return localVarFp.createAutoTopUp(payload, options).then((request) => request(axios, basePath));
|
|
1670
|
+
},
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
1674
|
+
* @param {*} [options] Override http request option.
|
|
1675
|
+
* @throws {RequiredError}
|
|
1676
|
+
*/
|
|
1677
|
+
disableAutoTopUp(options) {
|
|
1678
|
+
return localVarFp.disableAutoTopUp(options).then((request) => request(axios, basePath));
|
|
1679
|
+
},
|
|
1680
|
+
/**
|
|
1681
|
+
*
|
|
1682
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
1683
|
+
* @param {*} [options] Override http request option.
|
|
1684
|
+
* @throws {RequiredError}
|
|
1685
|
+
*/
|
|
1686
|
+
getAutoTopUp(options) {
|
|
1687
|
+
return localVarFp.getAutoTopUp(options).then((request) => request(axios, basePath));
|
|
1688
|
+
},
|
|
1689
|
+
/**
|
|
1690
|
+
* 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**](None/docs/api-reference/billing-resources/).
|
|
1691
|
+
* @summary Get auto top-up status and configuration
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
*/
|
|
1695
|
+
getAutoTopUpStatus(options) {
|
|
1696
|
+
return localVarFp.getAutoTopUpStatus(options).then((request) => request(axios, basePath));
|
|
1697
|
+
},
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @summary Update an existing active auto top up configuration
|
|
1701
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
1702
|
+
* @param {*} [options] Override http request option.
|
|
1703
|
+
* @throws {RequiredError}
|
|
1704
|
+
*/
|
|
1705
|
+
updateAutoTopUp(payload, options) {
|
|
1706
|
+
return localVarFp.updateAutoTopUp(payload, options).then((request) => request(axios, basePath));
|
|
1707
|
+
},
|
|
1708
|
+
};
|
|
1709
|
+
};
|
|
1710
|
+
exports.AutoTopupApiFactory = AutoTopupApiFactory;
|
|
1711
|
+
/**
|
|
1712
|
+
* AutoTopupApi - object-oriented interface
|
|
1713
|
+
* @export
|
|
1714
|
+
* @class AutoTopupApi
|
|
1715
|
+
* @extends {BaseAPI}
|
|
1716
|
+
*/
|
|
1717
|
+
class AutoTopupApi extends base_1.BaseAPI {
|
|
1718
|
+
/**
|
|
1719
|
+
*
|
|
1720
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
1721
|
+
* @param {CreateAutoTopupPayload} payload
|
|
1722
|
+
* @param {*} [options] Override http request option.
|
|
1723
|
+
* @throws {RequiredError}
|
|
1724
|
+
* @memberof AutoTopupApi
|
|
1725
|
+
*/
|
|
1726
|
+
createAutoTopUp(payload, options) {
|
|
1727
|
+
return (0, exports.AutoTopupApiFp)(this.configuration).createAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
*
|
|
1731
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
1732
|
+
* @param {*} [options] Override http request option.
|
|
1733
|
+
* @throws {RequiredError}
|
|
1734
|
+
* @memberof AutoTopupApi
|
|
1735
|
+
*/
|
|
1736
|
+
disableAutoTopUp(options) {
|
|
1737
|
+
return (0, exports.AutoTopupApiFp)(this.configuration).disableAutoTopUp(options).then((request) => request(this.axios, this.basePath));
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
*
|
|
1741
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
1742
|
+
* @param {*} [options] Override http request option.
|
|
1743
|
+
* @throws {RequiredError}
|
|
1744
|
+
* @memberof AutoTopupApi
|
|
1745
|
+
*/
|
|
1746
|
+
getAutoTopUp(options) {
|
|
1747
|
+
return (0, exports.AutoTopupApiFp)(this.configuration).getAutoTopUp(options).then((request) => request(this.axios, this.basePath));
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* 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**](None/docs/api-reference/billing-resources/).
|
|
1751
|
+
* @summary Get auto top-up status and configuration
|
|
1752
|
+
* @param {*} [options] Override http request option.
|
|
1753
|
+
* @throws {RequiredError}
|
|
1754
|
+
* @memberof AutoTopupApi
|
|
1755
|
+
*/
|
|
1756
|
+
getAutoTopUpStatus(options) {
|
|
1757
|
+
return (0, exports.AutoTopupApiFp)(this.configuration).getAutoTopUpStatus(options).then((request) => request(this.axios, this.basePath));
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
*
|
|
1761
|
+
* @summary Update an existing active auto top up configuration
|
|
1762
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
1763
|
+
* @param {*} [options] Override http request option.
|
|
1764
|
+
* @throws {RequiredError}
|
|
1765
|
+
* @memberof AutoTopupApi
|
|
1766
|
+
*/
|
|
1767
|
+
updateAutoTopUp(payload, options) {
|
|
1768
|
+
return (0, exports.AutoTopupApiFp)(this.configuration).updateAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
exports.AutoTopupApi = AutoTopupApi;
|
|
1413
1772
|
/**
|
|
1414
1773
|
* BetaAccessApi - axios parameter creator
|
|
1415
1774
|
* @export
|
|
@@ -2018,6 +2377,130 @@ const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
2018
2377
|
options: localVarRequestOptions,
|
|
2019
2378
|
};
|
|
2020
2379
|
}),
|
|
2380
|
+
/**
|
|
2381
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
2382
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
2383
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
2384
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
2385
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
2386
|
+
* @param {number} [perPage] Number of items to return per page
|
|
2387
|
+
* @param {number} [page] Page number
|
|
2388
|
+
* @param {*} [options] Override http request option.
|
|
2389
|
+
* @throws {RequiredError}
|
|
2390
|
+
*/
|
|
2391
|
+
getImageGenerationBillingHistory: (startDate_1, endDate_1, search_1, perPage_1, page_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, search_1, perPage_1, page_1, ...args_1], void 0, function* (startDate, endDate, search, perPage, page, options = {}) {
|
|
2392
|
+
const localVarPath = `/billing/billing/history/image_generation`;
|
|
2393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2394
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2395
|
+
let baseOptions;
|
|
2396
|
+
if (configuration) {
|
|
2397
|
+
baseOptions = configuration.baseOptions;
|
|
2398
|
+
}
|
|
2399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2400
|
+
const localVarHeaderParameter = {};
|
|
2401
|
+
const localVarQueryParameter = {};
|
|
2402
|
+
// authentication apiKey required
|
|
2403
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
2404
|
+
if (startDate !== undefined) {
|
|
2405
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
2406
|
+
}
|
|
2407
|
+
if (endDate !== undefined) {
|
|
2408
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
2409
|
+
}
|
|
2410
|
+
if (search !== undefined) {
|
|
2411
|
+
localVarQueryParameter['search'] = search;
|
|
2412
|
+
}
|
|
2413
|
+
if (perPage !== undefined) {
|
|
2414
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
2415
|
+
}
|
|
2416
|
+
if (page !== undefined) {
|
|
2417
|
+
localVarQueryParameter['page'] = page;
|
|
2418
|
+
}
|
|
2419
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2421
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2422
|
+
return {
|
|
2423
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2424
|
+
options: localVarRequestOptions,
|
|
2425
|
+
};
|
|
2426
|
+
}),
|
|
2427
|
+
/**
|
|
2428
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
2429
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
2430
|
+
* @param {number} resourceId
|
|
2431
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
2432
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
2433
|
+
* @param {*} [options] Override http request option.
|
|
2434
|
+
* @throws {RequiredError}
|
|
2435
|
+
*/
|
|
2436
|
+
getImageGenerationBillingHistoryGraph: (resourceId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [resourceId_1, startDate_1, endDate_1, ...args_1], void 0, function* (resourceId, startDate, endDate, options = {}) {
|
|
2437
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
2438
|
+
(0, common_1.assertParamExists)('getImageGenerationBillingHistoryGraph', 'resourceId', resourceId);
|
|
2439
|
+
const localVarPath = `/billing/billing/history/image_generation/{resource_id}/graph`
|
|
2440
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
2441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2442
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2443
|
+
let baseOptions;
|
|
2444
|
+
if (configuration) {
|
|
2445
|
+
baseOptions = configuration.baseOptions;
|
|
2446
|
+
}
|
|
2447
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2448
|
+
const localVarHeaderParameter = {};
|
|
2449
|
+
const localVarQueryParameter = {};
|
|
2450
|
+
// authentication apiKey required
|
|
2451
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
2452
|
+
if (startDate !== undefined) {
|
|
2453
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
2454
|
+
}
|
|
2455
|
+
if (endDate !== undefined) {
|
|
2456
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
2457
|
+
}
|
|
2458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2461
|
+
return {
|
|
2462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2463
|
+
options: localVarRequestOptions,
|
|
2464
|
+
};
|
|
2465
|
+
}),
|
|
2466
|
+
/**
|
|
2467
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
2468
|
+
* @param {number} resourceId
|
|
2469
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
2470
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
2471
|
+
* @param {*} [options] Override http request option.
|
|
2472
|
+
* @throws {RequiredError}
|
|
2473
|
+
*/
|
|
2474
|
+
getImageGenerationHistoryForResource: (resourceId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [resourceId_1, startDate_1, endDate_1, ...args_1], void 0, function* (resourceId, startDate, endDate, options = {}) {
|
|
2475
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
2476
|
+
(0, common_1.assertParamExists)('getImageGenerationHistoryForResource', 'resourceId', resourceId);
|
|
2477
|
+
const localVarPath = `/billing/billing/history/image_generation/{resource_id}`
|
|
2478
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
2479
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2480
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2481
|
+
let baseOptions;
|
|
2482
|
+
if (configuration) {
|
|
2483
|
+
baseOptions = configuration.baseOptions;
|
|
2484
|
+
}
|
|
2485
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2486
|
+
const localVarHeaderParameter = {};
|
|
2487
|
+
const localVarQueryParameter = {};
|
|
2488
|
+
// authentication apiKey required
|
|
2489
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
2490
|
+
if (startDate !== undefined) {
|
|
2491
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
2492
|
+
}
|
|
2493
|
+
if (endDate !== undefined) {
|
|
2494
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
2495
|
+
}
|
|
2496
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2497
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2498
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2499
|
+
return {
|
|
2500
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2501
|
+
options: localVarRequestOptions,
|
|
2502
|
+
};
|
|
2503
|
+
}),
|
|
2021
2504
|
/**
|
|
2022
2505
|
* 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**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
2023
2506
|
* @summary GET: Last Day Cost
|
|
@@ -3308,6 +3791,61 @@ const BillingApiFp = function (configuration) {
|
|
|
3308
3791
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3309
3792
|
});
|
|
3310
3793
|
},
|
|
3794
|
+
/**
|
|
3795
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
3796
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
3797
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
3798
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
3799
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
3800
|
+
* @param {number} [perPage] Number of items to return per page
|
|
3801
|
+
* @param {number} [page] Page number
|
|
3802
|
+
* @param {*} [options] Override http request option.
|
|
3803
|
+
* @throws {RequiredError}
|
|
3804
|
+
*/
|
|
3805
|
+
getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options) {
|
|
3806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3807
|
+
var _a, _b, _c;
|
|
3808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options);
|
|
3809
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3810
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.getImageGenerationBillingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3811
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3812
|
+
});
|
|
3813
|
+
},
|
|
3814
|
+
/**
|
|
3815
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
3816
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
3817
|
+
* @param {number} resourceId
|
|
3818
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
3819
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
3820
|
+
* @param {*} [options] Override http request option.
|
|
3821
|
+
* @throws {RequiredError}
|
|
3822
|
+
*/
|
|
3823
|
+
getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options) {
|
|
3824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3825
|
+
var _a, _b, _c;
|
|
3826
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options);
|
|
3827
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3828
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.getImageGenerationBillingHistoryGraph']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3829
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3830
|
+
});
|
|
3831
|
+
},
|
|
3832
|
+
/**
|
|
3833
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
3834
|
+
* @param {number} resourceId
|
|
3835
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
3836
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
3837
|
+
* @param {*} [options] Override http request option.
|
|
3838
|
+
* @throws {RequiredError}
|
|
3839
|
+
*/
|
|
3840
|
+
getImageGenerationHistoryForResource(resourceId, startDate, endDate, options) {
|
|
3841
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3842
|
+
var _a, _b, _c;
|
|
3843
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options);
|
|
3844
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3845
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.getImageGenerationHistoryForResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3846
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3847
|
+
});
|
|
3848
|
+
},
|
|
3311
3849
|
/**
|
|
3312
3850
|
* 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**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
3313
3851
|
* @summary GET: Last Day Cost
|
|
@@ -3937,6 +4475,43 @@ const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
3937
4475
|
getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
|
|
3938
4476
|
return localVarFp.getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
3939
4477
|
},
|
|
4478
|
+
/**
|
|
4479
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
4480
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
4481
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4482
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4483
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
4484
|
+
* @param {number} [perPage] Number of items to return per page
|
|
4485
|
+
* @param {number} [page] Page number
|
|
4486
|
+
* @param {*} [options] Override http request option.
|
|
4487
|
+
* @throws {RequiredError}
|
|
4488
|
+
*/
|
|
4489
|
+
getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options) {
|
|
4490
|
+
return localVarFp.getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(axios, basePath));
|
|
4491
|
+
},
|
|
4492
|
+
/**
|
|
4493
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
4494
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
4495
|
+
* @param {number} resourceId
|
|
4496
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4497
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4498
|
+
* @param {*} [options] Override http request option.
|
|
4499
|
+
* @throws {RequiredError}
|
|
4500
|
+
*/
|
|
4501
|
+
getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options) {
|
|
4502
|
+
return localVarFp.getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
4503
|
+
},
|
|
4504
|
+
/**
|
|
4505
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
4506
|
+
* @param {number} resourceId
|
|
4507
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
4508
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
4509
|
+
* @param {*} [options] Override http request option.
|
|
4510
|
+
* @throws {RequiredError}
|
|
4511
|
+
*/
|
|
4512
|
+
getImageGenerationHistoryForResource(resourceId, startDate, endDate, options) {
|
|
4513
|
+
return localVarFp.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
4514
|
+
},
|
|
3940
4515
|
/**
|
|
3941
4516
|
* 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**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
3942
4517
|
* @summary GET: Last Day Cost
|
|
@@ -4407,6 +4982,46 @@ class BillingApi extends base_1.BaseAPI {
|
|
|
4407
4982
|
getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
|
|
4408
4983
|
return (0, exports.BillingApiFp)(this.configuration).getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
4409
4984
|
}
|
|
4985
|
+
/**
|
|
4986
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
4987
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
4988
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4989
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4990
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
4991
|
+
* @param {number} [perPage] Number of items to return per page
|
|
4992
|
+
* @param {number} [page] Page number
|
|
4993
|
+
* @param {*} [options] Override http request option.
|
|
4994
|
+
* @throws {RequiredError}
|
|
4995
|
+
* @memberof BillingApi
|
|
4996
|
+
*/
|
|
4997
|
+
getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options) {
|
|
4998
|
+
return (0, exports.BillingApiFp)(this.configuration).getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(this.axios, this.basePath));
|
|
4999
|
+
}
|
|
5000
|
+
/**
|
|
5001
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
5002
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
5003
|
+
* @param {number} resourceId
|
|
5004
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
5005
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
5006
|
+
* @param {*} [options] Override http request option.
|
|
5007
|
+
* @throws {RequiredError}
|
|
5008
|
+
* @memberof BillingApi
|
|
5009
|
+
*/
|
|
5010
|
+
getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options) {
|
|
5011
|
+
return (0, exports.BillingApiFp)(this.configuration).getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
5012
|
+
}
|
|
5013
|
+
/**
|
|
5014
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
5015
|
+
* @param {number} resourceId
|
|
5016
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
5017
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
5018
|
+
* @param {*} [options] Override http request option.
|
|
5019
|
+
* @throws {RequiredError}
|
|
5020
|
+
* @memberof BillingApi
|
|
5021
|
+
*/
|
|
5022
|
+
getImageGenerationHistoryForResource(resourceId, startDate, endDate, options) {
|
|
5023
|
+
return (0, exports.BillingApiFp)(this.configuration).getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
5024
|
+
}
|
|
4410
5025
|
/**
|
|
4411
5026
|
* 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**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
4412
5027
|
* @summary GET: Last Day Cost
|