@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/esm/api.js CHANGED
@@ -38,6 +38,13 @@ export const BetaAccessStatusItemStatusEnum = {
38
38
  Denied: 'denied',
39
39
  Revoked: 'revoked'
40
40
  };
41
+ export const ConsentBlockTypeEnum = {
42
+ Text: 'text',
43
+ Warning: 'warning',
44
+ Info: 'info',
45
+ Success: 'success',
46
+ Failure: 'failure'
47
+ };
41
48
  export const CreateClusterNodeFieldsRoleEnum = {
42
49
  Worker: 'worker',
43
50
  Master: 'master'
@@ -123,11 +130,32 @@ export const KeypairEnvironmentFeaturesGreenStatusEnum = {
123
130
  export const ObjectStorageRegionsEnum = {
124
131
  Canada1: 'CANADA-1'
125
132
  };
133
+ export const RecordConsentRequestActionEnum = {
134
+ Granted: 'granted',
135
+ Revoked: 'revoked'
136
+ };
137
+ export const RecordConsentRequestConsentMethodEnum = {
138
+ WebCheckbox: 'web_checkbox',
139
+ Api: 'api',
140
+ AdminOverride: 'admin_override'
141
+ };
142
+ export const RecordConsentRequestConsentTypeEnum = {
143
+ AutoTopUp: 'auto_top_up'
144
+ };
126
145
  export const RegionFieldsGreenStatusEnum = {
127
146
  Green: 'GREEN',
128
147
  PartiallyGreen: 'PARTIALLY_GREEN',
129
148
  NotGreen: 'NOT_GREEN'
130
149
  };
150
+ export const UpdateConsentRequestActionEnum = {
151
+ Granted: 'granted',
152
+ Revoked: 'revoked'
153
+ };
154
+ export const UpdateConsentRequestConsentMethodEnum = {
155
+ WebCheckbox: 'web_checkbox',
156
+ Api: 'api',
157
+ AdminOverride: 'admin_override'
158
+ };
131
159
  /**
132
160
  * AccessKeysApi - axios parameter creator
133
161
  * @export
@@ -1356,22 +1384,22 @@ export class AuthApi extends BaseAPI {
1356
1384
  }
1357
1385
  }
1358
1386
  /**
1359
- * BetaAccessApi - axios parameter creator
1387
+ * AutoTopupApi - axios parameter creator
1360
1388
  * @export
1361
1389
  */
1362
- export const BetaAccessApiAxiosParamCreator = function (configuration) {
1390
+ export const AutoTopupApiAxiosParamCreator = function (configuration) {
1363
1391
  return {
1364
1392
  /**
1365
- * Creates a new beta access request for the current user
1366
- * @summary Create a new beta access request
1367
- * @param {BetaAccessRequestPayload} payload
1393
+ *
1394
+ * @summary Create an auto top up configuration and initiate Stripe setup
1395
+ * @param {CreateAutoTopupPayload} payload
1368
1396
  * @param {*} [options] Override http request option.
1369
1397
  * @throws {RequiredError}
1370
1398
  */
1371
- createBetaAccessRequest: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1399
+ createAutoTopUp: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1372
1400
  // verify required parameter 'payload' is not null or undefined
1373
- assertParamExists('createBetaAccessRequest', 'payload', payload);
1374
- const localVarPath = `/auth/beta-access/requests`;
1401
+ assertParamExists('createAutoTopUp', 'payload', payload);
1402
+ const localVarPath = `/billing/auto-topup`;
1375
1403
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1376
1404
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1377
1405
  let baseOptions;
@@ -1394,17 +1422,40 @@ export const BetaAccessApiAxiosParamCreator = function (configuration) {
1394
1422
  };
1395
1423
  }),
1396
1424
  /**
1397
- * Check the status of a particular beta access requests.
1398
- * @summary Check the status of beta access requests
1399
- * @param {string} program
1425
+ *
1426
+ * @summary Disable auto top up, preventing any future automatic charges
1400
1427
  * @param {*} [options] Override http request option.
1401
1428
  * @throws {RequiredError}
1402
1429
  */
1403
- getBetaAccessRequests: (program_1, ...args_1) => __awaiter(this, [program_1, ...args_1], void 0, function* (program, options = {}) {
1404
- // verify required parameter 'program' is not null or undefined
1405
- assertParamExists('getBetaAccessRequests', 'program', program);
1406
- const localVarPath = `/auth/beta-access/requests/{program}`
1407
- .replace(`{${"program"}}`, encodeURIComponent(String(program)));
1430
+ disableAutoTopUp: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1431
+ const localVarPath = `/billing/auto-topup`;
1432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1433
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1434
+ let baseOptions;
1435
+ if (configuration) {
1436
+ baseOptions = configuration.baseOptions;
1437
+ }
1438
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1439
+ const localVarHeaderParameter = {};
1440
+ const localVarQueryParameter = {};
1441
+ // authentication apiKey required
1442
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
1443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1446
+ return {
1447
+ url: toPathString(localVarUrlObj),
1448
+ options: localVarRequestOptions,
1449
+ };
1450
+ }),
1451
+ /**
1452
+ *
1453
+ * @summary Retrieve the current auto top up configuration and transaction history
1454
+ * @param {*} [options] Override http request option.
1455
+ * @throws {RequiredError}
1456
+ */
1457
+ getAutoTopUp: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1458
+ const localVarPath = `/billing/auto-topup`;
1408
1459
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1409
1460
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1410
1461
  let baseOptions;
@@ -1425,13 +1476,13 @@ export const BetaAccessApiAxiosParamCreator = function (configuration) {
1425
1476
  };
1426
1477
  }),
1427
1478
  /**
1428
- * Check the status of all beta access requests.
1429
- * @summary Check the status of all beta access requests
1479
+ * 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/).
1480
+ * @summary Get auto top-up status and configuration
1430
1481
  * @param {*} [options] Override http request option.
1431
1482
  * @throws {RequiredError}
1432
1483
  */
1433
- getBetaAccessStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1434
- const localVarPath = `/auth/beta-access/requests`;
1484
+ getAutoTopUpStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1485
+ const localVarPath = `/billing/auto-topup/status`;
1435
1486
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1436
1487
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1437
1488
  let baseOptions;
@@ -1451,201 +1502,292 @@ export const BetaAccessApiAxiosParamCreator = function (configuration) {
1451
1502
  options: localVarRequestOptions,
1452
1503
  };
1453
1504
  }),
1505
+ /**
1506
+ *
1507
+ * @summary Update an existing active auto top up configuration
1508
+ * @param {UpdateAutoTopupPayload} payload
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ updateAutoTopUp: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1513
+ // verify required parameter 'payload' is not null or undefined
1514
+ assertParamExists('updateAutoTopUp', 'payload', payload);
1515
+ const localVarPath = `/billing/auto-topup`;
1516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1518
+ let baseOptions;
1519
+ if (configuration) {
1520
+ baseOptions = configuration.baseOptions;
1521
+ }
1522
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1523
+ const localVarHeaderParameter = {};
1524
+ const localVarQueryParameter = {};
1525
+ // authentication apiKey required
1526
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
1527
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1530
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1531
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
1532
+ return {
1533
+ url: toPathString(localVarUrlObj),
1534
+ options: localVarRequestOptions,
1535
+ };
1536
+ }),
1454
1537
  };
1455
1538
  };
1456
1539
  /**
1457
- * BetaAccessApi - functional programming interface
1540
+ * AutoTopupApi - functional programming interface
1458
1541
  * @export
1459
1542
  */
