@nexgencloud/hyperstack-sdk-typescript 1.51.2-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/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.CallbacksApiFactory = exports.CallbacksApiFp = exports.CallbacksApiAxiosParamCreator = exports.CalculateApi = exports.CalculateApiFactory = exports.CalculateApiFp = exports.CalculateApiAxiosParamCreator = exports.BucketsApi = exports.BucketsApiFactory = exports.BucketsApiFp = exports.BucketsApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BetaAccessApi = exports.BetaAccessApiFactory = exports.BetaAccessApiFp = exports.BetaAccessApiAxiosParamCreator = 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.RegionFieldsGreenStatusEnum = exports.ObjectStorageRegionsEnum = exports.KeypairEnvironmentFeaturesGreenStatusEnum = exports.EnvironmentFeaturesGreenStatusEnum = exports.CreateSecurityRulePayloadProtocolEnum = exports.CreateFirewallRulePayloadProtocolEnum = exports.CreateClusterPayloadDeploymentModeEnum = exports.CreateClusterNodeGroupPayloadRoleEnum = exports.CreateClusterNodeFieldsRoleEnum = exports.BetaAccessStatusItemStatusEnum = exports.BetaAccessRequestFieldsStatusEnum = void 0;
26
- 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 = 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 = void 0;
27
- 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 = 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 = void 0;
28
- 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.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 = 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 = 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
@@ -45,6 +45,13 @@ exports.BetaAccessStatusItemStatusEnum = {
45
45
  Denied: 'denied',
46
46
  Revoked: 'revoked'
47
47
  };
