@bluefin-exchange/pro-sdk 1.13.0 → 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.
- package/dist/cjs/src/api.js +579 -20
- package/dist/cjs/src/api.js.map +1 -1
- package/dist/cjs/src/sdk.js +5 -4
- package/dist/cjs/src/sdk.js.map +1 -1
- package/dist/esm/src/api.js +579 -20
- package/dist/esm/src/api.js.map +1 -1
- package/dist/esm/src/sdk.js +5 -4
- package/dist/esm/src/sdk.js.map +1 -1
- package/dist/types/src/api.d.ts +611 -12
- package/dist/types/src/api.d.ts.map +1 -1
- package/package.json +4 -3
package/dist/cjs/src/api.js
CHANGED
|
@@ -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.
|
|
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'
|
|
@@ -132,6 +145,18 @@ exports.ClaimSignatureItemRewardTypeEnum = {
|
|
|
132
145
|
Wal: 'Wal',
|
|
133
146
|
Cash: 'Cash'
|
|
134
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
|
+
};
|
|
135
160
|
/**
|
|
136
161
|
*
|
|
137
162
|
* @export
|
|
@@ -216,6 +241,13 @@ exports.KlineInterval = {
|
|
|
216
241
|
_1Mo: '1Mo',
|
|
217
242
|
Unspecified: 'UNSPECIFIED'
|
|
218
243
|
};
|
|
244
|
+
exports.LeaderboardEntry1CurrentTierEnum = {
|
|
245
|
+
None: 'NONE',
|
|
246
|
+
Silver: 'SILVER',
|
|
247
|
+
Gold: 'GOLD',
|
|
248
|
+
Platinum: 'PLATINUM',
|
|
249
|
+
Diamond: 'DIAMOND'
|
|
250
|
+
};
|
|
219
251
|
/**
|
|
220
252
|
*
|
|
221
253
|
* @export
|
|
@@ -527,6 +559,9 @@ exports.SubscriptionType = {
|
|
|
527
559
|
Subscribe: 'Subscribe',
|
|
528
560
|
Unsubscribe: 'Unsubscribe'
|
|
529
561
|
};
|
|
562
|
+
exports.SwapClaimResponseStatusEnum = {
|
|
563
|
+
Claimed: 'claimed'
|
|
564
|
+
};
|
|
530
565
|
/**
|
|
531
566
|
* Trade side based on the user order in this trade.
|
|
532
567
|
* @export
|
|
@@ -576,6 +611,9 @@ exports.UserCampaignRewardsClaimStatusEnum = {
|
|
|
576
611
|
NotYetClaimable: 'NOT_YET_CLAIMABLE',
|
|
577
612
|
ClaimEnded: 'CLAIM_ENDED'
|
|
578
613
|
};
|
|
614
|
+
exports.VaultClaimResponseStatusEnum = {
|
|
615
|
+
Claimed: 'claimed'
|
|
616
|
+
};
|
|
579
617
|
/**
|
|
580
618
|
* AccountDataApi - axios parameter creator
|
|
581
619
|
* @export
|
|
@@ -1430,10 +1468,11 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1430
1468
|
* @param {LoginRequest} loginRequest
|
|
1431
1469
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1432
1470
|
* @param {boolean} [readOnly]
|
|
1471
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1433
1472
|
* @param {*} [options] Override http request option.
|
|
1434
1473
|
* @throws {RequiredError}
|
|
1435
1474
|
*/
|
|
1436
|
-
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 = {}) {
|
|
1437
1476
|
// verify required parameter 'payloadSignature' is not null or undefined
|
|
1438
1477
|
(0, common_1.assertParamExists)('authTokenPost', 'payloadSignature', payloadSignature);
|
|
1439
1478
|
// verify required parameter 'loginRequest' is not null or undefined
|
|
@@ -1454,6 +1493,9 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1454
1493
|
if (readOnly !== undefined) {
|
|
1455
1494
|
localVarQueryParameter['readOnly'] = readOnly;
|
|
1456
1495
|
}
|
|
1496
|
+
if (client !== undefined) {
|
|
1497
|
+
localVarQueryParameter['client'] = client;
|
|
1498
|
+
}
|
|
1457
1499
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1458
1500
|
if (payloadSignature != null) {
|
|
1459
1501
|
localVarHeaderParameter['payloadSignature'] = String(payloadSignature);
|
|
@@ -1502,10 +1544,11 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1502
1544
|
* @param {LoginRequest} loginRequest
|
|
1503
1545
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1504
1546
|
* @param {boolean} [readOnly]
|
|
1547
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1505
1548
|
* @param {*} [options] Override http request option.
|
|
1506
1549
|
* @throws {RequiredError}
|
|
1507
1550
|
*/
|
|
1508
|
-
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 = {}) {
|
|
1509
1552
|
// verify required parameter 'payloadSignature' is not null or undefined
|
|
1510
1553
|
(0, common_1.assertParamExists)('authV2TokenPost', 'payloadSignature', payloadSignature);
|
|
1511
1554
|
// verify required parameter 'loginRequest' is not null or undefined
|
|
@@ -1526,6 +1569,9 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1526
1569
|
if (readOnly !== undefined) {
|
|
1527
1570
|
localVarQueryParameter['readOnly'] = readOnly;
|
|
1528
1571
|
}
|
|
1572
|
+
if (client !== undefined) {
|
|
1573
|
+
localVarQueryParameter['client'] = client;
|
|
1574
|
+
}
|
|
1529
1575
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1530
1576
|
if (payloadSignature != null) {
|
|
1531
1577
|
localVarHeaderParameter['payloadSignature'] = String(payloadSignature);
|
|
@@ -1539,6 +1585,31 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1539
1585
|
options: localVarRequestOptions,
|
|
1540
1586
|
};
|
|
1541
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
|
+
}),
|
|
1542
1613
|
/**
|
|
1543
1614
|
* ZK Login User Details
|
|
1544
1615
|
* @summary /auth/zklogin
|
|
@@ -1570,6 +1641,36 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1570
1641
|
options: localVarRequestOptions,
|
|
1571
1642
|
};
|
|
1572
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
|
+
}),
|
|
1573
1674
|
/**
|
|
1574
1675
|
*
|
|
1575
1676
|
* @summary /auth/zklogin/zkp
|
|
@@ -1636,13 +1737,14 @@ const AuthApiFp = function (configuration) {
|
|
|
1636
1737
|
* @param {LoginRequest} loginRequest
|
|
1637
1738
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1638
1739
|
* @param {boolean} [readOnly]
|
|
1740
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1639
1741
|
* @param {*} [options] Override http request option.
|
|
1640
1742
|
* @throws {RequiredError}
|
|
1641
1743
|
*/
|
|
1642
|
-
authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
|
|
1744
|
+
authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
|
|
1643
1745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1644
1746
|
var _a, _b, _c;
|
|
1645
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options);
|
|
1747
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
|
|
1646
1748
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1647
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;
|
|
1648
1750
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1669,18 +1771,34 @@ const AuthApiFp = function (configuration) {
|
|
|
1669
1771
|
* @param {LoginRequest} loginRequest
|
|
1670
1772
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1671
1773
|
* @param {boolean} [readOnly]
|
|
1774
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1672
1775
|
* @param {*} [options] Override http request option.
|
|
1673
1776
|
* @throws {RequiredError}
|
|
1674
1777
|
*/
|
|
1675
|
-
authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
|
|
1778
|
+
authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
|
|
1676
1779
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1677
1780
|
var _a, _b, _c;
|
|
1678
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options);
|
|
1781
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
|
|
1679
1782
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1680
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;
|
|
1681
1784
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1682
1785
|
});
|
|
1683
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
|
+
},
|
|
1684
1802
|
/**
|
|
1685
1803
|
* ZK Login User Details
|
|
1686
1804
|
* @summary /auth/zklogin
|
|
@@ -1697,6 +1815,22 @@ const AuthApiFp = function (configuration) {
|
|
|
1697
1815
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1698
1816
|
});
|
|
1699
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
|
+
},
|
|
1700
1834
|
/**
|
|
1701
1835
|
*
|
|
1702
1836
|
* @summary /auth/zklogin/zkp
|
|
@@ -1738,11 +1872,12 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1738
1872
|
* @param {LoginRequest} loginRequest
|
|
1739
1873
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1740
1874
|
* @param {boolean} [readOnly]
|
|
1875
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1741
1876
|
* @param {*} [options] Override http request option.
|
|
1742
1877
|
* @throws {RequiredError}
|
|
1743
1878
|
*/
|
|
1744
|
-
authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
|
|
1745
|
-
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));
|
|
1746
1881
|
},
|
|
1747
1882
|
/**
|
|
1748
1883
|
* Retrieves a new auth token for an account. Expiry is set to 5 min.
|
|
@@ -1759,11 +1894,21 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1759
1894
|
* @param {LoginRequest} loginRequest
|
|
1760
1895
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1761
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
|
|
1762
1907
|
* @param {*} [options] Override http request option.
|
|
1763
1908
|
* @throws {RequiredError}
|
|
1764
1909
|
*/
|
|
1765
|
-
|
|
1766
|
-
return localVarFp.
|
|
1910
|
+
getWellKnownOpenidConfiguration(options) {
|
|
1911
|
+
return localVarFp.getWellKnownOpenidConfiguration(options).then((request) => request(axios, basePath));
|
|
1767
1912
|
},
|
|
1768
1913
|
/**
|
|
1769
1914
|
* ZK Login User Details
|
|
@@ -1775,6 +1920,16 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1775
1920
|
getZkLoginUserDetails(zkloginJwt, options) {
|
|
1776
1921
|
return localVarFp.getZkLoginUserDetails(zkloginJwt, options).then((request) => request(axios, basePath));
|
|
1777
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
|
+
},
|
|
1778
1933
|
/**
|
|
1779
1934
|
*
|
|
1780
1935
|
* @summary /auth/zklogin/zkp
|
|
@@ -1811,12 +1966,13 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1811
1966
|
* @param {LoginRequest} loginRequest
|
|
1812
1967
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1813
1968
|
* @param {boolean} [readOnly]
|
|
1969
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1814
1970
|
* @param {*} [options] Override http request option.
|
|
1815
1971
|
* @throws {RequiredError}
|
|
1816
1972
|
* @memberof AuthApi
|
|
1817
1973
|
*/
|
|
1818
|
-
authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
|
|
1819
|
-
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));
|
|
1820
1976
|
}
|
|
1821
1977
|
/**
|
|
1822
1978
|
* Retrieves a new auth token for an account. Expiry is set to 5 min.
|
|
@@ -1834,12 +1990,23 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1834
1990
|
* @param {LoginRequest} loginRequest
|
|
1835
1991
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
1836
1992
|
* @param {boolean} [readOnly]
|
|
1993
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
1837
1994
|
* @param {*} [options] Override http request option.
|
|
1838
1995
|
* @throws {RequiredError}
|
|
1839
1996
|
* @memberof AuthApi
|
|
1840
1997
|
*/
|
|
1841
|
-
authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
|
|
1842
|
-
return (0, exports.AuthApiFp)(this.configuration).authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
|
2004
|
+
* @param {*} [options] Override http request option.
|
|
2005
|
+
* @throws {RequiredError}
|
|
2006
|
+
* @memberof AuthApi
|
|
2007
|
+
*/
|
|
2008
|
+
getWellKnownOpenidConfiguration(options) {
|
|
2009
|
+
return (0, exports.AuthApiFp)(this.configuration).getWellKnownOpenidConfiguration(options).then((request) => request(this.axios, this.basePath));
|
|
1843
2010
|
}
|
|
1844
2011
|
/**
|
|
1845
2012
|
* ZK Login User Details
|
|
@@ -1852,6 +2019,17 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1852
2019
|
getZkLoginUserDetails(zkloginJwt, options) {
|
|
1853
2020
|
return (0, exports.AuthApiFp)(this.configuration).getZkLoginUserDetails(zkloginJwt, options).then((request) => request(this.axios, this.basePath));
|
|
1854
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
|
+
}
|
|
1855
2033
|
/**
|
|
1856
2034
|
*
|
|
1857
2035
|
* @summary /auth/zklogin/zkp
|
|
@@ -2129,7 +2307,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
|
|
|
2129
2307
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
2130
2308
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
2131
2309
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
2132
|
-
* @param {number} [limit] Default 50; max
|
|
2310
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
2133
2311
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
2134
2312
|
* @param {*} [options] Override http request option.
|
|
2135
2313
|
* @throws {RequiredError}
|
|
@@ -2423,7 +2601,7 @@ const ExchangeApiFp = function (configuration) {
|
|
|
2423
2601
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
2424
2602
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
2425
2603
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
2426
|
-
* @param {number} [limit] Default 50; max
|
|
2604
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
2427
2605
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
2428
2606
|
* @param {*} [options] Override http request option.
|
|
2429
2607
|
* @throws {RequiredError}
|
|
@@ -2587,7 +2765,7 @@ const ExchangeApiFactory = function (configuration, basePath, axios) {
|
|
|
2587
2765
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
2588
2766
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
2589
2767
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
2590
|
-
* @param {number} [limit] Default 50; max
|
|
2768
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
2591
2769
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
2592
2770
|
* @param {*} [options] Override http request option.
|
|
2593
2771
|
* @throws {RequiredError}
|
|
@@ -2734,7 +2912,7 @@ class ExchangeApi extends base_1.BaseAPI {
|
|
|
2734
2912
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
2735
2913
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
2736
2914
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
2737
|
-
* @param {number} [limit] Default 50; max
|
|
2915
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
2738
2916
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
2739
2917
|
* @param {*} [options] Override http request option.
|
|
2740
2918
|
* @throws {RequiredError}
|
|
@@ -5167,4 +5345,385 @@ class TradeApi extends base_1.BaseAPI {
|
|
|
5167
5345
|
}
|
|
5168
5346
|
}
|
|
5169
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;
|
|
5170
5729
|
//# sourceMappingURL=api.js.map
|