1460
- export const BetaAccessApiFp = function (configuration) {
1461
- const localVarAxiosParamCreator = BetaAccessApiAxiosParamCreator(configuration);
1543
+ export const AutoTopupApiFp = function (configuration) {
1544
+ const localVarAxiosParamCreator = AutoTopupApiAxiosParamCreator(configuration);
1462
1545
  return {
1463
1546
  /**
1464
- * Creates a new beta access request for the current user
1465
- * @summary Create a new beta access request
1466
- * @param {BetaAccessRequestPayload} payload
1547
+ *
1548
+ * @summary Create an auto top up configuration and initiate Stripe setup
1549
+ * @param {CreateAutoTopupPayload} payload
1467
1550
  * @param {*} [options] Override http request option.
1468
1551
  * @throws {RequiredError}
1469
1552
  */
1470
- createBetaAccessRequest(payload, options) {
1553
+ createAutoTopUp(payload, options) {
1471
1554
  return __awaiter(this, void 0, void 0, function* () {
1472
1555
  var _a, _b, _c;
1473
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createBetaAccessRequest(payload, options);
1556
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAutoTopUp(payload, options);
1474
1557
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1475
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BetaAccessApi.createBetaAccessRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1558
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AutoTopupApi.createAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1476
1559
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1477
1560
  });
1478
1561
  },
1479
1562
  /**
1480
- * Check the status of a particular beta access requests.
1481
- * @summary Check the status of beta access requests
1482
- * @param {string} program
1563
+ *
1564
+ * @summary Disable auto top up, preventing any future automatic charges
1483
1565
  * @param {*} [options] Override http request option.
1484
1566
  * @throws {RequiredError}
1485
1567
  */
1486
- getBetaAccessRequests(program, options) {
1568
+ disableAutoTopUp(options) {
1487
1569
  return __awaiter(this, void 0, void 0, function* () {
1488
1570
  var _a, _b, _c;
1489
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessRequests(program, options);
1571
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoTopUp(options);
1490
1572
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1491
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BetaAccessApi.getBetaAccessRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1573
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AutoTopupApi.disableAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1492
1574
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1493
1575
  });
1494
1576
  },
1495
1577
  /**
1496
- * Check the status of all beta access requests.
1497
- * @summary Check the status of all beta access requests
1578
+ *
1579
+ * @summary Retrieve the current auto top up configuration and transaction history
1498
1580
  * @param {*} [options] Override http request option.
1499
1581
  * @throws {RequiredError}
1500
1582
  */
1501
- getBetaAccessStatus(options) {
1583
+ getAutoTopUp(options) {
1502
1584
  return __awaiter(this, void 0, void 0, function* () {
1503
1585
  var _a, _b, _c;
1504
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessStatus(options);
1586
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAutoTopUp(options);
1505
1587
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1506
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BetaAccessApi.getBetaAccessStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1588
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AutoTopupApi.getAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1590
+ });
1591
+ },
1592
+ /**
1593
+ * 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/).
1594
+ * @summary Get auto top-up status and configuration
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ getAutoTopUpStatus(options) {
1599
+ return __awaiter(this, void 0, void 0, function* () {
1600
+ var _a, _b, _c;
1601
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAutoTopUpStatus(options);
1602
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1603
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AutoTopupApi.getAutoTopUpStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1604
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1605
+ });
1606
+ },
1607
+ /**
1608
+ *
1609
+ * @summary Update an existing active auto top up configuration
1610
+ * @param {UpdateAutoTopupPayload} payload
1611
+ * @param {*} [options] Override http request option.
1612
+ * @throws {RequiredError}
1613
+ */
1614
+ updateAutoTopUp(payload, options) {
1615
+ return __awaiter(this, void 0, void 0, function* () {
1616
+ var _a, _b, _c;
1617
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAutoTopUp(payload, options);
1618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1619
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AutoTopupApi.updateAutoTopUp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1507
1620
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1508
1621
  });
1509
1622
  },
1510
1623
  };
1511
1624
  };
1512
1625
  /**
1513
- * BetaAccessApi - factory interface
1626
+ * AutoTopupApi - factory interface
1514
1627
  * @export
1515
1628
  */
1516
- export const BetaAccessApiFactory = function (configuration, basePath, axios) {
1517
- const localVarFp = BetaAccessApiFp(configuration);
1629
+ export const AutoTopupApiFactory = function (configuration, basePath, axios) {
1630
+ const localVarFp = AutoTopupApiFp(configuration);
1518
1631
  return {
1519
1632
  /**
1520
- * Creates a new beta access request for the current user
1521
- * @summary Create a new beta access request
1522
- * @param {BetaAccessRequestPayload} payload
1633
+ *
1634
+ * @summary Create an auto top up configuration and initiate Stripe setup
1635
+ * @param {CreateAutoTopupPayload} payload
1523
1636
  * @param {*} [options] Override http request option.
1524
1637
  * @throws {RequiredError}
1525
1638
  */
1526
- createBetaAccessRequest(payload, options) {
1527
- return localVarFp.createBetaAccessRequest(payload, options).then((request) => request(axios, basePath));
1639
+ createAutoTopUp(payload, options) {
1640
+ return localVarFp.createAutoTopUp(payload, options).then((request) => request(axios, basePath));
1528
1641
  },
1529
1642
  /**
1530
- * Check the status of a particular beta access requests.
1531
- * @summary Check the status of beta access requests
1532
- * @param {string} program
1643
+ *
1644
+ * @summary Disable auto top up, preventing any future automatic charges
1533
1645
  * @param {*} [options] Override http request option.
1534
1646
  * @throws {RequiredError}
1535
1647
  */
1536
- getBetaAccessRequests(program, options) {
1537
- return localVarFp.getBetaAccessRequests(program, options).then((request) => request(axios, basePath));
1648
+ disableAutoTopUp(options) {
1649
+ return localVarFp.disableAutoTopUp(options).then((request) => request(axios, basePath));
1538
1650
  },
1539
1651
  /**
1540
- * Check the status of all beta access requests.
1541
- * @summary Check the status of all beta access requests
1652
+ *
1653
+ * @summary Retrieve the current auto top up configuration and transaction history
1542
1654
  * @param {*} [options] Override http request option.
1543
1655
  * @throws {RequiredError}
1544
1656
  */
1545
- getBetaAccessStatus(options) {
1546
- return localVarFp.getBetaAccessStatus(options).then((request) => request(axios, basePath));
1657
+ getAutoTopUp(options) {
1658
+ return localVarFp.getAutoTopUp(options).then((request) => request(axios, basePath));
1659
+ },
1660
+ /**
1661
+ * 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/).
1662
+ * @summary Get auto top-up status and configuration
1663
+ * @param {*} [options] Override http request option.
1664
+ * @throws {RequiredError}
1665
+ */
1666
+ getAutoTopUpStatus(options) {
1667
+ return localVarFp.getAutoTopUpStatus(options).then((request) => request(axios, basePath));
1668
+ },
1669
+ /**
1670
+ *
1671
+ * @summary Update an existing active auto top up configuration
1672
+ * @param {UpdateAutoTopupPayload} payload
1673
+ * @param {*} [options] Override http request option.
1674
+ * @throws {RequiredError}
1675
+ */
1676
+ updateAutoTopUp(payload, options) {
1677
+ return localVarFp.updateAutoTopUp(payload, options).then((request) => request(axios, basePath));
1547
1678
  },
1548
1679
  };
1549
1680
  };
1550
1681
  /**
1551
- * BetaAccessApi - object-oriented interface
1682
+ * AutoTopupApi - object-oriented interface
1552
1683
  * @export
1553
- * @class BetaAccessApi
1684
+ * @class AutoTopupApi
1554
1685
  * @extends {BaseAPI}
1555
1686
  */
1556
- export class BetaAccessApi extends BaseAPI {
1687
+ export class AutoTopupApi extends BaseAPI {
1557
1688
  /**
1558
- * Creates a new beta access request for the current user
1559
- * @summary Create a new beta access request
1560
- * @param {BetaAccessRequestPayload} payload
1689
+ *
1690
+ * @summary Create an auto top up configuration and initiate Stripe setup
1691
+ * @param {CreateAutoTopupPayload} payload
1561
1692
  * @param {*} [options] Override http request option.
1562
1693
  * @throws {RequiredError}
1563
- * @memberof BetaAccessApi
1694
+ * @memberof AutoTopupApi
1564
1695
  */
1565
- createBetaAccessRequest(payload, options) {
1566
- return BetaAccessApiFp(this.configuration).createBetaAccessRequest(payload, options).then((request) => request(this.axios, this.basePath));
1696
+ createAutoTopUp(payload, options) {
1697
+ return AutoTopupApiFp(this.configuration).createAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
1567
1698
  }
1568
1699
  /**
1569
- * Check the status of a particular beta access requests.
1570
- * @summary Check the status of beta access requests
1571
- * @param {string} program
1700
+ *
1701
+ * @summary Disable auto top up, preventing any future automatic charges
1572
1702
  * @param {*} [options] Override http request option.
1573
1703
  * @throws {RequiredError}
1574
- * @memberof BetaAccessApi
1704
+ * @memberof AutoTopupApi
1575
1705
  */
1576
- getBetaAccessRequests(program, options) {
1577
- return BetaAccessApiFp(this.configuration).getBetaAccessRequests(program, options).then((request) => request(this.axios, this.basePath));
1706
+ disableAutoTopUp(options) {
1707
+ return AutoTopupApiFp(this.configuration).disableAutoTopUp(options).then((request) => request(this.axios, this.basePath));
1578
1708
  }
1579
1709
  /**
1580
- * Check the status of all beta access requests.
1581
- * @summary Check the status of all beta access requests
1710
+ *
1711
+ * @summary Retrieve the current auto top up configuration and transaction history
1582
1712
  * @param {*} [options] Override http request option.
1583
1713
  * @throws {RequiredError}
1584
- * @memberof BetaAccessApi
1714
+ * @memberof AutoTopupApi
1585
1715
  */
1586
- getBetaAccessStatus(options) {
1587
- return BetaAccessApiFp(this.configuration).getBetaAccessStatus(options).then((request) => request(this.axios, this.basePath));
1716
+ getAutoTopUp(options) {
1717
+ return AutoTopupApiFp(this.configuration).getAutoTopUp(options).then((request) => request(this.axios, this.basePath));
1718
+ }
1719
+ /**
1720
+ * 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/).
1721
+ * @summary Get auto top-up status and configuration
1722
+ * @param {*} [options] Override http request option.
1723
+ * @throws {RequiredError}
1724
+ * @memberof AutoTopupApi
1725
+ */
1726
+ getAutoTopUpStatus(options) {
1727
+ return AutoTopupApiFp(this.configuration).getAutoTopUpStatus(options).then((request) => request(this.axios, this.basePath));
1728
+ }
1729
+ /**
1730
+ *
1731
+ * @summary Update an existing active auto top up configuration
1732
+ * @param {UpdateAutoTopupPayload} payload
1733
+ * @param {*} [options] Override http request option.
1734
+ * @throws {RequiredError}
1735
+ * @memberof AutoTopupApi
1736
+ */
1737
+ updateAutoTopUp(payload, options) {
1738
+ return AutoTopupApiFp(this.configuration).updateAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
1588
1739
  }
1589
1740
  }
1590
1741
  /**
1591
- * BillingApi - axios parameter creator
1742
+ * BetaAccessApi - axios parameter creator
1592
1743
  * @export
1593
1744
  */
1594
- export const BillingApiAxiosParamCreator = function (configuration) {
1745
+ export const BetaAccessApiAxiosParamCreator = function (configuration) {
1595
1746
  return {
1596
1747
  /**
1597
- * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
1598
- * @summary Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
1599
- * @param {number} bucketId
1600
- * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1601
- * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1748
+ * Creates a new beta access request for the current user
1749
+ * @summary Create a new beta access request
1750
+ * @param {BetaAccessRequestPayload} payload
1602
1751
  * @param {*} [options] Override http request option.
1603
1752
  * @throws {RequiredError}
1604
1753
  */
1605
- 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 = {}) {
1606
- // verify required parameter 'bucketId' is not null or undefined
1607
- assertParamExists('bucketsBillingHistoryHourlyChart', 'bucketId', bucketId);
1608
- const localVarPath = `/billing/billing/history/bucket/{bucket_id}/graph`
1609
- .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
1754
+ createBetaAccessRequest: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
1755
+ // verify required parameter 'payload' is not null or undefined
1756
+ assertParamExists('createBetaAccessRequest', 'payload', payload);
1757
+ const localVarPath = `/auth/beta-access/requests`;
1610
1758
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1611
1759
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1612
1760
  let baseOptions;
1613
1761
  if (configuration) {
1614
1762
  baseOptions = configuration.baseOptions;
1615
1763
  }
1616
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1764
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1617
1765
  const localVarHeaderParameter = {};
1618
1766
  const localVarQueryParameter = {};
1619
1767
  // authentication apiKey required
1620
1768
  yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
1621
- if (startDate !== undefined) {
1622
- localVarQueryParameter['start_date'] = startDate;
1623
- }
1624
- if (endDate !== undefined) {
1625
- localVarQueryParameter['end_date'] = endDate;
1626
- }
1769
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1627
1770
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1628
1771
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1629
1772
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1773
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
1630
1774
  return {
1631
1775
  url: toPathString(localVarUrlObj),
1632
1776
  options: localVarRequestOptions,
1633
1777
  };
1634
1778
  }),
1635
1779
  /**
1636
- * 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\'.
1637
- * @summary Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
1638
- * @param {number} bucketId
1639
- * @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
1640
- * @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
1780
+ * Check the status of a particular beta access requests.
1781
+ * @summary Check the status of beta access requests
1782
+ * @param {string} program
1641
1783
  * @param {*} [options] Override http request option.
1642
1784
  * @throws {RequiredError}
1643
1785
  */
1644
- 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 = {}) {
1645
- // verify required parameter 'bucketId' is not null or undefined
1646
- assertParamExists('getBucketBillingHistory', 'bucketId', bucketId);
1647
- const localVarPath = `/billing/billing/history/bucket/{bucket_id}`
1648
- .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
1786
+ getBetaAccessRequests: (program_1, ...args_1) => __awaiter(this, [program_1, ...args_1], void 0, function* (program, options = {}) {
1787
+ // verify required parameter 'program' is not null or undefined
1788
+ assertParamExists('getBetaAccessRequests', 'program', program);
1789
+ const localVarPath = `/auth/beta-access/requests/{program}`
1790
+ .replace(`{${"program"}}`, encodeURIComponent(String(program)));
1649
1791
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1650
1792
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1651
1793
  let baseOptions;
@@ -1657,12 +1799,6 @@ export const BillingApiAxiosParamCreator = function (configuration) {
1657
1799
  const localVarQueryParameter = {};
1658
1800
  // authentication apiKey required
1659
1801
  yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
1660
- if (startDate !== undefined) {
1661
- localVarQueryParameter['start_date'] = startDate;
1662
- }
1663
- if (endDate !== undefined) {
1664
- localVarQueryParameter['end_date'] = endDate;
1665
- }
1666
1802
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1667
1803
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1668
1804
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1672,18 +1808,265 @@ export const BillingApiAxiosParamCreator = function (configuration) {
1672
1808
  };
1673
1809
  }),
1674
1810
  /**
1675
- * 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\'.
1676
- * @summary Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
1677
- * @param {number} clusterId
1678
- * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1679
- * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1811
+ * Check the status of all beta access requests.
1812
+ * @summary Check the status of all beta access requests
1680
1813
  * @param {*} [options] Override http request option.
1681
1814
  * @throws {RequiredError}
1682
1815
  */
1683
- getClusterBillingHistory: (clusterId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [clusterId_1, startDate_1, endDate_1, ...args_1], void 0, function* (clusterId, startDate, endDate, options = {}) {
1684
- // verify required parameter 'clusterId' is not null or undefined
1685
- assertParamExists('getClusterBillingHistory', 'clusterId', clusterId);
1686
- const localVarPath = `/billing/billing/history/cluster/{cluster_id}`
1816
+ getBetaAccessStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1817
+ const localVarPath = `/auth/beta-access/requests`;
1818
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1819
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1820
+ let baseOptions;
1821
+ if (configuration) {
1822
+ baseOptions = configuration.baseOptions;
1823
+ }
1824
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1825
+ const localVarHeaderParameter = {};
1826
+ const localVarQueryParameter = {};
1827
+ // authentication apiKey required
1828
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
1829
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1830
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1831
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1832
+ return {
1833
+ url: toPathString(localVarUrlObj),
1834
+ options: localVarRequestOptions,
1835
+ };
1836
+ }),
1837
+ };
1838
+ };
1839
+ /**
1840
+ * BetaAccessApi - functional programming interface
1841
+ * @export
1842
+ */
1843
+ export const BetaAccessApiFp = function (configuration) {
1844
+ const localVarAxiosParamCreator = BetaAccessApiAxiosParamCreator(configuration);
1845
+ return {
1846
+ /**
1847
+ * Creates a new beta access request for the current user
1848
+ * @summary Create a new beta access request
1849
+ * @param {BetaAccessRequestPayload} payload
1850
+ * @param {*} [options] Override http request option.
1851
+ * @throws {RequiredError}
1852
+ */
1853
+ createBetaAccessRequest(payload, options) {
1854
+ return __awaiter(this, void 0, void 0, function* () {
1855
+ var _a, _b, _c;
1856
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBetaAccessRequest(payload, options);
1857
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1858
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BetaAccessApi.createBetaAccessRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1859
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1860
+ });
1861
+ },
1862
+ /**
1863
+ * Check the status of a particular beta access requests.
1864
+ * @summary Check the status of beta access requests
1865
+ * @param {string} program
1866
+ * @param {*} [options] Override http request option.
1867
+ * @throws {RequiredError}
1868
+ */
1869
+ getBetaAccessRequests(program, options) {
1870
+ return __awaiter(this, void 0, void 0, function* () {
1871
+ var _a, _b, _c;
1872
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessRequests(program, options);
1873
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1874
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BetaAccessApi.getBetaAccessRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1875
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1876
+ });
1877
+ },
1878
+ /**
1879
+ * Check the status of all beta access requests.
1880
+ * @summary Check the status of all beta access requests
1881
+ * @param {*} [options] Override http request option.
1882
+ * @throws {RequiredError}
1883
+ */
1884
+ getBetaAccessStatus(options) {
1885
+ return __awaiter(this, void 0, void 0, function* () {
1886
+ var _a, _b, _c;
1887
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBetaAccessStatus(options);
1888
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1889
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BetaAccessApi.getBetaAccessStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1890
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1891
+ });
1892
+ },
1893
+ };
1894
+ };
1895
+ /**
1896
+ * BetaAccessApi - factory interface
1897
+ * @export
1898
+ */
1899
+ export const BetaAccessApiFactory = function (configuration, basePath, axios) {
1900
+ const localVarFp = BetaAccessApiFp(configuration);
1901
+ return {
1902
+ /**
1903
+ * Creates a new beta access request for the current user
1904
+ * @summary Create a new beta access request
1905
+ * @param {BetaAccessRequestPayload} payload
1906
+ * @param {*} [options] Override http request option.
1907
+ * @throws {RequiredError}
1908
+ */
1909
+ createBetaAccessRequest(payload, options) {
1910
+ return localVarFp.createBetaAccessRequest(payload, options).then((request) => request(axios, basePath));
1911
+ },
1912
+ /**
1913
+ * Check the status of a particular beta access requests.
1914
+ * @summary Check the status of beta access requests
1915
+ * @param {string} program
1916
+ * @param {*} [options] Override http request option.
1917
+ * @throws {RequiredError}
1918
+ */
1919
+ getBetaAccessRequests(program, options) {
1920
+ return localVarFp.getBetaAccessRequests(program, options).then((request) => request(axios, basePath));
1921
+ },
1922
+ /**
1923
+ * Check the status of all beta access requests.
1924
+ * @summary Check the status of all beta access requests
1925
+ * @param {*} [options] Override http request option.
1926
+ * @throws {RequiredError}
1927
+ */
1928
+ getBetaAccessStatus(options) {
1929
+ return localVarFp.getBetaAccessStatus(options).then((request) => request(axios, basePath));
1930
+ },
1931
+ };
1932
+ };
1933
+ /**
1934
+ * BetaAccessApi - object-oriented interface
1935
+ * @export
1936
+ * @class BetaAccessApi
1937
+ * @extends {BaseAPI}
1938
+ */
1939
+ export class BetaAccessApi extends BaseAPI {
1940
+ /**
1941
+ * Creates a new beta access request for the current user
1942
+ * @summary Create a new beta access request
1943
+ * @param {BetaAccessRequestPayload} payload
1944
+ * @param {*} [options] Override http request option.
1945
+ * @throws {RequiredError}
1946
+ * @memberof BetaAccessApi
1947
+ */
1948
+ createBetaAccessRequest(payload, options) {
1949
+ return BetaAccessApiFp(this.configuration).createBetaAccessRequest(payload, options).then((request) => request(this.axios, this.basePath));
1950
+ }
1951
+ /**
1952
+ * Check the status of a particular beta access requests.
1953
+ * @summary Check the status of beta access requests
1954
+ * @param {string} program
1955
+ * @param {*} [options] Override http request option.
1956
+ * @throws {RequiredError}
1957
+ * @memberof BetaAccessApi
1958
+ */
1959
+ getBetaAccessRequests(program, options) {
1960
+ return BetaAccessApiFp(this.configuration).getBetaAccessRequests(program, options).then((request) => request(this.axios, this.basePath));
1961
+ }
1962
+ /**
1963
+ * Check the status of all beta access requests.
1964
+ * @summary Check the status of all beta access requests
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ * @memberof BetaAccessApi
1968
+ */
1969
+ getBetaAccessStatus(options) {
1970
+ return BetaAccessApiFp(this.configuration).getBetaAccessStatus(options).then((request) => request(this.axios, this.basePath));
1971
+ }
1972
+ }
1973
+ /**
1974
+ * BillingApi - axios parameter creator
1975
+ * @export
1976
+ */
1977
+ export const BillingApiAxiosParamCreator = function (configuration) {
1978
+ return {
1979
+ /**
1980
+ * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
1981
+ * @summary Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
1982
+ * @param {number} bucketId
1983
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1984
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1985
+ * @param {*} [options] Override http request option.
1986
+ * @throws {RequiredError}
1987
+ */
1988
+ 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 = {}) {
1989
+ // verify required parameter 'bucketId' is not null or undefined
1990
+ assertParamExists('bucketsBillingHistoryHourlyChart', 'bucketId', bucketId);
1991
+ const localVarPath = `/billing/billing/history/bucket/{bucket_id}/graph`
1992
+ .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
1993
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1994
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1995
+ let baseOptions;
1996
+ if (configuration) {
1997
+ baseOptions = configuration.baseOptions;
1998
+ }
1999
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2000
+ const localVarHeaderParameter = {};
2001
+ const localVarQueryParameter = {};
2002
+ // authentication apiKey required
2003
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
2004
+ if (startDate !== undefined) {
2005
+ localVarQueryParameter['start_date'] = startDate;
2006
+ }
2007
+ if (endDate !== undefined) {
2008
+ localVarQueryParameter['end_date'] = endDate;
2009
+ }
2010
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2011
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2012
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2013
+ return {
2014
+ url: toPathString(localVarUrlObj),
2015
+ options: localVarRequestOptions,
2016
+ };
2017
+ }),
2018
+ /**
2019
+ * 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\'.
2020
+ * @summary Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
2021
+ * @param {number} bucketId
2022
+ * @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
2023
+ * @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
2024
+ * @param {*} [options] Override http request option.
2025
+ * @throws {RequiredError}
2026
+ */
2027
+ 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 = {}) {
2028
+ // verify required parameter 'bucketId' is not null or undefined
2029
+ assertParamExists('getBucketBillingHistory', 'bucketId', bucketId);
2030
+ const localVarPath = `/billing/billing/history/bucket/{bucket_id}`
2031
+ .replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
2032
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2034
+ let baseOptions;
2035
+ if (configuration) {
2036
+ baseOptions = configuration.baseOptions;
2037
+ }
2038
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2039
+ const localVarHeaderParameter = {};
2040
+ const localVarQueryParameter = {};
2041
+ // authentication apiKey required
2042
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
2043
+ if (startDate !== undefined) {
2044
+ localVarQueryParameter['start_date'] = startDate;
2045
+ }
2046
+ if (endDate !== undefined) {
2047
+ localVarQueryParameter['end_date'] = endDate;
2048
+ }
2049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2051
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2052
+ return {
2053
+ url: toPathString(localVarUrlObj),
2054
+ options: localVarRequestOptions,
2055
+ };
2056
+ }),
2057
+ /**
2058
+ * 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\'.
2059
+ * @summary Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
2060
+ * @param {number} clusterId
2061
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2062
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2063
+ * @param {*} [options] Override http request option.
2064
+ * @throws {RequiredError}
2065
+ */
2066
+ getClusterBillingHistory: (clusterId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [clusterId_1, startDate_1, endDate_1, ...args_1], void 0, function* (clusterId, startDate, endDate, options = {}) {
2067
+ // verify required parameter 'clusterId' is not null or undefined
2068
+ assertParamExists('getClusterBillingHistory', 'clusterId', clusterId);
2069
+ const localVarPath = `/billing/billing/history/cluster/{cluster_id}`
1687
2070
  .replace(`{${"cluster_id"}}`, encodeURIComponent(String(clusterId)));
1688
2071
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1689
2072
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1960,8 +2343,132 @@ export const BillingApiAxiosParamCreator = function (configuration) {
1960
2343
  };
1961
2344
  }),
1962
2345
  /**
1963
- * 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/)
1964
- * @summary GET: Last Day Cost
2346
+ * User will receive billing history of image_generation for the specified billing cycle.
2347
+ * @summary Retrieve Billing History of image generation for a specific Billing Cycle
2348
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2349
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2350
+ * @param {string} [search] Search by resource \"Name\" or \"ID\"
2351
+ * @param {number} [perPage] Number of items to return per page
2352
+ * @param {number} [page] Page number
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ */
2356
+ 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 = {}) {
2357
+ const localVarPath = `/billing/billing/history/image_generation`;
2358
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2359
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2360
+ let baseOptions;
2361
+ if (configuration) {
2362
+ baseOptions = configuration.baseOptions;
2363
+ }
2364
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2365
+ const localVarHeaderParameter = {};
2366
+ const localVarQueryParameter = {};
2367
+ // authentication apiKey required
2368
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
2369
+ if (startDate !== undefined) {
2370
+ localVarQueryParameter['start_date'] = startDate;
2371
+ }
2372
+ if (endDate !== undefined) {
2373
+ localVarQueryParameter['end_date'] = endDate;
2374
+ }
2375
+ if (search !== undefined) {
2376
+ localVarQueryParameter['search'] = search;
2377
+ }
2378
+ if (perPage !== undefined) {
2379
+ localVarQueryParameter['per_page'] = perPage;
2380
+ }
2381
+ if (page !== undefined) {
2382
+ localVarQueryParameter['page'] = page;
2383
+ }
2384
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2386
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2387
+ return {
2388
+ url: toPathString(localVarUrlObj),
2389
+ options: localVarRequestOptions,
2390
+ };
2391
+ }),
2392
+ /**
2393
+ * 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
2394
+ * @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
2395
+ * @param {number} resourceId
2396
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2397
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
2398
+ * @param {*} [options] Override http request option.
2399
+ * @throws {RequiredError}
2400
+ */
2401
+ 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 = {}) {
2402
+ // verify required parameter 'resourceId' is not null or undefined
2403
+ assertParamExists('getImageGenerationBillingHistoryGraph', 'resourceId', resourceId);
2404
+ const localVarPath = `/billing/billing/history/image_generation/{resource_id}/graph`
2405
+ .replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
2406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2407
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2408
+ let baseOptions;
2409
+ if (configuration) {
2410
+ baseOptions = configuration.baseOptions;
2411
+ }
2412
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2413
+ const localVarHeaderParameter = {};
2414
+ const localVarQueryParameter = {};
2415
+ // authentication apiKey required
2416
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
2417
+ if (startDate !== undefined) {
2418
+ localVarQueryParameter['start_date'] = startDate;
2419
+ }
2420
+ if (endDate !== undefined) {
2421
+ localVarQueryParameter['end_date'] = endDate;
2422
+ }
2423
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2425
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2426
+ return {
2427
+ url: toPathString(localVarUrlObj),
2428
+ options: localVarRequestOptions,
2429
+ };
2430
+ }),
2431
+ /**
2432
+ * 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\'
2433
+ * @param {number} resourceId
2434
+ * @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
2435
+ * @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
2436
+ * @param {*} [options] Override http request option.
2437
+ * @throws {RequiredError}
2438
+ */
2439
+ 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 = {}) {
2440
+ // verify required parameter 'resourceId' is not null or undefined
2441
+ assertParamExists('getImageGenerationHistoryForResource', 'resourceId', resourceId);
2442
+ const localVarPath = `/billing/billing/history/image_generation/{resource_id}`
2443
+ .replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
2444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2446
+ let baseOptions;
2447
+ if (configuration) {
2448
+ baseOptions = configuration.baseOptions;
2449
+ }
2450
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2451
+ const localVarHeaderParameter = {};
2452
+ const localVarQueryParameter = {};
2453
+ // authentication apiKey required
2454
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
2455
+ if (startDate !== undefined) {
2456
+ localVarQueryParameter['start_date'] = startDate;
2457
+ }
2458
+ if (endDate !== undefined) {
2459
+ localVarQueryParameter['end_date'] = endDate;
2460
+ }
2461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2463
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2464
+ return {
2465
+ url: toPathString(localVarUrlObj),
2466
+ options: localVarRequestOptions,
2467
+ };
2468
+ }),
2469
+ /**
2470
+ * 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/)
2471
+ * @summary GET: Last Day Cost
1965
2472
  * @param {*} [options] Override http request option.
1966
2473
  * @throws {RequiredError}
1967
2474
  */
@@ -3248,6 +3755,61 @@ export const BillingApiFp = function (configuration) {
3248
3755
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3249
3756
  });
3250
3757
  },
3758
+ /**
3759
+ * User will receive billing history of image_generation for the specified billing cycle.
3760
+ * @summary Retrieve Billing History of image generation for a specific Billing Cycle
3761
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
3762
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
3763
+ * @param {string} [search] Search by resource \"Name\" or \"ID\"
3764
+ * @param {number} [perPage] Number of items to return per page
3765
+ * @param {number} [page] Page number
3766
+ * @param {*} [options] Override http request option.
3767
+ * @throws {RequiredError}
3768
+ */
3769
+ getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options) {
3770
+ return __awaiter(this, void 0, void 0, function* () {
3771
+ var _a, _b, _c;
3772
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options);
3773
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3774
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingApi.getImageGenerationBillingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3775
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3776
+ });
3777
+ },
3778
+ /**
3779
+ * 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
3780
+ * @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
3781
+ * @param {number} resourceId
3782
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
3783
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
3784
+ * @param {*} [options] Override http request option.
3785
+ * @throws {RequiredError}
3786
+ */
3787
+ getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options) {
3788
+ return __awaiter(this, void 0, void 0, function* () {
3789
+ var _a, _b, _c;
3790
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options);
3791
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3792
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingApi.getImageGenerationBillingHistoryGraph']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3794
+ });
3795
+ },
3796
+ /**
3797
+ * 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\'
3798
+ * @param {number} resourceId
3799
+ * @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
3800
+ * @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
3801
+ * @param {*} [options] Override http request option.
3802
+ * @throws {RequiredError}
3803
+ */
3804
+ getImageGenerationHistoryForResource(resourceId, startDate, endDate, options) {
3805
+ return __awaiter(this, void 0, void 0, function* () {
3806
+ var _a, _b, _c;
3807
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options);
3808
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3809
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingApi.getImageGenerationHistoryForResource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3810
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3811
+ });
3812
+ },
3251
3813
  /**
3252
3814
  * 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/)
3253
3815
  * @summary GET: Last Day Cost
@@ -3876,6 +4438,43 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
3876
4438
  getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
3877
4439
  return localVarFp.getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
3878
4440
  },
4441
+ /**
4442
+ * User will receive billing history of image_generation for the specified billing cycle.
4443
+ * @summary Retrieve Billing History of image generation for a specific Billing Cycle
4444
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4445
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4446
+ * @param {string} [search] Search by resource \"Name\" or \"ID\"
4447
+ * @param {number} [perPage] Number of items to return per page
4448
+ * @param {number} [page] Page number
4449
+ * @param {*} [options] Override http request option.
4450
+ * @throws {RequiredError}
4451
+ */
4452
+ getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options) {
4453
+ return localVarFp.getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(axios, basePath));
4454
+ },
4455
+ /**
4456
+ * 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
4457
+ * @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
4458
+ * @param {number} resourceId
4459
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4460
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4461
+ * @param {*} [options] Override http request option.
4462
+ * @throws {RequiredError}
4463
+ */
4464
+ getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options) {
4465
+ return localVarFp.getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
4466
+ },
4467
+ /**
4468
+ * 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\'
4469
+ * @param {number} resourceId
4470
+ * @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
4471
+ * @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
4472
+ * @param {*} [options] Override http request option.
4473
+ * @throws {RequiredError}
4474
+ */
4475
+ getImageGenerationHistoryForResource(resourceId, startDate, endDate, options) {
4476
+ return localVarFp.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
4477
+ },
3879
4478
  /**
3880
4479
  * 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/)
3881
4480
  * @summary GET: Last Day Cost
@@ -4345,6 +4944,46 @@ export class BillingApi extends BaseAPI {
4345
4944
  getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options) {
4346
4945
  return BillingApiFp(this.configuration).getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
4347
4946
  }
4947
+ /**
4948
+ * User will receive billing history of image_generation for the specified billing cycle.
4949
+ * @summary Retrieve Billing History of image generation for a specific Billing Cycle
4950
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4951
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4952
+ * @param {string} [search] Search by resource \"Name\" or \"ID\"
4953
+ * @param {number} [perPage] Number of items to return per page
4954
+ * @param {number} [page] Page number
4955
+ * @param {*} [options] Override http request option.
4956
+ * @throws {RequiredError}
4957
+ * @memberof BillingApi
4958
+ */
4959
+ getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options) {
4960
+ return BillingApiFp(this.configuration).getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(this.axios, this.basePath));
4961
+ }
4962
+ /**
4963
+ * 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
4964
+ * @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
4965
+ * @param {number} resourceId
4966
+ * @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4967
+ * @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ * @memberof BillingApi
4971
+ */
4972
+ getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options) {
4973
+ return BillingApiFp(this.configuration).getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
4974
+ }
4975
+ /**
4976
+ * 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\'
4977
+ * @param {number} resourceId
4978
+ * @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
4979
+ * @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
4980
+ * @param {*} [options] Override http request option.
4981
+ * @throws {RequiredError}
4982
+ * @memberof BillingApi
4983
+ */
4984
+ getImageGenerationHistoryForResource(resourceId, startDate, endDate, options) {
4985
+ return BillingApiFp(this.configuration).getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
4986
+ }
4348
4987
  /**
4349
4988
  * 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/)
4350
4989
  * @summary GET: Last Day Cost
@@ -13811,6 +14450,484 @@ export class UserApi extends BaseAPI {
13811
14450
  return UserApiFp(this.configuration).updateUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
13812
14451
  }
13813
14452
  }
14453
+ /**
14454
+ * UserConsentApi - axios parameter creator
14455
+ * @export
14456
+ */
14457
+ export const UserConsentApiAxiosParamCreator = function (configuration) {
14458
+ return {
14459
+ /**
14460
+ * Add a new consent given by the User
14461
+ * @summary Add a new User consent
14462
+ * @param {RecordConsentRequest} payload
14463
+ * @param {*} [options] Override http request option.
14464
+ * @throws {RequiredError}
14465
+ */
14466
+ addANewConsentForAUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
14467
+ // verify required parameter 'payload' is not null or undefined
14468
+ assertParamExists('addANewConsentForAUser', 'payload', payload);
14469
+ const localVarPath = `/auth/user-consent`;
14470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14472
+ let baseOptions;
14473
+ if (configuration) {
14474
+ baseOptions = configuration.baseOptions;
14475
+ }
14476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14477
+ const localVarHeaderParameter = {};
14478
+ const localVarQueryParameter = {};
14479
+ // authentication apiKey required
14480
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14481
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14482
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14484
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14485
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
14486
+ return {
14487
+ url: toPathString(localVarUrlObj),
14488
+ options: localVarRequestOptions,
14489
+ };
14490
+ }),
14491
+ /**
14492
+ * Returns current consent templates for all consent types
14493
+ * @summary Get all consent templates
14494
+ * @param {*} [options] Override http request option.
14495
+ * @throws {RequiredError}
14496
+ */
14497
+ getAllConsentTemplates: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14498
+ const localVarPath = `/auth/user-consent/templates`;
14499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14500
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14501
+ let baseOptions;
14502
+ if (configuration) {
14503
+ baseOptions = configuration.baseOptions;
14504
+ }
14505
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14506
+ const localVarHeaderParameter = {};
14507
+ const localVarQueryParameter = {};
14508
+ // authentication apiKey required
14509
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14512
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14513
+ return {
14514
+ url: toPathString(localVarUrlObj),
14515
+ options: localVarRequestOptions,
14516
+ };
14517
+ }),
14518
+ /**
14519
+ * Fetch all the recorded consents given from a User
14520
+ * @summary Get Consents for a User
14521
+ * @param {string} [consentType] Filter by consent type
14522
+ * @param {*} [options] Override http request option.
14523
+ * @throws {RequiredError}
14524
+ */
14525
+ getAllConsentsForAUser: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
14526
+ const localVarPath = `/auth/user-consent`;
14527
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14528
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14529
+ let baseOptions;
14530
+ if (configuration) {
14531
+ baseOptions = configuration.baseOptions;
14532
+ }
14533
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14534
+ const localVarHeaderParameter = {};
14535
+ const localVarQueryParameter = {};
14536
+ // authentication apiKey required
14537
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14538
+ if (consentType !== undefined) {
14539
+ localVarQueryParameter['consent_type'] = consentType;
14540
+ }
14541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14543
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14544
+ return {
14545
+ url: toPathString(localVarUrlObj),
14546
+ options: localVarRequestOptions,
14547
+ };
14548
+ }),
14549
+ /**
14550
+ * Returns the current consent template for a specific consent type
14551
+ * @summary Get consent template for a specific type
14552
+ * @param {string} consentType
14553
+ * @param {*} [options] Override http request option.
14554
+ * @throws {RequiredError}
14555
+ */
14556
+ getConsentTemplateByType: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
14557
+ // verify required parameter 'consentType' is not null or undefined
14558
+ assertParamExists('getConsentTemplateByType', 'consentType', consentType);
14559
+ const localVarPath = `/auth/user-consent/templates/{consent_type}`
14560
+ .replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
14561
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14562
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14563
+ let baseOptions;
14564
+ if (configuration) {
14565
+ baseOptions = configuration.baseOptions;
14566
+ }
14567
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14568
+ const localVarHeaderParameter = {};
14569
+ const localVarQueryParameter = {};
14570
+ // authentication apiKey required
14571
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14574
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14575
+ return {
14576
+ url: toPathString(localVarUrlObj),
14577
+ options: localVarRequestOptions,
14578
+ };
14579
+ }),
14580
+ /**
14581
+ * Revoke or grant a consent to the User
14582
+ * @summary Grant or revoke an existing consent
14583
+ * @param {string} consentType
14584
+ * @param {UpdateConsentRequest} payload
14585
+ * @param {*} [options] Override http request option.
14586
+ * @throws {RequiredError}
14587
+ */
14588
+ updateAConsentActionByType: (consentType_1, payload_1, ...args_1) => __awaiter(this, [consentType_1, payload_1, ...args_1], void 0, function* (consentType, payload, options = {}) {
14589
+ // verify required parameter 'consentType' is not null or undefined
14590
+ assertParamExists('updateAConsentActionByType', 'consentType', consentType);
14591
+ // verify required parameter 'payload' is not null or undefined
14592
+ assertParamExists('updateAConsentActionByType', 'payload', payload);
14593
+ const localVarPath = `/auth/user-consent/{consent_type}`
14594
+ .replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
14595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14596
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14597
+ let baseOptions;
14598
+ if (configuration) {
14599
+ baseOptions = configuration.baseOptions;
14600
+ }
14601
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
14602
+ const localVarHeaderParameter = {};
14603
+ const localVarQueryParameter = {};
14604
+ // authentication apiKey required
14605
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14606
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14607
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14609
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14610
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
14611
+ return {
14612
+ url: toPathString(localVarUrlObj),
14613
+ options: localVarRequestOptions,
14614
+ };
14615
+ }),
14616
+ };
14617
+ };
14618
+ /**
14619
+ * UserConsentApi - functional programming interface
14620
+ * @export
14621
+ */
14622
+ export const UserConsentApiFp = function (configuration) {
14623
+ const localVarAxiosParamCreator = UserConsentApiAxiosParamCreator(configuration);
14624
+ return {
14625
+ /**
14626
+ * Add a new consent given by the User
14627
+ * @summary Add a new User consent
14628
+ * @param {RecordConsentRequest} payload
14629
+ * @param {*} [options] Override http request option.
14630
+ * @throws {RequiredError}
14631
+ */
14632
+ addANewConsentForAUser(payload, options) {
14633
+ return __awaiter(this, void 0, void 0, function* () {
14634
+ var _a, _b, _c;
14635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addANewConsentForAUser(payload, options);
14636
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14637
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.addANewConsentForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14638
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14639
+ });
14640
+ },
14641
+ /**
14642
+ * Returns current consent templates for all consent types
14643
+ * @summary Get all consent templates
14644
+ * @param {*} [options] Override http request option.
14645
+ * @throws {RequiredError}
14646
+ */
14647
+ getAllConsentTemplates(options) {
14648
+ return __awaiter(this, void 0, void 0, function* () {
14649
+ var _a, _b, _c;
14650
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentTemplates(options);
14651
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14652
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.getAllConsentTemplates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14653
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14654
+ });
14655
+ },
14656
+ /**
14657
+ * Fetch all the recorded consents given from a User
14658
+ * @summary Get Consents for a User
14659
+ * @param {string} [consentType] Filter by consent type
14660
+ * @param {*} [options] Override http request option.
14661
+ * @throws {RequiredError}
14662
+ */
14663
+ getAllConsentsForAUser(consentType, options) {
14664
+ return __awaiter(this, void 0, void 0, function* () {
14665
+ var _a, _b, _c;
14666
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllConsentsForAUser(consentType, options);
14667
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14668
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.getAllConsentsForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14669
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14670
+ });
14671
+ },
14672
+ /**
14673
+ * Returns the current consent template for a specific consent type
14674
+ * @summary Get consent template for a specific type
14675
+ * @param {string} consentType
14676
+ * @param {*} [options] Override http request option.
14677
+ * @throws {RequiredError}
14678
+ */
14679
+ getConsentTemplateByType(consentType, options) {
14680
+ return __awaiter(this, void 0, void 0, function* () {
14681
+ var _a, _b, _c;
14682
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentTemplateByType(consentType, options);
14683
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14684
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.getConsentTemplateByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14685
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14686
+ });
14687
+ },
14688
+ /**
14689
+ * Revoke or grant a consent to the User
14690
+ * @summary Grant or revoke an existing consent
14691
+ * @param {string} consentType
14692
+ * @param {UpdateConsentRequest} payload
14693
+ * @param {*} [options] Override http request option.
14694
+ * @throws {RequiredError}
14695
+ */
14696
+ updateAConsentActionByType(consentType, payload, options) {
14697
+ return __awaiter(this, void 0, void 0, function* () {
14698
+ var _a, _b, _c;
14699
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAConsentActionByType(consentType, payload, options);
14700
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14701
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentApi.updateAConsentActionByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14702
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14703
+ });
14704
+ },
14705
+ };
14706
+ };
14707
+ /**
14708
+ * UserConsentApi - factory interface
14709
+ * @export
14710
+ */
14711
+ export const UserConsentApiFactory = function (configuration, basePath, axios) {
14712
+ const localVarFp = UserConsentApiFp(configuration);
14713
+ return {
14714
+ /**
14715
+ * Add a new consent given by the User
14716
+ * @summary Add a new User consent
14717
+ * @param {RecordConsentRequest} payload
14718
+ * @param {*} [options] Override http request option.
14719
+ * @throws {RequiredError}
14720
+ */
14721
+ addANewConsentForAUser(payload, options) {
14722
+ return localVarFp.addANewConsentForAUser(payload, options).then((request) => request(axios, basePath));
14723
+ },
14724
+ /**
14725
+ * Returns current consent templates for all consent types
14726
+ * @summary Get all consent templates
14727
+ * @param {*} [options] Override http request option.
14728
+ * @throws {RequiredError}
14729
+ */
14730
+ getAllConsentTemplates(options) {
14731
+ return localVarFp.getAllConsentTemplates(options).then((request) => request(axios, basePath));
14732
+ },
14733
+ /**
14734
+ * Fetch all the recorded consents given from a User
14735
+ * @summary Get Consents for a User
14736
+ * @param {string} [consentType] Filter by consent type
14737
+ * @param {*} [options] Override http request option.
14738
+ * @throws {RequiredError}
14739
+ */
14740
+ getAllConsentsForAUser(consentType, options) {
14741
+ return localVarFp.getAllConsentsForAUser(consentType, options).then((request) => request(axios, basePath));
14742
+ },
14743
+ /**
14744
+ * Returns the current consent template for a specific consent type
14745
+ * @summary Get consent template for a specific type
14746
+ * @param {string} consentType
14747
+ * @param {*} [options] Override http request option.
14748
+ * @throws {RequiredError}
14749
+ */
14750
+ getConsentTemplateByType(consentType, options) {
14751
+ return localVarFp.getConsentTemplateByType(consentType, options).then((request) => request(axios, basePath));
14752
+ },
14753
+ /**
14754
+ * Revoke or grant a consent to the User
14755
+ * @summary Grant or revoke an existing consent
14756
+ * @param {string} consentType
14757
+ * @param {UpdateConsentRequest} payload
14758
+ * @param {*} [options] Override http request option.
14759
+ * @throws {RequiredError}
14760
+ */
14761
+ updateAConsentActionByType(consentType, payload, options) {
14762
+ return localVarFp.updateAConsentActionByType(consentType, payload, options).then((request) => request(axios, basePath));
14763
+ },
14764
+ };
14765
+ };
14766
+ /**
14767
+ * UserConsentApi - object-oriented interface
14768
+ * @export
14769
+ * @class UserConsentApi
14770
+ * @extends {BaseAPI}
14771
+ */
14772
+ export class UserConsentApi extends BaseAPI {
14773
+ /**
14774
+ * Add a new consent given by the User
14775
+ * @summary Add a new User consent
14776
+ * @param {RecordConsentRequest} payload
14777
+ * @param {*} [options] Override http request option.
14778
+ * @throws {RequiredError}
14779
+ * @memberof UserConsentApi
14780
+ */
14781
+ addANewConsentForAUser(payload, options) {
14782
+ return UserConsentApiFp(this.configuration).addANewConsentForAUser(payload, options).then((request) => request(this.axios, this.basePath));
14783
+ }
14784
+ /**
14785
+ * Returns current consent templates for all consent types
14786
+ * @summary Get all consent templates
14787
+ * @param {*} [options] Override http request option.
14788
+ * @throws {RequiredError}
14789
+ * @memberof UserConsentApi
14790
+ */
14791
+ getAllConsentTemplates(options) {
14792
+ return UserConsentApiFp(this.configuration).getAllConsentTemplates(options).then((request) => request(this.axios, this.basePath));
14793
+ }
14794
+ /**
14795
+ * Fetch all the recorded consents given from a User
14796
+ * @summary Get Consents for a User
14797
+ * @param {string} [consentType] Filter by consent type
14798
+ * @param {*} [options] Override http request option.
14799
+ * @throws {RequiredError}
14800
+ * @memberof UserConsentApi
14801
+ */
14802
+ getAllConsentsForAUser(consentType, options) {
14803
+ return UserConsentApiFp(this.configuration).getAllConsentsForAUser(consentType, options).then((request) => request(this.axios, this.basePath));
14804
+ }
14805
+ /**
14806
+ * Returns the current consent template for a specific consent type
14807
+ * @summary Get consent template for a specific type
14808
+ * @param {string} consentType
14809
+ * @param {*} [options] Override http request option.
14810
+ * @throws {RequiredError}
14811
+ * @memberof UserConsentApi
14812
+ */
14813
+ getConsentTemplateByType(consentType, options) {
14814
+ return UserConsentApiFp(this.configuration).getConsentTemplateByType(consentType, options).then((request) => request(this.axios, this.basePath));
14815
+ }
14816
+ /**
14817
+ * Revoke or grant a consent to the User
14818
+ * @summary Grant or revoke an existing consent
14819
+ * @param {string} consentType
14820
+ * @param {UpdateConsentRequest} payload
14821
+ * @param {*} [options] Override http request option.
14822
+ * @throws {RequiredError}
14823
+ * @memberof UserConsentApi
14824
+ */
14825
+ updateAConsentActionByType(consentType, payload, options) {
14826
+ return UserConsentApiFp(this.configuration).updateAConsentActionByType(consentType, payload, options).then((request) => request(this.axios, this.basePath));
14827
+ }
14828
+ }
14829
+ /**
14830
+ * UserConsentEventsApi - axios parameter creator
14831
+ * @export
14832
+ */
14833
+ export const UserConsentEventsApiAxiosParamCreator = function (configuration) {
14834
+ return {
14835
+ /**
14836
+ * Get all consent audit events
14837
+ * @summary Get audit trail for a consent
14838
+ * @param {string} consentType
14839
+ * @param {*} [options] Override http request option.
14840
+ * @throws {RequiredError}
14841
+ */
14842
+ getConsentAuditEvents: (consentType_1, ...args_1) => __awaiter(this, [consentType_1, ...args_1], void 0, function* (consentType, options = {}) {
14843
+ // verify required parameter 'consentType' is not null or undefined
14844
+ assertParamExists('getConsentAuditEvents', 'consentType', consentType);
14845
+ const localVarPath = `/auth/user-consent-events/{consent_type}/events`
14846
+ .replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
14847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14848
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14849
+ let baseOptions;
14850
+ if (configuration) {
14851
+ baseOptions = configuration.baseOptions;
14852
+ }
14853
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14854
+ const localVarHeaderParameter = {};
14855
+ const localVarQueryParameter = {};
14856
+ // authentication apiKey required
14857
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14858
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14860
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14861
+ return {
14862
+ url: toPathString(localVarUrlObj),
14863
+ options: localVarRequestOptions,
14864
+ };
14865
+ }),
14866
+ };
14867
+ };
14868
+ /**
14869
+ * UserConsentEventsApi - functional programming interface
14870
+ * @export
14871
+ */
14872
+ export const UserConsentEventsApiFp = function (configuration) {
14873
+ const localVarAxiosParamCreator = UserConsentEventsApiAxiosParamCreator(configuration);
14874
+ return {
14875
+ /**
14876
+ * Get all consent audit events
14877
+ * @summary Get audit trail for a consent
14878
+ * @param {string} consentType
14879
+ * @param {*} [options] Override http request option.
14880
+ * @throws {RequiredError}
14881
+ */
14882
+ getConsentAuditEvents(consentType, options) {
14883
+ return __awaiter(this, void 0, void 0, function* () {
14884
+ var _a, _b, _c;
14885
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConsentAuditEvents(consentType, options);
14886
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14887
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserConsentEventsApi.getConsentAuditEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14888
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14889
+ });
14890
+ },
14891
+ };
14892
+ };
14893
+ /**
14894
+ * UserConsentEventsApi - factory interface
14895
+ * @export
14896
+ */
14897
+ export const UserConsentEventsApiFactory = function (configuration, basePath, axios) {
14898
+ const localVarFp = UserConsentEventsApiFp(configuration);
14899
+ return {
14900
+ /**
14901
+ * Get all consent audit events
14902
+ * @summary Get audit trail for a consent
14903
+ * @param {string} consentType
14904
+ * @param {*} [options] Override http request option.
14905
+ * @throws {RequiredError}
14906
+ */
14907
+ getConsentAuditEvents(consentType, options) {
14908
+ return localVarFp.getConsentAuditEvents(consentType, options).then((request) => request(axios, basePath));
14909
+ },
14910
+ };
14911
+ };
14912
+ /**
14913
+ * UserConsentEventsApi - object-oriented interface
14914
+ * @export
14915
+ * @class UserConsentEventsApi
14916
+ * @extends {BaseAPI}
14917
+ */
14918
+ export class UserConsentEventsApi extends BaseAPI {
14919
+ /**
14920
+ * Get all consent audit events
14921
+ * @summary Get audit trail for a consent
14922
+ * @param {string} consentType
14923
+ * @param {*} [options] Override http request option.
14924
+ * @throws {RequiredError}
14925
+ * @memberof UserConsentEventsApi
14926
+ */
14927
+ getConsentAuditEvents(consentType, options) {
14928
+ return UserConsentEventsApiFp(this.configuration).getConsentAuditEvents(consentType, options).then((request) => request(this.axios, this.basePath));
14929
+ }
14930
+ }
13814
14931
  /**
13815
14932
  * UserDetailChoiceApi - axios parameter creator
13816
14933
  * @export