@bluefin-exchange/pro-sdk 1.11.1 → 1.17.0

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.
@@ -25,8 +25,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.AccountDataApi = exports.AccountDataApiFactory = exports.AccountDataApiFp = exports.AccountDataApiAxiosParamCreator = exports.UserCampaignRewardsClaimStatusEnum = exports.UserCampaignRewardsStatusEnum = exports.TransactionType = exports.TradeType = exports.TradeSide = exports.SubscriptionType = exports.StatsInterval = exports.SortOrder = exports.SelfTradePreventionType = exports.PositionSide = exports.OrderbookPartialDepthUpdateDepthLevelEnum = exports.OrderType = exports.OrderTimeInForce = exports.OrderStatus = exports.OrderSide = exports.OrderCancellationFailureReason = exports.OrderCancelReason = exports.OraclePriceUpdateSourceEnum = exports.MarketStatus = exports.MarketPriceUpdateSourceEnum = exports.MarketEventType = exports.MarketDataStreamName = exports.MarkPriceUpdateSourceEnum = exports.MarkAsClaimedResponseStatusEnum = exports.MarkAsClaimedRequestCampaignNameEnum = exports.MarginType = exports.LeaderboardInterval = exports.KlineInterval = exports.IntervalRewardsStatusEnum = exports.IntervalMetadataStatusEnum = exports.GetAccountValueHistoryParamsInterval = exports.FailedCommandType = exports.EpochMetadataStatusEnum = exports.ContractsConfigNetworkEnum = exports.CommandFailureReasonCode = exports.ClaimSignatureItemRewardTypeEnum = exports.CandlePriceType = exports.CampaignMetadataStatusEnum = exports.AffiliateOnboardResponseStatusEnum = exports.AffiliateMetadataTierEnum = exports.AffiliateMetadataStatusEnum = exports.AffiliateIntervalOverviewStatusEnum = exports.AdjustMarginOperation = exports.AccountEventType = exports.AccountEventReason = exports.AccountDataStream = void 0;
29
- exports.TradeApi = exports.TradeApiFactory = exports.TradeApiFp = exports.TradeApiAxiosParamCreator = exports.WebSocketMarketDataSecWebSocketVersionEnum = exports.WebSocketMarketDataUpgradeEnum = exports.WebSocketAccountDataSecWebSocketVersionEnum = exports.WebSocketAccountDataUpgradeEnum = exports.StreamsApi = exports.StreamsApiFactory = exports.StreamsApiFp = exports.StreamsApiAxiosParamCreator = exports.GetRewardsEpochMetadataEpochEnum = exports.GetRewardsCampaignMetadataStatusEnum = exports.GetAffiliateOverviewSortOrderEnum = exports.GetAffiliateOverviewSortByEnum = exports.GetAffiliateLeaderDashboardSortOrderEnum = exports.GetAffiliateLeaderDashboardSortByEnum = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.GetLeaderboardSortByEnum = exports.ExchangeApi = exports.ExchangeApiFactory = exports.ExchangeApiFp = exports.ExchangeApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = void 0;
28
+ exports.TransactionType = exports.TradeType = exports.TradeSide = exports.SwapClaimResponseStatusEnum = exports.SubscriptionType = exports.StatsInterval = exports.SortOrder = exports.SelfTradePreventionType = exports.PositionSide = exports.OrderbookPartialDepthUpdateDepthLevelEnum = exports.OrderType = exports.OrderTimeInForce = exports.OrderStatus = exports.OrderSide = exports.OrderCancellationFailureReason = exports.OrderCancelReason = exports.OraclePriceUpdateSourceEnum = exports.MarketStatus = exports.MarketPriceUpdateSourceEnum = exports.MarketEventType = exports.MarketDataStreamName = exports.MarkPriceUpdateSourceEnum = exports.MarkAsClaimedResponseStatusEnum = exports.MarkAsClaimedRequestCampaignNameEnum = exports.MarginType = exports.LeaderboardInterval = exports.LeaderboardEntry1CurrentTierEnum = exports.KlineInterval = exports.IntervalRewardsStatusEnum = exports.IntervalMetadataStatusEnum = exports.GetAccountValueHistoryParamsInterval = exports.FailedCommandType = exports.EpochMetadataStatusEnum = exports.ContractsConfigNetworkEnum = exports.CommandFailureReasonCode = exports.ClientType = exports.ClientCredentialsRequestGrantTypeEnum = exports.ClaimSignatureItemRewardTypeEnum = exports.CandlePriceType = exports.CampaignMetadataStatusEnum = exports.BalanceResponseNextTierEnum = exports.BalanceResponseCurrentTierEnum = exports.AffiliateOnboardResponseStatusEnum = exports.AffiliateMetadataTierEnum = exports.AffiliateMetadataStatusEnum = exports.AffiliateIntervalOverviewStatusEnum = exports.AdjustMarginOperation = exports.AccountEventType = exports.AccountEventReason = exports.AccountDataStream = void 0;
29
+ exports.VeraPointsApi = exports.VeraPointsApiFactory = exports.VeraPointsApiFp = exports.VeraPointsApiAxiosParamCreator = exports.TradeApi = exports.TradeApiFactory = exports.TradeApiFp = exports.TradeApiAxiosParamCreator = exports.WebSocketMarketDataSecWebSocketVersionEnum = exports.WebSocketMarketDataUpgradeEnum = exports.WebSocketAccountDataSecWebSocketVersionEnum = exports.WebSocketAccountDataUpgradeEnum = exports.StreamsApi = exports.StreamsApiFactory = exports.StreamsApiFp = exports.StreamsApiAxiosParamCreator = exports.GetRewardsEpochMetadataEpochEnum = exports.GetRewardsCampaignMetadataStatusEnum = exports.GetAffiliateOverviewSortOrderEnum = exports.GetAffiliateOverviewSortByEnum = exports.GetAffiliateLeaderDashboardSortOrderEnum = exports.GetAffiliateLeaderDashboardSortByEnum = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.GetLeaderboardSortByEnum = exports.ExchangeApi = exports.ExchangeApiFactory = exports.ExchangeApiFp = exports.ExchangeApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AccountDataApi = exports.AccountDataApiFactory = exports.AccountDataApiFp = exports.AccountDataApiAxiosParamCreator = exports.VaultClaimResponseStatusEnum = exports.UserCampaignRewardsClaimStatusEnum = exports.UserCampaignRewardsStatusEnum = void 0;
30
30
  const axios_1 = __importDefault(require("axios"));
