@nexgencloud/hyperstack-sdk-typescript 1.52.0-alpha → 1.54.7-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 +3134 -1533
- package/common.ts +2 -2
- package/dist/api.d.ts +1316 -274
- package/dist/api.js +994 -13
- package/dist/esm/api.d.ts +1316 -274
- package/dist/esm/api.js +981 -8
- 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.FIPExclusionsApiFactory = exports.FIPExclusionsApiFp = exports.FIPExclusionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.EmailOptInOutApi = exports.EmailOptInOutApiFactory = exports.EmailOptInOutApiFp = exports.EmailOptInOutApiAxiosParamCreator = 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.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 = exports.FirewallAttachmentApiFactory = exports.FirewallAttachmentApiFp = exports.FirewallAttachmentApiAxiosParamCreator = exports.FIPExclusionsApi = void 0;
|
|
28
|
+
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 = exports.PolicyApiAxiosParamCreator = exports.PermissionApi = exports.PermissionApiFactory = exports.PermissionApiFp = 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 = exports.UserConsentApiFactory = exports.UserConsentApiFp = exports.UserConsentApiAxiosParamCreator = exports.UserApi = 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
|
|
@@ -4391,21 +4966,61 @@ class BillingApi extends base_1.BaseAPI {
|
|
|
4391
4966
|
* @throws {RequiredError}
|
|
4392
4967
|
* @memberof BillingApi
|
|
4393
4968
|
*/
|
|
4394
|
-
getFineTuningBillingHistory(startDate, endDate, search, perPage, page, options) {
|
|
4395
|
-
return (0, exports.BillingApiFp)(this.configuration).getFineTuningBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(this.axios, this.basePath));
|
|
4969
|
+
getFineTuningBillingHistory(startDate, endDate, search, perPage, page, options) {
|
|
4970
|
+
return (0, exports.BillingApiFp)(this.configuration).getFineTuningBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(this.axios, this.basePath));
|
|
4971
|
+
}
|
|
4972
|
+
/**
|
|
4973
|
+
* User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
4974
|
+
* @summary Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
|
|
4975
|
+
* @param {number} resourceId
|
|
4976
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4977
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
4978
|
+
* @param {*} [options] Override http request option.
|
|
4979
|
+
* @throws {RequiredError}
|
|
4980
|
+
* @memberof BillingApi
|
|
4981
|
+
*/
|
|
4982
|
+
getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
|
|
4983
|
+
return (0, exports.BillingApiFp)(this.configuration).getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
4396
5012
|
}
|
|
4397
5013
|
/**
|
|
4398
|
-
*
|
|
4399
|
-
* @summary Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
|
|
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\'
|
|
4400
5015
|
* @param {number} resourceId
|
|
4401
|
-
* @param {string} [startDate]
|
|
4402
|
-
* @param {string} [endDate]
|
|
5016
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
5017
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
4403
5018
|
* @param {*} [options] Override http request option.
|
|
4404
5019
|
* @throws {RequiredError}
|
|
4405
5020
|
* @memberof BillingApi
|
|
4406
5021
|
*/
|
|
4407
|
-
|
|
4408
|
-
return (0, exports.BillingApiFp)(this.configuration).
|
|
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));
|
|
4409
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/)
|
|
@@ -8080,6 +8695,250 @@ class DeploymentApi extends base_1.BaseAPI {
|
|
|
8080
8695
|
}
|
|
8081
8696
|
}
|
|
8082
8697
|
exports.DeploymentApi = DeploymentApi;
|
|
8698
|
+
/**
|
|
8699
|
+
* EmailOptInOutApi - axios parameter creator
|
|
8700
|
+
* @export
|
|
8701
|
+
*/
|
|
8702
|
+
const EmailOptInOutApiAxiosParamCreator = function (configuration) {
|
|
8703
|
+
return {
|
|
8704
|
+
/**
|
|
8705
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8706
|
+
* @summary Get all email preferences for the authenticated user
|
|
8707
|
+
* @param {*} [options] Override http request option.
|
|
8708
|
+
* @throws {RequiredError}
|
|
8709
|
+
*/
|
|
8710
|
+
getEmailPreferencesForAUser: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8711
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
8712
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8713
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8714
|
+
let baseOptions;
|
|
8715
|
+
if (configuration) {
|
|
8716
|
+
baseOptions = configuration.baseOptions;
|
|
8717
|
+
}
|
|
8718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8719
|
+
const localVarHeaderParameter = {};
|
|
8720
|
+
const localVarQueryParameter = {};
|
|
8721
|
+
// authentication apiKey required
|
|
8722
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
8723
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8724
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8725
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8726
|
+
return {
|
|
8727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8728
|
+
options: localVarRequestOptions,
|
|
8729
|
+
};
|
|
8730
|
+
}),
|
|
8731
|
+
/**
|
|
8732
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8733
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8734
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8735
|
+
* @param {*} [options] Override http request option.
|
|
8736
|
+
* @throws {RequiredError}
|
|
8737
|
+
*/
|
|
8738
|
+
toggleAllOptionalEmailPreferencesForTheUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
8739
|
+
// verify required parameter 'payload' is not null or undefined
|
|
8740
|
+
(0, common_1.assertParamExists)('toggleAllOptionalEmailPreferencesForTheUser', 'payload', payload);
|
|
8741
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
8742
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8743
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8744
|
+
let baseOptions;
|
|
8745
|
+
if (configuration) {
|
|
8746
|
+
baseOptions = configuration.baseOptions;
|
|
8747
|
+
}
|
|
8748
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8749
|
+
const localVarHeaderParameter = {};
|
|
8750
|
+
const localVarQueryParameter = {};
|
|
8751
|
+
// authentication apiKey required
|
|
8752
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
8753
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8754
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8756
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8757
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
8758
|
+
return {
|
|
8759
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8760
|
+
options: localVarRequestOptions,
|
|
8761
|
+
};
|
|
8762
|
+
}),
|
|
8763
|
+
/**
|
|
8764
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8765
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8766
|
+
* @param {string} slug
|
|
8767
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8768
|
+
* @param {*} [options] Override http request option.
|
|
8769
|
+
* @throws {RequiredError}
|
|
8770
|
+
*/
|
|
8771
|
+
updateEmailPreferenceForACategoryBySlug: (slug_1, payload_1, ...args_1) => __awaiter(this, [slug_1, payload_1, ...args_1], void 0, function* (slug, payload, options = {}) {
|
|
8772
|
+
// verify required parameter 'slug' is not null or undefined
|
|
8773
|
+
(0, common_1.assertParamExists)('updateEmailPreferenceForACategoryBySlug', 'slug', slug);
|
|
8774
|
+
// verify required parameter 'payload' is not null or undefined
|
|
8775
|
+
(0, common_1.assertParamExists)('updateEmailPreferenceForACategoryBySlug', 'payload', payload);
|
|
8776
|
+
const localVarPath = `/auth/email/opt-out/{slug}`
|
|
8777
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
8778
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8779
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8780
|
+
let baseOptions;
|
|
8781
|
+
if (configuration) {
|
|
8782
|
+
baseOptions = configuration.baseOptions;
|
|
8783
|
+
}
|
|
8784
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8785
|
+
const localVarHeaderParameter = {};
|
|
8786
|
+
const localVarQueryParameter = {};
|
|
8787
|
+
// authentication apiKey required
|
|
8788
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
8789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8790
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8792
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8793
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
8794
|
+
return {
|
|
8795
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8796
|
+
options: localVarRequestOptions,
|
|
8797
|
+
};
|
|
8798
|
+
}),
|
|
8799
|
+
};
|
|
8800
|
+
};
|
|
8801
|
+
exports.EmailOptInOutApiAxiosParamCreator = EmailOptInOutApiAxiosParamCreator;
|
|
8802
|
+
/**
|
|
8803
|
+
* EmailOptInOutApi - functional programming interface
|
|
8804
|
+
* @export
|
|
8805
|
+
*/
|
|
8806
|
+
const EmailOptInOutApiFp = function (configuration) {
|
|
8807
|
+
const localVarAxiosParamCreator = (0, exports.EmailOptInOutApiAxiosParamCreator)(configuration);
|
|
8808
|
+
return {
|
|
8809
|
+
/**
|
|
8810
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8811
|
+
* @summary Get all email preferences for the authenticated user
|
|
8812
|
+
* @param {*} [options] Override http request option.
|
|
8813
|
+
* @throws {RequiredError}
|
|
8814
|
+
*/
|
|
8815
|
+
getEmailPreferencesForAUser(options) {
|
|
8816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8817
|
+
var _a, _b, _c;
|
|
8818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEmailPreferencesForAUser(options);
|
|
8819
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8820
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailOptInOutApi.getEmailPreferencesForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8821
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8822
|
+
});
|
|
8823
|
+
},
|
|
8824
|
+
/**
|
|
8825
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8826
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8827
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8828
|
+
* @param {*} [options] Override http request option.
|
|
8829
|
+
* @throws {RequiredError}
|
|
8830
|
+
*/
|
|
8831
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8833
|
+
var _a, _b, _c;
|
|
8834
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleAllOptionalEmailPreferencesForTheUser(payload, options);
|
|
8835
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8836
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailOptInOutApi.toggleAllOptionalEmailPreferencesForTheUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8837
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8838
|
+
});
|
|
8839
|
+
},
|
|
8840
|
+
/**
|
|
8841
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8842
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8843
|
+
* @param {string} slug
|
|
8844
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8845
|
+
* @param {*} [options] Override http request option.
|
|
8846
|
+
* @throws {RequiredError}
|
|
8847
|
+
*/
|
|
8848
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8850
|
+
var _a, _b, _c;
|
|
8851
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEmailPreferenceForACategoryBySlug(slug, payload, options);
|
|
8852
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8853
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailOptInOutApi.updateEmailPreferenceForACategoryBySlug']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8854
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8855
|
+
});
|
|
8856
|
+
},
|
|
8857
|
+
};
|
|
8858
|
+
};
|
|
8859
|
+
exports.EmailOptInOutApiFp = EmailOptInOutApiFp;
|
|
8860
|
+
/**
|
|
8861
|
+
* EmailOptInOutApi - factory interface
|
|
8862
|
+
* @export
|
|
8863
|
+
*/
|
|
8864
|
+
const EmailOptInOutApiFactory = function (configuration, basePath, axios) {
|
|
8865
|
+
const localVarFp = (0, exports.EmailOptInOutApiFp)(configuration);
|
|
8866
|
+
return {
|
|
8867
|
+
/**
|
|
8868
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8869
|
+
* @summary Get all email preferences for the authenticated user
|
|
8870
|
+
* @param {*} [options] Override http request option.
|
|
8871
|
+
* @throws {RequiredError}
|
|
8872
|
+
*/
|
|
8873
|
+
getEmailPreferencesForAUser(options) {
|
|
8874
|
+
return localVarFp.getEmailPreferencesForAUser(options).then((request) => request(axios, basePath));
|
|
8875
|
+
},
|
|
8876
|
+
/**
|
|
8877
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8878
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8879
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8880
|
+
* @param {*} [options] Override http request option.
|
|
8881
|
+
* @throws {RequiredError}
|
|
8882
|
+
*/
|
|
8883
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8884
|
+
return localVarFp.toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(axios, basePath));
|
|
8885
|
+
},
|
|
8886
|
+
/**
|
|
8887
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8888
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8889
|
+
* @param {string} slug
|
|
8890
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8891
|
+
* @param {*} [options] Override http request option.
|
|
8892
|
+
* @throws {RequiredError}
|
|
8893
|
+
*/
|
|
8894
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8895
|
+
return localVarFp.updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(axios, basePath));
|
|
8896
|
+
},
|
|
8897
|
+
};
|
|
8898
|
+
};
|
|
8899
|
+
exports.EmailOptInOutApiFactory = EmailOptInOutApiFactory;
|
|
8900
|
+
/**
|
|
8901
|
+
* EmailOptInOutApi - object-oriented interface
|
|
8902
|
+
* @export
|
|
8903
|
+
* @class EmailOptInOutApi
|
|
8904
|
+
* @extends {BaseAPI}
|
|
8905
|
+
*/
|
|
8906
|
+
class EmailOptInOutApi extends base_1.BaseAPI {
|
|
8907
|
+
/**
|
|
8908
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8909
|
+
* @summary Get all email preferences for the authenticated user
|
|
8910
|
+
* @param {*} [options] Override http request option.
|
|
8911
|
+
* @throws {RequiredError}
|
|
8912
|
+
* @memberof EmailOptInOutApi
|
|
8913
|
+
*/
|
|
8914
|
+
getEmailPreferencesForAUser(options) {
|
|
8915
|
+
return (0, exports.EmailOptInOutApiFp)(this.configuration).getEmailPreferencesForAUser(options).then((request) => request(this.axios, this.basePath));
|
|
8916
|
+
}
|
|
8917
|
+
/**
|
|
8918
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8919
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8920
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8921
|
+
* @param {*} [options] Override http request option.
|
|
8922
|
+
* @throws {RequiredError}
|
|
8923
|
+
* @memberof EmailOptInOutApi
|
|
8924
|
+
*/
|
|
8925
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8926
|
+
return (0, exports.EmailOptInOutApiFp)(this.configuration).toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
8927
|
+
}
|
|
8928
|
+
/**
|
|
8929
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8930
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8931
|
+
* @param {string} slug
|
|
8932
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8933
|
+
* @param {*} [options] Override http request option.
|
|
8934
|
+
* @throws {RequiredError}
|
|
8935
|
+
* @memberof EmailOptInOutApi
|
|
8936
|
+
*/
|
|
8937
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8938
|
+
return (0, exports.EmailOptInOutApiFp)(this.configuration).updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(this.axios, this.basePath));
|
|
8939
|
+
}
|
|
8940
|
+
}
|
|
8941
|
+
exports.EmailOptInOutApi = EmailOptInOutApi;
|
|
8083
8942
|
/**
|
|
8084
8943
|
* EnvironmentApi - axios parameter creator
|
|
8085
8944
|
* @export
|
|
@@ -10551,6 +11410,33 @@ const KeypairApiAxiosParamCreator = function (configuration) {
|
|
|
10551
11410
|
options: localVarRequestOptions,
|
|
10552
11411
|
};
|
|
10553
11412
|
}),
|
|
11413
|
+
/**
|
|
11414
|
+
* Retrieves the SSH public key types supported for import.
|
|
11415
|
+
* @summary List supported key pair types
|
|
11416
|
+
* @param {*} [options] Override http request option.
|
|
11417
|
+
* @throws {RequiredError}
|
|
11418
|
+
*/
|
|
11419
|
+
listSupportedKeyPairTypes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11420
|
+
const localVarPath = `/core/supported-keypairs`;
|
|
11421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11422
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11423
|
+
let baseOptions;
|
|
11424
|
+
if (configuration) {
|
|
11425
|
+
baseOptions = configuration.baseOptions;
|
|
11426
|
+
}
|
|
11427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11428
|
+
const localVarHeaderParameter = {};
|
|
11429
|
+
const localVarQueryParameter = {};
|
|
11430
|
+
// authentication apiKey required
|
|
11431
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
11432
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11434
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11435
|
+
return {
|
|
11436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11437
|
+
options: localVarRequestOptions,
|
|
11438
|
+
};
|
|
11439
|
+
}),
|
|
10554
11440
|
/**
|
|
10555
11441
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
10556
11442
|
* @summary Update key pair name
|
|
@@ -10647,6 +11533,21 @@ const KeypairApiFp = function (configuration) {
|
|
|
10647
11533
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10648
11534
|
});
|
|
10649
11535
|
},
|
|
11536
|
+
/**
|
|
11537
|
+
* Retrieves the SSH public key types supported for import.
|
|
11538
|
+
* @summary List supported key pair types
|
|
11539
|
+
* @param {*} [options] Override http request option.
|
|
11540
|
+
* @throws {RequiredError}
|
|
11541
|
+
*/
|
|
11542
|
+
listSupportedKeyPairTypes(options) {
|
|
11543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11544
|
+
var _a, _b, _c;
|
|
11545
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSupportedKeyPairTypes(options);
|
|
11546
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11547
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KeypairApi.listSupportedKeyPairTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11548
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11549
|
+
});
|
|
11550
|
+
},
|
|
10650
11551
|
/**
|
|
10651
11552
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
10652
11553
|
* @summary Update key pair name
|
|
@@ -10706,6 +11607,15 @@ const KeypairApiFactory = function (configuration, basePath, axios) {
|
|
|
10706
11607
|
listKeyPairs(page, pageSize, search, options) {
|
|
10707
11608
|
return localVarFp.listKeyPairs(page, pageSize, search, options).then((request) => request(axios, basePath));
|
|
10708
11609
|
},
|
|
11610
|
+
/**
|
|
11611
|
+
* Retrieves the SSH public key types supported for import.
|
|
11612
|
+
* @summary List supported key pair types
|
|
11613
|
+
* @param {*} [options] Override http request option.
|
|
11614
|
+
* @throws {RequiredError}
|
|
11615
|
+
*/
|
|
11616
|
+
listSupportedKeyPairTypes(options) {
|
|
11617
|
+
return localVarFp.listSupportedKeyPairTypes(options).then((request) => request(axios, basePath));
|
|
11618
|
+
},
|
|
10709
11619
|
/**
|
|
10710
11620
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
10711
11621
|
* @summary Update key pair name
|
|
@@ -10762,6 +11672,16 @@ class KeypairApi extends base_1.BaseAPI {
|
|
|
10762
11672
|
listKeyPairs(page, pageSize, search, options) {
|
|
10763
11673
|
return (0, exports.KeypairApiFp)(this.configuration).listKeyPairs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
10764
11674
|
}
|
|
11675
|
+
/**
|
|
11676
|
+
* Retrieves the SSH public key types supported for import.
|
|
11677
|
+
* @summary List supported key pair types
|
|
11678
|
+
* @param {*} [options] Override http request option.
|
|
11679
|
+
* @throws {RequiredError}
|
|
11680
|
+
* @memberof KeypairApi
|
|
11681
|
+
*/
|
|
11682
|
+
listSupportedKeyPairTypes(options) {
|
|
11683
|
+
return (0, exports.KeypairApiFp)(this.configuration).listSupportedKeyPairTypes(options).then((request) => request(this.axios, this.basePath));
|
|
11684
|
+
}
|
|
10765
11685
|
/**
|
|
10766
11686
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
10767
11687
|
* @summary Update key pair name
|
|
@@ -13823,6 +14743,33 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
13823
14743
|
options: localVarRequestOptions,
|
|
13824
14744
|
};
|
|
13825
14745
|
}),
|
|
14746
|
+
/**
|
|
14747
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14748
|
+
* @summary GET: Retrieve allowed country codes
|
|
14749
|
+
* @param {*} [options] Override http request option.
|
|
14750
|
+
* @throws {RequiredError}
|
|
14751
|
+
*/
|
|
14752
|
+
getAllowedCountryCodes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14753
|
+
const localVarPath = `/billing/user/countries`;
|
|
14754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14755
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14756
|
+
let baseOptions;
|
|
14757
|
+
if (configuration) {
|
|
14758
|
+
baseOptions = configuration.baseOptions;
|
|
14759
|
+
}
|
|
14760
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14761
|
+
const localVarHeaderParameter = {};
|
|
14762
|
+
const localVarQueryParameter = {};
|
|
14763
|
+
// authentication apiKey required
|
|
14764
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14765
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14767
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14768
|
+
return {
|
|
14769
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14770
|
+
options: localVarRequestOptions,
|
|
14771
|
+
};
|
|
14772
|
+
}),
|
|
13826
14773
|
/**
|
|
13827
14774
|
* Retrieve the billing details associated with your user.
|
|
13828
14775
|
* @summary GET: Retrieve billing info
|
|
@@ -13908,6 +14855,21 @@ const UserApiFp = function (configuration) {
|
|
|
13908
14855
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13909
14856
|
});
|
|
13910
14857
|
},
|
|
14858
|
+
/**
|
|
14859
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14860
|
+
* @summary GET: Retrieve allowed country codes
|
|
14861
|
+
* @param {*} [options] Override http request option.
|
|
14862
|
+
* @throws {RequiredError}
|
|
14863
|
+
*/
|
|
14864
|
+
getAllowedCountryCodes(options) {
|
|
14865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14866
|
+
var _a, _b, _c;
|
|
14867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllowedCountryCodes(options);
|
|
14868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14869
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getAllowedCountryCodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14871
|
+
});
|
|
14872
|
+
},
|
|
13911
14873
|
/**
|
|
13912
14874
|
* Retrieve the billing details associated with your user.
|
|
13913
14875
|
* @summary GET: Retrieve billing info
|
|
@@ -13959,6 +14921,15 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
13959
14921
|
addUserBillingInfo(payload, options) {
|
|
13960
14922
|
return localVarFp.addUserBillingInfo(payload, options).then((request) => request(axios, basePath));
|
|
13961
14923
|
},
|
|
14924
|
+
/**
|
|
14925
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14926
|
+
* @summary GET: Retrieve allowed country codes
|
|
14927
|
+
* @param {*} [options] Override http request option.
|
|
14928
|
+
* @throws {RequiredError}
|
|
14929
|
+
*/
|
|
14930
|
+
getAllowedCountryCodes(options) {
|
|
14931
|
+
return localVarFp.getAllowedCountryCodes(options).then((request) => request(axios, basePath));
|
|
14932
|
+
},
|
|
13962
14933
|
/**
|
|
13963
14934
|
* Retrieve the billing details associated with your user.
|
|
13964
14935
|
* @summary GET: Retrieve billing info
|
|
@@ -13999,6 +14970,16 @@ class UserApi extends base_1.BaseAPI {
|
|
|
13999
14970
|
addUserBillingInfo(payload, options) {
|
|
14000
14971
|
return (0, exports.UserApiFp)(this.configuration).addUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
14001
14972
|
}
|
|
14973
|
+
/**
|
|
14974
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14975
|
+
* @summary GET: Retrieve allowed country codes
|
|
14976
|
+
* @param {*} [options] Override http request option.
|
|
14977
|
+
* @throws {RequiredError}
|
|
14978
|
+
* @memberof UserApi
|
|
14979
|
+
*/
|
|
14980
|
+
getAllowedCountryCodes(options) {
|
|
14981
|
+
return (0, exports.UserApiFp)(this.configuration).getAllowedCountryCodes(options).then((request) => request(this.axios, this.basePath));
|
|
14982
|
+
}
|
|
14002
14983
|
/**
|
|
14003
14984
|
* Retrieve the billing details associated with your user.
|
|
14004
14985
|
* @summary GET: Retrieve billing info
|