48
+ exports.ConsentBlockTypeEnum = {
49
+ Text: 'text',
50
+ Warning: 'warning',
51
+ Info: 'info',
52
+ Success: 'success',
53
+ Failure: 'failure'
54
+ };
48
55
  exports.CreateClusterNodeFieldsRoleEnum = {
49
56
  Worker: 'worker',
50
57
  Master: 'master'
@@ -130,11 +137,32 @@ exports.KeypairEnvironmentFeaturesGreenStatusEnum = {
130
137
  exports.ObjectStorageRegionsEnum = {
131
138
  Canada1: 'CANADA-1'
132
139
  };
140
+ exports.RecordConsentRequestActionEnum = {
141
+ Granted: 'granted',
142
+ Revoked: 'revoked'
143
+ };
144
+ exports.RecordConsentRequestConsentMethodEnum = {
145
+ WebCheckbox: 'web_checkbox',
146
+ Api: 'api',
147
+ AdminOverride: 'admin_override'
148
+ };
149
+ exports.RecordConsentRequestConsentTypeEnum = {
150
+ AutoTopUp: 'auto_top_up'
151
+ };
133
152
  exports.RegionFieldsGreenStatusEnum = {
134
153
  Green: 'GREEN',
135
154
  PartiallyGreen: 'PARTIALLY_GREEN',
136
155
  NotGreen: 'NOT_GREEN'
137
156
  };
157
+ exports.UpdateConsentRequestActionEnum = {
158
+ Granted: 'granted',
159
+ Revoked: 'revoked'
160
+ };
161
+ exports.UpdateConsentRequestConsentMethodEnum = {
162
+ WebCheckbox: 'web_checkbox',
163
+ Api: 'api',
164
+ AdminOverride: 'admin_override'
165
+ };
138
166
  /**
139
167
  * AccessKeysApi - axios parameter creator
140
168
  * @export
@@ -1383,22 +1411,22 @@ class AuthApi extends base_1.BaseAPI {
1383
1411
  }
1384
1412
  exports.AuthApi = AuthApi;
1385
1413
  /**
1386
- * BetaAccessApi - axios parameter creator
1414
+ * AutoTopupApi - axios parameter creator
1387
1415
  * @export
1388
1416
  */
1389
- const BetaAccessApiAxiosParamCreator = function (configuration) {
1417
+ const AutoTopupApiAxiosParamCreator = function (configuration) {
1390
1418
  return {
1391
1419
  /**
1392
- * Creates a new beta access request for the current user
1393
- * @summary Create a new beta access request
1394
- * @param {BetaAccessRequestPayload} payload
1420
+ *
1421
+ * @summary Create an auto top up configuration and initiate Stripe setup
1422
+ * @param {CreateAutoTopupPayload} payload
1395
1423
  * @param {*} [options] Override http request option.
1396
1424
  * @throws {RequiredError}
1397
1425
  */
1398
- createBetaAccessRequest: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1426
+ createAutoTopUp: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1399
1427
  // verify required parameter 'payload' is not null or undefined
1400
- (0, common_1.assertParamExists)('createBetaAccessRequest', 'payload', payload);
1401
- const localVarPath = `/auth/beta-access/requests`;
1428
+ (0, common_1.assertParamExists)('createAutoTopUp', 'payload', payload);
1429
+ const localVarPath = `/billing/auto-topup`;
1402
1430
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1403
1431
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1404
1432
  let baseOptions;
@@ -1421,17 +1449,40 @@ const BetaAccessApiAxiosParamCreator = function (configuration) {
1421
1449
  };
1422
1450
  }),
1423
1451
  /**
1424
- * Check the status of a particular beta access requests.
1425
- * @summary Check the status of beta access requests
1426
- * @param {string} program
1452
+ *
1453
+ * @summary Disable auto top up, preventing any future automatic charges
1427
1454
  * @param {*} [options] Override http request option.
1428
1455
  * @throws {RequiredError}
1429
1456
  */
1430
- getBetaAccessRequests: (program_1, ...args_1) => __awaiter(this, [program_1, ...args_1], void 0, function* (program, options = {}) {
1431
- // verify required parameter 'program' is not null or undefined
1432
- (0, common_1.assertParamExists)('getBetaAccessRequests', 'program', program);
1433
- const localVarPath = `/auth/beta-access/requests/{program}`
1434
- .replace(`{${"program"}}`, encodeURIComponent(String(program)));
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`;
1435
1486
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1436
1487
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1437
1488
  let baseOptions;
@@ -1452,13 +1503,13 @@ const BetaAccessApiAxiosParamCreator = function (configuration) {
1452
1503
  };
1453
1504
  }),
1454
1505
  /**
1455
- * Check the status of all beta access requests.
1456
- * @summary Check the status of all beta access requests
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
1457
1508
  * @param {*} [options] Override http request option.
1458
1509
  * @throws {RequiredError}
1459
1510
  */
1460
- getBetaAccessStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1461
- const localVarPath = `/auth/beta-access/requests`;
1511
+ getAutoTopUpStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1512
+ const localVarPath = `/billing/auto-topup/status`;
1462
1513
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1463
1514
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1464
1515
  let baseOptions;
@@ -1478,205 +1529,296 @@ const BetaAccessApiAxiosParamCreator = function (configuration) {
1478
1529
  options: localVarRequestOptions,
1479
1530
  };
1480
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
+ }),
1481
1564
  };
1482
1565
  };
1483
- exports.BetaAccessApiAxiosParamCreator = BetaAccessApiAxiosParamCreator;
1566
+ exports.AutoTopupApiAxiosParamCreator = AutoTopupApiAxiosParamCreator;
1484
1567
  /**
1485
- * BetaAccessApi - functional programming interface
1568
+ * AutoTopupApi - functional programming interface
1486
1569
  * @export
1487
1570
  */
1488
- const BetaAccessApiFp = function (configuration) {
1489
- const localVarAxiosParamCreator = (0, exports.BetaAccessApiAxiosParamCreator)(configuration);
1571
+ const AutoTopupApiFp = function (configuration) {
1572
+ const localVarAxiosParamCreator = (0, exports.AutoTopupApiAxiosParamCreator)(configuration);
1490
1573
  return {
1491
1574
  /**
1492
- * Creates a new beta access request for the current user
1493
- * @summary Create a new beta access request
1494
- * @param {BetaAccessRequestPayload} payload
1575
+ *
1576
+ * @summary Create an auto top up configuration and initiate Stripe setup
1577
+ * @param {CreateAutoTopupPayload} payload
1495
1578
  * @param {*} [options] Override http request option.
1496
1579
  * @throws {RequiredError}
1497
1580
  */
1498
- createBetaAccessRequest(payload, options) {
1581
+ createAutoTopUp(payload, options) {
1499
1582
  return __awaiter(this, void 0, void 0, function* () {
1500
1583
  var _a, _b, _c;
1501
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createBetaAccessRequest(payload, options);
1584
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAutoTopUp(payload, options);
1502
1585
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1503
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BetaAccessApi.createBetaAccessRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
1504
1587
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1505
1588
  });
1506
1589
  },
1507
1590
  /**
1508
- * Check the status of a particular beta access requests.
1509
- * @summary Check the status of beta access requests
1510
- * @param {string} program
1591
+ *
1592
+ * @summary Disable auto top up, preventing any future automatic charges
1511
1593
  * @param {*} [options] Override http request option.
1512
1594
  * @throws {RequiredError}
1513
1595
  */
1514
- getBetaAccessRequests(program, options) {
1596
+ disableAutoTopUp(options) {
1515
1597
  return __awaiter(this, void 0, void 0, function* () {
1516
1598
  var _a, _b, _c;
1517
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessRequests(program, options);
1599
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoTopUp(options);
1518
1600
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1519
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BetaAccessApi.getBetaAccessRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
1520
1602
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1521
1603
  });
1522
1604
  },
1523
1605
  /**
1524
- * Check the status of all beta access requests.
1525
- * @summary Check the status of all beta access requests
1606
+ *
1607
+ * @summary Retrieve the current auto top up configuration and transaction history
1526
1608
  * @param {*} [options] Override http request option.
1527
1609
  * @throws {RequiredError}
1528
1610
  */
1529
- getBetaAccessStatus(options) {
1611
+ getAutoTopUp(options) {
1530
1612
  return __awaiter(this, void 0, void 0, function* () {
1531
1613
  var _a, _b, _c;
1532
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessStatus(options);
1614
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAutoTopUp(options);
1533
1615
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1534
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BetaAccessApi.getBetaAccessStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
1535
1648
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1536
1649
  });
1537
1650
  },
1538
1651
  };
1539
1652
  };
1540
- exports.BetaAccessApiFp = BetaAccessApiFp;
1653
+ exports.AutoTopupApiFp = AutoTopupApiFp;
1541
1654
  /**
1542
- * BetaAccessApi - factory interface
1655
+ * AutoTopupApi - factory interface
1543
1656
  * @export
1544
1657
  */
1545
- const BetaAccessApiFactory = function (configuration, basePath, axios) {
1546
- const localVarFp = (0, exports.BetaAccessApiFp)(configuration);
1658
+ const AutoTopupApiFactory = function (configuration, basePath, axios) {
1659
+ const localVarFp = (0, exports.AutoTopupApiFp)(configuration);
1547
1660
  return {
1548
1661
  /**
1549
- * Creates a new beta access request for the current user
1550
- * @summary Create a new beta access request
1551
- * @param {BetaAccessRequestPayload} payload
1662
+ *
1663
+ * @summary Create an auto top up configuration and initiate Stripe setup
1664
+ * @param {CreateAutoTopupPayload} payload
1552
1665
  * @param {*} [options] Override http request option.
1553
1666
  * @throws {RequiredError}
1554
1667
  */
1555
- createBetaAccessRequest(payload, options) {
1556
- return localVarFp.createBetaAccessRequest(payload, options).then((request) => request(axios, basePath));
1668
+ createAutoTopUp(payload, options) {
1669
+ return localVarFp.createAutoTopUp(payload, options).then((request) => request(axios, basePath));
1557
1670
  },
1558
1671
  /**
1559
- * Check the status of a particular beta access requests.
1560
- * @summary Check the status of beta access requests
1561
- * @param {string} program
1672
+ *
1673
+ * @summary Disable auto top up, preventing any future automatic charges
1562
1674
  * @param {*} [options] Override http request option.
1563
1675
  * @throws {RequiredError}
1564
1676
  */
1565
- getBetaAccessRequests(program, options) {
1566
- return localVarFp.getBetaAccessRequests(program, options).then((request) => request(axios, basePath));
1677
+ disableAutoTopUp(options) {
1678
+ return localVarFp.disableAutoTopUp(options).then((request) => request(axios, basePath));
1567
1679
  },
1568
1680
  /**
1569
- * Check the status of all beta access requests.
1570
- * @summary Check the status of all beta access requests
1681
+ *
1682
+ * @summary Retrieve the current auto top up configuration and transaction history
1571
1683
  * @param {*} [options] Override http request option.
1572
1684
  * @throws {RequiredError}
1573
1685
  */
1574
- getBetaAccessStatus(options) {
1575
- return localVarFp.getBetaAccessStatus(options).then((request) => request(axios, basePath));
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));
1576
1707
  },
1577
1708
  };
1578
1709
  };
1579
- exports.BetaAccessApiFactory = BetaAccessApiFactory;
1710
+ exports.AutoTopupApiFactory = AutoTopupApiFactory;
1580
1711
  /**
1581
- * BetaAccessApi - object-oriented interface
1712
+ * AutoTopupApi - object-oriented interface
1582
1713
  * @export
1583
- * @class BetaAccessApi
1714
+ * @class AutoTopupApi
1584
1715
  * @extends {BaseAPI}
1585
1716
  */
1586
- class BetaAccessApi extends base_1.BaseAPI {
1717
+ class AutoTopupApi extends base_1.BaseAPI {
1587
1718
  /**
1588
- * Creates a new beta access request for the current user
1589
- * @summary Create a new beta access request
1590
- * @param {BetaAccessRequestPayload} payload
1719
+ *
1720
+ * @summary Create an auto top up configuration and initiate Stripe setup
1721
+ * @param {CreateAutoTopupPayload} payload
1591
1722
  * @param {*} [options] Override http request option.
1592
1723
  * @throws {RequiredError}
1593
- * @memberof BetaAccessApi
1724
+ * @memberof AutoTopupApi
1594
1725
  */
1595
- createBetaAccessRequest(payload, options) {
1596
- return (0, exports.BetaAccessApiFp)(this.configuration).createBetaAccessRequest(payload, options).then((request) => request(this.axios, this.basePath));
1726
+ createAutoTopUp(payload, options) {
1727
+ return (0, exports.AutoTopupApiFp)(this.configuration).createAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
1597
1728
  }
1598
1729
  /**
1599
- * Check the status of a particular beta access requests.
1600
- * @summary Check the status of beta access requests
1601
- * @param {string} program
1730
+ *
1731
+ * @summary Disable auto top up, preventing any future automatic charges
1602
1732
  * @param {*} [options] Override http request option.
1603
1733
  * @throws {RequiredError}
1604
- * @memberof BetaAccessApi
1734
+ * @memberof AutoTopupApi
1605
1735
  */
1606
- getBetaAccessRequests(program, options) {
1607
- return (0, exports.BetaAccessApiFp)(this.configuration).getBetaAccessRequests(program, options).then((request) => request(this.axios, this.basePath));
1736
+ disableAutoTopUp(options) {
1737
+ return (0, exports.AutoTopupApiFp)(this.configuration).disableAutoTopUp(options).then((request) => request(this.axios, this.basePath));
1608
1738
  }
1609
1739
  /**
1610
- * Check the status of all beta access requests.
1611
- * @summary Check the status of all beta access requests
1740
+ *
1741
+ * @summary Retrieve the current auto top up configuration and transaction history
1612
1742
  * @param {*} [options] Override http request option.
1613
1743
  * @throws {RequiredError}
1614
- * @memberof BetaAccessApi
1744
+ * @memberof AutoTopupApi
1615
1745
  */
1616
- getBetaAccessStatus(options) {
1617
- return (0, exports.BetaAccessApiFp)(this.configuration).getBetaAccessStatus(options).then((request) => request(this.axios, this.basePath));
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));
1618
1769
  }
1619
1770
  }
1620
- exports.BetaAccessApi = BetaAccessApi;
1771
+ exports.AutoTopupApi = AutoTopupApi;
1621
1772
  /**
1622
- * BillingApi - axios parameter creator
1773
+ * BetaAccessApi - axios parameter creator
1623
1774
  * @export
1624
1775
  */
1625
- const BillingApiAxiosParamCreator = function (configuration) {
1776
+ const BetaAccessApiAxiosParamCreator = function (configuration) {
1626
1777
  return {
1627
1778
  /**
1628
- * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
1629
- * @summary Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
1630
- * @param {number} bucketId
1631
- * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1632
- * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1779
+ * Creates a new beta access request for the current user
1780
+ * @summary Create a new beta access request
1781
+ * @param {BetaAccessRequestPayload} payload
1633
1782
  * @param {*} [options] Override http request option.
1634
1783
  * @throws {RequiredError}
1635
1784
  */
1636
- bucketsBillingHistoryHourlyChart: (bucketId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [bucketId_1, startDate_1, endDate_1, ...args_1], void 0, function* (bucketId, startDate, endDate, options = {}) {
1637
- // verify required parameter 'bucketId' is not null or undefined
1638
- (0, common_1.assertParamExists)('bucketsBillingHistoryHourlyChart', 'bucketId', bucketId);
1639
- const localVarPath = `/billing/billing/history/bucket/{bucket_id}/graph`
1640
- .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
1785
+ createBetaAccessRequest: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1786
+ // verify required parameter 'payload' is not null or undefined
1787
+ (0, common_1.assertParamExists)('createBetaAccessRequest', 'payload', payload);
1788
+ const localVarPath = `/auth/beta-access/requests`;
1641
1789
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1642
1790
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1643
1791
  let baseOptions;
1644
1792
  if (configuration) {
1645
1793
  baseOptions = configuration.baseOptions;
1646
1794
  }
1647
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1795
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1648
1796
  const localVarHeaderParameter = {};
1649
1797
  const localVarQueryParameter = {};
1650
1798
  // authentication apiKey required
1651
1799
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
1652
- if (startDate !== undefined) {
1653
- localVarQueryParameter['start_date'] = startDate;
1654
- }
1655
- if (endDate !== undefined) {
1656
- localVarQueryParameter['end_date'] = endDate;
1657
- }
1800
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1658
1801
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1659
1802
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1660
1803
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1804
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
1661
1805
  return {
1662
1806
  url: (0, common_1.toPathString)(localVarUrlObj),
1663
1807
  options: localVarRequestOptions,
1664
1808
  };
1665
1809
  }),
1666
1810
  /**
1667
- * Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'incurred_bill\', \'usage_time\', \'non_discounted_price_per_hour\', \'non_discounted_bill\'.
1668
- * @summary Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
1669
- * @param {number} bucketId
1670
- * @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
1671
- * @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
1811
+ * Check the status of a particular beta access requests.
1812
+ * @summary Check the status of beta access requests
1813
+ * @param {string} program
1672
1814
  * @param {*} [options] Override http request option.
1673
1815
  * @throws {RequiredError}
1674
1816
  */
1675
- getBucketBillingHistory: (bucketId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [bucketId_1, startDate_1, endDate_1, ...args_1], void 0, function* (bucketId, startDate, endDate, options = {}) {
1676
- // verify required parameter 'bucketId' is not null or undefined
1677
- (0, common_1.assertParamExists)('getBucketBillingHistory', 'bucketId', bucketId);
1678
- const localVarPath = `/billing/billing/history/bucket/{bucket_id}`
1679
- .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
1817
+ getBetaAccessRequests: (program_1, ...args_1) => __awaiter(this, [program_1, ...args_1], void 0, function* (program, options = {}) {
1818
+ // verify required parameter 'program' is not null or undefined
1819
+ (0, common_1.assertParamExists)('getBetaAccessRequests', 'program', program);
1820
+ const localVarPath = `/auth/beta-access/requests/{program}`
1821
+ .replace(`{${"program"}}`, encodeURIComponent(String(program)));
1680
1822
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1681
1823
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1682
1824
  let baseOptions;
@@ -1688,12 +1830,6 @@ const BillingApiAxiosParamCreator = function (configuration) {
1688
1830
  const localVarQueryParameter = {};
1689
1831
  // authentication apiKey required
1690
1832
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
1691
- if (startDate !== undefined) {
1692
- localVarQueryParameter['start_date'] = startDate;
1693
- }
1694
- if (endDate !== undefined) {
1695
- localVarQueryParameter['end_date'] = endDate;
1696
- }
1697
1833
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1698
1834
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1699
1835
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1703,11 +1839,262 @@ const BillingApiAxiosParamCreator = function (configuration) {
1703
1839
  };
1704
1840
  }),
1705
1841
  /**
1706
- * User will receive billing history of a specific Cluster for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'non_discounted_price_per_hour\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'usage_time_ACTIVE\', \'usage_time_SHUTOFF\', \'usage_time_HIBERNATED\'.
1707
- * @summary Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
1708
- * @param {number} clusterId
1709
- * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1710
- * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1842
+ * Check the status of all beta access requests.
1843
+ * @summary Check the status of all beta access requests
1844
+ * @param {*} [options] Override http request option.
1845
+ * @throws {RequiredError}
1846
+ */
1847
+ getBetaAccessStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1848
+ const localVarPath = `/auth/beta-access/requests`;
1849
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1850
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1851
+ let baseOptions;
1852
+ if (configuration) {
1853
+ baseOptions = configuration.baseOptions;
1854
+ }
1855
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1856
+ const localVarHeaderParameter = {};
1857
+ const localVarQueryParameter = {};
1858
+ // authentication apiKey required
1859
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
1860
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1862
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1863
+ return {
1864
+ url: (0, common_1.toPathString)(localVarUrlObj),
1865
+ options: localVarRequestOptions,
1866
+ };
1867
+ }),
1868
+ };
1869
+ };
1870
+ exports.BetaAccessApiAxiosParamCreator = BetaAccessApiAxiosParamCreator;
1871
+ /**
1872
+ * BetaAccessApi - functional programming interface
1873
+ * @export
1874
+ */
1875
+ const BetaAccessApiFp = function (configuration) {
1876
+ const localVarAxiosParamCreator = (0, exports.BetaAccessApiAxiosParamCreator)(configuration);
1877
+ return {
1878
+ /**
1879
+ * Creates a new beta access request for the current user
1880
+ * @summary Create a new beta access request
1881
+ * @param {BetaAccessRequestPayload} payload
1882
+ * @param {*} [options] Override http request option.
1883
+ * @throws {RequiredError}
1884
+ */
1885
+ createBetaAccessRequest(payload, options) {
1886
+ return __awaiter(this, void 0, void 0, function* () {
1887
+ var _a, _b, _c;
1888
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBetaAccessRequest(payload, options);
1889
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1890
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BetaAccessApi.createBetaAccessRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1891
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1892
+ });
1893
+ },
1894
+ /**
1895
+ * Check the status of a particular beta access requests.
1896
+ * @summary Check the status of beta access requests
1897
+ * @param {string} program
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ getBetaAccessRequests(program, options) {
1902
+ return __awaiter(this, void 0, void 0, function* () {
1903
+ var _a, _b, _c;
1904
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessRequests(program, options);
1905
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1906
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BetaAccessApi.getBetaAccessRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1907
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1908
+ });
1909
+ },
1910
+ /**
1911
+ * Check the status of all beta access requests.
1912
+ * @summary Check the status of all beta access requests
1913
+ * @param {*} [options] Override http request option.
1914
+ * @throws {RequiredError}
1915
+ */
1916
+ getBetaAccessStatus(options) {
1917
+ return __awaiter(this, void 0, void 0, function* () {
1918
+ var _a, _b, _c;
1919
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessStatus(options);
1920
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1921
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BetaAccessApi.getBetaAccessStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1922
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1923
+ });
1924
+ },
1925
+ };
1926
+ };
1927
+ exports.BetaAccessApiFp = BetaAccessApiFp;
1928
+ /**
1929
+ * BetaAccessApi - factory interface
1930
+ * @export
1931
+ */
1932
+ const BetaAccessApiFactory = function (configuration, basePath, axios) {
1933
+ const localVarFp = (0, exports.BetaAccessApiFp)(configuration);
1934
+ return {
1935
+ /**
1936
+ * Creates a new beta access request for the current user
1937
+ * @summary Create a new beta access request
1938
+ * @param {BetaAccessRequestPayload} payload
1939
+ * @param {*} [options] Override http request option.
1940
+ * @throws {RequiredError}
1941
+ */
1942
+ createBetaAccessRequest(payload, options) {
1943
+ return localVarFp.createBetaAccessRequest(payload, options).then((request) => request(axios, basePath));
1944
+ },
1945
+ /**
1946
+ * Check the status of a particular beta access requests.
1947
+ * @summary Check the status of beta access requests
1948
+ * @param {string} program
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ */
1952
+ getBetaAccessRequests(program, options) {
1953
+ return localVarFp.getBetaAccessRequests(program, options).then((request) => request(axios, basePath));
1954
+ },
1955
+ /**
1956
+ * Check the status of all beta access requests.
1957
+ * @summary Check the status of all beta access requests
1958
+ * @param {*} [options] Override http request option.
1959
+ * @throws {RequiredError}
1960
+ */
1961
+ getBetaAccessStatus(options) {
1962
+ return localVarFp.getBetaAccessStatus(options).then((request) => request(axios, basePath));
1963
+ },
1964
+ };
1965
+ };
1966
+ exports.BetaAccessApiFactory = BetaAccessApiFactory;
1967
+ /**
1968
+ * BetaAccessApi - object-oriented interface
1969
+ * @export
1970
+ * @class BetaAccessApi
1971
+ * @extends {BaseAPI}
1972
+ */
1973
+ class BetaAccessApi extends base_1.BaseAPI {
1974
+ /**
1975
+ * Creates a new beta access request for the current user
1976
+ * @summary Create a new beta access request
1977
+ * @param {BetaAccessRequestPayload} payload
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ * @memberof BetaAccessApi
1981
+ */
1982
+ createBetaAccessRequest(payload, options) {
1983
+ return (0, exports.BetaAccessApiFp)(this.configuration).createBetaAccessRequest(payload, options).then((request) => request(this.axios, this.basePath));
1984
+ }
1985
+ /**
1986
+ * Check the status of a particular beta access requests.
1987
+ * @summary Check the status of beta access requests
1988
+ * @param {string} program
1989
+ * @param {*} [options] Override http request option.
1990
+ * @throws {RequiredError}
1991
+ * @memberof BetaAccessApi
1992
+ */
1993
+ getBetaAccessRequests(program, options) {
1994
+ return (0, exports.BetaAccessApiFp)(this.configuration).getBetaAccessRequests(program, options).then((request) => request(this.axios, this.basePath));
1995
+ }
1996
+ /**
1997
+ * Check the status of all beta access requests.
1998
+ * @summary Check the status of all beta access requests
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ * @memberof BetaAccessApi
2002
+ */
2003
+ getBetaAccessStatus(options) {
2004
+ return (0, exports.BetaAccessApiFp)(this.configuration).getBetaAccessStatus(options).then((request) => request(this.axios, this.basePath));
2005
+ }
2006
+ }
2007
+ exports.BetaAccessApi = BetaAccessApi;
2008
+ /**
2009
+ * BillingApi - axios parameter creator
2010
+ * @export
2011
+ */
2012
+ const BillingApiAxiosParamCreator = function (configuration) {
2013
+ return {
2014
+ /**
2015
+ * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
2016
+ * @summary Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
2017
+ * @param {number} bucketId
2018
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2019
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2020
+ * @param {*} [options] Override http request option.
2021
+ * @throws {RequiredError}
2022
+ */
2023
+ bucketsBillingHistoryHourlyChart: (bucketId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [bucketId_1, startDate_1, endDate_1, ...args_1], void 0, function* (bucketId, startDate, endDate, options = {}) {
2024
+ // verify required parameter 'bucketId' is not null or undefined
2025
+ (0, common_1.assertParamExists)('bucketsBillingHistoryHourlyChart', 'bucketId', bucketId);
2026
+ const localVarPath = `/billing/billing/history/bucket/{bucket_id}/graph`
2027
+ .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
2028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2029
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2030
+ let baseOptions;
2031
+ if (configuration) {
2032
+ baseOptions = configuration.baseOptions;
2033
+ }
2034
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2035
+ const localVarHeaderParameter = {};
2036
+ const localVarQueryParameter = {};
2037
+ // authentication apiKey required
2038
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
2039
+ if (startDate !== undefined) {
2040
+ localVarQueryParameter['start_date'] = startDate;
2041
+ }
2042
+ if (endDate !== undefined) {
2043
+ localVarQueryParameter['end_date'] = endDate;
2044
+ }
2045
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2046
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2047
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2048
+ return {
2049
+ url: (0, common_1.toPathString)(localVarUrlObj),
2050
+ options: localVarRequestOptions,
2051
+ };
2052
+ }),
2053
+ /**
2054
+ * Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'incurred_bill\', \'usage_time\', \'non_discounted_price_per_hour\', \'non_discounted_bill\'.
2055
+ * @summary Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
2056
+ * @param {number} bucketId
2057
+ * @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
2058
+ * @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
2059
+ * @param {*} [options] Override http request option.
2060
+ * @throws {RequiredError}
2061
+ */
2062
+ getBucketBillingHistory: (bucketId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [bucketId_1, startDate_1, endDate_1, ...args_1], void 0, function* (bucketId, startDate, endDate, options = {}) {
2063
+ // verify required parameter 'bucketId' is not null or undefined
2064
+ (0, common_1.assertParamExists)('getBucketBillingHistory', 'bucketId', bucketId);
2065
+ const localVarPath = `/billing/billing/history/bucket/{bucket_id}`
2066
+ .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
2067
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2068
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2069
+ let baseOptions;
2070
+ if (configuration) {
2071
+ baseOptions = configuration.baseOptions;
2072
+ }
2073
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2074
+ const localVarHeaderParameter = {};
2075
+ const localVarQueryParameter = {};
2076
+ // authentication apiKey required
2077
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
2078
+ if (startDate !== undefined) {
2079
+ localVarQueryParameter['start_date'] = startDate;
2080
+ }
2081
+ if (endDate !== undefined) {
2082
+ localVarQueryParameter['end_date'] = endDate;
2083
+ }
2084
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2085
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2086
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2087
+ return {
2088
+ url: (0, common_1.toPathString)(localVarUrlObj),
2089
+ options: localVarRequestOptions,
2090
+ };
2091
+ }),
2092
+ /**
2093
+ * User will receive billing history of a specific Cluster for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'non_discounted_price_per_hour\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'usage_time_ACTIVE\', \'usage_time_SHUTOFF\', \'usage_time_HIBERNATED\'.
2094
+ * @summary Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
2095
+ * @param {number} clusterId
2096
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2097
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1711
2098
  * @param {*} [options] Override http request option.
1712
2099
  * @throws {RequiredError}
1713
2100
  */
@@ -1991,8 +2378,132 @@ const BillingApiAxiosParamCreator = function (configuration) {
1991
2378
  };
1992
2379
  }),
1993
2380
  /**
1994
- * 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/)
1995
- * @summary GET: Last Day Cost
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
+ }),
2504
+ /**
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/)
2506
+ * @summary GET: Last Day Cost
1996
2507
  * @param {*} [options] Override http request option.
1997
2508
  * @throws {RequiredError}
1998
2509
  */
@@ -3280,6 +3791,61 @@ const BillingApiFp = function (configuration) {
3280
3791
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3281
3792
  });
3282
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
+ },
3283
3849
  /**
3284
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/)
3285
3851
  * @summary GET: Last Day Cost
@@ -3909,6 +4475,43 @@ const BillingApiFactory = function (configuration, basePath, axios) {
3909
4475
  getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
3910
4476
  return localVarFp.getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
3911
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
+ },
3912
4515
  /**
3913
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/)
3914
4517
  * @summary GET: Last Day Cost
@@ -4379,6 +4982,46 @@ class BillingApi extends base_1.BaseAPI {
4379
4982
  getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
4380
4983
  return (0, exports.BillingApiFp)(this.configuration).getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
4381
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
+ }
4382
5025
  /**
4383
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/)
4384
5027
  * @summary GET: Last Day Cost
@@ -13994,6 +14637,492 @@ class UserApi extends base_1.BaseAPI {
13994
14637
  }
13995
14638
  }
13996
14639
  exports.UserApi = UserApi;
14640
+ /**
14641
+ * UserConsentApi - axios parameter creator
14642
+ * @export
14643
+ */
14644
+ const UserConsentApiAxiosParamCreator = function (configuration) {
14645
+ return {
14646
+ /**
14647
+ * Add a new consent given by the User
14648
+ * @summary Add a new User consent
14649
+ * @param {RecordConsentRequest} payload
14650
+ * @param {*} [options] Override http request option.
14651
+ * @throws {RequiredError}
14652
+ */
14653
+ addANewConsentForAUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
14654
+ // verify required parameter 'payload' is not null or undefined
14655
+ (0, common_1.assertParamExists)('addANewConsentForAUser', 'payload', payload);
14656
+ const localVarPath = `/auth/user-consent`;
14657
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14658
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14659
+ let baseOptions;
14660
+ if (configuration) {
14661
+ baseOptions = configuration.baseOptions;
14662
+ }
14663
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14664
+ const localVarHeaderParameter = {};
14665
+ const localVarQueryParameter = {};
14666
+ // authentication apiKey required
14667
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
14668
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14669
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14671
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14672
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
14673
+ return {
14674
+ url: (0, common_1.toPathString)(localVarUrlObj),
14675
+ options: localVarRequestOptions,
14676
+ };
14677
+ }),
14678
+ /**
14679
+ * Returns current consent templates for all consent types
14680
+ * @summary Get all consent templates
14681
+ * @param {*} [options] Override http request option.
14682
+ * @throws {RequiredError}
14683
+ */
14684
+ getAllConsentTemplates: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14685
+ const localVarPath = `/auth/user-consent/templates`;
14686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14687
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14688
+ let baseOptions;
14689
+ if (configuration) {
14690
+ baseOptions = configuration.baseOptions;
14691
+ }
14692
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14693
+ const localVarHeaderParameter = {};
14694
+ const localVarQueryParameter = {};
14695
+ // authentication apiKey required
14696
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
14697
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14698
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14699
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14700
+ return {
14701
+ url: (0, common_1.toPathString)(localVarUrlObj),
14702
+ options: localVarRequestOptions,
14703
+ };
14704
+ }),
14705
+ /**
14706
+ * Fetch all the recorded consents given from a User
14707
+ * @summary Get Consents for a User
14708
+ * @param {string} [consentType] Filter by consent type
14709
+ * @param {*} [options] Override http request option.
14710
+ * @throws {RequiredError}
14711
+ */
14712
+ getAllConsentsForAUser: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
14713
+ const localVarPath = `/auth/user-consent`;
14714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14715
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14716
+ let baseOptions;
14717
+ if (configuration) {
14718
+ baseOptions = configuration.baseOptions;
14719
+ }
14720
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14721
+ const localVarHeaderParameter = {};
14722
+ const localVarQueryParameter = {};
14723
+ // authentication apiKey required
14724
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
14725
+ if (consentType !== undefined) {
14726
+ localVarQueryParameter['consent_type'] = consentType;
14727
+ }
14728
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14729
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14730
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14731
+ return {
14732
+ url: (0, common_1.toPathString)(localVarUrlObj),
14733
+ options: localVarRequestOptions,
14734
+ };
14735
+ }),
14736
+ /**
14737
+ * Returns the current consent template for a specific consent type
14738
+ * @summary Get consent template for a specific type
14739
+ * @param {string} consentType
14740
+ * @param {*} [options] Override http request option.
14741
+ * @throws {RequiredError}
14742
+ */
14743
+ getConsentTemplateByType: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
14744
+ // verify required parameter 'consentType' is not null or undefined
14745
+ (0, common_1.assertParamExists)('getConsentTemplateByType', 'consentType', consentType);
14746
+ const localVarPath = `/auth/user-consent/templates/{consent_type}`
14747
+ .replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
14748
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14749
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14750
+ let baseOptions;
14751
+ if (configuration) {
14752
+ baseOptions = configuration.baseOptions;
14753
+ }
14754
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14755
+ const localVarHeaderParameter = {};
14756
+ const localVarQueryParameter = {};
14757
+ // authentication apiKey required
14758
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
14759
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14761
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14762
+ return {
14763
+ url: (0, common_1.toPathString)(localVarUrlObj),
14764
+ options: localVarRequestOptions,
14765
+ };
14766
+ }),
14767
+ /**
14768
+ * Revoke or grant a consent to the User
14769
+ * @summary Grant or revoke an existing consent
14770
+ * @param {string} consentType
14771
+ * @param {UpdateConsentRequest} payload
14772
+ * @param {*} [options] Override http request option.
14773
+ * @throws {RequiredError}
14774
+ */
14775
+ updateAConsentActionByType: (consentType_1, payload_1, ...args_1) => __awaiter(this, [consentType_1, payload_1, ...args_1], void 0, function* (consentType, payload, options = {}) {
14776
+ // verify required parameter 'consentType' is not null or undefined
14777
+ (0, common_1.assertParamExists)('updateAConsentActionByType', 'consentType', consentType);
14778
+ // verify required parameter 'payload' is not null or undefined
14779
+ (0, common_1.assertParamExists)('updateAConsentActionByType', 'payload', payload);
14780
+ const localVarPath = `/auth/user-consent/{consent_type}`
14781
+ .replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
14782
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14783
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14784
+ let baseOptions;
14785
+ if (configuration) {
14786
+ baseOptions = configuration.baseOptions;
14787
+ }
14788
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
14789
+ const localVarHeaderParameter = {};
14790
+ const localVarQueryParameter = {};
14791
+ // authentication apiKey required
14792
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
14793
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14794
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14795
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14796
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14797
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
14798
+ return {
14799
+ url: (0, common_1.toPathString)(localVarUrlObj),
14800
+ options: localVarRequestOptions,
14801
+ };
14802
+ }),
14803
+ };
14804
+ };
14805
+ exports.UserConsentApiAxiosParamCreator = UserConsentApiAxiosParamCreator;
14806
+ /**
14807
+ * UserConsentApi - functional programming interface
14808
+ * @export
14809
+ */
14810
+ const UserConsentApiFp = function (configuration) {
14811
+ const localVarAxiosParamCreator = (0, exports.UserConsentApiAxiosParamCreator)(configuration);
14812
+ return {
14813
+ /**
14814
+ * Add a new consent given by the User
14815
+ * @summary Add a new User consent
14816
+ * @param {RecordConsentRequest} payload
14817
+ * @param {*} [options] Override http request option.
14818
+ * @throws {RequiredError}
14819
+ */
14820
+ addANewConsentForAUser(payload, options) {
14821
+ return __awaiter(this, void 0, void 0, function* () {
14822
+ var _a, _b, _c;
14823
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addANewConsentForAUser(payload, options);
14824
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14825
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.addANewConsentForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14826
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14827
+ });
14828
+ },
14829
+ /**
14830
+ * Returns current consent templates for all consent types
14831
+ * @summary Get all consent templates
14832
+ * @param {*} [options] Override http request option.
14833
+ * @throws {RequiredError}
14834
+ */
14835
+ getAllConsentTemplates(options) {
14836
+ return __awaiter(this, void 0, void 0, function* () {
14837
+ var _a, _b, _c;
14838
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentTemplates(options);
14839
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14840
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.getAllConsentTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14841
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14842
+ });
14843
+ },
14844
+ /**
14845
+ * Fetch all the recorded consents given from a User
14846
+ * @summary Get Consents for a User
14847
+ * @param {string} [consentType] Filter by consent type
14848
+ * @param {*} [options] Override http request option.
14849
+ * @throws {RequiredError}
14850
+ */
14851
+ getAllConsentsForAUser(consentType, options) {
14852
+ return __awaiter(this, void 0, void 0, function* () {
14853
+ var _a, _b, _c;
14854
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentsForAUser(consentType, options);
14855
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14856
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.getAllConsentsForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14857
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14858
+ });
14859
+ },
14860
+ /**
14861
+ * Returns the current consent template for a specific consent type
14862
+ * @summary Get consent template for a specific type
14863
+ * @param {string} consentType
14864
+ * @param {*} [options] Override http request option.
14865
+ * @throws {RequiredError}
14866
+ */
14867
+ getConsentTemplateByType(consentType, options) {
14868
+ return __awaiter(this, void 0, void 0, function* () {
14869
+ var _a, _b, _c;
14870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentTemplateByType(consentType, options);
14871
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14872
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.getConsentTemplateByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14873
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14874
+ });
14875
+ },
14876
+ /**
14877
+ * Revoke or grant a consent to the User
14878
+ * @summary Grant or revoke an existing consent
14879
+ * @param {string} consentType
14880
+ * @param {UpdateConsentRequest} payload
14881
+ * @param {*} [options] Override http request option.
14882
+ * @throws {RequiredError}
14883
+ */
14884
+ updateAConsentActionByType(consentType, payload, options) {
14885
+ return __awaiter(this, void 0, void 0, function* () {
14886
+ var _a, _b, _c;
14887
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAConsentActionByType(consentType, payload, options);
14888
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14889
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentApi.updateAConsentActionByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14890
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14891
+ });
14892
+ },
14893
+ };
14894
+ };
14895
+ exports.UserConsentApiFp = UserConsentApiFp;
14896
+ /**
14897
+ * UserConsentApi - factory interface
14898
+ * @export
14899
+ */
14900
+ const UserConsentApiFactory = function (configuration, basePath, axios) {
14901
+ const localVarFp = (0, exports.UserConsentApiFp)(configuration);
14902
+ return {
14903
+ /**
14904
+ * Add a new consent given by the User
14905
+ * @summary Add a new User consent
14906
+ * @param {RecordConsentRequest} payload
14907
+ * @param {*} [options] Override http request option.
14908
+ * @throws {RequiredError}
14909
+ */
14910
+ addANewConsentForAUser(payload, options) {
14911
+ return localVarFp.addANewConsentForAUser(payload, options).then((request) => request(axios, basePath));
14912
+ },
14913
+ /**
14914
+ * Returns current consent templates for all consent types
14915
+ * @summary Get all consent templates
14916
+ * @param {*} [options] Override http request option.
14917
+ * @throws {RequiredError}
14918
+ */
14919
+ getAllConsentTemplates(options) {
14920
+ return localVarFp.getAllConsentTemplates(options).then((request) => request(axios, basePath));
14921
+ },
14922
+ /**
14923
+ * Fetch all the recorded consents given from a User
14924
+ * @summary Get Consents for a User
14925
+ * @param {string} [consentType] Filter by consent type
14926
+ * @param {*} [options] Override http request option.
14927
+ * @throws {RequiredError}
14928
+ */
14929
+ getAllConsentsForAUser(consentType, options) {
14930
+ return localVarFp.getAllConsentsForAUser(consentType, options).then((request) => request(axios, basePath));
14931
+ },
14932
+ /**
14933
+ * Returns the current consent template for a specific consent type
14934
+ * @summary Get consent template for a specific type
14935
+ * @param {string} consentType
14936
+ * @param {*} [options] Override http request option.
14937
+ * @throws {RequiredError}
14938
+ */
14939
+ getConsentTemplateByType(consentType, options) {
14940
+ return localVarFp.getConsentTemplateByType(consentType, options).then((request) => request(axios, basePath));
14941
+ },
14942
+ /**
14943
+ * Revoke or grant a consent to the User
14944
+ * @summary Grant or revoke an existing consent
14945
+ * @param {string} consentType
14946
+ * @param {UpdateConsentRequest} payload
14947
+ * @param {*} [options] Override http request option.
14948
+ * @throws {RequiredError}
14949
+ */
14950
+ updateAConsentActionByType(consentType, payload, options) {
14951
+ return localVarFp.updateAConsentActionByType(consentType, payload, options).then((request) => request(axios, basePath));
14952
+ },
14953
+ };
14954
+ };
14955
+ exports.UserConsentApiFactory = UserConsentApiFactory;
14956
+ /**
14957
+ * UserConsentApi - object-oriented interface
14958
+ * @export
14959
+ * @class UserConsentApi
14960
+ * @extends {BaseAPI}
14961
+ */
14962
+ class UserConsentApi extends base_1.BaseAPI {
14963
+ /**
14964
+ * Add a new consent given by the User
14965
+ * @summary Add a new User consent
14966
+ * @param {RecordConsentRequest} payload
14967
+ * @param {*} [options] Override http request option.
14968
+ * @throws {RequiredError}
14969
+ * @memberof UserConsentApi
14970
+ */
14971
+ addANewConsentForAUser(payload, options) {
14972
+ return (0, exports.UserConsentApiFp)(this.configuration).addANewConsentForAUser(payload, options).then((request) => request(this.axios, this.basePath));
14973
+ }
14974
+ /**
14975
+ * Returns current consent templates for all consent types
14976
+ * @summary Get all consent templates
14977
+ * @param {*} [options] Override http request option.
14978
+ * @throws {RequiredError}
14979
+ * @memberof UserConsentApi
14980
+ */
14981
+ getAllConsentTemplates(options) {
14982
+ return (0, exports.UserConsentApiFp)(this.configuration).getAllConsentTemplates(options).then((request) => request(this.axios, this.basePath));
14983
+ }
14984
+ /**
14985
+ * Fetch all the recorded consents given from a User
14986
+ * @summary Get Consents for a User
14987
+ * @param {string} [consentType] Filter by consent type
14988
+ * @param {*} [options] Override http request option.
14989
+ * @throws {RequiredError}
14990
+ * @memberof UserConsentApi
14991
+ */
14992
+ getAllConsentsForAUser(consentType, options) {
14993
+ return (0, exports.UserConsentApiFp)(this.configuration).getAllConsentsForAUser(consentType, options).then((request) => request(this.axios, this.basePath));
14994
+ }
14995
+ /**
14996
+ * Returns the current consent template for a specific consent type
14997
+ * @summary Get consent template for a specific type
14998
+ * @param {string} consentType
14999
+ * @param {*} [options] Override http request option.
15000
+ * @throws {RequiredError}
15001
+ * @memberof UserConsentApi
15002
+ */
15003
+ getConsentTemplateByType(consentType, options) {
15004
+ return (0, exports.UserConsentApiFp)(this.configuration).getConsentTemplateByType(consentType, options).then((request) => request(this.axios, this.basePath));
15005
+ }
15006
+ /**
15007
+ * Revoke or grant a consent to the User
15008
+ * @summary Grant or revoke an existing consent
15009
+ * @param {string} consentType
15010
+ * @param {UpdateConsentRequest} payload
15011
+ * @param {*} [options] Override http request option.
15012
+ * @throws {RequiredError}
15013
+ * @memberof UserConsentApi
15014
+ */
15015
+ updateAConsentActionByType(consentType, payload, options) {
15016
+ return (0, exports.UserConsentApiFp)(this.configuration).updateAConsentActionByType(consentType, payload, options).then((request) => request(this.axios, this.basePath));
15017
+ }
15018
+ }
15019
+ exports.UserConsentApi = UserConsentApi;
15020
+ /**
15021
+ * UserConsentEventsApi - axios parameter creator
15022
+ * @export
15023
+ */
15024
+ const UserConsentEventsApiAxiosParamCreator = function (configuration) {
15025
+ return {
15026
+ /**
15027
+ * Get all consent audit events
15028
+ * @summary Get audit trail for a consent
15029
+ * @param {string} consentType
15030
+ * @param {*} [options] Override http request option.
15031
+ * @throws {RequiredError}
15032
+ */
15033
+ getConsentAuditEvents: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
15034
+ // verify required parameter 'consentType' is not null or undefined
15035
+ (0, common_1.assertParamExists)('getConsentAuditEvents', 'consentType', consentType);
15036
+ const localVarPath = `/auth/user-consent-events/{consent_type}/events`
15037
+ .replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
15038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15039
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15040
+ let baseOptions;
15041
+ if (configuration) {
15042
+ baseOptions = configuration.baseOptions;
15043
+ }
15044
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15045
+ const localVarHeaderParameter = {};
15046
+ const localVarQueryParameter = {};
15047
+ // authentication apiKey required
15048
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
15049
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15051
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15052
+ return {
15053
+ url: (0, common_1.toPathString)(localVarUrlObj),
15054
+ options: localVarRequestOptions,
15055
+ };
15056
+ }),
15057
+ };
15058
+ };
15059
+ exports.UserConsentEventsApiAxiosParamCreator = UserConsentEventsApiAxiosParamCreator;
15060
+ /**
15061
+ * UserConsentEventsApi - functional programming interface
15062
+ * @export
15063
+ */
15064
+ const UserConsentEventsApiFp = function (configuration) {
15065
+ const localVarAxiosParamCreator = (0, exports.UserConsentEventsApiAxiosParamCreator)(configuration);
15066
+ return {
15067
+ /**
15068
+ * Get all consent audit events
15069
+ * @summary Get audit trail for a consent
15070
+ * @param {string} consentType
15071
+ * @param {*} [options] Override http request option.
15072
+ * @throws {RequiredError}
15073
+ */
15074
+ getConsentAuditEvents(consentType, options) {
15075
+ return __awaiter(this, void 0, void 0, function* () {
15076
+ var _a, _b, _c;
15077
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentAuditEvents(consentType, options);
15078
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15079
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserConsentEventsApi.getConsentAuditEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15080
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15081
+ });
15082
+ },
15083
+ };
15084
+ };
15085
+ exports.UserConsentEventsApiFp = UserConsentEventsApiFp;
15086
+ /**
15087
+ * UserConsentEventsApi - factory interface
15088
+ * @export
15089
+ */
15090
+ const UserConsentEventsApiFactory = function (configuration, basePath, axios) {
15091
+ const localVarFp = (0, exports.UserConsentEventsApiFp)(configuration);
15092
+ return {
15093
+ /**
15094
+ * Get all consent audit events
15095
+ * @summary Get audit trail for a consent
15096
+ * @param {string} consentType
15097
+ * @param {*} [options] Override http request option.
15098
+ * @throws {RequiredError}
15099
+ */
15100
+ getConsentAuditEvents(consentType, options) {
15101
+ return localVarFp.getConsentAuditEvents(consentType, options).then((request) => request(axios, basePath));
15102
+ },
15103
+ };
15104
+ };
15105
+ exports.UserConsentEventsApiFactory = UserConsentEventsApiFactory;
15106
+ /**
15107
+ * UserConsentEventsApi - object-oriented interface
15108
+ * @export
15109
+ * @class UserConsentEventsApi
15110
+ * @extends {BaseAPI}
15111
+ */
15112
+ class UserConsentEventsApi extends base_1.BaseAPI {
15113
+ /**
15114
+ * Get all consent audit events
15115
+ * @summary Get audit trail for a consent
15116
+ * @param {string} consentType
15117
+ * @param {*} [options] Override http request option.
15118
+ * @throws {RequiredError}
15119
+ * @memberof UserConsentEventsApi
15120
+ */
15121
+ getConsentAuditEvents(consentType, options) {
15122
+ return (0, exports.UserConsentEventsApiFp)(this.configuration).getConsentAuditEvents(consentType, options).then((request) => request(this.axios, this.basePath));
15123
+ }
15124
+ }
15125
+ exports.UserConsentEventsApi = UserConsentEventsApi;
13997
15126
  /**
13998
15127
  * UserDetailChoiceApi - axios parameter creator
13999
15128
  * @export