31
31
  // Some imports not used depending on template conditions
32
32
  // @ts-ignore
@@ -110,6 +110,19 @@ exports.AffiliateOnboardResponseStatusEnum = {
110
110
  Rejected: 'REJECTED',
111
111
  Pending: 'PENDING'
112
112
  };
113
+ exports.BalanceResponseCurrentTierEnum = {
114
+ None: 'NONE',
115
+ Silver: 'SILVER',
116
+ Gold: 'GOLD',
117
+ Platinum: 'PLATINUM',
118
+ Diamond: 'DIAMOND'
119
+ };
120
+ exports.BalanceResponseNextTierEnum = {
121
+ Silver: 'SILVER',
122
+ Gold: 'GOLD',
123
+ Platinum: 'PLATINUM',
124
+ Diamond: 'DIAMOND'
125
+ };
113
126
  exports.CampaignMetadataStatusEnum = {
114
127
  Active: 'ACTIVE',
115
128
  Inactive: 'INACTIVE'
@@ -123,6 +136,7 @@ exports.CandlePriceType = {
123
136
  Last: 'Last',
124
137
  Market: 'Market',
125
138
  Oracle: 'Oracle',
139
+ Mark: 'Mark',
126
140
  Unspecified: 'UNSPECIFIED'
127
141
  };
128
142
  exports.ClaimSignatureItemRewardTypeEnum = {
@@ -131,6 +145,18 @@ exports.ClaimSignatureItemRewardTypeEnum = {
131
145
  Wal: 'Wal',
132
146
  Cash: 'Cash'
133
147
  };
148
+ exports.ClientCredentialsRequestGrantTypeEnum = {
149
+ ClientCredentials: 'client_credentials'
150
+ };
151
+ /**
152
+ * The client application that initiated the request.
153
+ * @export
154
+ * @enum {string}
155
+ */
156
+ exports.ClientType = {
157
+ Web: 'WEB',
158
+ Vera: 'VERA'
159
+ };
134
160
  /**
135
161
  *
136
162
  * @export
@@ -215,6 +241,13 @@ exports.KlineInterval = {
215
241
  _1Mo: '1Mo',
216
242
  Unspecified: 'UNSPECIFIED'
217
243
  };
244
+ exports.LeaderboardEntry1CurrentTierEnum = {
245
+ None: 'NONE',
246
+ Silver: 'SILVER',
247
+ Gold: 'GOLD',
248
+ Platinum: 'PLATINUM',
249
+ Diamond: 'DIAMOND'
250
+ };
218
251
  /**
219
252
  *
220
253
  * @export
@@ -526,6 +559,9 @@ exports.SubscriptionType = {
526
559
  Subscribe: 'Subscribe',
527
560
  Unsubscribe: 'Unsubscribe'
528
561
  };
562
+ exports.SwapClaimResponseStatusEnum = {
563
+ Claimed: 'claimed'
564
+ };
529
565
  /**
530
566
  * Trade side based on the user order in this trade.
531
567
  * @export
@@ -575,6 +611,9 @@ exports.UserCampaignRewardsClaimStatusEnum = {
575
611
  NotYetClaimable: 'NOT_YET_CLAIMABLE',
576
612
  ClaimEnded: 'CLAIM_ENDED'
577
613
  };
614
+ exports.VaultClaimResponseStatusEnum = {
615
+ Claimed: 'claimed'
616
+ };
578
617
  /**
579
618
  * AccountDataApi - axios parameter creator
580
619
  * @export
@@ -824,6 +863,35 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
824
863
  options: localVarRequestOptions,
825
864
  };
826
865
  }),
866
+ /**
867
+ * Retrieves the account value history for 24h.
868
+ * @summary /accounts/{accountAddress}/valueHistory
869
+ * @param {string} accountAddress Account address to fetch account value history for.
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ */
873
+ getAccountValueHistoryByAccount: (accountAddress_1, ...args_1) => __awaiter(this, [accountAddress_1, ...args_1], void 0, function* (accountAddress, options = {}) {
874
+ // verify required parameter 'accountAddress' is not null or undefined
875
+ (0, common_1.assertParamExists)('getAccountValueHistoryByAccount', 'accountAddress', accountAddress);
876
+ const localVarPath = `/api/v1/accounts/{accountAddress}/valueHistory`
877
+ .replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
878
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
879
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
880
+ let baseOptions;
881
+ if (configuration) {
882
+ baseOptions = configuration.baseOptions;
883
+ }
884
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
885
+ const localVarHeaderParameter = {};
886
+ const localVarQueryParameter = {};
887
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
889
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
890
+ return {
891
+ url: (0, common_1.toPathString)(localVarUrlObj),
892
+ options: localVarRequestOptions,
893
+ };
894
+ }),
827
895
  /**
828
896
  * Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
829
897
  * @summary Set the group ID for an account.
@@ -1042,6 +1110,22 @@ const AccountDataApiFp = function (configuration) {
1042
1110
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1043
1111
  });
1044
1112
  },
1113
+ /**
1114
+ * Retrieves the account value history for 24h.
1115
+ * @summary /accounts/{accountAddress}/valueHistory
1116
+ * @param {string} accountAddress Account address to fetch account value history for.
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ getAccountValueHistoryByAccount(accountAddress, options) {
1121
+ return __awaiter(this, void 0, void 0, function* () {
1122
+ var _a, _b, _c;
1123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountValueHistoryByAccount(accountAddress, options);
1124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1125
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountValueHistoryByAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1126
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1127
+ });
1128
+ },
1045
1129
  /**
1046
1130
  * Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
1047
1131
  * @summary Set the group ID for an account.
@@ -1173,6 +1257,16 @@ const AccountDataApiFactory = function (configuration, basePath, axios) {
1173
1257
  getAccountValueHistory(interval, options) {
1174
1258
  return localVarFp.getAccountValueHistory(interval, options).then((request) => request(axios, basePath));
1175
1259
  },
1260
+ /**
1261
+ * Retrieves the account value history for 24h.
1262
+ * @summary /accounts/{accountAddress}/valueHistory
1263
+ * @param {string} accountAddress Account address to fetch account value history for.
1264
+ * @param {*} [options] Override http request option.
1265
+ * @throws {RequiredError}
1266
+ */
1267
+ getAccountValueHistoryByAccount(accountAddress, options) {
1268
+ return localVarFp.getAccountValueHistoryByAccount(accountAddress, options).then((request) => request(axios, basePath));
1269
+ },
1176
1270
  /**
1177
1271
  * Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
1178
1272
  * @summary Set the group ID for an account.
@@ -1292,6 +1386,17 @@ class AccountDataApi extends base_1.BaseAPI {
1292
1386
  getAccountValueHistory(interval, options) {
1293
1387
  return (0, exports.AccountDataApiFp)(this.configuration).getAccountValueHistory(interval, options).then((request) => request(this.axios, this.basePath));
1294
1388
  }
1389
+ /**
1390
+ * Retrieves the account value history for 24h.
1391
+ * @summary /accounts/{accountAddress}/valueHistory
1392
+ * @param {string} accountAddress Account address to fetch account value history for.
1393
+ * @param {*} [options] Override http request option.
1394
+ * @throws {RequiredError}
1395
+ * @memberof AccountDataApi
1396
+ */
1397
+ getAccountValueHistoryByAccount(accountAddress, options) {
1398
+ return (0, exports.AccountDataApiFp)(this.configuration).getAccountValueHistoryByAccount(accountAddress, options).then((request) => request(this.axios, this.basePath));
1399
+ }
1295
1400
  /**
1296
1401
  * Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
1297
1402
  * @summary Set the group ID for an account.
@@ -1363,10 +1468,11 @@ const AuthApiAxiosParamCreator = function (configuration) {
1363
1468
  * @param {LoginRequest} loginRequest
1364
1469
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1365
1470
  * @param {boolean} [readOnly]
1471
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1366
1472
  * @param {*} [options] Override http request option.
1367
1473
  * @throws {RequiredError}
1368
1474
  */
1369
- authTokenPost: (payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, ...args_1) => __awaiter(this, [payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, ...args_1], void 0, function* (payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options = {}) {
1475
+ authTokenPost: (payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, client_1, ...args_1) => __awaiter(this, [payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, client_1, ...args_1], void 0, function* (payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options = {}) {
1370
1476
  // verify required parameter 'payloadSignature' is not null or undefined
1371
1477
  (0, common_1.assertParamExists)('authTokenPost', 'payloadSignature', payloadSignature);
1372
1478
  // verify required parameter 'loginRequest' is not null or undefined
@@ -1387,6 +1493,9 @@ const AuthApiAxiosParamCreator = function (configuration) {
1387
1493
  if (readOnly !== undefined) {
1388
1494
  localVarQueryParameter['readOnly'] = readOnly;
1389
1495
  }
1496
+ if (client !== undefined) {
1497
+ localVarQueryParameter['client'] = client;
1498
+ }
1390
1499
  localVarHeaderParameter['Content-Type'] = 'application/json';
1391
1500
  if (payloadSignature != null) {
1392
1501
  localVarHeaderParameter['payloadSignature'] = String(payloadSignature);
@@ -1435,10 +1544,11 @@ const AuthApiAxiosParamCreator = function (configuration) {
1435
1544
  * @param {LoginRequest} loginRequest
1436
1545
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1437
1546
  * @param {boolean} [readOnly]
1547
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1438
1548
  * @param {*} [options] Override http request option.
1439
1549
  * @throws {RequiredError}
1440
1550
  */
1441
- authV2TokenPost: (payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, ...args_1) => __awaiter(this, [payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, ...args_1], void 0, function* (payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options = {}) {
1551
+ authV2TokenPost: (payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, client_1, ...args_1) => __awaiter(this, [payloadSignature_1, loginRequest_1, refreshTokenValidForSeconds_1, readOnly_1, client_1, ...args_1], void 0, function* (payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options = {}) {
1442
1552
  // verify required parameter 'payloadSignature' is not null or undefined
1443
1553
  (0, common_1.assertParamExists)('authV2TokenPost', 'payloadSignature', payloadSignature);
1444
1554
  // verify required parameter 'loginRequest' is not null or undefined
@@ -1459,6 +1569,9 @@ const AuthApiAxiosParamCreator = function (configuration) {
1459
1569
  if (readOnly !== undefined) {
1460
1570
  localVarQueryParameter['readOnly'] = readOnly;
1461
1571
  }
1572
+ if (client !== undefined) {
1573
+ localVarQueryParameter['client'] = client;
1574
+ }
1462
1575
  localVarHeaderParameter['Content-Type'] = 'application/json';
1463
1576
  if (payloadSignature != null) {
1464
1577
  localVarHeaderParameter['payloadSignature'] = String(payloadSignature);
@@ -1472,6 +1585,31 @@ const AuthApiAxiosParamCreator = function (configuration) {
1472
1585
  options: localVarRequestOptions,
1473
1586
  };
1474
1587
  }),
1588
+ /**
1589
+ * OpenID Connect Discovery endpoint
1590
+ * @summary /.well-known/openid-configuration
1591
+ * @param {*} [options] Override http request option.
1592
+ * @throws {RequiredError}
1593
+ */
1594
+ getWellKnownOpenidConfiguration: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1595
+ const localVarPath = `/.well-known/openid-configuration`;
1596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1597
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1598
+ let baseOptions;
1599
+ if (configuration) {
1600
+ baseOptions = configuration.baseOptions;
1601
+ }
1602
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1603
+ const localVarHeaderParameter = {};
1604
+ const localVarQueryParameter = {};
1605
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1607
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1608
+ return {
1609
+ url: (0, common_1.toPathString)(localVarUrlObj),
1610
+ options: localVarRequestOptions,
1611
+ };
1612
+ }),
1475
1613
  /**
1476
1614
  * ZK Login User Details
1477
1615
  * @summary /auth/zklogin
@@ -1503,6 +1641,36 @@ const AuthApiAxiosParamCreator = function (configuration) {
1503
1641
  options: localVarRequestOptions,
1504
1642
  };
1505
1643
  }),
1644
+ /**
1645
+ * OAuth2 client_credentials grant for service accounts
1646
+ * @summary /auth/client-credentials
1647
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ */
1651
+ postAuthClientCredentials: (clientCredentialsRequest_1, ...args_1) => __awaiter(this, [clientCredentialsRequest_1, ...args_1], void 0, function* (clientCredentialsRequest, options = {}) {
1652
+ // verify required parameter 'clientCredentialsRequest' is not null or undefined
1653
+ (0, common_1.assertParamExists)('postAuthClientCredentials', 'clientCredentialsRequest', clientCredentialsRequest);
1654
+ const localVarPath = `/auth/client-credentials`;
1655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1656
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1657
+ let baseOptions;
1658
+ if (configuration) {
1659
+ baseOptions = configuration.baseOptions;
1660
+ }
1661
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1662
+ const localVarHeaderParameter = {};
1663
+ const localVarQueryParameter = {};
1664
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1665
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1666
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1667
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1668
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientCredentialsRequest, localVarRequestOptions, configuration);
1669
+ return {
1670
+ url: (0, common_1.toPathString)(localVarUrlObj),
1671
+ options: localVarRequestOptions,
1672
+ };
1673
+ }),
1506
1674
  /**
1507
1675
  *
1508
1676
  * @summary /auth/zklogin/zkp
@@ -1569,13 +1737,14 @@ const AuthApiFp = function (configuration) {
1569
1737
  * @param {LoginRequest} loginRequest
1570
1738
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1571
1739
  * @param {boolean} [readOnly]
1740
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1572
1741
  * @param {*} [options] Override http request option.
1573
1742
  * @throws {RequiredError}
1574
1743
  */
1575
- authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1744
+ authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1576
1745
  return __awaiter(this, void 0, void 0, function* () {
1577
1746
  var _a, _b, _c;
1578
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options);
1747
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1579
1748
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1580
1749
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authTokenPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1581
1750
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1602,18 +1771,34 @@ const AuthApiFp = function (configuration) {
1602
1771
  * @param {LoginRequest} loginRequest
1603
1772
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1604
1773
  * @param {boolean} [readOnly]
1774
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1605
1775
  * @param {*} [options] Override http request option.
1606
1776
  * @throws {RequiredError}
1607
1777
  */
1608
- authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1778
+ authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1609
1779
  return __awaiter(this, void 0, void 0, function* () {
1610
1780
  var _a, _b, _c;
1611
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options);
1781
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1612
1782
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1613
1783
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authV2TokenPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1614
1784
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1615
1785
  });
1616
1786
  },
1787
+ /**
1788
+ * OpenID Connect Discovery endpoint
1789
+ * @summary /.well-known/openid-configuration
1790
+ * @param {*} [options] Override http request option.
1791
+ * @throws {RequiredError}
1792
+ */
1793
+ getWellKnownOpenidConfiguration(options) {
1794
+ return __awaiter(this, void 0, void 0, function* () {
1795
+ var _a, _b, _c;
1796
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWellKnownOpenidConfiguration(options);
1797
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1798
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.getWellKnownOpenidConfiguration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1799
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1800
+ });
1801
+ },
1617
1802
  /**
1618
1803
  * ZK Login User Details
1619
1804
  * @summary /auth/zklogin
@@ -1630,6 +1815,22 @@ const AuthApiFp = function (configuration) {
1630
1815
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1631
1816
  });
1632
1817
  },
1818
+ /**
1819
+ * OAuth2 client_credentials grant for service accounts
1820
+ * @summary /auth/client-credentials
1821
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
1822
+ * @param {*} [options] Override http request option.
1823
+ * @throws {RequiredError}
1824
+ */
1825
+ postAuthClientCredentials(clientCredentialsRequest, options) {
1826
+ return __awaiter(this, void 0, void 0, function* () {
1827
+ var _a, _b, _c;
1828
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postAuthClientCredentials(clientCredentialsRequest, options);
1829
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1830
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.postAuthClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1831
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1832
+ });
1833
+ },
1633
1834
  /**
1634
1835
  *
1635
1836
  * @summary /auth/zklogin/zkp
@@ -1671,11 +1872,12 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1671
1872
  * @param {LoginRequest} loginRequest
1672
1873
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1673
1874
  * @param {boolean} [readOnly]
1875
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1674
1876
  * @param {*} [options] Override http request option.
1675
1877
  * @throws {RequiredError}
1676
1878
  */
1677
- authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1678
- return localVarFp.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(axios, basePath));
1879
+ authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1880
+ return localVarFp.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(axios, basePath));
1679
1881
  },
1680
1882
  /**
1681
1883
  * Retrieves a new auth token for an account. Expiry is set to 5 min.
@@ -1692,11 +1894,21 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1692
1894
  * @param {LoginRequest} loginRequest
1693
1895
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1694
1896
  * @param {boolean} [readOnly]
1897
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1902
+ return localVarFp.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(axios, basePath));
1903
+ },
1904
+ /**
1905
+ * OpenID Connect Discovery endpoint
1906
+ * @summary /.well-known/openid-configuration
1695
1907
  * @param {*} [options] Override http request option.
1696
1908
  * @throws {RequiredError}
1697
1909
  */
1698
- authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1699
- return localVarFp.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(axios, basePath));
1910
+ getWellKnownOpenidConfiguration(options) {
1911
+ return localVarFp.getWellKnownOpenidConfiguration(options).then((request) => request(axios, basePath));
1700
1912
  },
1701
1913
  /**
1702
1914
  * ZK Login User Details
@@ -1708,6 +1920,16 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1708
1920
  getZkLoginUserDetails(zkloginJwt, options) {
1709
1921
  return localVarFp.getZkLoginUserDetails(zkloginJwt, options).then((request) => request(axios, basePath));
1710
1922
  },
1923
+ /**
1924
+ * OAuth2 client_credentials grant for service accounts
1925
+ * @summary /auth/client-credentials
1926
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ */
1930
+ postAuthClientCredentials(clientCredentialsRequest, options) {
1931
+ return localVarFp.postAuthClientCredentials(clientCredentialsRequest, options).then((request) => request(axios, basePath));
1932
+ },
1711
1933
  /**
1712
1934
  *
1713
1935
  * @summary /auth/zklogin/zkp
@@ -1744,12 +1966,13 @@ class AuthApi extends base_1.BaseAPI {
1744
1966
  * @param {LoginRequest} loginRequest
1745
1967
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1746
1968
  * @param {boolean} [readOnly]
1969
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1747
1970
  * @param {*} [options] Override http request option.
1748
1971
  * @throws {RequiredError}
1749
1972
  * @memberof AuthApi
1750
1973
  */
1751
- authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1752
- return (0, exports.AuthApiFp)(this.configuration).authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(this.axios, this.basePath));
1974
+ authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1975
+ return (0, exports.AuthApiFp)(this.configuration).authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(this.axios, this.basePath));
1753
1976
  }
1754
1977
  /**
1755
1978
  * Retrieves a new auth token for an account. Expiry is set to 5 min.
@@ -1767,12 +1990,23 @@ class AuthApi extends base_1.BaseAPI {
1767
1990
  * @param {LoginRequest} loginRequest
1768
1991
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1769
1992
  * @param {boolean} [readOnly]
1993
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1994
+ * @param {*} [options] Override http request option.
1995
+ * @throws {RequiredError}
1996
+ * @memberof AuthApi
1997
+ */
1998
+ authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1999
+ return (0, exports.AuthApiFp)(this.configuration).authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(this.axios, this.basePath));
2000
+ }
2001
+ /**
2002
+ * OpenID Connect Discovery endpoint
2003
+ * @summary /.well-known/openid-configuration
1770
2004
  * @param {*} [options] Override http request option.
1771
2005
  * @throws {RequiredError}
1772
2006
  * @memberof AuthApi
1773
2007
  */
1774
- authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1775
- return (0, exports.AuthApiFp)(this.configuration).authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(this.axios, this.basePath));
2008
+ getWellKnownOpenidConfiguration(options) {
2009
+ return (0, exports.AuthApiFp)(this.configuration).getWellKnownOpenidConfiguration(options).then((request) => request(this.axios, this.basePath));
1776
2010
  }
1777
2011
  /**
1778
2012
  * ZK Login User Details
@@ -1785,6 +2019,17 @@ class AuthApi extends base_1.BaseAPI {
1785
2019
  getZkLoginUserDetails(zkloginJwt, options) {
1786
2020
  return (0, exports.AuthApiFp)(this.configuration).getZkLoginUserDetails(zkloginJwt, options).then((request) => request(this.axios, this.basePath));
1787
2021
  }
2022
+ /**
2023
+ * OAuth2 client_credentials grant for service accounts
2024
+ * @summary /auth/client-credentials
2025
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
2026
+ * @param {*} [options] Override http request option.
2027
+ * @throws {RequiredError}
2028
+ * @memberof AuthApi
2029
+ */
2030
+ postAuthClientCredentials(clientCredentialsRequest, options) {
2031
+ return (0, exports.AuthApiFp)(this.configuration).postAuthClientCredentials(clientCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
2032
+ }
1788
2033
  /**
1789
2034
  *
1790
2035
  * @summary /auth/zklogin/zkp
@@ -1835,7 +2080,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1835
2080
  * @summary /exchange/candlesticks
1836
2081
  * @param {string} symbol The market symbol to get the klines for.
1837
2082
  * @param {KlineInterval} interval The interval to get the klines for.
1838
- * @param {CandlePriceType} type Candle price type (last price, market price or oracle).
2083
+ * @param {CandlePriceType} type Candle price type (last price, market price, oracle or mark price).
1839
2084
  * @param {number} [startTimeAtMillis] Timestamp in milliseconds in ms to get klines from.
1840
2085
  * @param {number} [endTimeAtMillis] Timestamp in milliseconds in ms to get klines until.
1841
2086
  * @param {number} [limit] Default 50; max 1000.
@@ -2062,7 +2307,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2062
2307
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2063
2308
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2064
2309
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2065
- * @param {number} [limit] Default 50; max 100.
2310
+ * @param {number} [limit] Default 50; max 1000.
2066
2311
  * @param {number} [page] The page number to retrieve in a paginated response.
2067
2312
  * @param {*} [options] Override http request option.
2068
2313
  * @throws {RequiredError}
@@ -2248,7 +2493,7 @@ const ExchangeApiFp = function (configuration) {
2248
2493
  * @summary /exchange/candlesticks
2249
2494
  * @param {string} symbol The market symbol to get the klines for.
2250
2495
  * @param {KlineInterval} interval The interval to get the klines for.
2251
- * @param {CandlePriceType} type Candle price type (last price, market price or oracle).
2496
+ * @param {CandlePriceType} type Candle price type (last price, market price, oracle or mark price).
2252
2497
  * @param {number} [startTimeAtMillis] Timestamp in milliseconds in ms to get klines from.
2253
2498
  * @param {number} [endTimeAtMillis] Timestamp in milliseconds in ms to get klines until.
2254
2499
  * @param {number} [limit] Default 50; max 1000.
@@ -2356,7 +2601,7 @@ const ExchangeApiFp = function (configuration) {
2356
2601
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2357
2602
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2358
2603
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2359
- * @param {number} [limit] Default 50; max 100.
2604
+ * @param {number} [limit] Default 50; max 1000.
2360
2605
  * @param {number} [page] The page number to retrieve in a paginated response.
2361
2606
  * @param {*} [options] Override http request option.
2362
2607
  * @throws {RequiredError}
@@ -2448,7 +2693,7 @@ const ExchangeApiFactory = function (configuration, basePath, axios) {
2448
2693
  * @summary /exchange/candlesticks
2449
2694
  * @param {string} symbol The market symbol to get the klines for.
2450
2695
  * @param {KlineInterval} interval The interval to get the klines for.
2451
- * @param {CandlePriceType} type Candle price type (last price, market price or oracle).
2696
+ * @param {CandlePriceType} type Candle price type (last price, market price, oracle or mark price).
2452
2697
  * @param {number} [startTimeAtMillis] Timestamp in milliseconds in ms to get klines from.
2453
2698
  * @param {number} [endTimeAtMillis] Timestamp in milliseconds in ms to get klines until.
2454
2699
  * @param {number} [limit] Default 50; max 1000.
@@ -2520,7 +2765,7 @@ const ExchangeApiFactory = function (configuration, basePath, axios) {
2520
2765
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2521
2766
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2522
2767
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2523
- * @param {number} [limit] Default 50; max 100.
2768
+ * @param {number} [limit] Default 50; max 1000.
2524
2769
  * @param {number} [page] The page number to retrieve in a paginated response.
2525
2770
  * @param {*} [options] Override http request option.
2526
2771
  * @throws {RequiredError}
@@ -2589,7 +2834,7 @@ class ExchangeApi extends base_1.BaseAPI {
2589
2834
  * @summary /exchange/candlesticks
2590
2835
  * @param {string} symbol The market symbol to get the klines for.
2591
2836
  * @param {KlineInterval} interval The interval to get the klines for.
2592
- * @param {CandlePriceType} type Candle price type (last price, market price or oracle).
2837
+ * @param {CandlePriceType} type Candle price type (last price, market price, oracle or mark price).
2593
2838
  * @param {number} [startTimeAtMillis] Timestamp in milliseconds in ms to get klines from.
2594
2839
  * @param {number} [endTimeAtMillis] Timestamp in milliseconds in ms to get klines until.
2595
2840
  * @param {number} [limit] Default 50; max 1000.
@@ -2667,7 +2912,7 @@ class ExchangeApi extends base_1.BaseAPI {
2667
2912
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2668
2913
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2669
2914
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2670
- * @param {number} [limit] Default 50; max 100.
2915
+ * @param {number} [limit] Default 50; max 1000.
2671
2916
  * @param {number} [page] The page number to retrieve in a paginated response.
2672
2917
  * @param {*} [options] Override http request option.
2673
2918
  * @throws {RequiredError}
@@ -5100,4 +5345,385 @@ class TradeApi extends base_1.BaseAPI {
5100
5345
  }
5101
5346
  }
5102
5347
  exports.TradeApi = TradeApi;
5348
+ /**
5349
+ * VeraPointsApi - axios parameter creator
5350
+ * @export
5351
+ */
5352
+ const VeraPointsApiAxiosParamCreator = function (configuration) {
5353
+ return {
5354
+ /**
5355
+ * Claim a swap transaction for Vera Points attribution.
5356
+ * @summary /vera/swap/claim
5357
+ * @param {SwapClaimRequest} swapClaimRequest
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ */
5361
+ claimSwap: (swapClaimRequest_1, ...args_1) => __awaiter(this, [swapClaimRequest_1, ...args_1], void 0, function* (swapClaimRequest, options = {}) {
5362
+ // verify required parameter 'swapClaimRequest' is not null or undefined
5363
+ (0, common_1.assertParamExists)('claimSwap', 'swapClaimRequest', swapClaimRequest);
5364
+ const localVarPath = `/v1/vera/swap/claim`;
5365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5366
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5367
+ let baseOptions;
5368
+ if (configuration) {
5369
+ baseOptions = configuration.baseOptions;
5370
+ }
5371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5372
+ const localVarHeaderParameter = {};
5373
+ const localVarQueryParameter = {};
5374
+ // authentication bearerAuth required
5375
+ // http bearer authentication required
5376
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5377
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5379
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5380
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5381
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(swapClaimRequest, localVarRequestOptions, configuration);
5382
+ return {
5383
+ url: (0, common_1.toPathString)(localVarUrlObj),
5384
+ options: localVarRequestOptions,
5385
+ };
5386
+ }),
5387
+ /**
5388
+ * Claim a vault deposit transaction for Vera Points attribution.
5389
+ * @summary /vera/vault/claim
5390
+ * @param {VaultClaimRequest} vaultClaimRequest
5391
+ * @param {*} [options] Override http request option.
5392
+ * @throws {RequiredError}
5393
+ */
5394
+ claimVault: (vaultClaimRequest_1, ...args_1) => __awaiter(this, [vaultClaimRequest_1, ...args_1], void 0, function* (vaultClaimRequest, options = {}) {
5395
+ // verify required parameter 'vaultClaimRequest' is not null or undefined
5396
+ (0, common_1.assertParamExists)('claimVault', 'vaultClaimRequest', vaultClaimRequest);
5397
+ const localVarPath = `/v1/vera/vault/claim`;
5398
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5399
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5400
+ let baseOptions;
5401
+ if (configuration) {
5402
+ baseOptions = configuration.baseOptions;
5403
+ }
5404
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5405
+ const localVarHeaderParameter = {};
5406
+ const localVarQueryParameter = {};
5407
+ // authentication bearerAuth required
5408
+ // http bearer authentication required
5409
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5410
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5411
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5413
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5414
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vaultClaimRequest, localVarRequestOptions, configuration);
5415
+ return {
5416
+ url: (0, common_1.toPathString)(localVarUrlObj),
5417
+ options: localVarRequestOptions,
5418
+ };
5419
+ }),
5420
+ /**
5421
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5422
+ * @summary Get user\'s points, tier, and rank
5423
+ * @param {string} userAddress Wallet address to look up balance for.
5424
+ * @param {*} [options] Override http request option.
5425
+ * @throws {RequiredError}
5426
+ */
5427
+ getBalance: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
5428
+ // verify required parameter 'userAddress' is not null or undefined
5429
+ (0, common_1.assertParamExists)('getBalance', 'userAddress', userAddress);
5430
+ const localVarPath = `/v1/vera/balance`;
5431
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5432
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5433
+ let baseOptions;
5434
+ if (configuration) {
5435
+ baseOptions = configuration.baseOptions;
5436
+ }
5437
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5438
+ const localVarHeaderParameter = {};
5439
+ const localVarQueryParameter = {};
5440
+ if (userAddress !== undefined) {
5441
+ localVarQueryParameter['userAddress'] = userAddress;
5442
+ }
5443
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5446
+ return {
5447
+ url: (0, common_1.toPathString)(localVarUrlObj),
5448
+ options: localVarRequestOptions,
5449
+ };
5450
+ }),
5451
+ /**
5452
+ * Paginated leaderboard ranked by lifetime Vera Points.
5453
+ * @summary Top users by lifetime points
5454
+ * @param {number} [limit] Number of entries to return.
5455
+ * @param {number} [offset] Number of entries to skip.
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ */
5459
+ getLeaderboard: (limit_1, offset_1, ...args_1) => __awaiter(this, [limit_1, offset_1, ...args_1], void 0, function* (limit, offset, options = {}) {
5460
+ const localVarPath = `/v1/vera/leaderboard`;
5461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5462
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5463
+ let baseOptions;
5464
+ if (configuration) {
5465
+ baseOptions = configuration.baseOptions;
5466
+ }
5467
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5468
+ const localVarHeaderParameter = {};
5469
+ const localVarQueryParameter = {};
5470
+ if (limit !== undefined) {
5471
+ localVarQueryParameter['limit'] = limit;
5472
+ }
5473
+ if (offset !== undefined) {
5474
+ localVarQueryParameter['offset'] = offset;
5475
+ }
5476
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5479
+ return {
5480
+ url: (0, common_1.toPathString)(localVarUrlObj),
5481
+ options: localVarRequestOptions,
5482
+ };
5483
+ }),
5484
+ /**
5485
+ * Record a daily app session for vault points eligibility. user_address is extracted from JWT; session_date is set server-side to the current UTC date. Idempotent — one session per (user, date) pair; multiple calls on the same day are no-ops. This is a required daily gate for vault balance points.
5486
+ * @summary /vera/session
5487
+ * @param {*} [options] Override http request option.
5488
+ * @throws {RequiredError}
5489
+ */
5490
+ recordSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5491
+ const localVarPath = `/v1/vera/session`;
5492
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5493
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5494
+ let baseOptions;
5495
+ if (configuration) {
5496
+ baseOptions = configuration.baseOptions;
5497
+ }
5498
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5499
+ const localVarHeaderParameter = {};
5500
+ const localVarQueryParameter = {};
5501
+ // authentication bearerAuth required
5502
+ // http bearer authentication required
5503
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5504
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5505
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5506
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5507
+ return {
5508
+ url: (0, common_1.toPathString)(localVarUrlObj),
5509
+ options: localVarRequestOptions,
5510
+ };
5511
+ }),
5512
+ };
5513
+ };
5514
+ exports.VeraPointsApiAxiosParamCreator = VeraPointsApiAxiosParamCreator;
5515
+ /**
5516
+ * VeraPointsApi - functional programming interface
5517
+ * @export
5518
+ */
5519
+ const VeraPointsApiFp = function (configuration) {
5520
+ const localVarAxiosParamCreator = (0, exports.VeraPointsApiAxiosParamCreator)(configuration);
5521
+ return {
5522
+ /**
5523
+ * Claim a swap transaction for Vera Points attribution.
5524
+ * @summary /vera/swap/claim
5525
+ * @param {SwapClaimRequest} swapClaimRequest
5526
+ * @param {*} [options] Override http request option.
5527
+ * @throws {RequiredError}
5528
+ */
5529
+ claimSwap(swapClaimRequest, options) {
5530
+ return __awaiter(this, void 0, void 0, function* () {
5531
+ var _a, _b, _c;
5532
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimSwap(swapClaimRequest, options);
5533
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5534
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VeraPointsApi.claimSwap']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5535
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5536
+ });
5537
+ },
5538
+ /**
5539
+ * Claim a vault deposit transaction for Vera Points attribution.
5540
+ * @summary /vera/vault/claim
5541
+ * @param {VaultClaimRequest} vaultClaimRequest
5542
+ * @param {*} [options] Override http request option.
5543
+ * @throws {RequiredError}
5544
+ */
5545
+ claimVault(vaultClaimRequest, options) {
5546
+ return __awaiter(this, void 0, void 0, function* () {
5547
+ var _a, _b, _c;
5548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimVault(vaultClaimRequest, options);
5549
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5550
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VeraPointsApi.claimVault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5551
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5552
+ });
5553
+ },
5554
+ /**
5555
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5556
+ * @summary Get user\'s points, tier, and rank
5557
+ * @param {string} userAddress Wallet address to look up balance for.
5558
+ * @param {*} [options] Override http request option.
5559
+ * @throws {RequiredError}
5560
+ */
5561
+ getBalance(userAddress, options) {
5562
+ return __awaiter(this, void 0, void 0, function* () {
5563
+ var _a, _b, _c;
5564
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(userAddress, options);
5565
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5566
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VeraPointsApi.getBalance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5567
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5568
+ });
5569
+ },
5570
+ /**
5571
+ * Paginated leaderboard ranked by lifetime Vera Points.
5572
+ * @summary Top users by lifetime points
5573
+ * @param {number} [limit] Number of entries to return.
5574
+ * @param {number} [offset] Number of entries to skip.
5575
+ * @param {*} [options] Override http request option.
5576
+ * @throws {RequiredError}
5577
+ */
5578
+ getLeaderboard(limit, offset, options) {
5579
+ return __awaiter(this, void 0, void 0, function* () {
5580
+ var _a, _b, _c;
5581
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeaderboard(limit, offset, options);
5582
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5583
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VeraPointsApi.getLeaderboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5584
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5585
+ });
5586
+ },
5587
+ /**
5588
+ * Record a daily app session for vault points eligibility. user_address is extracted from JWT; session_date is set server-side to the current UTC date. Idempotent — one session per (user, date) pair; multiple calls on the same day are no-ops. This is a required daily gate for vault balance points.
5589
+ * @summary /vera/session
5590
+ * @param {*} [options] Override http request option.
5591
+ * @throws {RequiredError}
5592
+ */
5593
+ recordSession(options) {
5594
+ return __awaiter(this, void 0, void 0, function* () {
5595
+ var _a, _b, _c;
5596
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.recordSession(options);
5597
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5598
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VeraPointsApi.recordSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5599
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5600
+ });
5601
+ },
5602
+ };
5603
+ };
5604
+ exports.VeraPointsApiFp = VeraPointsApiFp;
5605
+ /**
5606
+ * VeraPointsApi - factory interface
5607
+ * @export
5608
+ */
5609
+ const VeraPointsApiFactory = function (configuration, basePath, axios) {
5610
+ const localVarFp = (0, exports.VeraPointsApiFp)(configuration);
5611
+ return {
5612
+ /**
5613
+ * Claim a swap transaction for Vera Points attribution.
5614
+ * @summary /vera/swap/claim
5615
+ * @param {SwapClaimRequest} swapClaimRequest
5616
+ * @param {*} [options] Override http request option.
5617
+ * @throws {RequiredError}
5618
+ */
5619
+ claimSwap(swapClaimRequest, options) {
5620
+ return localVarFp.claimSwap(swapClaimRequest, options).then((request) => request(axios, basePath));
5621
+ },
5622
+ /**
5623
+ * Claim a vault deposit transaction for Vera Points attribution.
5624
+ * @summary /vera/vault/claim
5625
+ * @param {VaultClaimRequest} vaultClaimRequest
5626
+ * @param {*} [options] Override http request option.
5627
+ * @throws {RequiredError}
5628
+ */
5629
+ claimVault(vaultClaimRequest, options) {
5630
+ return localVarFp.claimVault(vaultClaimRequest, options).then((request) => request(axios, basePath));
5631
+ },
5632
+ /**
5633
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5634
+ * @summary Get user\'s points, tier, and rank
5635
+ * @param {string} userAddress Wallet address to look up balance for.
5636
+ * @param {*} [options] Override http request option.
5637
+ * @throws {RequiredError}
5638
+ */
5639
+ getBalance(userAddress, options) {
5640
+ return localVarFp.getBalance(userAddress, options).then((request) => request(axios, basePath));
5641
+ },
5642
+ /**
5643
+ * Paginated leaderboard ranked by lifetime Vera Points.
5644
+ * @summary Top users by lifetime points
5645
+ * @param {number} [limit] Number of entries to return.
5646
+ * @param {number} [offset] Number of entries to skip.
5647
+ * @param {*} [options] Override http request option.
5648
+ * @throws {RequiredError}
5649
+ */
5650
+ getLeaderboard(limit, offset, options) {
5651
+ return localVarFp.getLeaderboard(limit, offset, options).then((request) => request(axios, basePath));
5652
+ },
5653
+ /**
5654
+ * Record a daily app session for vault points eligibility. user_address is extracted from JWT; session_date is set server-side to the current UTC date. Idempotent — one session per (user, date) pair; multiple calls on the same day are no-ops. This is a required daily gate for vault balance points.
5655
+ * @summary /vera/session
5656
+ * @param {*} [options] Override http request option.
5657
+ * @throws {RequiredError}
5658
+ */
5659
+ recordSession(options) {
5660
+ return localVarFp.recordSession(options).then((request) => request(axios, basePath));
5661
+ },
5662
+ };
5663
+ };
5664
+ exports.VeraPointsApiFactory = VeraPointsApiFactory;
5665
+ /**
5666
+ * VeraPointsApi - object-oriented interface
5667
+ * @export
5668
+ * @class VeraPointsApi
5669
+ * @extends {BaseAPI}
5670
+ */
5671
+ class VeraPointsApi extends base_1.BaseAPI {
5672
+ /**
5673
+ * Claim a swap transaction for Vera Points attribution.
5674
+ * @summary /vera/swap/claim
5675
+ * @param {SwapClaimRequest} swapClaimRequest
5676
+ * @param {*} [options] Override http request option.
5677
+ * @throws {RequiredError}
5678
+ * @memberof VeraPointsApi
5679
+ */
5680
+ claimSwap(swapClaimRequest, options) {
5681
+ return (0, exports.VeraPointsApiFp)(this.configuration).claimSwap(swapClaimRequest, options).then((request) => request(this.axios, this.basePath));
5682
+ }
5683
+ /**
5684
+ * Claim a vault deposit transaction for Vera Points attribution.
5685
+ * @summary /vera/vault/claim
5686
+ * @param {VaultClaimRequest} vaultClaimRequest
5687
+ * @param {*} [options] Override http request option.
5688
+ * @throws {RequiredError}
5689
+ * @memberof VeraPointsApi
5690
+ */
5691
+ claimVault(vaultClaimRequest, options) {
5692
+ return (0, exports.VeraPointsApiFp)(this.configuration).claimVault(vaultClaimRequest, options).then((request) => request(this.axios, this.basePath));
5693
+ }
5694
+ /**
5695
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5696
+ * @summary Get user\'s points, tier, and rank
5697
+ * @param {string} userAddress Wallet address to look up balance for.
5698
+ * @param {*} [options] Override http request option.
5699
+ * @throws {RequiredError}
5700
+ * @memberof VeraPointsApi
5701
+ */
5702
+ getBalance(userAddress, options) {
5703
+ return (0, exports.VeraPointsApiFp)(this.configuration).getBalance(userAddress, options).then((request) => request(this.axios, this.basePath));
5704
+ }
5705
+ /**
5706
+ * Paginated leaderboard ranked by lifetime Vera Points.
5707
+ * @summary Top users by lifetime points
5708
+ * @param {number} [limit] Number of entries to return.
5709
+ * @param {number} [offset] Number of entries to skip.
5710
+ * @param {*} [options] Override http request option.
5711
+ * @throws {RequiredError}
5712
+ * @memberof VeraPointsApi
5713
+ */
5714
+ getLeaderboard(limit, offset, options) {
5715
+ return (0, exports.VeraPointsApiFp)(this.configuration).getLeaderboard(limit, offset, options).then((request) => request(this.axios, this.basePath));
5716
+ }
5717
+ /**
5718
+ * Record a daily app session for vault points eligibility. user_address is extracted from JWT; session_date is set server-side to the current UTC date. Idempotent — one session per (user, date) pair; multiple calls on the same day are no-ops. This is a required daily gate for vault balance points.
5719
+ * @summary /vera/session
5720
+ * @param {*} [options] Override http request option.
5721
+ * @throws {RequiredError}
5722
+ * @memberof VeraPointsApi
5723
+ */
5724
+ recordSession(options) {
5725
+ return (0, exports.VeraPointsApiFp)(this.configuration).recordSession(options).then((request) => request(this.axios, this.basePath));
5726
+ }
5727
+ }
5728
+ exports.VeraPointsApi = VeraPointsApi;
5103
5729
  //# sourceMappingURL=api.js.map