@bluefin-exchange/pro-sdk 1.13.0 → 2.0.0-beta.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.
Files changed (51) hide show
  1. package/README.md +3 -2
  2. package/dist/esm/example.js +42 -43
  3. package/dist/esm/example.js.map +1 -1
  4. package/dist/esm/index.js +1 -17
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/esm/src/api.js +1095 -571
  7. package/dist/esm/src/api.js.map +1 -1
  8. package/dist/esm/src/base.js +7 -15
  9. package/dist/esm/src/base.js.map +1 -1
  10. package/dist/esm/src/common.js +12 -24
  11. package/dist/esm/src/common.js.map +1 -1
  12. package/dist/esm/src/configuration.js +1 -5
  13. package/dist/esm/src/configuration.js.map +1 -1
  14. package/dist/esm/src/index.js +6 -22
  15. package/dist/esm/src/index.js.map +1 -1
  16. package/dist/esm/src/request-signer.js +14 -19
  17. package/dist/esm/src/request-signer.js.map +1 -1
  18. package/dist/esm/src/sdk.js +42 -46
  19. package/dist/esm/src/sdk.js.map +1 -1
  20. package/dist/esm/src/utils.js +1 -4
  21. package/dist/esm/src/utils.js.map +1 -1
  22. package/dist/esm/src/websocket.js +5 -9
  23. package/dist/esm/src/websocket.js.map +1 -1
  24. package/dist/types/src/api.d.ts +607 -8
  25. package/dist/types/src/api.d.ts.map +1 -1
  26. package/dist/types/src/request-signer.d.ts +1 -1
  27. package/dist/types/src/sdk.d.ts +3 -2
  28. package/dist/types/src/sdk.d.ts.map +1 -1
  29. package/package.json +18 -13
  30. package/dist/cjs/example.js +0 -277
  31. package/dist/cjs/example.js.map +0 -1
  32. package/dist/cjs/index.js +0 -18
  33. package/dist/cjs/index.js.map +0 -1
  34. package/dist/cjs/src/api.js +0 -5170
  35. package/dist/cjs/src/api.js.map +0 -1
  36. package/dist/cjs/src/base.js +0 -69
  37. package/dist/cjs/src/base.js.map +0 -1
  38. package/dist/cjs/src/common.js +0 -162
  39. package/dist/cjs/src/common.js.map +0 -1
  40. package/dist/cjs/src/configuration.js +0 -45
  41. package/dist/cjs/src/configuration.js.map +0 -1
  42. package/dist/cjs/src/index.js +0 -23
  43. package/dist/cjs/src/index.js.map +0 -1
  44. package/dist/cjs/src/request-signer.js +0 -234
  45. package/dist/cjs/src/request-signer.js.map +0 -1
  46. package/dist/cjs/src/sdk.js +0 -863
  47. package/dist/cjs/src/sdk.js.map +0 -1
  48. package/dist/cjs/src/utils.js +0 -10
  49. package/dist/cjs/src/utils.js.map +0 -1
  50. package/dist/cjs/src/websocket.js +0 -159
  51. package/dist/cjs/src/websocket.js.map +0 -1
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -21,24 +20,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
20
  step((generator = generator.apply(thisArg, _arguments || [])).next());
22
21
  });
23
22
  };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
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;
30
- const axios_1 = __importDefault(require("axios"));
23
+ import globalAxios from 'axios';
31
24
  // Some imports not used depending on template conditions
32
25
  // @ts-ignore
33
- const common_1 = require("./common");
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
34
27
  // @ts-ignore
35
- const base_1 = require("./base");
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
36
29
  /**
37
30
  * Represents the type of account data stream.
38
31
  * @export
39
32
  * @enum {string}
40
33
  */
41
- exports.AccountDataStream = {
34
+ export const AccountDataStream = {
42
35
  AccountOrderUpdate: 'AccountOrderUpdate',
43
36
  AccountTradeUpdate: 'AccountTradeUpdate',
44
37
  AccountAggregatedTradeUpdate: 'AccountAggregatedTradeUpdate',
@@ -52,7 +45,7 @@ exports.AccountDataStream = {
52
45
  * @export
53
46
  * @enum {string}
54
47
  */
55
- exports.AccountEventReason = {
48
+ export const AccountEventReason = {
56
49
  Deposit: 'Deposit',
57
50
  Withdraw: 'Withdraw',
58
51
  OrderCreated: 'OrderCreated',
@@ -70,7 +63,7 @@ exports.AccountEventReason = {
70
63
  * @export
71
64
  * @enum {string}
72
65
  */
73
- exports.AccountEventType = {
66
+ export const AccountEventType = {
74
67
  AccountUpdate: 'AccountUpdate',
75
68
  AccountTradeUpdate: 'AccountTradeUpdate',
76
69
  AccountAggregatedTradeUpdate: 'AccountAggregatedTradeUpdate',
@@ -84,33 +77,46 @@ exports.AccountEventType = {
84
77
  * @export
85
78
  * @enum {string}
86
79
  */
87
- exports.AdjustMarginOperation = {
80
+ export const AdjustMarginOperation = {
88
81
  Add: 'ADD',
89
82
  Subtract: 'SUBTRACT'
90
83
  };
91
- exports.AffiliateIntervalOverviewStatusEnum = {
84
+ export const AffiliateIntervalOverviewStatusEnum = {
92
85
  Active: 'ACTIVE',
93
86
  NotStarted: 'NOT_STARTED',
94
87
  Finalized: 'FINALIZED',
95
88
  Cooldown: 'COOLDOWN'
96
89
  };
97
- exports.AffiliateMetadataStatusEnum = {
90
+ export const AffiliateMetadataStatusEnum = {
98
91
  Pending: 'PENDING',
99
92
  Approved: 'APPROVED',
100
93
  Rejected: 'REJECTED'
101
94
  };
102
- exports.AffiliateMetadataTierEnum = {
95
+ export const AffiliateMetadataTierEnum = {
103
96
  S: 'S',
104
97
  A: 'A',
105
98
  N: 'N',
106
99
  U: 'U'
107
100
  };
108
- exports.AffiliateOnboardResponseStatusEnum = {
101
+ export const AffiliateOnboardResponseStatusEnum = {
109
102
  Approved: 'APPROVED',
110
103
  Rejected: 'REJECTED',
111
104
  Pending: 'PENDING'
112
105
  };
113
- exports.CampaignMetadataStatusEnum = {
106
+ export const BalanceResponseCurrentTierEnum = {
107
+ None: 'NONE',
108
+ Silver: 'SILVER',
109
+ Gold: 'GOLD',
110
+ Platinum: 'PLATINUM',
111
+ Diamond: 'DIAMOND'
112
+ };
113
+ export const BalanceResponseNextTierEnum = {
114
+ Silver: 'SILVER',
115
+ Gold: 'GOLD',
116
+ Platinum: 'PLATINUM',
117
+ Diamond: 'DIAMOND'
118
+ };
119
+ export const CampaignMetadataStatusEnum = {
114
120
  Active: 'ACTIVE',
115
121
  Inactive: 'INACTIVE'
116
122
  };
@@ -119,25 +125,37 @@ exports.CampaignMetadataStatusEnum = {
119
125
  * @export
120
126
  * @enum {string}
121
127
  */
122
- exports.CandlePriceType = {
128
+ export const CandlePriceType = {
123
129
  Last: 'Last',
124
130
  Market: 'Market',
125
131
  Oracle: 'Oracle',
126
132
  Mark: 'Mark',
127
133
  Unspecified: 'UNSPECIFIED'
128
134
  };
129
- exports.ClaimSignatureItemRewardTypeEnum = {
135
+ export const ClaimSignatureItemRewardTypeEnum = {
130
136
  Blue: 'Blue',
131
137
  Sui: 'Sui',
132
138
  Wal: 'Wal',
133
139
  Cash: 'Cash'
134
140
  };
141
+ export const ClientCredentialsRequestGrantTypeEnum = {
142
+ ClientCredentials: 'client_credentials'
143
+ };
144
+ /**
145
+ * The client application that initiated the request.
146
+ * @export
147
+ * @enum {string}
148
+ */
149
+ export const ClientType = {
150
+ Web: 'WEB',
151
+ Vera: 'VERA'
152
+ };
135
153
  /**
136
154
  *
137
155
  * @export
138
156
  * @enum {string}
139
157
  */
140
- exports.CommandFailureReasonCode = {
158
+ export const CommandFailureReasonCode = {
141
159
  Unspecified: 'UNSPECIFIED',
142
160
  UnknownAddress: 'UNKNOWN_ADDRESS',
143
161
  UnknownSymbol: 'UNKNOWN_SYMBOL',
@@ -149,12 +167,12 @@ exports.CommandFailureReasonCode = {
149
167
  WithdrawZero: 'WITHDRAW_ZERO',
150
168
  Unexpected: 'UNEXPECTED'
151
169
  };
152
- exports.ContractsConfigNetworkEnum = {
170
+ export const ContractsConfigNetworkEnum = {
153
171
  Mainnet: 'mainnet',
154
172
  Testnet: 'testnet',
155
173
  Devnet: 'devnet'
156
174
  };
157
- exports.EpochMetadataStatusEnum = {
175
+ export const EpochMetadataStatusEnum = {
158
176
  Active: 'ACTIVE',
159
177
  NotStarted: 'NOT_STARTED',
160
178
  Finalized: 'FINALIZED',
@@ -165,7 +183,7 @@ exports.EpochMetadataStatusEnum = {
165
183
  * @export
166
184
  * @enum {string}
167
185
  */
168
- exports.FailedCommandType = {
186
+ export const FailedCommandType = {
169
187
  PositionIsolatedMarginUpdate: 'POSITION_ISOLATED_MARGIN_UPDATE',
170
188
  PositionLeverageUpdate: 'POSITION_LEVERAGE_UPDATE',
171
189
  Withdraw: 'WITHDRAW'
@@ -175,20 +193,20 @@ exports.FailedCommandType = {
175
193
  * @export
176
194
  * @enum {string}
177
195
  */
178
- exports.GetAccountValueHistoryParamsInterval = {
196
+ export const GetAccountValueHistoryParamsInterval = {
179
197
  _24h: '24h',
180
198
  _7d: '7d',
181
199
  _30d: '30d',
182
200
  _90d: '90d',
183
201
  All: 'all'
184
202
  };
185
- exports.IntervalMetadataStatusEnum = {
203
+ export const IntervalMetadataStatusEnum = {
186
204
  Active: 'ACTIVE',
187
205
  NotStarted: 'NOT_STARTED',
188
206
  Finalized: 'FINALIZED',
189
207
  Cooldown: 'COOLDOWN'
190
208
  };
191
- exports.IntervalRewardsStatusEnum = {
209
+ export const IntervalRewardsStatusEnum = {
192
210
  Active: 'ACTIVE',
193
211
  NotStarted: 'NOT_STARTED',
194
212
  Finalized: 'FINALIZED',
@@ -199,7 +217,7 @@ exports.IntervalRewardsStatusEnum = {
199
217
  * @export
200
218
  * @enum {string}
201
219
  */
202
- exports.KlineInterval = {
220
+ export const KlineInterval = {
203
221
  _1m: '1m',
204
222
  _3m: '3m',
205
223
  _5m: '5m',
@@ -216,12 +234,19 @@ exports.KlineInterval = {
216
234
  _1Mo: '1Mo',
217
235
  Unspecified: 'UNSPECIFIED'
218
236
  };
237
+ export const LeaderboardEntry1CurrentTierEnum = {
238
+ None: 'NONE',
239
+ Silver: 'SILVER',
240
+ Gold: 'GOLD',
241
+ Platinum: 'PLATINUM',
242
+ Diamond: 'DIAMOND'
243
+ };
219
244
  /**
220
245
  *
221
246
  * @export
222
247
  * @enum {string}
223
248
  */
224
- exports.LeaderboardInterval = {
249
+ export const LeaderboardInterval = {
225
250
  LeaderboardIntervalN1d: '1d',
226
251
  LeaderboardIntervalN7d: '7d',
227
252
  LeaderboardIntervalN30d: '30d',
@@ -233,21 +258,21 @@ exports.LeaderboardInterval = {
233
258
  * @export
234
259
  * @enum {string}
235
260
  */
236
- exports.MarginType = {
261
+ export const MarginType = {
237
262
  Cross: 'CROSS',
238
263
  Isolated: 'ISOLATED',
239
264
  Unspecified: 'UNSPECIFIED'
240
265
  };
241
- exports.MarkAsClaimedRequestCampaignNameEnum = {
266
+ export const MarkAsClaimedRequestCampaignNameEnum = {
242
267
  TradeAndEarn: 'TRADE_AND_EARN',
243
268
  WalTradeAndEarn: 'WAL_TRADE_AND_EARN',
244
269
  Affiliate: 'AFFILIATE'
245
270
  };
246
- exports.MarkAsClaimedResponseStatusEnum = {
271
+ export const MarkAsClaimedResponseStatusEnum = {
247
272
  Claimed: 'CLAIMED',
248
273
  Claimable: 'CLAIMABLE'
249
274
  };
250
- exports.MarkPriceUpdateSourceEnum = {
275
+ export const MarkPriceUpdateSourceEnum = {
251
276
  Mark: 'Mark'
252
277
  };
253
278
  /**
@@ -255,7 +280,7 @@ exports.MarkPriceUpdateSourceEnum = {
255
280
  * @export
256
281
  * @enum {string}
257
282
  */
258
- exports.MarketDataStreamName = {
283
+ export const MarketDataStreamName = {
259
284
  RecentTrade: 'Recent_Trade',
260
285
  Ticker: 'Ticker',
261
286
  TickerAll: 'Ticker_All',
@@ -330,7 +355,7 @@ exports.MarketDataStreamName = {
330
355
  * @export
331
356
  * @enum {string}
332
357
  */
333
- exports.MarketEventType = {
358
+ export const MarketEventType = {
334
359
  RecentTradesUpdates: 'RecentTradesUpdates',
335
360
  TickerUpdate: 'TickerUpdate',
336
361
  TickerAllUpdate: 'TickerAllUpdate',
@@ -341,7 +366,7 @@ exports.MarketEventType = {
341
366
  OrderbookDiffDepthUpdate: 'OrderbookDiffDepthUpdate',
342
367
  OrderbookPartialDepthUpdate: 'OrderbookPartialDepthUpdate'
343
368
  };
344
- exports.MarketPriceUpdateSourceEnum = {
369
+ export const MarketPriceUpdateSourceEnum = {
345
370
  Market: 'Market'
346
371
  };
347
372
  /**
@@ -349,14 +374,14 @@ exports.MarketPriceUpdateSourceEnum = {
349
374
  * @export
350
375
  * @enum {string}
351
376
  */
352
- exports.MarketStatus = {
377
+ export const MarketStatus = {
353
378
  Active: 'ACTIVE',
354
379
  Beta: 'BETA',
355
380
  Maintenance: 'MAINTENANCE',
356
381
  Delisted: 'DELISTED',
357
382
  Unspecified: 'UNSPECIFIED'
358
383
  };
359
- exports.OraclePriceUpdateSourceEnum = {
384
+ export const OraclePriceUpdateSourceEnum = {
360
385
  Oracle: 'Oracle'
361
386
  };
362
387
  /**
@@ -364,7 +389,7 @@ exports.OraclePriceUpdateSourceEnum = {
364
389
  * @export
365
390
  * @enum {string}
366
391
  */
367
- exports.OrderCancelReason = {
392
+ export const OrderCancelReason = {
368
393
  Unspecified: 'UNSPECIFIED',
369
394
  InsufficientMargin: 'INSUFFICIENT_MARGIN',
370
395
  DuplicateOrder: 'DUPLICATE_ORDER',
@@ -406,7 +431,7 @@ exports.OrderCancelReason = {
406
431
  * @export
407
432
  * @enum {string}
408
433
  */
409
- exports.OrderCancellationFailureReason = {
434
+ export const OrderCancellationFailureReason = {
410
435
  OrderNotFound: 'ORDER_NOT_FOUND',
411
436
  MarketNotFound: 'MARKET_NOT_FOUND',
412
437
  AccountNotFound: 'ACCOUNT_NOT_FOUND',
@@ -419,7 +444,7 @@ exports.OrderCancellationFailureReason = {
419
444
  * @export
420
445
  * @enum {string}
421
446
  */
422
- exports.OrderSide = {
447
+ export const OrderSide = {
423
448
  Long: 'LONG',
424
449
  Short: 'SHORT',
425
450
  Unspecified: 'UNSPECIFIED'
@@ -429,7 +454,7 @@ exports.OrderSide = {
429
454
  * @export
430
455
  * @enum {string}
431
456
  */
432
- exports.OrderStatus = {
457
+ export const OrderStatus = {
433
458
  Standby: 'STANDBY',
434
459
  Open: 'OPEN',
435
460
  PartiallyFilledOpen: 'PARTIALLY_FILLED_OPEN',
@@ -445,7 +470,7 @@ exports.OrderStatus = {
445
470
  * @export
446
471
  * @enum {string}
447
472
  */
448
- exports.OrderTimeInForce = {
473
+ export const OrderTimeInForce = {
449
474
  Gtt: 'GTT',
450
475
  Ioc: 'IOC',
451
476
  Fok: 'FOK',
@@ -456,7 +481,7 @@ exports.OrderTimeInForce = {
456
481
  * @export
457
482
  * @enum {string}
458
483
  */
459
- exports.OrderType = {
484
+ export const OrderType = {
460
485
  Limit: 'LIMIT',
461
486
  Market: 'MARKET',
462
487
  StopLimit: 'STOP_LIMIT',
@@ -471,7 +496,7 @@ exports.OrderType = {
471
496
  Adl: 'ADL',
472
497
  Unspecified: 'UNSPECIFIED'
473
498
  };
474
- exports.OrderbookPartialDepthUpdateDepthLevelEnum = {
499
+ export const OrderbookPartialDepthUpdateDepthLevelEnum = {
475
500
  _5: '5',
476
501
  _10: '10',
477
502
  _20: '20'
@@ -481,7 +506,7 @@ exports.OrderbookPartialDepthUpdateDepthLevelEnum = {
481
506
  * @export
482
507
  * @enum {string}
483
508
  */
484
- exports.PositionSide = {
509
+ export const PositionSide = {
485
510
  Long: 'LONG',
486
511
  Short: 'SHORT',
487
512
  Unspecified: 'UNSPECIFIED'
@@ -491,7 +516,7 @@ exports.PositionSide = {
491
516
  * @export
492
517
  * @enum {string}
493
518
  */
494
- exports.SelfTradePreventionType = {
519
+ export const SelfTradePreventionType = {
495
520
  Taker: 'TAKER',
496
521
  Maker: 'MAKER',
497
522
  Both: 'BOTH',
@@ -502,7 +527,7 @@ exports.SelfTradePreventionType = {
502
527
  * @export
503
528
  * @enum {string}
504
529
  */
505
- exports.SortOrder = {
530
+ export const SortOrder = {
506
531
  Asc: 'ASC',
507
532
  Desc: 'DESC',
508
533
  Unspecified: 'UNSPECIFIED'
@@ -512,7 +537,7 @@ exports.SortOrder = {
512
537
  * @export
513
538
  * @enum {string}
514
539
  */
515
- exports.StatsInterval = {
540
+ export const StatsInterval = {
516
541
  _1d: '1d',
517
542
  _1w: '1w',
518
543
  _1Mo: '1Mo',
@@ -523,16 +548,19 @@ exports.StatsInterval = {
523
548
  * @export
524
549
  * @enum {string}
525
550
  */
526
- exports.SubscriptionType = {
551
+ export const SubscriptionType = {
527
552
  Subscribe: 'Subscribe',
528
553
  Unsubscribe: 'Unsubscribe'
529
554
  };
555
+ export const SwapClaimResponseStatusEnum = {
556
+ Claimed: 'claimed'
557
+ };
530
558
  /**
531
559
  * Trade side based on the user order in this trade.
532
560
  * @export
533
561
  * @enum {string}
534
562
  */
535
- exports.TradeSide = {
563
+ export const TradeSide = {
536
564
  Long: 'LONG',
537
565
  Short: 'SHORT',
538
566
  Unspecified: 'UNSPECIFIED'
@@ -542,7 +570,7 @@ exports.TradeSide = {
542
570
  * @export
543
571
  * @enum {string}
544
572
  */
545
- exports.TradeType = {
573
+ export const TradeType = {
546
574
  Order: 'ORDER',
547
575
  Liquidation: 'LIQUIDATION',
548
576
  Deleverage: 'DELEVERAGE',
@@ -553,7 +581,7 @@ exports.TradeType = {
553
581
  * @export
554
582
  * @enum {string}
555
583
  */
556
- exports.TransactionType = {
584
+ export const TransactionType = {
557
585
  Transfer: 'TRANSFER',
558
586
  Deposit: 'DEPOSIT',
559
587
  Withdraw: 'WITHDRAW',
@@ -564,23 +592,26 @@ exports.TransactionType = {
564
592
  Bonus: 'BONUS',
565
593
  Unspecified: 'UNSPECIFIED'
566
594
  };
567
- exports.UserCampaignRewardsStatusEnum = {
595
+ export const UserCampaignRewardsStatusEnum = {
568
596
  Active: 'ACTIVE',
569
597
  NotStarted: 'NOT_STARTED',
570
598
  Finalized: 'FINALIZED',
571
599
  Cooldown: 'COOLDOWN'
572
600
  };
573
- exports.UserCampaignRewardsClaimStatusEnum = {
601
+ export const UserCampaignRewardsClaimStatusEnum = {
574
602
  Claimable: 'CLAIMABLE',
575
603
  Claimed: 'CLAIMED',
576
604
  NotYetClaimable: 'NOT_YET_CLAIMABLE',
577
605
  ClaimEnded: 'CLAIM_ENDED'
578
606
  };
607
+ export const VaultClaimResponseStatusEnum = {
608
+ Claimed: 'claimed'
609
+ };
579
610
  /**
580
611
  * AccountDataApi - axios parameter creator
581
612
  * @export
582
613
  */
583
- const AccountDataApiAxiosParamCreator = function (configuration) {
614
+ export const AccountDataApiAxiosParamCreator = function (configuration) {
584
615
  return {
585
616
  /**
586
617
  * Retrieves the user\'s account details.
@@ -592,7 +623,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
592
623
  getAccountDetails: (accountAddress_1, ...args_1) => __awaiter(this, [accountAddress_1, ...args_1], void 0, function* (accountAddress, options = {}) {
593
624
  const localVarPath = `/api/v1/account`;
594
625
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
595
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
626
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
596
627
  let baseOptions;
597
628
  if (configuration) {
598
629
  baseOptions = configuration.baseOptions;
@@ -603,11 +634,11 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
603
634
  if (accountAddress !== undefined) {
604
635
  localVarQueryParameter['accountAddress'] = accountAddress;
605
636
  }
606
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
607
638
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
608
639
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
609
640
  return {
610
- url: (0, common_1.toPathString)(localVarUrlObj),
641
+ url: toPathString(localVarUrlObj),
611
642
  options: localVarRequestOptions,
612
643
  };
613
644
  }),
@@ -625,7 +656,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
625
656
  getAccountFundingRateHistory: (accountAddress_1, limit_1, page_1, startTimeAtMillis_1, endTimeAtMillis_1, ...args_1) => __awaiter(this, [accountAddress_1, limit_1, page_1, startTimeAtMillis_1, endTimeAtMillis_1, ...args_1], void 0, function* (accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options = {}) {
626
657
  const localVarPath = `/api/v1/account/fundingRateHistory`;
627
658
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
628
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
659
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
629
660
  let baseOptions;
630
661
  if (configuration) {
631
662
  baseOptions = configuration.baseOptions;
@@ -635,7 +666,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
635
666
  const localVarQueryParameter = {};
636
667
  // authentication bearerAuth required
637
668
  // http bearer authentication required
638
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
669
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
639
670
  if (accountAddress !== undefined) {
640
671
  localVarQueryParameter['accountAddress'] = accountAddress;
641
672
  }
@@ -651,11 +682,11 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
651
682
  if (endTimeAtMillis !== undefined) {
652
683
  localVarQueryParameter['endTimeAtMillis'] = endTimeAtMillis;
653
684
  }
654
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
655
686
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
656
687
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
657
688
  return {
658
- url: (0, common_1.toPathString)(localVarUrlObj),
689
+ url: toPathString(localVarUrlObj),
659
690
  options: localVarRequestOptions,
660
691
  };
661
692
  }),
@@ -668,7 +699,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
668
699
  getAccountPreferences: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
669
700
  const localVarPath = `/api/v1/account/preferences`;
670
701
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
671
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
672
703
  let baseOptions;
673
704
  if (configuration) {
674
705
  baseOptions = configuration.baseOptions;
@@ -678,12 +709,12 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
678
709
  const localVarQueryParameter = {};
679
710
  // authentication bearerAuth required
680
711
  // http bearer authentication required
681
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
682
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
712
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
713
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
683
714
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
684
715
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
685
716
  return {
686
- url: (0, common_1.toPathString)(localVarUrlObj),
717
+ url: toPathString(localVarUrlObj),
687
718
  options: localVarRequestOptions,
688
719
  };
689
720
  }),
@@ -702,7 +733,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
702
733
  getAccountTrades: (symbol_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, tradeType_1, page_1, ...args_1) => __awaiter(this, [symbol_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, tradeType_1, page_1, ...args_1], void 0, function* (symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options = {}) {
703
734
  const localVarPath = `/api/v1/account/trades`;
704
735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
705
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
736
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
706
737
  let baseOptions;
707
738
  if (configuration) {
708
739
  baseOptions = configuration.baseOptions;
@@ -712,7 +743,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
712
743
  const localVarQueryParameter = {};
713
744
  // authentication bearerAuth required
714
745
  // http bearer authentication required
715
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
746
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
716
747
  if (symbol !== undefined) {
717
748
  localVarQueryParameter['symbol'] = symbol;
718
749
  }
@@ -731,11 +762,11 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
731
762
  if (page !== undefined) {
732
763
  localVarQueryParameter['page'] = page;
733
764
  }
734
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
735
766
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
736
767
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
737
768
  return {
738
- url: (0, common_1.toPathString)(localVarUrlObj),
769
+ url: toPathString(localVarUrlObj),
739
770
  options: localVarRequestOptions,
740
771
  };
741
772
  }),
@@ -754,7 +785,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
754
785
  getAccountTransactionHistory: (types_1, assetSymbol_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, page_1, ...args_1) => __awaiter(this, [types_1, assetSymbol_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, page_1, ...args_1], void 0, function* (types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options = {}) {
755
786
  const localVarPath = `/api/v1/account/transactions`;
756
787
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
757
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
788
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
758
789
  let baseOptions;
759
790
  if (configuration) {
760
791
  baseOptions = configuration.baseOptions;
@@ -764,7 +795,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
764
795
  const localVarQueryParameter = {};
765
796
  // authentication bearerAuth required
766
797
  // http bearer authentication required
767
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
798
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
768
799
  if (types) {
769
800
  localVarQueryParameter['types'] = types;
770
801
  }
@@ -783,11 +814,11 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
783
814
  if (page !== undefined) {
784
815
  localVarQueryParameter['page'] = page;
785
816
  }
786
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
817
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
787
818
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
788
819
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
789
820
  return {
790
- url: (0, common_1.toPathString)(localVarUrlObj),
821
+ url: toPathString(localVarUrlObj),
791
822
  options: localVarRequestOptions,
792
823
  };
793
824
  }),
@@ -800,10 +831,10 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
800
831
  */
801
832
  getAccountValueHistory: (interval_1, ...args_1) => __awaiter(this, [interval_1, ...args_1], void 0, function* (interval, options = {}) {
802
833
  // verify required parameter 'interval' is not null or undefined
803
- (0, common_1.assertParamExists)('getAccountValueHistory', 'interval', interval);
834
+ assertParamExists('getAccountValueHistory', 'interval', interval);
804
835
  const localVarPath = `/api/v1/account/valueHistory`;
805
836
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
806
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
837
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
807
838
  let baseOptions;
808
839
  if (configuration) {
809
840
  baseOptions = configuration.baseOptions;
@@ -813,15 +844,15 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
813
844
  const localVarQueryParameter = {};
814
845
  // authentication bearerAuth required
815
846
  // http bearer authentication required
816
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
847
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
817
848
  if (interval !== undefined) {
818
849
  localVarQueryParameter['interval'] = interval;
819
850
  }
820
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
851
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
821
852
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
822
853
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
823
854
  return {
824
- url: (0, common_1.toPathString)(localVarUrlObj),
855
+ url: toPathString(localVarUrlObj),
825
856
  options: localVarRequestOptions,
826
857
  };
827
858
  }),
@@ -834,11 +865,11 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
834
865
  */
835
866
  getAccountValueHistoryByAccount: (accountAddress_1, ...args_1) => __awaiter(this, [accountAddress_1, ...args_1], void 0, function* (accountAddress, options = {}) {
836
867
  // verify required parameter 'accountAddress' is not null or undefined
837
- (0, common_1.assertParamExists)('getAccountValueHistoryByAccount', 'accountAddress', accountAddress);
868
+ assertParamExists('getAccountValueHistoryByAccount', 'accountAddress', accountAddress);
838
869
  const localVarPath = `/api/v1/accounts/{accountAddress}/valueHistory`
839
870
  .replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
840
871
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
841
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
872
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
842
873
  let baseOptions;
843
874
  if (configuration) {
844
875
  baseOptions = configuration.baseOptions;
@@ -846,11 +877,11 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
846
877
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
847
878
  const localVarHeaderParameter = {};
848
879
  const localVarQueryParameter = {};
849
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
880
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
850
881
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
851
882
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
852
883
  return {
853
- url: (0, common_1.toPathString)(localVarUrlObj),
884
+ url: toPathString(localVarUrlObj),
854
885
  options: localVarRequestOptions,
855
886
  };
856
887
  }),
@@ -863,10 +894,10 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
863
894
  */
864
895
  patchAccountGroupID: (accountGroupIdPatch_1, ...args_1) => __awaiter(this, [accountGroupIdPatch_1, ...args_1], void 0, function* (accountGroupIdPatch, options = {}) {
865
896
  // verify required parameter 'accountGroupIdPatch' is not null or undefined
866
- (0, common_1.assertParamExists)('patchAccountGroupID', 'accountGroupIdPatch', accountGroupIdPatch);
897
+ assertParamExists('patchAccountGroupID', 'accountGroupIdPatch', accountGroupIdPatch);
867
898
  const localVarPath = `/api/v1/account/groupId`;
868
899
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
869
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
870
901
  let baseOptions;
871
902
  if (configuration) {
872
903
  baseOptions = configuration.baseOptions;
@@ -876,14 +907,14 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
876
907
  const localVarQueryParameter = {};
877
908
  // authentication bearerAuth required
878
909
  // http bearer authentication required
879
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
910
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
880
911
  localVarHeaderParameter['Content-Type'] = 'application/json';
881
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
912
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
882
913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
883
914
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
884
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountGroupIdPatch, localVarRequestOptions, configuration);
915
+ localVarRequestOptions.data = serializeDataIfNeeded(accountGroupIdPatch, localVarRequestOptions, configuration);
885
916
  return {
886
- url: (0, common_1.toPathString)(localVarUrlObj),
917
+ url: toPathString(localVarUrlObj),
887
918
  options: localVarRequestOptions,
888
919
  };
889
920
  }),
@@ -896,10 +927,10 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
896
927
  */
897
928
  putAccountPreferences: (updateAccountPreferenceRequest_1, ...args_1) => __awaiter(this, [updateAccountPreferenceRequest_1, ...args_1], void 0, function* (updateAccountPreferenceRequest, options = {}) {
898
929
  // verify required parameter 'updateAccountPreferenceRequest' is not null or undefined
899
- (0, common_1.assertParamExists)('putAccountPreferences', 'updateAccountPreferenceRequest', updateAccountPreferenceRequest);
930
+ assertParamExists('putAccountPreferences', 'updateAccountPreferenceRequest', updateAccountPreferenceRequest);
900
931
  const localVarPath = `/api/v1/account/preferences`;
901
932
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
902
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
933
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
903
934
  let baseOptions;
904
935
  if (configuration) {
905
936
  baseOptions = configuration.baseOptions;
@@ -909,14 +940,14 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
909
940
  const localVarQueryParameter = {};
910
941
  // authentication bearerAuth required
911
942
  // http bearer authentication required
912
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
943
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
913
944
  localVarHeaderParameter['Content-Type'] = 'application/json';
914
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
945
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
915
946
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
916
947
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
917
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAccountPreferenceRequest, localVarRequestOptions, configuration);
948
+ localVarRequestOptions.data = serializeDataIfNeeded(updateAccountPreferenceRequest, localVarRequestOptions, configuration);
918
949
  return {
919
- url: (0, common_1.toPathString)(localVarUrlObj),
950
+ url: toPathString(localVarUrlObj),
920
951
  options: localVarRequestOptions,
921
952
  };
922
953
  }),
@@ -929,10 +960,10 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
929
960
  */
930
961
  sponsorTx: (sponsorTxRequest_1, ...args_1) => __awaiter(this, [sponsorTxRequest_1, ...args_1], void 0, function* (sponsorTxRequest, options = {}) {
931
962
  // verify required parameter 'sponsorTxRequest' is not null or undefined
932
- (0, common_1.assertParamExists)('sponsorTx', 'sponsorTxRequest', sponsorTxRequest);
963
+ assertParamExists('sponsorTx', 'sponsorTxRequest', sponsorTxRequest);
933
964
  const localVarPath = `/api/v1/account/sponsorTx`;
934
965
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
935
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
936
967
  let baseOptions;
937
968
  if (configuration) {
938
969
  baseOptions = configuration.baseOptions;
@@ -942,26 +973,25 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
942
973
  const localVarQueryParameter = {};
943
974
  // authentication bearerAuth required
944
975
  // http bearer authentication required
945
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
976
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
946
977
  localVarHeaderParameter['Content-Type'] = 'application/json';
947
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
978
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
948
979
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
949
980
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
950
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sponsorTxRequest, localVarRequestOptions, configuration);
981
+ localVarRequestOptions.data = serializeDataIfNeeded(sponsorTxRequest, localVarRequestOptions, configuration);
951
982
  return {
952
- url: (0, common_1.toPathString)(localVarUrlObj),
983
+ url: toPathString(localVarUrlObj),
953
984
  options: localVarRequestOptions,
954
985
  };
955
986
  }),
956
987
  };
957
988
  };
958
- exports.AccountDataApiAxiosParamCreator = AccountDataApiAxiosParamCreator;
959
989
  /**
960
990
  * AccountDataApi - functional programming interface
961
991
  * @export
962
992
  */
963
- const AccountDataApiFp = function (configuration) {
964
- const localVarAxiosParamCreator = (0, exports.AccountDataApiAxiosParamCreator)(configuration);
993
+ export const AccountDataApiFp = function (configuration) {
994
+ const localVarAxiosParamCreator = AccountDataApiAxiosParamCreator(configuration);
965
995
  return {
966
996
  /**
967
997
  * Retrieves the user\'s account details.
@@ -975,8 +1005,8 @@ const AccountDataApiFp = function (configuration) {
975
1005
  var _a, _b, _c;
976
1006
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountDetails(accountAddress, options);
977
1007
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
978
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
979
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1008
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
980
1010
  });
981
1011
  },
982
1012
  /**
@@ -995,8 +1025,8 @@ const AccountDataApiFp = function (configuration) {
995
1025
  var _a, _b, _c;
996
1026
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options);
997
1027
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
998
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountFundingRateHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
999
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1028
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountFundingRateHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1029
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1000
1030
  });
1001
1031
  },
1002
1032
  /**
@@ -1010,8 +1040,8 @@ const AccountDataApiFp = function (configuration) {
1010
1040
  var _a, _b, _c;
1011
1041
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountPreferences(options);
1012
1042
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1013
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountPreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1014
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1043
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountPreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1044
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1015
1045
  });
1016
1046
  },
1017
1047
  /**
@@ -1031,8 +1061,8 @@ const AccountDataApiFp = function (configuration) {
1031
1061
  var _a, _b, _c;
1032
1062
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options);
1033
1063
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1034
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountTrades']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1035
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1064
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountTrades']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1036
1066
  });
1037
1067
  },
1038
1068
  /**
@@ -1052,8 +1082,8 @@ const AccountDataApiFp = function (configuration) {
1052
1082
  var _a, _b, _c;
1053
1083
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options);
1054
1084
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1055
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountTransactionHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1056
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1085
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountTransactionHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1086
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1057
1087
  });
1058
1088
  },
1059
1089
  /**
@@ -1068,8 +1098,8 @@ const AccountDataApiFp = function (configuration) {
1068
1098
  var _a, _b, _c;
1069
1099
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountValueHistory(interval, options);
1070
1100
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1071
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.getAccountValueHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1072
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1101
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountValueHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1073
1103
  });
1074
1104
  },
1075
1105
  /**
@@ -1084,8 +1114,8 @@ const AccountDataApiFp = function (configuration) {
1084
1114
  var _a, _b, _c;
1085
1115
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountValueHistoryByAccount(accountAddress, options);
1086
1116
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1087
- 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;
1088
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1117
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.getAccountValueHistoryByAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1118
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1089
1119
  });
1090
1120
  },
1091
1121
  /**
@@ -1100,8 +1130,8 @@ const AccountDataApiFp = function (configuration) {
1100
1130
  var _a, _b, _c;
1101
1131
  const localVarAxiosArgs = yield localVarAxiosParamCreator.patchAccountGroupID(accountGroupIdPatch, options);
1102
1132
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1103
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.patchAccountGroupID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1104
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1133
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.patchAccountGroupID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1105
1135
  });
1106
1136
  },
1107
1137
  /**
@@ -1116,8 +1146,8 @@ const AccountDataApiFp = function (configuration) {
1116
1146
  var _a, _b, _c;
1117
1147
  const localVarAxiosArgs = yield localVarAxiosParamCreator.putAccountPreferences(updateAccountPreferenceRequest, options);
1118
1148
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1119
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.putAccountPreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1120
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1149
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.putAccountPreferences']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1121
1151
  });
1122
1152
  },
1123
1153
  /**
@@ -1132,19 +1162,18 @@ const AccountDataApiFp = function (configuration) {
1132
1162
  var _a, _b, _c;
1133
1163
  const localVarAxiosArgs = yield localVarAxiosParamCreator.sponsorTx(sponsorTxRequest, options);
1134
1164
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1135
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountDataApi.sponsorTx']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1136
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1165
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountDataApi.sponsorTx']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1166
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1137
1167
  });
1138
1168
  },
1139
1169
  };
1140
1170
  };
1141
- exports.AccountDataApiFp = AccountDataApiFp;
1142
1171
  /**
1143
1172
  * AccountDataApi - factory interface
1144
1173
  * @export
1145
1174
  */
1146
- const AccountDataApiFactory = function (configuration, basePath, axios) {
1147
- const localVarFp = (0, exports.AccountDataApiFp)(configuration);
1175
+ export const AccountDataApiFactory = function (configuration, basePath, axios) {
1176
+ const localVarFp = AccountDataApiFp(configuration);
1148
1177
  return {
1149
1178
  /**
1150
1179
  * Retrieves the user\'s account details.
@@ -1261,14 +1290,13 @@ const AccountDataApiFactory = function (configuration, basePath, axios) {
1261
1290
  },
1262
1291
  };
1263
1292
  };
1264
- exports.AccountDataApiFactory = AccountDataApiFactory;
1265
1293
  /**
1266
1294
  * AccountDataApi - object-oriented interface
1267
1295
  * @export
1268
1296
  * @class AccountDataApi
1269
1297
  * @extends {BaseAPI}
1270
1298
  */
1271
- class AccountDataApi extends base_1.BaseAPI {
1299
+ export class AccountDataApi extends BaseAPI {
1272
1300
  /**
1273
1301
  * Retrieves the user\'s account details.
1274
1302
  * @summary /account
@@ -1278,7 +1306,7 @@ class AccountDataApi extends base_1.BaseAPI {
1278
1306
  * @memberof AccountDataApi
1279
1307
  */
1280
1308
  getAccountDetails(accountAddress, options) {
1281
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountDetails(accountAddress, options).then((request) => request(this.axios, this.basePath));
1309
+ return AccountDataApiFp(this.configuration).getAccountDetails(accountAddress, options).then((request) => request(this.axios, this.basePath));
1282
1310
  }
1283
1311
  /**
1284
1312
  * Retrieves the funding rate history for a specific account.
@@ -1293,7 +1321,7 @@ class AccountDataApi extends base_1.BaseAPI {
1293
1321
  * @memberof AccountDataApi
1294
1322
  */
1295
1323
  getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options) {
1296
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options).then((request) => request(this.axios, this.basePath));
1324
+ return AccountDataApiFp(this.configuration).getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options).then((request) => request(this.axios, this.basePath));
1297
1325
  }
1298
1326
  /**
1299
1327
  * Retrieves the user\'s account preferences.
@@ -1303,7 +1331,7 @@ class AccountDataApi extends base_1.BaseAPI {
1303
1331
  * @memberof AccountDataApi
1304
1332
  */
1305
1333
  getAccountPreferences(options) {
1306
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountPreferences(options).then((request) => request(this.axios, this.basePath));
1334
+ return AccountDataApiFp(this.configuration).getAccountPreferences(options).then((request) => request(this.axios, this.basePath));
1307
1335
  }
1308
1336
  /**
1309
1337
  * Retrieves the user\'s trade history.
@@ -1319,7 +1347,7 @@ class AccountDataApi extends base_1.BaseAPI {
1319
1347
  * @memberof AccountDataApi
1320
1348
  */
1321
1349
  getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options) {
1322
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options).then((request) => request(this.axios, this.basePath));
1350
+ return AccountDataApiFp(this.configuration).getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options).then((request) => request(this.axios, this.basePath));
1323
1351
  }
1324
1352
  /**
1325
1353
  * Retrieves the user\'s transaction history (any change in balance).
@@ -1335,7 +1363,7 @@ class AccountDataApi extends base_1.BaseAPI {
1335
1363
  * @memberof AccountDataApi
1336
1364
  */
1337
1365
  getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
1338
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
1366
+ return AccountDataApiFp(this.configuration).getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
1339
1367
  }
1340
1368
  /**
1341
1369
  * Retrieves the account value history for a specific account over a given time interval.
@@ -1346,7 +1374,7 @@ class AccountDataApi extends base_1.BaseAPI {
1346
1374
  * @memberof AccountDataApi
1347
1375
  */
1348
1376
  getAccountValueHistory(interval, options) {
1349
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountValueHistory(interval, options).then((request) => request(this.axios, this.basePath));
1377
+ return AccountDataApiFp(this.configuration).getAccountValueHistory(interval, options).then((request) => request(this.axios, this.basePath));
1350
1378
  }
1351
1379
  /**
1352
1380
  * Retrieves the account value history for 24h.
@@ -1357,7 +1385,7 @@ class AccountDataApi extends base_1.BaseAPI {
1357
1385
  * @memberof AccountDataApi
1358
1386
  */
1359
1387
  getAccountValueHistoryByAccount(accountAddress, options) {
1360
- return (0, exports.AccountDataApiFp)(this.configuration).getAccountValueHistoryByAccount(accountAddress, options).then((request) => request(this.axios, this.basePath));
1388
+ return AccountDataApiFp(this.configuration).getAccountValueHistoryByAccount(accountAddress, options).then((request) => request(this.axios, this.basePath));
1361
1389
  }
1362
1390
  /**
1363
1391
  * 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.
@@ -1368,7 +1396,7 @@ class AccountDataApi extends base_1.BaseAPI {
1368
1396
  * @memberof AccountDataApi
1369
1397
  */
1370
1398
  patchAccountGroupID(accountGroupIdPatch, options) {
1371
- return (0, exports.AccountDataApiFp)(this.configuration).patchAccountGroupID(accountGroupIdPatch, options).then((request) => request(this.axios, this.basePath));
1399
+ return AccountDataApiFp(this.configuration).patchAccountGroupID(accountGroupIdPatch, options).then((request) => request(this.axios, this.basePath));
1372
1400
  }
1373
1401
  /**
1374
1402
  * Update user\'s account preferences. This will overwrite the preferences, so always send the full object.
@@ -1379,7 +1407,7 @@ class AccountDataApi extends base_1.BaseAPI {
1379
1407
  * @memberof AccountDataApi
1380
1408
  */
1381
1409
  putAccountPreferences(updateAccountPreferenceRequest, options) {
1382
- return (0, exports.AccountDataApiFp)(this.configuration).putAccountPreferences(updateAccountPreferenceRequest, options).then((request) => request(this.axios, this.basePath));
1410
+ return AccountDataApiFp(this.configuration).putAccountPreferences(updateAccountPreferenceRequest, options).then((request) => request(this.axios, this.basePath));
1383
1411
  }
1384
1412
  /**
1385
1413
  * Sponsors a transaction if it\'s eligible for sponsorship based on allowlisted methods and kinds.
@@ -1390,15 +1418,14 @@ class AccountDataApi extends base_1.BaseAPI {
1390
1418
  * @memberof AccountDataApi
1391
1419
  */
1392
1420
  sponsorTx(sponsorTxRequest, options) {
1393
- return (0, exports.AccountDataApiFp)(this.configuration).sponsorTx(sponsorTxRequest, options).then((request) => request(this.axios, this.basePath));
1421
+ return AccountDataApiFp(this.configuration).sponsorTx(sponsorTxRequest, options).then((request) => request(this.axios, this.basePath));
1394
1422
  }
1395
1423
  }
1396
- exports.AccountDataApi = AccountDataApi;
1397
1424
  /**
1398
1425
  * AuthApi - axios parameter creator
1399
1426
  * @export
1400
1427
  */
1401
- const AuthApiAxiosParamCreator = function (configuration) {
1428
+ export const AuthApiAxiosParamCreator = function (configuration) {
1402
1429
  return {
1403
1430
  /**
1404
1431
  *
@@ -1408,7 +1435,7 @@ const AuthApiAxiosParamCreator = function (configuration) {
1408
1435
  authJwksGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1409
1436
  const localVarPath = `/auth/jwks`;
1410
1437
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1411
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1412
1439
  let baseOptions;
1413
1440
  if (configuration) {
1414
1441
  baseOptions = configuration.baseOptions;
@@ -1416,11 +1443,11 @@ const AuthApiAxiosParamCreator = function (configuration) {
1416
1443
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1417
1444
  const localVarHeaderParameter = {};
1418
1445
  const localVarQueryParameter = {};
1419
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1420
1447
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1421
1448
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1422
1449
  return {
1423
- url: (0, common_1.toPathString)(localVarUrlObj),
1450
+ url: toPathString(localVarUrlObj),
1424
1451
  options: localVarRequestOptions,
1425
1452
  };
1426
1453
  }),
@@ -1430,17 +1457,18 @@ const AuthApiAxiosParamCreator = function (configuration) {
1430
1457
  * @param {LoginRequest} loginRequest
1431
1458
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1432
1459
  * @param {boolean} [readOnly]
1460
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1433
1461
  * @param {*} [options] Override http request option.
1434
1462
  * @throws {RequiredError}
1435
1463
  */
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 = {}) {
1464
+ 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
1465
  // verify required parameter 'payloadSignature' is not null or undefined
1438
- (0, common_1.assertParamExists)('authTokenPost', 'payloadSignature', payloadSignature);
1466
+ assertParamExists('authTokenPost', 'payloadSignature', payloadSignature);
1439
1467
  // verify required parameter 'loginRequest' is not null or undefined
1440
- (0, common_1.assertParamExists)('authTokenPost', 'loginRequest', loginRequest);
1468
+ assertParamExists('authTokenPost', 'loginRequest', loginRequest);
1441
1469
  const localVarPath = `/auth/token`;
1442
1470
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1443
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1444
1472
  let baseOptions;
1445
1473
  if (configuration) {
1446
1474
  baseOptions = configuration.baseOptions;
@@ -1454,16 +1482,19 @@ const AuthApiAxiosParamCreator = function (configuration) {
1454
1482
  if (readOnly !== undefined) {
1455
1483
  localVarQueryParameter['readOnly'] = readOnly;
1456
1484
  }
1485
+ if (client !== undefined) {
1486
+ localVarQueryParameter['client'] = client;
1487
+ }
1457
1488
  localVarHeaderParameter['Content-Type'] = 'application/json';
1458
1489
  if (payloadSignature != null) {
1459
1490
  localVarHeaderParameter['payloadSignature'] = String(payloadSignature);
1460
1491
  }
1461
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1462
1493
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1463
1494
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1464
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequest, localVarRequestOptions, configuration);
1495
+ localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration);
1465
1496
  return {
1466
- url: (0, common_1.toPathString)(localVarUrlObj),
1497
+ url: toPathString(localVarUrlObj),
1467
1498
  options: localVarRequestOptions,
1468
1499
  };
1469
1500
  }),
@@ -1475,10 +1506,10 @@ const AuthApiAxiosParamCreator = function (configuration) {
1475
1506
  */
1476
1507
  authTokenRefreshPut: (refreshTokenRequest_1, ...args_1) => __awaiter(this, [refreshTokenRequest_1, ...args_1], void 0, function* (refreshTokenRequest, options = {}) {
1477
1508
  // verify required parameter 'refreshTokenRequest' is not null or undefined
1478
- (0, common_1.assertParamExists)('authTokenRefreshPut', 'refreshTokenRequest', refreshTokenRequest);
1509
+ assertParamExists('authTokenRefreshPut', 'refreshTokenRequest', refreshTokenRequest);
1479
1510
  const localVarPath = `/auth/token/refresh`;
1480
1511
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1481
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1482
1513
  let baseOptions;
1483
1514
  if (configuration) {
1484
1515
  baseOptions = configuration.baseOptions;
@@ -1487,12 +1518,12 @@ const AuthApiAxiosParamCreator = function (configuration) {
1487
1518
  const localVarHeaderParameter = {};
1488
1519
  const localVarQueryParameter = {};
1489
1520
  localVarHeaderParameter['Content-Type'] = 'application/json';
1490
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1521
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1491
1522
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1492
1523
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1493
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refreshTokenRequest, localVarRequestOptions, configuration);
1524
+ localVarRequestOptions.data = serializeDataIfNeeded(refreshTokenRequest, localVarRequestOptions, configuration);
1494
1525
  return {
1495
- url: (0, common_1.toPathString)(localVarUrlObj),
1526
+ url: toPathString(localVarUrlObj),
1496
1527
  options: localVarRequestOptions,
1497
1528
  };
1498
1529
  }),
@@ -1502,17 +1533,18 @@ const AuthApiAxiosParamCreator = function (configuration) {
1502
1533
  * @param {LoginRequest} loginRequest
1503
1534
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1504
1535
  * @param {boolean} [readOnly]
1536
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1505
1537
  * @param {*} [options] Override http request option.
1506
1538
  * @throws {RequiredError}
1507
1539
  */
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 = {}) {
1540
+ 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
1541
  // verify required parameter 'payloadSignature' is not null or undefined
1510
- (0, common_1.assertParamExists)('authV2TokenPost', 'payloadSignature', payloadSignature);
1542
+ assertParamExists('authV2TokenPost', 'payloadSignature', payloadSignature);
1511
1543
  // verify required parameter 'loginRequest' is not null or undefined
1512
- (0, common_1.assertParamExists)('authV2TokenPost', 'loginRequest', loginRequest);
1544
+ assertParamExists('authV2TokenPost', 'loginRequest', loginRequest);
1513
1545
  const localVarPath = `/auth/v2/token`;
1514
1546
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1547
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1516
1548
  let baseOptions;
1517
1549
  if (configuration) {
1518
1550
  baseOptions = configuration.baseOptions;
@@ -1526,16 +1558,44 @@ const AuthApiAxiosParamCreator = function (configuration) {
1526
1558
  if (readOnly !== undefined) {
1527
1559
  localVarQueryParameter['readOnly'] = readOnly;
1528
1560
  }
1561
+ if (client !== undefined) {
1562
+ localVarQueryParameter['client'] = client;
1563
+ }
1529
1564
  localVarHeaderParameter['Content-Type'] = 'application/json';
1530
1565
  if (payloadSignature != null) {
1531
1566
  localVarHeaderParameter['payloadSignature'] = String(payloadSignature);
1532
1567
  }
1533
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1568
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1569
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1570
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1571
+ localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration);
1572
+ return {
1573
+ url: toPathString(localVarUrlObj),
1574
+ options: localVarRequestOptions,
1575
+ };
1576
+ }),
1577
+ /**
1578
+ * OpenID Connect Discovery endpoint
1579
+ * @summary /.well-known/openid-configuration
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ getWellKnownOpenidConfiguration: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1584
+ const localVarPath = `/.well-known/openid-configuration`;
1585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1587
+ let baseOptions;
1588
+ if (configuration) {
1589
+ baseOptions = configuration.baseOptions;
1590
+ }
1591
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1592
+ const localVarHeaderParameter = {};
1593
+ const localVarQueryParameter = {};
1594
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1534
1595
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1535
1596
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1536
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequest, localVarRequestOptions, configuration);
1537
1597
  return {
1538
- url: (0, common_1.toPathString)(localVarUrlObj),
1598
+ url: toPathString(localVarUrlObj),
1539
1599
  options: localVarRequestOptions,
1540
1600
  };
1541
1601
  }),
@@ -1548,10 +1608,10 @@ const AuthApiAxiosParamCreator = function (configuration) {
1548
1608
  */
1549
1609
  getZkLoginUserDetails: (zkloginJwt_1, ...args_1) => __awaiter(this, [zkloginJwt_1, ...args_1], void 0, function* (zkloginJwt, options = {}) {
1550
1610
  // verify required parameter 'zkloginJwt' is not null or undefined
1551
- (0, common_1.assertParamExists)('getZkLoginUserDetails', 'zkloginJwt', zkloginJwt);
1611
+ assertParamExists('getZkLoginUserDetails', 'zkloginJwt', zkloginJwt);
1552
1612
  const localVarPath = `/auth/zklogin`;
1553
1613
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1554
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1614
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1555
1615
  let baseOptions;
1556
1616
  if (configuration) {
1557
1617
  baseOptions = configuration.baseOptions;
@@ -1562,11 +1622,41 @@ const AuthApiAxiosParamCreator = function (configuration) {
1562
1622
  if (zkloginJwt != null) {
1563
1623
  localVarHeaderParameter['zklogin-jwt'] = String(zkloginJwt);
1564
1624
  }
1565
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1566
1626
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1567
1627
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1568
1628
  return {
1569
- url: (0, common_1.toPathString)(localVarUrlObj),
1629
+ url: toPathString(localVarUrlObj),
1630
+ options: localVarRequestOptions,
1631
+ };
1632
+ }),
1633
+ /**
1634
+ * OAuth2 client_credentials grant for service accounts
1635
+ * @summary /auth/client-credentials
1636
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
1637
+ * @param {*} [options] Override http request option.
1638
+ * @throws {RequiredError}
1639
+ */
1640
+ postAuthClientCredentials: (clientCredentialsRequest_1, ...args_1) => __awaiter(this, [clientCredentialsRequest_1, ...args_1], void 0, function* (clientCredentialsRequest, options = {}) {
1641
+ // verify required parameter 'clientCredentialsRequest' is not null or undefined
1642
+ assertParamExists('postAuthClientCredentials', 'clientCredentialsRequest', clientCredentialsRequest);
1643
+ const localVarPath = `/auth/client-credentials`;
1644
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1645
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1646
+ let baseOptions;
1647
+ if (configuration) {
1648
+ baseOptions = configuration.baseOptions;
1649
+ }
1650
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1651
+ const localVarHeaderParameter = {};
1652
+ const localVarQueryParameter = {};
1653
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1654
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1655
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1656
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1657
+ localVarRequestOptions.data = serializeDataIfNeeded(clientCredentialsRequest, localVarRequestOptions, configuration);
1658
+ return {
1659
+ url: toPathString(localVarUrlObj),
1570
1660
  options: localVarRequestOptions,
1571
1661
  };
1572
1662
  }),
@@ -1580,12 +1670,12 @@ const AuthApiAxiosParamCreator = function (configuration) {
1580
1670
  */
1581
1671
  postZkLoginZkp: (zkloginJwt_1, zKLoginZKPRequest_1, ...args_1) => __awaiter(this, [zkloginJwt_1, zKLoginZKPRequest_1, ...args_1], void 0, function* (zkloginJwt, zKLoginZKPRequest, options = {}) {
1582
1672
  // verify required parameter 'zkloginJwt' is not null or undefined
1583
- (0, common_1.assertParamExists)('postZkLoginZkp', 'zkloginJwt', zkloginJwt);
1673
+ assertParamExists('postZkLoginZkp', 'zkloginJwt', zkloginJwt);
1584
1674
  // verify required parameter 'zKLoginZKPRequest' is not null or undefined
1585
- (0, common_1.assertParamExists)('postZkLoginZkp', 'zKLoginZKPRequest', zKLoginZKPRequest);
1675
+ assertParamExists('postZkLoginZkp', 'zKLoginZKPRequest', zKLoginZKPRequest);
1586
1676
  const localVarPath = `/auth/zklogin/zkp`;
1587
1677
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1588
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1678
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1589
1679
  let baseOptions;
1590
1680
  if (configuration) {
1591
1681
  baseOptions = configuration.baseOptions;
@@ -1597,24 +1687,23 @@ const AuthApiAxiosParamCreator = function (configuration) {
1597
1687
  if (zkloginJwt != null) {
1598
1688
  localVarHeaderParameter['zklogin-jwt'] = String(zkloginJwt);
1599
1689
  }
1600
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1601
1691
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1602
1692
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1603
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(zKLoginZKPRequest, localVarRequestOptions, configuration);
1693
+ localVarRequestOptions.data = serializeDataIfNeeded(zKLoginZKPRequest, localVarRequestOptions, configuration);
1604
1694
  return {
1605
- url: (0, common_1.toPathString)(localVarUrlObj),
1695
+ url: toPathString(localVarUrlObj),
1606
1696
  options: localVarRequestOptions,
1607
1697
  };
1608
1698
  }),
1609
1699
  };
1610
1700
  };
1611
- exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
1612
1701
  /**
1613
1702
  * AuthApi - functional programming interface
1614
1703
  * @export
1615
1704
  */
1616
- const AuthApiFp = function (configuration) {
1617
- const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
1705
+ export const AuthApiFp = function (configuration) {
1706
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
1618
1707
  return {
1619
1708
  /**
1620
1709
  *
@@ -1626,8 +1715,8 @@ const AuthApiFp = function (configuration) {
1626
1715
  var _a, _b, _c;
1627
1716
  const localVarAxiosArgs = yield localVarAxiosParamCreator.authJwksGet(options);
1628
1717
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1629
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authJwksGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1630
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1718
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authJwksGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1719
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1631
1720
  });
1632
1721
  },
1633
1722
  /**
@@ -1636,16 +1725,17 @@ const AuthApiFp = function (configuration) {
1636
1725
  * @param {LoginRequest} loginRequest
1637
1726
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1638
1727
  * @param {boolean} [readOnly]
1728
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1639
1729
  * @param {*} [options] Override http request option.
1640
1730
  * @throws {RequiredError}
1641
1731
  */
1642
- authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1732
+ authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1643
1733
  return __awaiter(this, void 0, void 0, function* () {
1644
1734
  var _a, _b, _c;
1645
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options);
1735
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1646
1736
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1647
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authTokenPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1648
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1737
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authTokenPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1738
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1649
1739
  });
1650
1740
  },
1651
1741
  /**
@@ -1659,8 +1749,8 @@ const AuthApiFp = function (configuration) {
1659
1749
  var _a, _b, _c;
1660
1750
  const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenRefreshPut(refreshTokenRequest, options);
1661
1751
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1662
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authTokenRefreshPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1663
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1752
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authTokenRefreshPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1753
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1664
1754
  });
1665
1755
  },
1666
1756
  /**
@@ -1669,16 +1759,32 @@ const AuthApiFp = function (configuration) {
1669
1759
  * @param {LoginRequest} loginRequest
1670
1760
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1671
1761
  * @param {boolean} [readOnly]
1762
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1763
+ * @param {*} [options] Override http request option.
1764
+ * @throws {RequiredError}
1765
+ */
1766
+ authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1767
+ return __awaiter(this, void 0, void 0, function* () {
1768
+ var _a, _b, _c;
1769
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1770
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1771
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authV2TokenPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1772
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1773
+ });
1774
+ },
1775
+ /**
1776
+ * OpenID Connect Discovery endpoint
1777
+ * @summary /.well-known/openid-configuration
1672
1778
  * @param {*} [options] Override http request option.
1673
1779
  * @throws {RequiredError}
1674
1780
  */
1675
- authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1781
+ getWellKnownOpenidConfiguration(options) {
1676
1782
  return __awaiter(this, void 0, void 0, function* () {
1677
1783
  var _a, _b, _c;
1678
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options);
1784
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWellKnownOpenidConfiguration(options);
1679
1785
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1680
- 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
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1786
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.getWellKnownOpenidConfiguration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1787
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1682
1788
  });
1683
1789
  },
1684
1790
  /**
@@ -1693,8 +1799,24 @@ const AuthApiFp = function (configuration) {
1693
1799
  var _a, _b, _c;
1694
1800
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getZkLoginUserDetails(zkloginJwt, options);
1695
1801
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1696
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.getZkLoginUserDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1697
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1802
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.getZkLoginUserDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1804
+ });
1805
+ },
1806
+ /**
1807
+ * OAuth2 client_credentials grant for service accounts
1808
+ * @summary /auth/client-credentials
1809
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
1810
+ * @param {*} [options] Override http request option.
1811
+ * @throws {RequiredError}
1812
+ */
1813
+ postAuthClientCredentials(clientCredentialsRequest, options) {
1814
+ return __awaiter(this, void 0, void 0, function* () {
1815
+ var _a, _b, _c;
1816
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postAuthClientCredentials(clientCredentialsRequest, options);
1817
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1818
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.postAuthClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1819
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1698
1820
  });
1699
1821
  },
1700
1822
  /**
@@ -1710,19 +1832,18 @@ const AuthApiFp = function (configuration) {
1710
1832
  var _a, _b, _c;
1711
1833
  const localVarAxiosArgs = yield localVarAxiosParamCreator.postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options);
1712
1834
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1713
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.postZkLoginZkp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1714
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1835
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.postZkLoginZkp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1836
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1715
1837
  });
1716
1838
  },
1717
1839
  };
1718
1840
  };
1719
- exports.AuthApiFp = AuthApiFp;
1720
1841
  /**
1721
1842
  * AuthApi - factory interface
1722
1843
  * @export
1723
1844
  */
1724
- const AuthApiFactory = function (configuration, basePath, axios) {
1725
- const localVarFp = (0, exports.AuthApiFp)(configuration);
1845
+ export const AuthApiFactory = function (configuration, basePath, axios) {
1846
+ const localVarFp = AuthApiFp(configuration);
1726
1847
  return {
1727
1848
  /**
1728
1849
  *
@@ -1738,11 +1859,12 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1738
1859
  * @param {LoginRequest} loginRequest
1739
1860
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1740
1861
  * @param {boolean} [readOnly]
1862
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1741
1863
  * @param {*} [options] Override http request option.
1742
1864
  * @throws {RequiredError}
1743
1865
  */
1744
- authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1745
- return localVarFp.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(axios, basePath));
1866
+ authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1867
+ return localVarFp.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(axios, basePath));
1746
1868
  },
1747
1869
  /**
1748
1870
  * Retrieves a new auth token for an account. Expiry is set to 5 min.
@@ -1759,11 +1881,21 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1759
1881
  * @param {LoginRequest} loginRequest
1760
1882
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1761
1883
  * @param {boolean} [readOnly]
1884
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1762
1885
  * @param {*} [options] Override http request option.
1763
1886
  * @throws {RequiredError}
1764
1887
  */
1765
- authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options) {
1766
- return localVarFp.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, options).then((request) => request(axios, basePath));
1888
+ authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1889
+ return localVarFp.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(axios, basePath));
1890
+ },
1891
+ /**
1892
+ * OpenID Connect Discovery endpoint
1893
+ * @summary /.well-known/openid-configuration
1894
+ * @param {*} [options] Override http request option.
1895
+ * @throws {RequiredError}
1896
+ */
1897
+ getWellKnownOpenidConfiguration(options) {
1898
+ return localVarFp.getWellKnownOpenidConfiguration(options).then((request) => request(axios, basePath));
1767
1899
  },
1768
1900
  /**
1769
1901
  * ZK Login User Details
@@ -1775,6 +1907,16 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1775
1907
  getZkLoginUserDetails(zkloginJwt, options) {
1776
1908
  return localVarFp.getZkLoginUserDetails(zkloginJwt, options).then((request) => request(axios, basePath));
1777
1909
  },
1910
+ /**
1911
+ * OAuth2 client_credentials grant for service accounts
1912
+ * @summary /auth/client-credentials
1913
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ postAuthClientCredentials(clientCredentialsRequest, options) {
1918
+ return localVarFp.postAuthClientCredentials(clientCredentialsRequest, options).then((request) => request(axios, basePath));
1919
+ },
1778
1920
  /**
1779
1921
  *
1780
1922
  * @summary /auth/zklogin/zkp
@@ -1788,14 +1930,13 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1788
1930
  },
1789
1931
  };
1790
1932
  };
1791
- exports.AuthApiFactory = AuthApiFactory;
1792
1933
  /**
1793
1934
  * AuthApi - object-oriented interface
1794
1935
  * @export
1795
1936
  * @class AuthApi
1796
1937
  * @extends {BaseAPI}
1797
1938
  */
1798
- class AuthApi extends base_1.BaseAPI {
1939
+ export class AuthApi extends BaseAPI {
1799
1940
  /**
1800
1941
  *
1801
1942
  * @param {*} [options] Override http request option.
@@ -1803,7 +1944,7 @@ class AuthApi extends base_1.BaseAPI {
1803
1944
  * @memberof AuthApi
1804
1945
  */
1805
1946
  authJwksGet(options) {
1806
- return (0, exports.AuthApiFp)(this.configuration).authJwksGet(options).then((request) => request(this.axios, this.basePath));
1947
+ return AuthApiFp(this.configuration).authJwksGet(options).then((request) => request(this.axios, this.basePath));
1807
1948
  }
1808
1949
  /**
1809
1950
  * login with token
@@ -1811,12 +1952,13 @@ class AuthApi extends base_1.BaseAPI {
1811
1952
  * @param {LoginRequest} loginRequest
1812
1953
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1813
1954
  * @param {boolean} [readOnly]
1955
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1814
1956
  * @param {*} [options] Override http request option.
1815
1957
  * @throws {RequiredError}
1816
1958
  * @memberof AuthApi
1817
1959
  */
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));
1960
+ authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1961
+ return AuthApiFp(this.configuration).authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(this.axios, this.basePath));
1820
1962
  }
1821
1963
  /**
1822
1964
  * Retrieves a new auth token for an account. Expiry is set to 5 min.
@@ -1826,7 +1968,7 @@ class AuthApi extends base_1.BaseAPI {
1826
1968
  * @memberof AuthApi
1827
1969
  */
1828
1970
  authTokenRefreshPut(refreshTokenRequest, options) {
1829
- return (0, exports.AuthApiFp)(this.configuration).authTokenRefreshPut(refreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
1971
+ return AuthApiFp(this.configuration).authTokenRefreshPut(refreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
1830
1972
  }
1831
1973
  /**
1832
1974
  * login compatible with BCS payload with intent bytes
@@ -1834,12 +1976,23 @@ class AuthApi extends base_1.BaseAPI {
1834
1976
  * @param {LoginRequest} loginRequest
1835
1977
  * @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
1836
1978
  * @param {boolean} [readOnly]
1979
+ * @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
1837
1980
  * @param {*} [options] Override http request option.
1838
1981
  * @throws {RequiredError}
1839
1982
  * @memberof AuthApi
1840
1983
  */
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));
1984
+ authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1985
+ return AuthApiFp(this.configuration).authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options).then((request) => request(this.axios, this.basePath));
1986
+ }
1987
+ /**
1988
+ * OpenID Connect Discovery endpoint
1989
+ * @summary /.well-known/openid-configuration
1990
+ * @param {*} [options] Override http request option.
1991
+ * @throws {RequiredError}
1992
+ * @memberof AuthApi
1993
+ */
1994
+ getWellKnownOpenidConfiguration(options) {
1995
+ return AuthApiFp(this.configuration).getWellKnownOpenidConfiguration(options).then((request) => request(this.axios, this.basePath));
1843
1996
  }
1844
1997
  /**
1845
1998
  * ZK Login User Details
@@ -1850,7 +2003,18 @@ class AuthApi extends base_1.BaseAPI {
1850
2003
  * @memberof AuthApi
1851
2004
  */
1852
2005
  getZkLoginUserDetails(zkloginJwt, options) {
1853
- return (0, exports.AuthApiFp)(this.configuration).getZkLoginUserDetails(zkloginJwt, options).then((request) => request(this.axios, this.basePath));
2006
+ return AuthApiFp(this.configuration).getZkLoginUserDetails(zkloginJwt, options).then((request) => request(this.axios, this.basePath));
2007
+ }
2008
+ /**
2009
+ * OAuth2 client_credentials grant for service accounts
2010
+ * @summary /auth/client-credentials
2011
+ * @param {ClientCredentialsRequest} clientCredentialsRequest
2012
+ * @param {*} [options] Override http request option.
2013
+ * @throws {RequiredError}
2014
+ * @memberof AuthApi
2015
+ */
2016
+ postAuthClientCredentials(clientCredentialsRequest, options) {
2017
+ return AuthApiFp(this.configuration).postAuthClientCredentials(clientCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
1854
2018
  }
1855
2019
  /**
1856
2020
  *
@@ -1862,15 +2026,14 @@ class AuthApi extends base_1.BaseAPI {
1862
2026
  * @memberof AuthApi
1863
2027
  */
1864
2028
  postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options) {
1865
- return (0, exports.AuthApiFp)(this.configuration).postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options).then((request) => request(this.axios, this.basePath));
2029
+ return AuthApiFp(this.configuration).postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options).then((request) => request(this.axios, this.basePath));
1866
2030
  }
1867
2031
  }
1868
- exports.AuthApi = AuthApi;
1869
2032
  /**
1870
2033
  * ExchangeApi - axios parameter creator
1871
2034
  * @export
1872
2035
  */
1873
- const ExchangeApiAxiosParamCreator = function (configuration) {
2036
+ export const ExchangeApiAxiosParamCreator = function (configuration) {
1874
2037
  return {
1875
2038
  /**
1876
2039
  * Retrieves all market ticker information.
@@ -1881,7 +2044,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1881
2044
  getAllMarketTicker: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1882
2045
  const localVarPath = `/v1/exchange/tickers`;
1883
2046
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1884
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2047
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1885
2048
  let baseOptions;
1886
2049
  if (configuration) {
1887
2050
  baseOptions = configuration.baseOptions;
@@ -1889,11 +2052,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1889
2052
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1890
2053
  const localVarHeaderParameter = {};
1891
2054
  const localVarQueryParameter = {};
1892
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2055
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1893
2056
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1894
2057
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1895
2058
  return {
1896
- url: (0, common_1.toPathString)(localVarUrlObj),
2059
+ url: toPathString(localVarUrlObj),
1897
2060
  options: localVarRequestOptions,
1898
2061
  };
1899
2062
  }),
@@ -1912,14 +2075,14 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1912
2075
  */
1913
2076
  getCandlestickData: (symbol_1, interval_1, type_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, page_1, ...args_1) => __awaiter(this, [symbol_1, interval_1, type_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, page_1, ...args_1], void 0, function* (symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options = {}) {
1914
2077
  // verify required parameter 'symbol' is not null or undefined
1915
- (0, common_1.assertParamExists)('getCandlestickData', 'symbol', symbol);
2078
+ assertParamExists('getCandlestickData', 'symbol', symbol);
1916
2079
  // verify required parameter 'interval' is not null or undefined
1917
- (0, common_1.assertParamExists)('getCandlestickData', 'interval', interval);
2080
+ assertParamExists('getCandlestickData', 'interval', interval);
1918
2081
  // verify required parameter 'type' is not null or undefined
1919
- (0, common_1.assertParamExists)('getCandlestickData', 'type', type);
2082
+ assertParamExists('getCandlestickData', 'type', type);
1920
2083
  const localVarPath = `/v1/exchange/candlesticks`;
1921
2084
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1922
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1923
2086
  let baseOptions;
1924
2087
  if (configuration) {
1925
2088
  baseOptions = configuration.baseOptions;
@@ -1948,11 +2111,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1948
2111
  if (page !== undefined) {
1949
2112
  localVarQueryParameter['page'] = page;
1950
2113
  }
1951
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2114
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1952
2115
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1953
2116
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1954
2117
  return {
1955
- url: (0, common_1.toPathString)(localVarUrlObj),
2118
+ url: toPathString(localVarUrlObj),
1956
2119
  options: localVarRequestOptions,
1957
2120
  };
1958
2121
  }),
@@ -1965,7 +2128,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1965
2128
  getCountry: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1966
2129
  const localVarPath = `/v1/exchange/country`;
1967
2130
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1968
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1969
2132
  let baseOptions;
1970
2133
  if (configuration) {
1971
2134
  baseOptions = configuration.baseOptions;
@@ -1973,11 +2136,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1973
2136
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1974
2137
  const localVarHeaderParameter = {};
1975
2138
  const localVarQueryParameter = {};
1976
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1977
2140
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1978
2141
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1979
2142
  return {
1980
- url: (0, common_1.toPathString)(localVarUrlObj),
2143
+ url: toPathString(localVarUrlObj),
1981
2144
  options: localVarRequestOptions,
1982
2145
  };
1983
2146
  }),
@@ -1990,7 +2153,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1990
2153
  getExchangeInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1991
2154
  const localVarPath = `/v1/exchange/info`;
1992
2155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1993
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1994
2157
  let baseOptions;
1995
2158
  if (configuration) {
1996
2159
  baseOptions = configuration.baseOptions;
@@ -1998,11 +2161,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
1998
2161
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1999
2162
  const localVarHeaderParameter = {};
2000
2163
  const localVarQueryParameter = {};
2001
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2002
2165
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2003
2166
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2004
2167
  return {
2005
- url: (0, common_1.toPathString)(localVarUrlObj),
2168
+ url: toPathString(localVarUrlObj),
2006
2169
  options: localVarRequestOptions,
2007
2170
  };
2008
2171
  }),
@@ -2020,7 +2183,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2020
2183
  getExchangeStats: (interval_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, page_1, ...args_1) => __awaiter(this, [interval_1, startTimeAtMillis_1, endTimeAtMillis_1, limit_1, page_1, ...args_1], void 0, function* (interval, startTimeAtMillis, endTimeAtMillis, limit, page, options = {}) {
2021
2184
  const localVarPath = `/v1/exchange/stats`;
2022
2185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2023
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2024
2187
  let baseOptions;
2025
2188
  if (configuration) {
2026
2189
  baseOptions = configuration.baseOptions;
@@ -2043,11 +2206,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2043
2206
  if (page !== undefined) {
2044
2207
  localVarQueryParameter['page'] = page;
2045
2208
  }
2046
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2209
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2047
2210
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2048
2211
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2049
2212
  return {
2050
- url: (0, common_1.toPathString)(localVarUrlObj),
2213
+ url: toPathString(localVarUrlObj),
2051
2214
  options: localVarRequestOptions,
2052
2215
  };
2053
2216
  }),
@@ -2060,7 +2223,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2060
2223
  getExchangeStatsAllTime: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2061
2224
  const localVarPath = `/v1/exchange/stats/allTime`;
2062
2225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2063
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2064
2227
  let baseOptions;
2065
2228
  if (configuration) {
2066
2229
  baseOptions = configuration.baseOptions;
@@ -2068,11 +2231,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2068
2231
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2069
2232
  const localVarHeaderParameter = {};
2070
2233
  const localVarQueryParameter = {};
2071
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2072
2235
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2073
2236
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2074
2237
  return {
2075
- url: (0, common_1.toPathString)(localVarUrlObj),
2238
+ url: toPathString(localVarUrlObj),
2076
2239
  options: localVarRequestOptions,
2077
2240
  };
2078
2241
  }),
@@ -2089,10 +2252,10 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2089
2252
  */
2090
2253
  getFundingRateHistory: (symbol_1, limit_1, startTimeAtMillis_1, endTimeAtMillis_1, page_1, ...args_1) => __awaiter(this, [symbol_1, limit_1, startTimeAtMillis_1, endTimeAtMillis_1, page_1, ...args_1], void 0, function* (symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options = {}) {
2091
2254
  // verify required parameter 'symbol' is not null or undefined
2092
- (0, common_1.assertParamExists)('getFundingRateHistory', 'symbol', symbol);
2255
+ assertParamExists('getFundingRateHistory', 'symbol', symbol);
2093
2256
  const localVarPath = `/v1/exchange/fundingRateHistory`;
2094
2257
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2095
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2258
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2096
2259
  let baseOptions;
2097
2260
  if (configuration) {
2098
2261
  baseOptions = configuration.baseOptions;
@@ -2115,11 +2278,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2115
2278
  if (page !== undefined) {
2116
2279
  localVarQueryParameter['page'] = page;
2117
2280
  }
2118
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2281
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2119
2282
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2120
2283
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2121
2284
  return {
2122
- url: (0, common_1.toPathString)(localVarUrlObj),
2285
+ url: toPathString(localVarUrlObj),
2123
2286
  options: localVarRequestOptions,
2124
2287
  };
2125
2288
  }),
@@ -2137,7 +2300,7 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2137
2300
  getLeaderboard: (interval_1, sortBy_1, sortOrder_1, limit_1, page_1, ...args_1) => __awaiter(this, [interval_1, sortBy_1, sortOrder_1, limit_1, page_1, ...args_1], void 0, function* (interval, sortBy, sortOrder, limit, page, options = {}) {
2138
2301
  const localVarPath = `/api/v1/accounts/leaderboard`;
2139
2302
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2140
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2141
2304
  let baseOptions;
2142
2305
  if (configuration) {
2143
2306
  baseOptions = configuration.baseOptions;
@@ -2160,11 +2323,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2160
2323
  if (page !== undefined) {
2161
2324
  localVarQueryParameter['page'] = page;
2162
2325
  }
2163
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2326
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2164
2327
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2165
2328
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2166
2329
  return {
2167
- url: (0, common_1.toPathString)(localVarUrlObj),
2330
+ url: toPathString(localVarUrlObj),
2168
2331
  options: localVarRequestOptions,
2169
2332
  };
2170
2333
  }),
@@ -2177,10 +2340,10 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2177
2340
  */
2178
2341
  getMarketTicker: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) {
2179
2342
  // verify required parameter 'symbol' is not null or undefined
2180
- (0, common_1.assertParamExists)('getMarketTicker', 'symbol', symbol);
2343
+ assertParamExists('getMarketTicker', 'symbol', symbol);
2181
2344
  const localVarPath = `/v1/exchange/ticker`;
2182
2345
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2183
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2346
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2184
2347
  let baseOptions;
2185
2348
  if (configuration) {
2186
2349
  baseOptions = configuration.baseOptions;
@@ -2191,11 +2354,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2191
2354
  if (symbol !== undefined) {
2192
2355
  localVarQueryParameter['symbol'] = symbol;
2193
2356
  }
2194
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2195
2358
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2196
2359
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2197
2360
  return {
2198
- url: (0, common_1.toPathString)(localVarUrlObj),
2361
+ url: toPathString(localVarUrlObj),
2199
2362
  options: localVarRequestOptions,
2200
2363
  };
2201
2364
  }),
@@ -2209,10 +2372,10 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2209
2372
  */
2210
2373
  getOrderbookDepth: (symbol_1, limit_1, ...args_1) => __awaiter(this, [symbol_1, limit_1, ...args_1], void 0, function* (symbol, limit, options = {}) {
2211
2374
  // verify required parameter 'symbol' is not null or undefined
2212
- (0, common_1.assertParamExists)('getOrderbookDepth', 'symbol', symbol);
2375
+ assertParamExists('getOrderbookDepth', 'symbol', symbol);
2213
2376
  const localVarPath = `/v1/exchange/depth`;
2214
2377
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2215
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2378
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2216
2379
  let baseOptions;
2217
2380
  if (configuration) {
2218
2381
  baseOptions = configuration.baseOptions;
@@ -2226,11 +2389,11 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2226
2389
  if (limit !== undefined) {
2227
2390
  localVarQueryParameter['limit'] = limit;
2228
2391
  }
2229
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2230
2393
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2231
2394
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2232
2395
  return {
2233
- url: (0, common_1.toPathString)(localVarUrlObj),
2396
+ url: toPathString(localVarUrlObj),
2234
2397
  options: localVarRequestOptions,
2235
2398
  };
2236
2399
  }),
@@ -2248,10 +2411,10 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2248
2411
  */
2249
2412
  getRecentTrades: (symbol_1, tradeType_1, limit_1, startTimeAtMillis_1, endTimeAtMillis_1, page_1, ...args_1) => __awaiter(this, [symbol_1, tradeType_1, limit_1, startTimeAtMillis_1, endTimeAtMillis_1, page_1, ...args_1], void 0, function* (symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options = {}) {
2250
2413
  // verify required parameter 'symbol' is not null or undefined
2251
- (0, common_1.assertParamExists)('getRecentTrades', 'symbol', symbol);
2414
+ assertParamExists('getRecentTrades', 'symbol', symbol);
2252
2415
  const localVarPath = `/v1/exchange/trades`;
2253
2416
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2254
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2255
2418
  let baseOptions;
2256
2419
  if (configuration) {
2257
2420
  baseOptions = configuration.baseOptions;
@@ -2277,23 +2440,22 @@ const ExchangeApiAxiosParamCreator = function (configuration) {
2277
2440
  if (page !== undefined) {
2278
2441
  localVarQueryParameter['page'] = page;
2279
2442
  }
2280
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2281
2444
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2282
2445
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2283
2446
  return {
2284
- url: (0, common_1.toPathString)(localVarUrlObj),
2447
+ url: toPathString(localVarUrlObj),
2285
2448
  options: localVarRequestOptions,
2286
2449
  };
2287
2450
  }),
2288
2451
  };
2289
2452
  };
2290
- exports.ExchangeApiAxiosParamCreator = ExchangeApiAxiosParamCreator;
2291
2453
  /**
2292
2454
  * ExchangeApi - functional programming interface
2293
2455
  * @export
2294
2456
  */
2295
- const ExchangeApiFp = function (configuration) {
2296
- const localVarAxiosParamCreator = (0, exports.ExchangeApiAxiosParamCreator)(configuration);
2457
+ export const ExchangeApiFp = function (configuration) {
2458
+ const localVarAxiosParamCreator = ExchangeApiAxiosParamCreator(configuration);
2297
2459
  return {
2298
2460
  /**
2299
2461
  * Retrieves all market ticker information.
@@ -2306,8 +2468,8 @@ const ExchangeApiFp = function (configuration) {
2306
2468
  var _a, _b, _c;
2307
2469
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllMarketTicker(options);
2308
2470
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2309
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getAllMarketTicker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2310
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2471
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getAllMarketTicker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2472
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2311
2473
  });
2312
2474
  },
2313
2475
  /**
@@ -2328,8 +2490,8 @@ const ExchangeApiFp = function (configuration) {
2328
2490
  var _a, _b, _c;
2329
2491
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options);
2330
2492
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2331
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getCandlestickData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2332
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2493
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getCandlestickData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2494
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2333
2495
  });
2334
2496
  },
2335
2497
  /**
@@ -2343,8 +2505,8 @@ const ExchangeApiFp = function (configuration) {
2343
2505
  var _a, _b, _c;
2344
2506
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getCountry(options);
2345
2507
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2346
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getCountry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2347
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2508
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getCountry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2509
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2348
2510
  });
2349
2511
  },
2350
2512
  /**
@@ -2358,8 +2520,8 @@ const ExchangeApiFp = function (configuration) {
2358
2520
  var _a, _b, _c;
2359
2521
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeInfo(options);
2360
2522
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2361
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getExchangeInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2362
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2523
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getExchangeInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2524
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2363
2525
  });
2364
2526
  },
2365
2527
  /**
@@ -2378,8 +2540,8 @@ const ExchangeApiFp = function (configuration) {
2378
2540
  var _a, _b, _c;
2379
2541
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options);
2380
2542
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2381
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getExchangeStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2382
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2543
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getExchangeStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2544
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2383
2545
  });
2384
2546
  },
2385
2547
  /**
@@ -2393,8 +2555,8 @@ const ExchangeApiFp = function (configuration) {
2393
2555
  var _a, _b, _c;
2394
2556
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeStatsAllTime(options);
2395
2557
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2396
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getExchangeStatsAllTime']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2397
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2558
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getExchangeStatsAllTime']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2559
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2398
2560
  });
2399
2561
  },
2400
2562
  /**
@@ -2413,8 +2575,8 @@ const ExchangeApiFp = function (configuration) {
2413
2575
  var _a, _b, _c;
2414
2576
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options);
2415
2577
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2416
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getFundingRateHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2417
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2578
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getFundingRateHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2579
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2418
2580
  });
2419
2581
  },
2420
2582
  /**
@@ -2433,8 +2595,8 @@ const ExchangeApiFp = function (configuration) {
2433
2595
  var _a, _b, _c;
2434
2596
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeaderboard(interval, sortBy, sortOrder, limit, page, options);
2435
2597
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2436
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getLeaderboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2437
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2598
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getLeaderboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2599
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2438
2600
  });
2439
2601
  },
2440
2602
  /**
@@ -2449,8 +2611,8 @@ const ExchangeApiFp = function (configuration) {
2449
2611
  var _a, _b, _c;
2450
2612
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getMarketTicker(symbol, options);
2451
2613
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2452
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getMarketTicker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2453
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2614
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getMarketTicker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2615
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2454
2616
  });
2455
2617
  },
2456
2618
  /**
@@ -2466,8 +2628,8 @@ const ExchangeApiFp = function (configuration) {
2466
2628
  var _a, _b, _c;
2467
2629
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderbookDepth(symbol, limit, options);
2468
2630
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2469
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getOrderbookDepth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2470
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2631
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getOrderbookDepth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2632
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2471
2633
  });
2472
2634
  },
2473
2635
  /**
@@ -2487,19 +2649,18 @@ const ExchangeApiFp = function (configuration) {
2487
2649
  var _a, _b, _c;
2488
2650
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options);
2489
2651
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2490
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getRecentTrades']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2491
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2652
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExchangeApi.getRecentTrades']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2653
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2492
2654
  });
2493
2655
  },
2494
2656
  };
2495
2657
  };
2496
- exports.ExchangeApiFp = ExchangeApiFp;
2497
2658
  /**
2498
2659
  * ExchangeApi - factory interface
2499
2660
  * @export
2500
2661
  */
2501
- const ExchangeApiFactory = function (configuration, basePath, axios) {
2502
- const localVarFp = (0, exports.ExchangeApiFp)(configuration);
2662
+ export const ExchangeApiFactory = function (configuration, basePath, axios) {
2663
+ const localVarFp = ExchangeApiFp(configuration);
2503
2664
  return {
2504
2665
  /**
2505
2666
  * Retrieves all market ticker information.
@@ -2633,14 +2794,13 @@ const ExchangeApiFactory = function (configuration, basePath, axios) {
2633
2794
  },
2634
2795
  };
2635
2796
  };
2636
- exports.ExchangeApiFactory = ExchangeApiFactory;
2637
2797
  /**
2638
2798
  * ExchangeApi - object-oriented interface
2639
2799
  * @export
2640
2800
  * @class ExchangeApi
2641
2801
  * @extends {BaseAPI}
2642
2802
  */
2643
- class ExchangeApi extends base_1.BaseAPI {
2803
+ export class ExchangeApi extends BaseAPI {
2644
2804
  /**
2645
2805
  * Retrieves all market ticker information.
2646
2806
  * @summary /exchange/tickers
@@ -2649,7 +2809,7 @@ class ExchangeApi extends base_1.BaseAPI {
2649
2809
  * @memberof ExchangeApi
2650
2810
  */
2651
2811
  getAllMarketTicker(options) {
2652
- return (0, exports.ExchangeApiFp)(this.configuration).getAllMarketTicker(options).then((request) => request(this.axios, this.basePath));
2812
+ return ExchangeApiFp(this.configuration).getAllMarketTicker(options).then((request) => request(this.axios, this.basePath));
2653
2813
  }
2654
2814
  /**
2655
2815
  * Retrieves candle stick data for a market.
@@ -2666,7 +2826,7 @@ class ExchangeApi extends base_1.BaseAPI {
2666
2826
  * @memberof ExchangeApi
2667
2827
  */
2668
2828
  getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
2669
- return (0, exports.ExchangeApiFp)(this.configuration).getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
2829
+ return ExchangeApiFp(this.configuration).getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
2670
2830
  }
2671
2831
  /**
2672
2832
  * Check if the country is geo restricted.
@@ -2676,7 +2836,7 @@ class ExchangeApi extends base_1.BaseAPI {
2676
2836
  * @memberof ExchangeApi
2677
2837
  */
2678
2838
  getCountry(options) {
2679
- return (0, exports.ExchangeApiFp)(this.configuration).getCountry(options).then((request) => request(this.axios, this.basePath));
2839
+ return ExchangeApiFp(this.configuration).getCountry(options).then((request) => request(this.axios, this.basePath));
2680
2840
  }
2681
2841
  /**
2682
2842
  * Returns the current exchange information including available margin assets, markets, and rules.
@@ -2686,7 +2846,7 @@ class ExchangeApi extends base_1.BaseAPI {
2686
2846
  * @memberof ExchangeApi
2687
2847
  */
2688
2848
  getExchangeInfo(options) {
2689
- return (0, exports.ExchangeApiFp)(this.configuration).getExchangeInfo(options).then((request) => request(this.axios, this.basePath));
2849
+ return ExchangeApiFp(this.configuration).getExchangeInfo(options).then((request) => request(this.axios, this.basePath));
2690
2850
  }
2691
2851
  /**
2692
2852
  * Retrieves exchange statistics.
@@ -2701,7 +2861,7 @@ class ExchangeApi extends base_1.BaseAPI {
2701
2861
  * @memberof ExchangeApi
2702
2862
  */
2703
2863
  getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
2704
- return (0, exports.ExchangeApiFp)(this.configuration).getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
2864
+ return ExchangeApiFp(this.configuration).getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
2705
2865
  }
2706
2866
  /**
2707
2867
  * Retrieves all time exchange statistics.
@@ -2711,7 +2871,7 @@ class ExchangeApi extends base_1.BaseAPI {
2711
2871
  * @memberof ExchangeApi
2712
2872
  */
2713
2873
  getExchangeStatsAllTime(options) {
2714
- return (0, exports.ExchangeApiFp)(this.configuration).getExchangeStatsAllTime(options).then((request) => request(this.axios, this.basePath));
2874
+ return ExchangeApiFp(this.configuration).getExchangeStatsAllTime(options).then((request) => request(this.axios, this.basePath));
2715
2875
  }
2716
2876
  /**
2717
2877
  * Retrieve the funding rate history for a specific market address.
@@ -2726,7 +2886,7 @@ class ExchangeApi extends base_1.BaseAPI {
2726
2886
  * @memberof ExchangeApi
2727
2887
  */
2728
2888
  getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options) {
2729
- return (0, exports.ExchangeApiFp)(this.configuration).getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options).then((request) => request(this.axios, this.basePath));
2889
+ return ExchangeApiFp(this.configuration).getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options).then((request) => request(this.axios, this.basePath));
2730
2890
  }
2731
2891
  /**
2732
2892
  * Retrieves the leaderboard of traders based on their performance.
@@ -2741,7 +2901,7 @@ class ExchangeApi extends base_1.BaseAPI {
2741
2901
  * @memberof ExchangeApi
2742
2902
  */
2743
2903
  getLeaderboard(interval, sortBy, sortOrder, limit, page, options) {
2744
- return (0, exports.ExchangeApiFp)(this.configuration).getLeaderboard(interval, sortBy, sortOrder, limit, page, options).then((request) => request(this.axios, this.basePath));
2904
+ return ExchangeApiFp(this.configuration).getLeaderboard(interval, sortBy, sortOrder, limit, page, options).then((request) => request(this.axios, this.basePath));
2745
2905
  }
2746
2906
  /**
2747
2907
  * Retrieves aggregated ticker data for a market.
@@ -2752,7 +2912,7 @@ class ExchangeApi extends base_1.BaseAPI {
2752
2912
  * @memberof ExchangeApi
2753
2913
  */
2754
2914
  getMarketTicker(symbol, options) {
2755
- return (0, exports.ExchangeApiFp)(this.configuration).getMarketTicker(symbol, options).then((request) => request(this.axios, this.basePath));
2915
+ return ExchangeApiFp(this.configuration).getMarketTicker(symbol, options).then((request) => request(this.axios, this.basePath));
2756
2916
  }
2757
2917
  /**
2758
2918
  * Returns the current state of the orderbook.
@@ -2764,7 +2924,7 @@ class ExchangeApi extends base_1.BaseAPI {
2764
2924
  * @memberof ExchangeApi
2765
2925
  */
2766
2926
  getOrderbookDepth(symbol, limit, options) {
2767
- return (0, exports.ExchangeApiFp)(this.configuration).getOrderbookDepth(symbol, limit, options).then((request) => request(this.axios, this.basePath));
2927
+ return ExchangeApiFp(this.configuration).getOrderbookDepth(symbol, limit, options).then((request) => request(this.axios, this.basePath));
2768
2928
  }
2769
2929
  /**
2770
2930
  * Retrieves recent trades executed on a market.
@@ -2780,14 +2940,13 @@ class ExchangeApi extends base_1.BaseAPI {
2780
2940
  * @memberof ExchangeApi
2781
2941
  */
2782
2942
  getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options) {
2783
- return (0, exports.ExchangeApiFp)(this.configuration).getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options).then((request) => request(this.axios, this.basePath));
2943
+ return ExchangeApiFp(this.configuration).getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options).then((request) => request(this.axios, this.basePath));
2784
2944
  }
2785
2945
  }
2786
- exports.ExchangeApi = ExchangeApi;
2787
2946
  /**
2788
2947
  * @export
2789
2948
  */
2790
- exports.GetLeaderboardSortByEnum = {
2949
+ export const GetLeaderboardSortByEnum = {
2791
2950
  GetLeaderboardSortByAccountValue: 'accountValue',
2792
2951
  GetLeaderboardSortByPnL: 'pnl',
2793
2952
  GetLeaderboardSortByVolume: 'volume',
@@ -2797,7 +2956,7 @@ exports.GetLeaderboardSortByEnum = {
2797
2956
  * RewardsApi - axios parameter creator
2798
2957
  * @export
2799
2958
  */
2800
- const RewardsApiAxiosParamCreator = function (configuration) {
2959
+ export const RewardsApiAxiosParamCreator = function (configuration) {
2801
2960
  return {
2802
2961
  /**
2803
2962
  * Returns detailed earnings breakdown for an affiliate by interval, ordered by interval number in descending order.
@@ -2810,10 +2969,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2810
2969
  */
2811
2970
  getAffiliateIntervalOverview: (userAddress_1, page_1, limit_1, ...args_1) => __awaiter(this, [userAddress_1, page_1, limit_1, ...args_1], void 0, function* (userAddress, page, limit, options = {}) {
2812
2971
  // verify required parameter 'userAddress' is not null or undefined
2813
- (0, common_1.assertParamExists)('getAffiliateIntervalOverview', 'userAddress', userAddress);
2972
+ assertParamExists('getAffiliateIntervalOverview', 'userAddress', userAddress);
2814
2973
  const localVarPath = `/v1/rewards/affiliate/intervalOverview`;
2815
2974
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2816
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2975
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2817
2976
  let baseOptions;
2818
2977
  if (configuration) {
2819
2978
  baseOptions = configuration.baseOptions;
@@ -2830,11 +2989,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2830
2989
  if (limit !== undefined) {
2831
2990
  localVarQueryParameter['limit'] = limit;
2832
2991
  }
2833
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2992
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2834
2993
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2835
2994
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2836
2995
  return {
2837
- url: (0, common_1.toPathString)(localVarUrlObj),
2996
+ url: toPathString(localVarUrlObj),
2838
2997
  options: localVarRequestOptions,
2839
2998
  };
2840
2999
  }),
@@ -2852,7 +3011,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2852
3011
  getAffiliateLeaderDashboard: (sortBy_1, sortOrder_1, page_1, limit_1, search_1, ...args_1) => __awaiter(this, [sortBy_1, sortOrder_1, page_1, limit_1, search_1, ...args_1], void 0, function* (sortBy, sortOrder, page, limit, search, options = {}) {
2853
3012
  const localVarPath = `/v1/rewards/affiliate/leaderDashboard`;
2854
3013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2855
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2856
3015
  let baseOptions;
2857
3016
  if (configuration) {
2858
3017
  baseOptions = configuration.baseOptions;
@@ -2875,11 +3034,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2875
3034
  if (search !== undefined) {
2876
3035
  localVarQueryParameter['search'] = search;
2877
3036
  }
2878
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3037
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2879
3038
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2880
3039
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2881
3040
  return {
2882
- url: (0, common_1.toPathString)(localVarUrlObj),
3041
+ url: toPathString(localVarUrlObj),
2883
3042
  options: localVarRequestOptions,
2884
3043
  };
2885
3044
  }),
@@ -2892,10 +3051,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2892
3051
  */
2893
3052
  getAffiliateMetadata: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
2894
3053
  // verify required parameter 'userAddress' is not null or undefined
2895
- (0, common_1.assertParamExists)('getAffiliateMetadata', 'userAddress', userAddress);
3054
+ assertParamExists('getAffiliateMetadata', 'userAddress', userAddress);
2896
3055
  const localVarPath = `/v1/rewards/affiliate`;
2897
3056
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2898
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2899
3058
  let baseOptions;
2900
3059
  if (configuration) {
2901
3060
  baseOptions = configuration.baseOptions;
@@ -2906,11 +3065,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2906
3065
  if (userAddress !== undefined) {
2907
3066
  localVarQueryParameter['userAddress'] = userAddress;
2908
3067
  }
2909
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3068
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2910
3069
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2911
3070
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2912
3071
  return {
2913
- url: (0, common_1.toPathString)(localVarUrlObj),
3072
+ url: toPathString(localVarUrlObj),
2914
3073
  options: localVarRequestOptions,
2915
3074
  };
2916
3075
  }),
@@ -2929,10 +3088,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2929
3088
  */
2930
3089
  getAffiliateOverview: (userAddress_1, page_1, limit_1, sortBy_1, sortOrder_1, search_1, minEarningsE9_1, ...args_1) => __awaiter(this, [userAddress_1, page_1, limit_1, sortBy_1, sortOrder_1, search_1, minEarningsE9_1, ...args_1], void 0, function* (userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options = {}) {
2931
3090
  // verify required parameter 'userAddress' is not null or undefined
2932
- (0, common_1.assertParamExists)('getAffiliateOverview', 'userAddress', userAddress);
3091
+ assertParamExists('getAffiliateOverview', 'userAddress', userAddress);
2933
3092
  const localVarPath = `/v1/rewards/affiliate/overview`;
2934
3093
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2935
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3094
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2936
3095
  let baseOptions;
2937
3096
  if (configuration) {
2938
3097
  baseOptions = configuration.baseOptions;
@@ -2961,11 +3120,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2961
3120
  if (minEarningsE9 !== undefined) {
2962
3121
  localVarQueryParameter['minEarningsE9'] = minEarningsE9;
2963
3122
  }
2964
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3123
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2965
3124
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2966
3125
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2967
3126
  return {
2968
- url: (0, common_1.toPathString)(localVarUrlObj),
3127
+ url: toPathString(localVarUrlObj),
2969
3128
  options: localVarRequestOptions,
2970
3129
  };
2971
3130
  }),
@@ -2978,10 +3137,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2978
3137
  */
2979
3138
  getAffiliateSummary: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
2980
3139
  // verify required parameter 'userAddress' is not null or undefined
2981
- (0, common_1.assertParamExists)('getAffiliateSummary', 'userAddress', userAddress);
3140
+ assertParamExists('getAffiliateSummary', 'userAddress', userAddress);
2982
3141
  const localVarPath = `/v1/rewards/affiliate/summary`;
2983
3142
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2984
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2985
3144
  let baseOptions;
2986
3145
  if (configuration) {
2987
3146
  baseOptions = configuration.baseOptions;
@@ -2992,11 +3151,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
2992
3151
  if (userAddress !== undefined) {
2993
3152
  localVarQueryParameter['userAddress'] = userAddress;
2994
3153
  }
2995
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2996
3155
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2997
3156
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2998
3157
  return {
2999
- url: (0, common_1.toPathString)(localVarUrlObj),
3158
+ url: toPathString(localVarUrlObj),
3000
3159
  options: localVarRequestOptions,
3001
3160
  };
3002
3161
  }),
@@ -3011,12 +3170,12 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3011
3170
  */
3012
3171
  getCampaignRewards: (campaignName_1, userAddress_1, epochNumber_1, ...args_1) => __awaiter(this, [campaignName_1, userAddress_1, epochNumber_1, ...args_1], void 0, function* (campaignName, userAddress, epochNumber, options = {}) {
3013
3172
  // verify required parameter 'campaignName' is not null or undefined
3014
- (0, common_1.assertParamExists)('getCampaignRewards', 'campaignName', campaignName);
3173
+ assertParamExists('getCampaignRewards', 'campaignName', campaignName);
3015
3174
  // verify required parameter 'userAddress' is not null or undefined
3016
- (0, common_1.assertParamExists)('getCampaignRewards', 'userAddress', userAddress);
3175
+ assertParamExists('getCampaignRewards', 'userAddress', userAddress);
3017
3176
  const localVarPath = `/v1/rewards/campaign`;
3018
3177
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3019
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3020
3179
  let baseOptions;
3021
3180
  if (configuration) {
3022
3181
  baseOptions = configuration.baseOptions;
@@ -3033,11 +3192,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3033
3192
  if (userAddress !== undefined) {
3034
3193
  localVarQueryParameter['userAddress'] = userAddress;
3035
3194
  }
3036
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3195
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3037
3196
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3038
3197
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3039
3198
  return {
3040
- url: (0, common_1.toPathString)(localVarUrlObj),
3199
+ url: toPathString(localVarUrlObj),
3041
3200
  options: localVarRequestOptions,
3042
3201
  };
3043
3202
  }),
@@ -3050,7 +3209,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3050
3209
  getContractConfig: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3051
3210
  const localVarPath = `/v1/rewards/contract/config`;
3052
3211
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3053
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3054
3213
  let baseOptions;
3055
3214
  if (configuration) {
3056
3215
  baseOptions = configuration.baseOptions;
@@ -3058,11 +3217,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3058
3217
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3059
3218
  const localVarHeaderParameter = {};
3060
3219
  const localVarQueryParameter = {};
3061
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3062
3221
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3063
3222
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3064
3223
  return {
3065
- url: (0, common_1.toPathString)(localVarUrlObj),
3224
+ url: toPathString(localVarUrlObj),
3066
3225
  options: localVarRequestOptions,
3067
3226
  };
3068
3227
  }),
@@ -3076,7 +3235,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3076
3235
  getRewards: (intervalNumber_1, ...args_1) => __awaiter(this, [intervalNumber_1, ...args_1], void 0, function* (intervalNumber, options = {}) {
3077
3236
  const localVarPath = `/v1/rewards`;
3078
3237
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3079
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3238
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3080
3239
  let baseOptions;
3081
3240
  if (configuration) {
3082
3241
  baseOptions = configuration.baseOptions;
@@ -3086,15 +3245,15 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3086
3245
  const localVarQueryParameter = {};
3087
3246
  // authentication bearerAuth required
3088
3247
  // http bearer authentication required
3089
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3248
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3090
3249
  if (intervalNumber !== undefined) {
3091
3250
  localVarQueryParameter['intervalNumber'] = intervalNumber;
3092
3251
  }
3093
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3094
3253
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3095
3254
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3096
3255
  return {
3097
- url: (0, common_1.toPathString)(localVarUrlObj),
3256
+ url: toPathString(localVarUrlObj),
3098
3257
  options: localVarRequestOptions,
3099
3258
  };
3100
3259
  }),
@@ -3109,7 +3268,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3109
3268
  getRewardsCampaignMetadata: (campaignName_1, status_1, ...args_1) => __awaiter(this, [campaignName_1, status_1, ...args_1], void 0, function* (campaignName, status, options = {}) {
3110
3269
  const localVarPath = `/v1/rewards/metadata/campaign`;
3111
3270
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3112
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3271
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3113
3272
  let baseOptions;
3114
3273
  if (configuration) {
3115
3274
  baseOptions = configuration.baseOptions;
@@ -3123,11 +3282,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3123
3282
  if (status !== undefined) {
3124
3283
  localVarQueryParameter['Status'] = status;
3125
3284
  }
3126
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3285
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3127
3286
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3128
3287
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3129
3288
  return {
3130
- url: (0, common_1.toPathString)(localVarUrlObj),
3289
+ url: toPathString(localVarUrlObj),
3131
3290
  options: localVarRequestOptions,
3132
3291
  };
3133
3292
  }),
@@ -3141,7 +3300,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3141
3300
  getRewardsEpochConfigMetadata: (intervalNumber_1, ...args_1) => __awaiter(this, [intervalNumber_1, ...args_1], void 0, function* (intervalNumber, options = {}) {
3142
3301
  const localVarPath = `/v1/rewards/metadata/epoch/configs`;
3143
3302
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3144
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3145
3304
  let baseOptions;
3146
3305
  if (configuration) {
3147
3306
  baseOptions = configuration.baseOptions;
@@ -3152,11 +3311,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3152
3311
  if (intervalNumber !== undefined) {
3153
3312
  localVarQueryParameter['intervalNumber'] = intervalNumber;
3154
3313
  }
3155
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3314
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3156
3315
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3157
3316
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3158
3317
  return {
3159
- url: (0, common_1.toPathString)(localVarUrlObj),
3318
+ url: toPathString(localVarUrlObj),
3160
3319
  options: localVarRequestOptions,
3161
3320
  };
3162
3321
  }),
@@ -3171,7 +3330,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3171
3330
  getRewardsEpochMetadata: (campaignName_1, epoch_1, ...args_1) => __awaiter(this, [campaignName_1, epoch_1, ...args_1], void 0, function* (campaignName, epoch, options = {}) {
3172
3331
  const localVarPath = `/v1/rewards/metadata/epoch`;
3173
3332
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3174
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3175
3334
  let baseOptions;
3176
3335
  if (configuration) {
3177
3336
  baseOptions = configuration.baseOptions;
@@ -3185,11 +3344,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3185
3344
  if (epoch !== undefined) {
3186
3345
  localVarQueryParameter['epoch'] = epoch;
3187
3346
  }
3188
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3189
3348
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3190
3349
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3191
3350
  return {
3192
- url: (0, common_1.toPathString)(localVarUrlObj),
3351
+ url: toPathString(localVarUrlObj),
3193
3352
  options: localVarRequestOptions,
3194
3353
  };
3195
3354
  }),
@@ -3203,7 +3362,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3203
3362
  getRewardsIntervalMetadata: (interval_1, ...args_1) => __awaiter(this, [interval_1, ...args_1], void 0, function* (interval, options = {}) {
3204
3363
  const localVarPath = `/v1/rewards/metadata/interval`;
3205
3364
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3206
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3365
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3207
3366
  let baseOptions;
3208
3367
  if (configuration) {
3209
3368
  baseOptions = configuration.baseOptions;
@@ -3214,11 +3373,11 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3214
3373
  if (interval !== undefined) {
3215
3374
  localVarQueryParameter['interval'] = interval;
3216
3375
  }
3217
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3376
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3218
3377
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3219
3378
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3220
3379
  return {
3221
- url: (0, common_1.toPathString)(localVarUrlObj),
3380
+ url: toPathString(localVarUrlObj),
3222
3381
  options: localVarRequestOptions,
3223
3382
  };
3224
3383
  }),
@@ -3231,7 +3390,7 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3231
3390
  getRewardsSummary: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3232
3391
  const localVarPath = `/v1/rewards/summary`;
3233
3392
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3234
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3393
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3235
3394
  let baseOptions;
3236
3395
  if (configuration) {
3237
3396
  baseOptions = configuration.baseOptions;
@@ -3241,12 +3400,12 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3241
3400
  const localVarQueryParameter = {};
3242
3401
  // authentication bearerAuth required
3243
3402
  // http bearer authentication required
3244
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3245
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3403
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3246
3405
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3247
3406
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3248
3407
  return {
3249
- url: (0, common_1.toPathString)(localVarUrlObj),
3408
+ url: toPathString(localVarUrlObj),
3250
3409
  options: localVarRequestOptions,
3251
3410
  };
3252
3411
  }),
@@ -3259,10 +3418,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3259
3418
  */
3260
3419
  markAsClaimed: (markAsClaimedRequest_1, ...args_1) => __awaiter(this, [markAsClaimedRequest_1, ...args_1], void 0, function* (markAsClaimedRequest, options = {}) {
3261
3420
  // verify required parameter 'markAsClaimedRequest' is not null or undefined
3262
- (0, common_1.assertParamExists)('markAsClaimed', 'markAsClaimedRequest', markAsClaimedRequest);
3421
+ assertParamExists('markAsClaimed', 'markAsClaimedRequest', markAsClaimedRequest);
3263
3422
  const localVarPath = `/v1/rewards/claims/mark-claimed`;
3264
3423
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3265
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3424
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3266
3425
  let baseOptions;
3267
3426
  if (configuration) {
3268
3427
  baseOptions = configuration.baseOptions;
@@ -3272,14 +3431,14 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3272
3431
  const localVarQueryParameter = {};
3273
3432
  // authentication bearerAuth required
3274
3433
  // http bearer authentication required
3275
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3434
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3276
3435
  localVarHeaderParameter['Content-Type'] = 'application/json';
3277
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3436
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3278
3437
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3279
3438
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3280
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markAsClaimedRequest, localVarRequestOptions, configuration);
3439
+ localVarRequestOptions.data = serializeDataIfNeeded(markAsClaimedRequest, localVarRequestOptions, configuration);
3281
3440
  return {
3282
- url: (0, common_1.toPathString)(localVarUrlObj),
3441
+ url: toPathString(localVarUrlObj),
3283
3442
  options: localVarRequestOptions,
3284
3443
  };
3285
3444
  }),
@@ -3292,10 +3451,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3292
3451
  */
3293
3452
  onboardAffiliate: (onboardAffiliateRequest_1, ...args_1) => __awaiter(this, [onboardAffiliateRequest_1, ...args_1], void 0, function* (onboardAffiliateRequest, options = {}) {
3294
3453
  // verify required parameter 'onboardAffiliateRequest' is not null or undefined
3295
- (0, common_1.assertParamExists)('onboardAffiliate', 'onboardAffiliateRequest', onboardAffiliateRequest);
3454
+ assertParamExists('onboardAffiliate', 'onboardAffiliateRequest', onboardAffiliateRequest);
3296
3455
  const localVarPath = `/v1/rewards/affiliate/onboard`;
3297
3456
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3298
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3457
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3299
3458
  let baseOptions;
3300
3459
  if (configuration) {
3301
3460
  baseOptions = configuration.baseOptions;
@@ -3305,14 +3464,14 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3305
3464
  const localVarQueryParameter = {};
3306
3465
  // authentication bearerAuth required
3307
3466
  // http bearer authentication required
3308
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3467
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3309
3468
  localVarHeaderParameter['Content-Type'] = 'application/json';
3310
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3311
3470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3312
3471
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3313
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(onboardAffiliateRequest, localVarRequestOptions, configuration);
3472
+ localVarRequestOptions.data = serializeDataIfNeeded(onboardAffiliateRequest, localVarRequestOptions, configuration);
3314
3473
  return {
3315
- url: (0, common_1.toPathString)(localVarUrlObj),
3474
+ url: toPathString(localVarUrlObj),
3316
3475
  options: localVarRequestOptions,
3317
3476
  };
3318
3477
  }),
@@ -3325,10 +3484,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3325
3484
  */
3326
3485
  onboardReferee: (onboardRefereeRequest_1, ...args_1) => __awaiter(this, [onboardRefereeRequest_1, ...args_1], void 0, function* (onboardRefereeRequest, options = {}) {
3327
3486
  // verify required parameter 'onboardRefereeRequest' is not null or undefined
3328
- (0, common_1.assertParamExists)('onboardReferee', 'onboardRefereeRequest', onboardRefereeRequest);
3487
+ assertParamExists('onboardReferee', 'onboardRefereeRequest', onboardRefereeRequest);
3329
3488
  const localVarPath = `/v1/rewards/affiliate/onboard/referee`;
3330
3489
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3331
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3332
3491
  let baseOptions;
3333
3492
  if (configuration) {
3334
3493
  baseOptions = configuration.baseOptions;
@@ -3338,14 +3497,14 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3338
3497
  const localVarQueryParameter = {};
3339
3498
  // authentication bearerAuth required
3340
3499
  // http bearer authentication required
3341
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3500
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3342
3501
  localVarHeaderParameter['Content-Type'] = 'application/json';
3343
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3502
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3344
3503
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3345
3504
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3346
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(onboardRefereeRequest, localVarRequestOptions, configuration);
3505
+ localVarRequestOptions.data = serializeDataIfNeeded(onboardRefereeRequest, localVarRequestOptions, configuration);
3347
3506
  return {
3348
- url: (0, common_1.toPathString)(localVarUrlObj),
3507
+ url: toPathString(localVarUrlObj),
3349
3508
  options: localVarRequestOptions,
3350
3509
  };
3351
3510
  }),
@@ -3358,10 +3517,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3358
3517
  */
3359
3518
  updateAffiliateEmberRefferalShare: (updateAffiliateEmberRefferalShareRequest_1, ...args_1) => __awaiter(this, [updateAffiliateEmberRefferalShareRequest_1, ...args_1], void 0, function* (updateAffiliateEmberRefferalShareRequest, options = {}) {
3360
3519
  // verify required parameter 'updateAffiliateEmberRefferalShareRequest' is not null or undefined
3361
- (0, common_1.assertParamExists)('updateAffiliateEmberRefferalShare', 'updateAffiliateEmberRefferalShareRequest', updateAffiliateEmberRefferalShareRequest);
3520
+ assertParamExists('updateAffiliateEmberRefferalShare', 'updateAffiliateEmberRefferalShareRequest', updateAffiliateEmberRefferalShareRequest);
3362
3521
  const localVarPath = `/v1/rewards/affiliate/emberRefferalShare`;
3363
3522
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3364
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3523
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3365
3524
  let baseOptions;
3366
3525
  if (configuration) {
3367
3526
  baseOptions = configuration.baseOptions;
@@ -3371,14 +3530,14 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3371
3530
  const localVarQueryParameter = {};
3372
3531
  // authentication bearerAuth required
3373
3532
  // http bearer authentication required
3374
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3533
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3375
3534
  localVarHeaderParameter['Content-Type'] = 'application/json';
3376
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3377
3536
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3378
3537
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3379
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAffiliateEmberRefferalShareRequest, localVarRequestOptions, configuration);
3538
+ localVarRequestOptions.data = serializeDataIfNeeded(updateAffiliateEmberRefferalShareRequest, localVarRequestOptions, configuration);
3380
3539
  return {
3381
- url: (0, common_1.toPathString)(localVarUrlObj),
3540
+ url: toPathString(localVarUrlObj),
3382
3541
  options: localVarRequestOptions,
3383
3542
  };
3384
3543
  }),
@@ -3391,10 +3550,10 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3391
3550
  */
3392
3551
  updateAffiliateFeeConfig: (updateAffiliateFeeConfigRequest_1, ...args_1) => __awaiter(this, [updateAffiliateFeeConfigRequest_1, ...args_1], void 0, function* (updateAffiliateFeeConfigRequest, options = {}) {
3393
3552
  // verify required parameter 'updateAffiliateFeeConfigRequest' is not null or undefined
3394
- (0, common_1.assertParamExists)('updateAffiliateFeeConfig', 'updateAffiliateFeeConfigRequest', updateAffiliateFeeConfigRequest);
3553
+ assertParamExists('updateAffiliateFeeConfig', 'updateAffiliateFeeConfigRequest', updateAffiliateFeeConfigRequest);
3395
3554
  const localVarPath = `/v1/rewards/affiliate/feeConfig`;
3396
3555
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3397
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3398
3557
  let baseOptions;
3399
3558
  if (configuration) {
3400
3559
  baseOptions = configuration.baseOptions;
@@ -3404,26 +3563,25 @@ const RewardsApiAxiosParamCreator = function (configuration) {
3404
3563
  const localVarQueryParameter = {};
3405
3564
  // authentication bearerAuth required
3406
3565
  // http bearer authentication required
3407
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3566
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3408
3567
  localVarHeaderParameter['Content-Type'] = 'application/json';
3409
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3568
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3410
3569
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3411
3570
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3412
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAffiliateFeeConfigRequest, localVarRequestOptions, configuration);
3571
+ localVarRequestOptions.data = serializeDataIfNeeded(updateAffiliateFeeConfigRequest, localVarRequestOptions, configuration);
3413
3572
  return {
3414
- url: (0, common_1.toPathString)(localVarUrlObj),
3573
+ url: toPathString(localVarUrlObj),
3415
3574
  options: localVarRequestOptions,
3416
3575
  };
3417
3576
  }),
3418
3577
  };
3419
3578
  };
3420
- exports.RewardsApiAxiosParamCreator = RewardsApiAxiosParamCreator;
3421
3579
  /**
3422
3580
  * RewardsApi - functional programming interface
3423
3581
  * @export
3424
3582
  */
3425
- const RewardsApiFp = function (configuration) {
3426
- const localVarAxiosParamCreator = (0, exports.RewardsApiAxiosParamCreator)(configuration);
3583
+ export const RewardsApiFp = function (configuration) {
3584
+ const localVarAxiosParamCreator = RewardsApiAxiosParamCreator(configuration);
3427
3585
  return {
3428
3586
  /**
3429
3587
  * Returns detailed earnings breakdown for an affiliate by interval, ordered by interval number in descending order.
@@ -3439,8 +3597,8 @@ const RewardsApiFp = function (configuration) {
3439
3597
  var _a, _b, _c;
3440
3598
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateIntervalOverview(userAddress, page, limit, options);
3441
3599
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3442
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getAffiliateIntervalOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3443
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3600
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getAffiliateIntervalOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3601
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3444
3602
  });
3445
3603
  },
3446
3604
  /**
@@ -3459,8 +3617,8 @@ const RewardsApiFp = function (configuration) {
3459
3617
  var _a, _b, _c;
3460
3618
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options);
3461
3619
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3462
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getAffiliateLeaderDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3463
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3620
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getAffiliateLeaderDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3621
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3464
3622
  });
3465
3623
  },
3466
3624
  /**
@@ -3475,8 +3633,8 @@ const RewardsApiFp = function (configuration) {
3475
3633
  var _a, _b, _c;
3476
3634
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateMetadata(userAddress, options);
3477
3635
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3478
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getAffiliateMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3479
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3636
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getAffiliateMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3637
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3480
3638
  });
3481
3639
  },
3482
3640
  /**
@@ -3497,8 +3655,8 @@ const RewardsApiFp = function (configuration) {
3497
3655
  var _a, _b, _c;
3498
3656
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options);
3499
3657
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3500
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getAffiliateOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3501
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3658
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getAffiliateOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3659
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3502
3660
  });
3503
3661
  },
3504
3662
  /**
@@ -3513,8 +3671,8 @@ const RewardsApiFp = function (configuration) {
3513
3671
  var _a, _b, _c;
3514
3672
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateSummary(userAddress, options);
3515
3673
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3516
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getAffiliateSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3517
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3674
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getAffiliateSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3518
3676
  });
3519
3677
  },
3520
3678
  /**
@@ -3531,8 +3689,8 @@ const RewardsApiFp = function (configuration) {
3531
3689
  var _a, _b, _c;
3532
3690
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getCampaignRewards(campaignName, userAddress, epochNumber, options);
3533
3691
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3534
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getCampaignRewards']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3535
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3692
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getCampaignRewards']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3693
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3536
3694
  });
3537
3695
  },
3538
3696
  /**
@@ -3546,8 +3704,8 @@ const RewardsApiFp = function (configuration) {
3546
3704
  var _a, _b, _c;
3547
3705
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getContractConfig(options);
3548
3706
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3549
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getContractConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3550
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3707
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getContractConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3708
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3551
3709
  });
3552
3710
  },
3553
3711
  /**
@@ -3562,8 +3720,8 @@ const RewardsApiFp = function (configuration) {
3562
3720
  var _a, _b, _c;
3563
3721
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewards(intervalNumber, options);
3564
3722
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3565
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getRewards']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3566
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3723
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getRewards']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3724
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3567
3725
  });
3568
3726
  },
3569
3727
  /**
@@ -3579,8 +3737,8 @@ const RewardsApiFp = function (configuration) {
3579
3737
  var _a, _b, _c;
3580
3738
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsCampaignMetadata(campaignName, status, options);
3581
3739
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3582
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getRewardsCampaignMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3583
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3740
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getRewardsCampaignMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3584
3742
  });
3585
3743
  },
3586
3744
  /**
@@ -3595,8 +3753,8 @@ const RewardsApiFp = function (configuration) {
3595
3753
  var _a, _b, _c;
3596
3754
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsEpochConfigMetadata(intervalNumber, options);
3597
3755
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3598
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getRewardsEpochConfigMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3599
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3756
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getRewardsEpochConfigMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3757
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3600
3758
  });
3601
3759
  },
3602
3760
  /**
@@ -3612,8 +3770,8 @@ const RewardsApiFp = function (configuration) {
3612
3770
  var _a, _b, _c;
3613
3771
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsEpochMetadata(campaignName, epoch, options);
3614
3772
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3615
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getRewardsEpochMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3616
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3773
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getRewardsEpochMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3774
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3617
3775
  });
3618
3776
  },
3619
3777
  /**
@@ -3628,8 +3786,8 @@ const RewardsApiFp = function (configuration) {
3628
3786
  var _a, _b, _c;
3629
3787
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsIntervalMetadata(interval, options);
3630
3788
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3631
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getRewardsIntervalMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3632
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3789
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getRewardsIntervalMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3790
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3633
3791
  });
3634
3792
  },
3635
3793
  /**
@@ -3643,8 +3801,8 @@ const RewardsApiFp = function (configuration) {
3643
3801
  var _a, _b, _c;
3644
3802
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsSummary(options);
3645
3803
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3646
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.getRewardsSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3647
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3804
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.getRewardsSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3805
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3648
3806
  });
3649
3807
  },
3650
3808
  /**
@@ -3659,8 +3817,8 @@ const RewardsApiFp = function (configuration) {
3659
3817
  var _a, _b, _c;
3660
3818
  const localVarAxiosArgs = yield localVarAxiosParamCreator.markAsClaimed(markAsClaimedRequest, options);
3661
3819
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3662
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.markAsClaimed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3663
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3820
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.markAsClaimed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3821
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3664
3822
  });
3665
3823
  },
3666
3824
  /**
@@ -3675,8 +3833,8 @@ const RewardsApiFp = function (configuration) {
3675
3833
  var _a, _b, _c;
3676
3834
  const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardAffiliate(onboardAffiliateRequest, options);
3677
3835
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3678
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.onboardAffiliate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3679
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3836
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.onboardAffiliate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3837
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3680
3838
  });
3681
3839
  },
3682
3840
  /**
@@ -3691,8 +3849,8 @@ const RewardsApiFp = function (configuration) {
3691
3849
  var _a, _b, _c;
3692
3850
  const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardReferee(onboardRefereeRequest, options);
3693
3851
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3694
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.onboardReferee']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3695
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3852
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.onboardReferee']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3853
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3696
3854
  });
3697
3855
  },
3698
3856
  /**
@@ -3707,8 +3865,8 @@ const RewardsApiFp = function (configuration) {
3707
3865
  var _a, _b, _c;
3708
3866
  const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options);
3709
3867
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3710
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.updateAffiliateEmberRefferalShare']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3711
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3868
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.updateAffiliateEmberRefferalShare']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3869
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3712
3870
  });
3713
3871
  },
3714
3872
  /**
@@ -3723,19 +3881,18 @@ const RewardsApiFp = function (configuration) {
3723
3881
  var _a, _b, _c;
3724
3882
  const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options);
3725
3883
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3726
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.updateAffiliateFeeConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3727
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3884
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RewardsApi.updateAffiliateFeeConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3885
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3728
3886
  });
3729
3887
  },
3730
3888
  };
3731
3889
  };
3732
- exports.RewardsApiFp = RewardsApiFp;
3733
3890
  /**
3734
3891
  * RewardsApi - factory interface
3735
3892
  * @export
3736
3893
  */
3737
- const RewardsApiFactory = function (configuration, basePath, axios) {
3738
- const localVarFp = (0, exports.RewardsApiFp)(configuration);
3894
+ export const RewardsApiFactory = function (configuration, basePath, axios) {
3895
+ const localVarFp = RewardsApiFp(configuration);
3739
3896
  return {
3740
3897
  /**
3741
3898
  * Returns detailed earnings breakdown for an affiliate by interval, ordered by interval number in descending order.
@@ -3933,14 +4090,13 @@ const RewardsApiFactory = function (configuration, basePath, axios) {
3933
4090
  },
3934
4091
  };
3935
4092
  };
3936
- exports.RewardsApiFactory = RewardsApiFactory;
3937
4093
  /**
3938
4094
  * RewardsApi - object-oriented interface
3939
4095
  * @export
3940
4096
  * @class RewardsApi
3941
4097
  * @extends {BaseAPI}
3942
4098
  */
3943
- class RewardsApi extends base_1.BaseAPI {
4099
+ export class RewardsApi extends BaseAPI {
3944
4100
  /**
3945
4101
  * Returns detailed earnings breakdown for an affiliate by interval, ordered by interval number in descending order.
3946
4102
  * @summary /rewards/affiliate/intervalOverview
@@ -3952,7 +4108,7 @@ class RewardsApi extends base_1.BaseAPI {
3952
4108
  * @memberof RewardsApi
3953
4109
  */
3954
4110
  getAffiliateIntervalOverview(userAddress, page, limit, options) {
3955
- return (0, exports.RewardsApiFp)(this.configuration).getAffiliateIntervalOverview(userAddress, page, limit, options).then((request) => request(this.axios, this.basePath));
4111
+ return RewardsApiFp(this.configuration).getAffiliateIntervalOverview(userAddress, page, limit, options).then((request) => request(this.axios, this.basePath));
3956
4112
  }
3957
4113
  /**
3958
4114
  * Returns rankings and earnings for affiliates, sorted by the specified category.
@@ -3967,7 +4123,7 @@ class RewardsApi extends base_1.BaseAPI {
3967
4123
  * @memberof RewardsApi
3968
4124
  */
3969
4125
  getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options) {
3970
- return (0, exports.RewardsApiFp)(this.configuration).getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options).then((request) => request(this.axios, this.basePath));
4126
+ return RewardsApiFp(this.configuration).getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options).then((request) => request(this.axios, this.basePath));
3971
4127
  }
3972
4128
  /**
3973
4129
  * Returns the affiliate metadata.
@@ -3978,7 +4134,7 @@ class RewardsApi extends base_1.BaseAPI {
3978
4134
  * @memberof RewardsApi
3979
4135
  */
3980
4136
  getAffiliateMetadata(userAddress, options) {
3981
- return (0, exports.RewardsApiFp)(this.configuration).getAffiliateMetadata(userAddress, options).then((request) => request(this.axios, this.basePath));
4137
+ return RewardsApiFp(this.configuration).getAffiliateMetadata(userAddress, options).then((request) => request(this.axios, this.basePath));
3982
4138
  }
3983
4139
  /**
3984
4140
  * Returns detailed earnings breakdown for an affiliate users earnings (including perps, spot LP, lending), referral earnings, and total earnings.
@@ -3995,7 +4151,7 @@ class RewardsApi extends base_1.BaseAPI {
3995
4151
  * @memberof RewardsApi
3996
4152
  */
3997
4153
  getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options) {
3998
- return (0, exports.RewardsApiFp)(this.configuration).getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options).then((request) => request(this.axios, this.basePath));
4154
+ return RewardsApiFp(this.configuration).getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options).then((request) => request(this.axios, this.basePath));
3999
4155
  }
4000
4156
  /**
4001
4157
  * Returns performance summary for an affiliate including total referrals, earnings, and rankings.
@@ -4006,7 +4162,7 @@ class RewardsApi extends base_1.BaseAPI {
4006
4162
  * @memberof RewardsApi
4007
4163
  */
4008
4164
  getAffiliateSummary(userAddress, options) {
4009
- return (0, exports.RewardsApiFp)(this.configuration).getAffiliateSummary(userAddress, options).then((request) => request(this.axios, this.basePath));
4165
+ return RewardsApiFp(this.configuration).getAffiliateSummary(userAddress, options).then((request) => request(this.axios, this.basePath));
4010
4166
  }
4011
4167
  /**
4012
4168
  * Returns the rewards earned by users for a specific campaign.
@@ -4019,7 +4175,7 @@ class RewardsApi extends base_1.BaseAPI {
4019
4175
  * @memberof RewardsApi
4020
4176
  */
4021
4177
  getCampaignRewards(campaignName, userAddress, epochNumber, options) {
4022
- return (0, exports.RewardsApiFp)(this.configuration).getCampaignRewards(campaignName, userAddress, epochNumber, options).then((request) => request(this.axios, this.basePath));
4178
+ return RewardsApiFp(this.configuration).getCampaignRewards(campaignName, userAddress, epochNumber, options).then((request) => request(this.axios, this.basePath));
4023
4179
  }
4024
4180
  /**
4025
4181
  * Returns the contract configuration metadata
@@ -4029,7 +4185,7 @@ class RewardsApi extends base_1.BaseAPI {
4029
4185
  * @memberof RewardsApi
4030
4186
  */
4031
4187
  getContractConfig(options) {
4032
- return (0, exports.RewardsApiFp)(this.configuration).getContractConfig(options).then((request) => request(this.axios, this.basePath));
4188
+ return RewardsApiFp(this.configuration).getContractConfig(options).then((request) => request(this.axios, this.basePath));
4033
4189
  }
4034
4190
  /**
4035
4191
  * Returns the rewards earned by users for the intervals.
@@ -4040,7 +4196,7 @@ class RewardsApi extends base_1.BaseAPI {
4040
4196
  * @memberof RewardsApi
4041
4197
  */
4042
4198
  getRewards(intervalNumber, options) {
4043
- return (0, exports.RewardsApiFp)(this.configuration).getRewards(intervalNumber, options).then((request) => request(this.axios, this.basePath));
4199
+ return RewardsApiFp(this.configuration).getRewards(intervalNumber, options).then((request) => request(this.axios, this.basePath));
4044
4200
  }
4045
4201
  /**
4046
4202
  * Returns the metadata for the rewards campaigns.
@@ -4052,7 +4208,7 @@ class RewardsApi extends base_1.BaseAPI {
4052
4208
  * @memberof RewardsApi
4053
4209
  */
4054
4210
  getRewardsCampaignMetadata(campaignName, status, options) {
4055
- return (0, exports.RewardsApiFp)(this.configuration).getRewardsCampaignMetadata(campaignName, status, options).then((request) => request(this.axios, this.basePath));
4211
+ return RewardsApiFp(this.configuration).getRewardsCampaignMetadata(campaignName, status, options).then((request) => request(this.axios, this.basePath));
4056
4212
  }
4057
4213
  /**
4058
4214
  * Returns the latest epoch configs for the campaigns.
@@ -4063,7 +4219,7 @@ class RewardsApi extends base_1.BaseAPI {
4063
4219
  * @memberof RewardsApi
4064
4220
  */
4065
4221
  getRewardsEpochConfigMetadata(intervalNumber, options) {
4066
- return (0, exports.RewardsApiFp)(this.configuration).getRewardsEpochConfigMetadata(intervalNumber, options).then((request) => request(this.axios, this.basePath));
4222
+ return RewardsApiFp(this.configuration).getRewardsEpochConfigMetadata(intervalNumber, options).then((request) => request(this.axios, this.basePath));
4067
4223
  }
4068
4224
  /**
4069
4225
  * Returns the latest or next epoch epoch for campaign.
@@ -4075,7 +4231,7 @@ class RewardsApi extends base_1.BaseAPI {
4075
4231
  * @memberof RewardsApi
4076
4232
  */
4077
4233
  getRewardsEpochMetadata(campaignName, epoch, options) {
4078
- return (0, exports.RewardsApiFp)(this.configuration).getRewardsEpochMetadata(campaignName, epoch, options).then((request) => request(this.axios, this.basePath));
4234
+ return RewardsApiFp(this.configuration).getRewardsEpochMetadata(campaignName, epoch, options).then((request) => request(this.axios, this.basePath));
4079
4235
  }
4080
4236
  /**
4081
4237
  * Returns the interval metadata for provided parameters.
@@ -4086,7 +4242,7 @@ class RewardsApi extends base_1.BaseAPI {
4086
4242
  * @memberof RewardsApi
4087
4243
  */
4088
4244
  getRewardsIntervalMetadata(interval, options) {
4089
- return (0, exports.RewardsApiFp)(this.configuration).getRewardsIntervalMetadata(interval, options).then((request) => request(this.axios, this.basePath));
4245
+ return RewardsApiFp(this.configuration).getRewardsIntervalMetadata(interval, options).then((request) => request(this.axios, this.basePath));
4090
4246
  }
4091
4247
  /**
4092
4248
  * Returns the all time rewards earned by users.
@@ -4096,7 +4252,7 @@ class RewardsApi extends base_1.BaseAPI {
4096
4252
  * @memberof RewardsApi
4097
4253
  */
4098
4254
  getRewardsSummary(options) {
4099
- return (0, exports.RewardsApiFp)(this.configuration).getRewardsSummary(options).then((request) => request(this.axios, this.basePath));
4255
+ return RewardsApiFp(this.configuration).getRewardsSummary(options).then((request) => request(this.axios, this.basePath));
4100
4256
  }
4101
4257
  /**
4102
4258
  * Mark user claims as claimed for the specified campaign name and interval number
@@ -4107,7 +4263,7 @@ class RewardsApi extends base_1.BaseAPI {
4107
4263
  * @memberof RewardsApi
4108
4264
  */
4109
4265
  markAsClaimed(markAsClaimedRequest, options) {
4110
- return (0, exports.RewardsApiFp)(this.configuration).markAsClaimed(markAsClaimedRequest, options).then((request) => request(this.axios, this.basePath));
4266
+ return RewardsApiFp(this.configuration).markAsClaimed(markAsClaimedRequest, options).then((request) => request(this.axios, this.basePath));
4111
4267
  }
4112
4268
  /**
4113
4269
  * Submit an application to become an affiliate.
@@ -4118,7 +4274,7 @@ class RewardsApi extends base_1.BaseAPI {
4118
4274
  * @memberof RewardsApi
4119
4275
  */
4120
4276
  onboardAffiliate(onboardAffiliateRequest, options) {
4121
- return (0, exports.RewardsApiFp)(this.configuration).onboardAffiliate(onboardAffiliateRequest, options).then((request) => request(this.axios, this.basePath));
4277
+ return RewardsApiFp(this.configuration).onboardAffiliate(onboardAffiliateRequest, options).then((request) => request(this.axios, this.basePath));
4122
4278
  }
4123
4279
  /**
4124
4280
  * Onboard a referee with a referral code.
@@ -4129,7 +4285,7 @@ class RewardsApi extends base_1.BaseAPI {
4129
4285
  * @memberof RewardsApi
4130
4286
  */
4131
4287
  onboardReferee(onboardRefereeRequest, options) {
4132
- return (0, exports.RewardsApiFp)(this.configuration).onboardReferee(onboardRefereeRequest, options).then((request) => request(this.axios, this.basePath));
4288
+ return RewardsApiFp(this.configuration).onboardReferee(onboardRefereeRequest, options).then((request) => request(this.axios, this.basePath));
4133
4289
  }
4134
4290
  /**
4135
4291
  * Update the ember refferal share for an affiliate.
@@ -4140,7 +4296,7 @@ class RewardsApi extends base_1.BaseAPI {
4140
4296
  * @memberof RewardsApi
4141
4297
  */
4142
4298
  updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options) {
4143
- return (0, exports.RewardsApiFp)(this.configuration).updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options).then((request) => request(this.axios, this.basePath));
4299
+ return RewardsApiFp(this.configuration).updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options).then((request) => request(this.axios, this.basePath));
4144
4300
  }
4145
4301
  /**
4146
4302
  * Update the fee config for an affiliate.
@@ -4151,14 +4307,13 @@ class RewardsApi extends base_1.BaseAPI {
4151
4307
  * @memberof RewardsApi
4152
4308
  */
4153
4309
  updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options) {
4154
- return (0, exports.RewardsApiFp)(this.configuration).updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options).then((request) => request(this.axios, this.basePath));
4310
+ return RewardsApiFp(this.configuration).updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options).then((request) => request(this.axios, this.basePath));
4155
4311
  }
4156
4312
  }
4157
- exports.RewardsApi = RewardsApi;
4158
4313
  /**
4159
4314
  * @export
4160
4315
  */
4161
- exports.GetAffiliateLeaderDashboardSortByEnum = {
4316
+ export const GetAffiliateLeaderDashboardSortByEnum = {
4162
4317
  PerpsRank: 'perpsRank',
4163
4318
  LendingRank: 'lendingRank',
4164
4319
  SpotRank: 'spotRank'
@@ -4166,14 +4321,14 @@ exports.GetAffiliateLeaderDashboardSortByEnum = {
4166
4321
  /**
4167
4322
  * @export
4168
4323
  */
4169
- exports.GetAffiliateLeaderDashboardSortOrderEnum = {
4324
+ export const GetAffiliateLeaderDashboardSortOrderEnum = {
4170
4325
  Asc: 'asc',
4171
4326
  Desc: 'desc'
4172
4327
  };
4173
4328
  /**
4174
4329
  * @export
4175
4330
  */
4176
- exports.GetAffiliateOverviewSortByEnum = {
4331
+ export const GetAffiliateOverviewSortByEnum = {
4177
4332
  RefreeEarnings: 'refreeEarnings',
4178
4333
  ReferralEarnings: 'referralEarnings',
4179
4334
  TotalEarnings: 'totalEarnings'
@@ -4181,21 +4336,21 @@ exports.GetAffiliateOverviewSortByEnum = {
4181
4336
  /**
4182
4337
  * @export
4183
4338
  */
4184
- exports.GetAffiliateOverviewSortOrderEnum = {
4339
+ export const GetAffiliateOverviewSortOrderEnum = {
4185
4340
  Asc: 'asc',
4186
4341
  Desc: 'desc'
4187
4342
  };
4188
4343
  /**
4189
4344
  * @export
4190
4345
  */
4191
- exports.GetRewardsCampaignMetadataStatusEnum = {
4346
+ export const GetRewardsCampaignMetadataStatusEnum = {
4192
4347
  Active: 'ACTIVE',
4193
4348
  Inactive: 'INACTIVE'
4194
4349
  };
4195
4350
  /**
4196
4351
  * @export
4197
4352
  */
4198
- exports.GetRewardsEpochMetadataEpochEnum = {
4353
+ export const GetRewardsEpochMetadataEpochEnum = {
4199
4354
  Next: 'next',
4200
4355
  Latest: 'latest'
4201
4356
  };
@@ -4203,7 +4358,7 @@ exports.GetRewardsEpochMetadataEpochEnum = {
4203
4358
  * StreamsApi - axios parameter creator
4204
4359
  * @export
4205
4360
  */
4206
- const StreamsApiAxiosParamCreator = function (configuration) {
4361
+ export const StreamsApiAxiosParamCreator = function (configuration) {
4207
4362
  return {
4208
4363
  /**
4209
4364
  * WebSocket Account Streams URL.
@@ -4216,16 +4371,16 @@ const StreamsApiAxiosParamCreator = function (configuration) {
4216
4371
  */
4217
4372
  webSocketAccountData: (authorization_1, upgrade_1, secWebSocketKey_1, secWebSocketVersion_1, ...args_1) => __awaiter(this, [authorization_1, upgrade_1, secWebSocketKey_1, secWebSocketVersion_1, ...args_1], void 0, function* (authorization, upgrade, secWebSocketKey, secWebSocketVersion, options = {}) {
4218
4373
  // verify required parameter 'authorization' is not null or undefined
4219
- (0, common_1.assertParamExists)('webSocketAccountData', 'authorization', authorization);
4374
+ assertParamExists('webSocketAccountData', 'authorization', authorization);
4220
4375
  // verify required parameter 'upgrade' is not null or undefined
4221
- (0, common_1.assertParamExists)('webSocketAccountData', 'upgrade', upgrade);
4376
+ assertParamExists('webSocketAccountData', 'upgrade', upgrade);
4222
4377
  // verify required parameter 'secWebSocketKey' is not null or undefined
4223
- (0, common_1.assertParamExists)('webSocketAccountData', 'secWebSocketKey', secWebSocketKey);
4378
+ assertParamExists('webSocketAccountData', 'secWebSocketKey', secWebSocketKey);
4224
4379
  // verify required parameter 'secWebSocketVersion' is not null or undefined
4225
- (0, common_1.assertParamExists)('webSocketAccountData', 'secWebSocketVersion', secWebSocketVersion);
4380
+ assertParamExists('webSocketAccountData', 'secWebSocketVersion', secWebSocketVersion);
4226
4381
  const localVarPath = `/ws/account`;
4227
4382
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4228
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4229
4384
  let baseOptions;
4230
4385
  if (configuration) {
4231
4386
  baseOptions = configuration.baseOptions;
@@ -4235,7 +4390,7 @@ const StreamsApiAxiosParamCreator = function (configuration) {
4235
4390
  const localVarQueryParameter = {};
4236
4391
  // authentication bearerAuth required
4237
4392
  // http bearer authentication required
4238
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4393
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4239
4394
  if (authorization != null) {
4240
4395
  localVarHeaderParameter['Authorization'] = String(authorization);
4241
4396
  }
@@ -4248,11 +4403,11 @@ const StreamsApiAxiosParamCreator = function (configuration) {
4248
4403
  if (secWebSocketVersion != null) {
4249
4404
  localVarHeaderParameter['Sec-WebSocket-Version'] = String(secWebSocketVersion);
4250
4405
  }
4251
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4406
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4252
4407
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4253
4408
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4254
4409
  return {
4255
- url: (0, common_1.toPathString)(localVarUrlObj),
4410
+ url: toPathString(localVarUrlObj),
4256
4411
  options: localVarRequestOptions,
4257
4412
  };
4258
4413
  }),
@@ -4266,14 +4421,14 @@ const StreamsApiAxiosParamCreator = function (configuration) {
4266
4421
  */
4267
4422
  webSocketMarketData: (upgrade_1, secWebSocketKey_1, secWebSocketVersion_1, ...args_1) => __awaiter(this, [upgrade_1, secWebSocketKey_1, secWebSocketVersion_1, ...args_1], void 0, function* (upgrade, secWebSocketKey, secWebSocketVersion, options = {}) {
4268
4423
  // verify required parameter 'upgrade' is not null or undefined
4269
- (0, common_1.assertParamExists)('webSocketMarketData', 'upgrade', upgrade);
4424
+ assertParamExists('webSocketMarketData', 'upgrade', upgrade);
4270
4425
  // verify required parameter 'secWebSocketKey' is not null or undefined
4271
- (0, common_1.assertParamExists)('webSocketMarketData', 'secWebSocketKey', secWebSocketKey);
4426
+ assertParamExists('webSocketMarketData', 'secWebSocketKey', secWebSocketKey);
4272
4427
  // verify required parameter 'secWebSocketVersion' is not null or undefined
4273
- (0, common_1.assertParamExists)('webSocketMarketData', 'secWebSocketVersion', secWebSocketVersion);
4428
+ assertParamExists('webSocketMarketData', 'secWebSocketVersion', secWebSocketVersion);
4274
4429
  const localVarPath = `/ws/market`;
4275
4430
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4276
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4277
4432
  let baseOptions;
4278
4433
  if (configuration) {
4279
4434
  baseOptions = configuration.baseOptions;
@@ -4290,23 +4445,22 @@ const StreamsApiAxiosParamCreator = function (configuration) {
4290
4445
  if (secWebSocketVersion != null) {
4291
4446
  localVarHeaderParameter['Sec-WebSocket-Version'] = String(secWebSocketVersion);
4292
4447
  }
4293
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4294
4449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4295
4450
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4296
4451
  return {
4297
- url: (0, common_1.toPathString)(localVarUrlObj),
4452
+ url: toPathString(localVarUrlObj),
4298
4453
  options: localVarRequestOptions,
4299
4454
  };
4300
4455
  }),
4301
4456
  };
4302
4457
  };
4303
- exports.StreamsApiAxiosParamCreator = StreamsApiAxiosParamCreator;
4304
4458
  /**
4305
4459
  * StreamsApi - functional programming interface
4306
4460
  * @export
4307
4461
  */
4308
- const StreamsApiFp = function (configuration) {
4309
- const localVarAxiosParamCreator = (0, exports.StreamsApiAxiosParamCreator)(configuration);
4462
+ export const StreamsApiFp = function (configuration) {
4463
+ const localVarAxiosParamCreator = StreamsApiAxiosParamCreator(configuration);
4310
4464
  return {
4311
4465
  /**
4312
4466
  * WebSocket Account Streams URL.
@@ -4322,8 +4476,8 @@ const StreamsApiFp = function (configuration) {
4322
4476
  var _a, _b, _c;
4323
4477
  const localVarAxiosArgs = yield localVarAxiosParamCreator.webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options);
4324
4478
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4325
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StreamsApi.webSocketAccountData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4326
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4479
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StreamsApi.webSocketAccountData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4480
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4327
4481
  });
4328
4482
  },
4329
4483
  /**
@@ -4339,19 +4493,18 @@ const StreamsApiFp = function (configuration) {
4339
4493
  var _a, _b, _c;
4340
4494
  const localVarAxiosArgs = yield localVarAxiosParamCreator.webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options);
4341
4495
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4342
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StreamsApi.webSocketMarketData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4343
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4496
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StreamsApi.webSocketMarketData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4497
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4344
4498
  });
4345
4499
  },
4346
4500
  };
4347
4501
  };
4348
- exports.StreamsApiFp = StreamsApiFp;
4349
4502
  /**
4350
4503
  * StreamsApi - factory interface
4351
4504
  * @export
4352
4505
  */
4353
- const StreamsApiFactory = function (configuration, basePath, axios) {
4354
- const localVarFp = (0, exports.StreamsApiFp)(configuration);
4506
+ export const StreamsApiFactory = function (configuration, basePath, axios) {
4507
+ const localVarFp = StreamsApiFp(configuration);
4355
4508
  return {
4356
4509
  /**
4357
4510
  * WebSocket Account Streams URL.
@@ -4378,14 +4531,13 @@ const StreamsApiFactory = function (configuration, basePath, axios) {
4378
4531
  },
4379
4532
  };
4380
4533
  };
4381
- exports.StreamsApiFactory = StreamsApiFactory;
4382
4534
  /**
4383
4535
  * StreamsApi - object-oriented interface
4384
4536
  * @export
4385
4537
  * @class StreamsApi
4386
4538
  * @extends {BaseAPI}
4387
4539
  */
4388
- class StreamsApi extends base_1.BaseAPI {
4540
+ export class StreamsApi extends BaseAPI {
4389
4541
  /**
4390
4542
  * WebSocket Account Streams URL.
4391
4543
  * @param {string} authorization
@@ -4397,7 +4549,7 @@ class StreamsApi extends base_1.BaseAPI {
4397
4549
  * @memberof StreamsApi
4398
4550
  */
4399
4551
  webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options) {
4400
- return (0, exports.StreamsApiFp)(this.configuration).webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options).then((request) => request(this.axios, this.basePath));
4552
+ return StreamsApiFp(this.configuration).webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options).then((request) => request(this.axios, this.basePath));
4401
4553
  }
4402
4554
  /**
4403
4555
  * WebSocket Market Streams URL.
@@ -4409,39 +4561,38 @@ class StreamsApi extends base_1.BaseAPI {
4409
4561
  * @memberof StreamsApi
4410
4562
  */
4411
4563
  webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options) {
4412
- return (0, exports.StreamsApiFp)(this.configuration).webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options).then((request) => request(this.axios, this.basePath));
4564
+ return StreamsApiFp(this.configuration).webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options).then((request) => request(this.axios, this.basePath));
4413
4565
  }
4414
4566
  }
4415
- exports.StreamsApi = StreamsApi;
4416
4567
  /**
4417
4568
  * @export
4418
4569
  */
4419
- exports.WebSocketAccountDataUpgradeEnum = {
4570
+ export const WebSocketAccountDataUpgradeEnum = {
4420
4571
  Websocket: 'websocket'
4421
4572
  };
4422
4573
  /**
4423
4574
  * @export
4424
4575
  */
4425
- exports.WebSocketAccountDataSecWebSocketVersionEnum = {
4576
+ export const WebSocketAccountDataSecWebSocketVersionEnum = {
4426
4577
  _13: '13'
4427
4578
  };
4428
4579
  /**
4429
4580
  * @export
4430
4581
  */
4431
- exports.WebSocketMarketDataUpgradeEnum = {
4582
+ export const WebSocketMarketDataUpgradeEnum = {
4432
4583
  Websocket: 'websocket'
4433
4584
  };
4434
4585
  /**
4435
4586
  * @export
4436
4587
  */
4437
- exports.WebSocketMarketDataSecWebSocketVersionEnum = {
4588
+ export const WebSocketMarketDataSecWebSocketVersionEnum = {
4438
4589
  _13: '13'
4439
4590
  };
4440
4591
  /**
4441
4592
  * TradeApi - axios parameter creator
4442
4593
  * @export
4443
4594
  */
4444
- const TradeApiAxiosParamCreator = function (configuration) {
4595
+ export const TradeApiAxiosParamCreator = function (configuration) {
4445
4596
  return {
4446
4597
  /**
4447
4598
  * Cancel orders for a market using order hashes. - May be a single order hash or a list of order hashes. - All orders must belong to the same account. - If no order hashes are specified, then will cancel all orders for the given market - All orders being cancelled by request will receive the same time priority.
@@ -4452,10 +4603,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4452
4603
  */
4453
4604
  cancelOrders: (cancelOrdersRequest_1, ...args_1) => __awaiter(this, [cancelOrdersRequest_1, ...args_1], void 0, function* (cancelOrdersRequest, options = {}) {
4454
4605
  // verify required parameter 'cancelOrdersRequest' is not null or undefined
4455
- (0, common_1.assertParamExists)('cancelOrders', 'cancelOrdersRequest', cancelOrdersRequest);
4606
+ assertParamExists('cancelOrders', 'cancelOrdersRequest', cancelOrdersRequest);
4456
4607
  const localVarPath = `/api/v1/trade/orders/cancel`;
4457
4608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4458
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4459
4610
  let baseOptions;
4460
4611
  if (configuration) {
4461
4612
  baseOptions = configuration.baseOptions;
@@ -4465,14 +4616,14 @@ const TradeApiAxiosParamCreator = function (configuration) {
4465
4616
  const localVarQueryParameter = {};
4466
4617
  // authentication bearerAuth required
4467
4618
  // http bearer authentication required
4468
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4619
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4469
4620
  localVarHeaderParameter['Content-Type'] = 'application/json';
4470
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4621
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4471
4622
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4472
4623
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4473
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cancelOrdersRequest, localVarRequestOptions, configuration);
4624
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelOrdersRequest, localVarRequestOptions, configuration);
4474
4625
  return {
4475
- url: (0, common_1.toPathString)(localVarUrlObj),
4626
+ url: toPathString(localVarUrlObj),
4476
4627
  options: localVarRequestOptions,
4477
4628
  };
4478
4629
  }),
@@ -4485,10 +4636,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4485
4636
  */
4486
4637
  cancelStandbyOrders: (cancelOrdersRequest_1, ...args_1) => __awaiter(this, [cancelOrdersRequest_1, ...args_1], void 0, function* (cancelOrdersRequest, options = {}) {
4487
4638
  // verify required parameter 'cancelOrdersRequest' is not null or undefined
4488
- (0, common_1.assertParamExists)('cancelStandbyOrders', 'cancelOrdersRequest', cancelOrdersRequest);
4639
+ assertParamExists('cancelStandbyOrders', 'cancelOrdersRequest', cancelOrdersRequest);
4489
4640
  const localVarPath = `/api/v1/trade/orders/cancel/standby`;
4490
4641
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4491
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4642
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4492
4643
  let baseOptions;
4493
4644
  if (configuration) {
4494
4645
  baseOptions = configuration.baseOptions;
@@ -4498,14 +4649,14 @@ const TradeApiAxiosParamCreator = function (configuration) {
4498
4649
  const localVarQueryParameter = {};
4499
4650
  // authentication bearerAuth required
4500
4651
  // http bearer authentication required
4501
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4652
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4502
4653
  localVarHeaderParameter['Content-Type'] = 'application/json';
4503
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4654
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4504
4655
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4505
4656
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4506
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cancelOrdersRequest, localVarRequestOptions, configuration);
4657
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelOrdersRequest, localVarRequestOptions, configuration);
4507
4658
  return {
4508
- url: (0, common_1.toPathString)(localVarUrlObj),
4659
+ url: toPathString(localVarUrlObj),
4509
4660
  options: localVarRequestOptions,
4510
4661
  };
4511
4662
  }),
@@ -4519,7 +4670,7 @@ const TradeApiAxiosParamCreator = function (configuration) {
4519
4670
  getOpenOrders: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) {
4520
4671
  const localVarPath = `/api/v1/trade/openOrders`;
4521
4672
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4522
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4673
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4523
4674
  let baseOptions;
4524
4675
  if (configuration) {
4525
4676
  baseOptions = configuration.baseOptions;
@@ -4529,15 +4680,15 @@ const TradeApiAxiosParamCreator = function (configuration) {
4529
4680
  const localVarQueryParameter = {};
4530
4681
  // authentication bearerAuth required
4531
4682
  // http bearer authentication required
4532
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4683
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4533
4684
  if (symbol !== undefined) {
4534
4685
  localVarQueryParameter['symbol'] = symbol;
4535
4686
  }
4536
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4687
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4537
4688
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4538
4689
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4539
4690
  return {
4540
- url: (0, common_1.toPathString)(localVarUrlObj),
4691
+ url: toPathString(localVarUrlObj),
4541
4692
  options: localVarRequestOptions,
4542
4693
  };
4543
4694
  }),
@@ -4551,7 +4702,7 @@ const TradeApiAxiosParamCreator = function (configuration) {
4551
4702
  getStandbyOrders: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) {
4552
4703
  const localVarPath = `/api/v1/trade/standbyOrders`;
4553
4704
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4554
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4555
4706
  let baseOptions;
4556
4707
  if (configuration) {
4557
4708
  baseOptions = configuration.baseOptions;
@@ -4561,15 +4712,15 @@ const TradeApiAxiosParamCreator = function (configuration) {
4561
4712
  const localVarQueryParameter = {};
4562
4713
  // authentication bearerAuth required
4563
4714
  // http bearer authentication required
4564
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4715
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4565
4716
  if (symbol !== undefined) {
4566
4717
  localVarQueryParameter['symbol'] = symbol;
4567
4718
  }
4568
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4719
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4569
4720
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4570
4721
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4571
4722
  return {
4572
- url: (0, common_1.toPathString)(localVarUrlObj),
4723
+ url: toPathString(localVarUrlObj),
4573
4724
  options: localVarRequestOptions,
4574
4725
  };
4575
4726
  }),
@@ -4582,10 +4733,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4582
4733
  */
4583
4734
  postCreateOrder: (createOrderRequest_1, ...args_1) => __awaiter(this, [createOrderRequest_1, ...args_1], void 0, function* (createOrderRequest, options = {}) {
4584
4735
  // verify required parameter 'createOrderRequest' is not null or undefined
4585
- (0, common_1.assertParamExists)('postCreateOrder', 'createOrderRequest', createOrderRequest);
4736
+ assertParamExists('postCreateOrder', 'createOrderRequest', createOrderRequest);
4586
4737
  const localVarPath = `/api/v1/trade/orders`;
4587
4738
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4588
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4739
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4589
4740
  let baseOptions;
4590
4741
  if (configuration) {
4591
4742
  baseOptions = configuration.baseOptions;
@@ -4595,14 +4746,14 @@ const TradeApiAxiosParamCreator = function (configuration) {
4595
4746
  const localVarQueryParameter = {};
4596
4747
  // authentication bearerAuth required
4597
4748
  // http bearer authentication required
4598
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4749
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4599
4750
  localVarHeaderParameter['Content-Type'] = 'application/json';
4600
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4751
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4601
4752
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4602
4753
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4603
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrderRequest, localVarRequestOptions, configuration);
4754
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrderRequest, localVarRequestOptions, configuration);
4604
4755
  return {
4605
- url: (0, common_1.toPathString)(localVarUrlObj),
4756
+ url: toPathString(localVarUrlObj),
4606
4757
  options: localVarRequestOptions,
4607
4758
  };
4608
4759
  }),
@@ -4615,10 +4766,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4615
4766
  */
4616
4767
  postWithdraw: (withdrawRequest_1, ...args_1) => __awaiter(this, [withdrawRequest_1, ...args_1], void 0, function* (withdrawRequest, options = {}) {
4617
4768
  // verify required parameter 'withdrawRequest' is not null or undefined
4618
- (0, common_1.assertParamExists)('postWithdraw', 'withdrawRequest', withdrawRequest);
4769
+ assertParamExists('postWithdraw', 'withdrawRequest', withdrawRequest);
4619
4770
  const localVarPath = `/api/v1/trade/withdraw`;
4620
4771
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4621
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4772
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4622
4773
  let baseOptions;
4623
4774
  if (configuration) {
4624
4775
  baseOptions = configuration.baseOptions;
@@ -4628,14 +4779,14 @@ const TradeApiAxiosParamCreator = function (configuration) {
4628
4779
  const localVarQueryParameter = {};
4629
4780
  // authentication bearerAuth required
4630
4781
  // http bearer authentication required
4631
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4782
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4632
4783
  localVarHeaderParameter['Content-Type'] = 'application/json';
4633
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4784
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4634
4785
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4635
4786
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4636
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(withdrawRequest, localVarRequestOptions, configuration);
4787
+ localVarRequestOptions.data = serializeDataIfNeeded(withdrawRequest, localVarRequestOptions, configuration);
4637
4788
  return {
4638
- url: (0, common_1.toPathString)(localVarUrlObj),
4789
+ url: toPathString(localVarUrlObj),
4639
4790
  options: localVarRequestOptions,
4640
4791
  };
4641
4792
  }),
@@ -4648,10 +4799,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4648
4799
  */
4649
4800
  putAdjustIsolatedMargin: (adjustIsolatedMarginRequest_1, ...args_1) => __awaiter(this, [adjustIsolatedMarginRequest_1, ...args_1], void 0, function* (adjustIsolatedMarginRequest, options = {}) {
4650
4801
  // verify required parameter 'adjustIsolatedMarginRequest' is not null or undefined
4651
- (0, common_1.assertParamExists)('putAdjustIsolatedMargin', 'adjustIsolatedMarginRequest', adjustIsolatedMarginRequest);
4802
+ assertParamExists('putAdjustIsolatedMargin', 'adjustIsolatedMarginRequest', adjustIsolatedMarginRequest);
4652
4803
  const localVarPath = `/api/v1/trade/adjustIsolatedMargin`;
4653
4804
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4654
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4805
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4655
4806
  let baseOptions;
4656
4807
  if (configuration) {
4657
4808
  baseOptions = configuration.baseOptions;
@@ -4661,14 +4812,14 @@ const TradeApiAxiosParamCreator = function (configuration) {
4661
4812
  const localVarQueryParameter = {};
4662
4813
  // authentication bearerAuth required
4663
4814
  // http bearer authentication required
4664
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4815
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4665
4816
  localVarHeaderParameter['Content-Type'] = 'application/json';
4666
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4817
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4667
4818
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4668
4819
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4669
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adjustIsolatedMarginRequest, localVarRequestOptions, configuration);
4820
+ localVarRequestOptions.data = serializeDataIfNeeded(adjustIsolatedMarginRequest, localVarRequestOptions, configuration);
4670
4821
  return {
4671
- url: (0, common_1.toPathString)(localVarUrlObj),
4822
+ url: toPathString(localVarUrlObj),
4672
4823
  options: localVarRequestOptions,
4673
4824
  };
4674
4825
  }),
@@ -4681,10 +4832,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4681
4832
  */
4682
4833
  putAuthorizeAccount: (accountAuthorizationRequest_1, ...args_1) => __awaiter(this, [accountAuthorizationRequest_1, ...args_1], void 0, function* (accountAuthorizationRequest, options = {}) {
4683
4834
  // verify required parameter 'accountAuthorizationRequest' is not null or undefined
4684
- (0, common_1.assertParamExists)('putAuthorizeAccount', 'accountAuthorizationRequest', accountAuthorizationRequest);
4835
+ assertParamExists('putAuthorizeAccount', 'accountAuthorizationRequest', accountAuthorizationRequest);
4685
4836
  const localVarPath = `/api/v1/trade/accounts/authorize`;
4686
4837
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4687
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4838
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4688
4839
  let baseOptions;
4689
4840
  if (configuration) {
4690
4841
  baseOptions = configuration.baseOptions;
@@ -4693,12 +4844,12 @@ const TradeApiAxiosParamCreator = function (configuration) {
4693
4844
  const localVarHeaderParameter = {};
4694
4845
  const localVarQueryParameter = {};
4695
4846
  localVarHeaderParameter['Content-Type'] = 'application/json';
4696
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4847
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4697
4848
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4698
4849
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4699
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountAuthorizationRequest, localVarRequestOptions, configuration);
4850
+ localVarRequestOptions.data = serializeDataIfNeeded(accountAuthorizationRequest, localVarRequestOptions, configuration);
4700
4851
  return {
4701
- url: (0, common_1.toPathString)(localVarUrlObj),
4852
+ url: toPathString(localVarUrlObj),
4702
4853
  options: localVarRequestOptions,
4703
4854
  };
4704
4855
  }),
@@ -4711,10 +4862,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4711
4862
  */
4712
4863
  putDeauthorizeAccount: (accountAuthorizationRequest_1, ...args_1) => __awaiter(this, [accountAuthorizationRequest_1, ...args_1], void 0, function* (accountAuthorizationRequest, options = {}) {
4713
4864
  // verify required parameter 'accountAuthorizationRequest' is not null or undefined
4714
- (0, common_1.assertParamExists)('putDeauthorizeAccount', 'accountAuthorizationRequest', accountAuthorizationRequest);
4865
+ assertParamExists('putDeauthorizeAccount', 'accountAuthorizationRequest', accountAuthorizationRequest);
4715
4866
  const localVarPath = `/api/v1/trade/accounts/deauthorize`;
4716
4867
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4717
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4868
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4718
4869
  let baseOptions;
4719
4870
  if (configuration) {
4720
4871
  baseOptions = configuration.baseOptions;
@@ -4723,12 +4874,12 @@ const TradeApiAxiosParamCreator = function (configuration) {
4723
4874
  const localVarHeaderParameter = {};
4724
4875
  const localVarQueryParameter = {};
4725
4876
  localVarHeaderParameter['Content-Type'] = 'application/json';
4726
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4727
4878
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4728
4879
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4729
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountAuthorizationRequest, localVarRequestOptions, configuration);
4880
+ localVarRequestOptions.data = serializeDataIfNeeded(accountAuthorizationRequest, localVarRequestOptions, configuration);
4730
4881
  return {
4731
- url: (0, common_1.toPathString)(localVarUrlObj),
4882
+ url: toPathString(localVarUrlObj),
4732
4883
  options: localVarRequestOptions,
4733
4884
  };
4734
4885
  }),
@@ -4741,10 +4892,10 @@ const TradeApiAxiosParamCreator = function (configuration) {
4741
4892
  */
4742
4893
  putLeverageUpdate: (accountPositionLeverageUpdateRequest_1, ...args_1) => __awaiter(this, [accountPositionLeverageUpdateRequest_1, ...args_1], void 0, function* (accountPositionLeverageUpdateRequest, options = {}) {
4743
4894
  // verify required parameter 'accountPositionLeverageUpdateRequest' is not null or undefined
4744
- (0, common_1.assertParamExists)('putLeverageUpdate', 'accountPositionLeverageUpdateRequest', accountPositionLeverageUpdateRequest);
4895
+ assertParamExists('putLeverageUpdate', 'accountPositionLeverageUpdateRequest', accountPositionLeverageUpdateRequest);
4745
4896
  const localVarPath = `/api/v1/trade/leverage`;
4746
4897
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4747
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4898
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4748
4899
  let baseOptions;
4749
4900
  if (configuration) {
4750
4901
  baseOptions = configuration.baseOptions;
@@ -4754,26 +4905,25 @@ const TradeApiAxiosParamCreator = function (configuration) {
4754
4905
  const localVarQueryParameter = {};
4755
4906
  // authentication bearerAuth required
4756
4907
  // http bearer authentication required
4757
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4908
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4758
4909
  localVarHeaderParameter['Content-Type'] = 'application/json';
4759
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4910
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4760
4911
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4761
4912
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4762
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountPositionLeverageUpdateRequest, localVarRequestOptions, configuration);
4913
+ localVarRequestOptions.data = serializeDataIfNeeded(accountPositionLeverageUpdateRequest, localVarRequestOptions, configuration);
4763
4914
  return {
4764
- url: (0, common_1.toPathString)(localVarUrlObj),
4915
+ url: toPathString(localVarUrlObj),
4765
4916
  options: localVarRequestOptions,
4766
4917
  };
4767
4918
  }),
4768
4919
  };
4769
4920
  };
4770
- exports.TradeApiAxiosParamCreator = TradeApiAxiosParamCreator;
4771
4921
  /**
4772
4922
  * TradeApi - functional programming interface
4773
4923
  * @export
4774
4924
  */
4775
- const TradeApiFp = function (configuration) {
4776
- const localVarAxiosParamCreator = (0, exports.TradeApiAxiosParamCreator)(configuration);
4925
+ export const TradeApiFp = function (configuration) {
4926
+ const localVarAxiosParamCreator = TradeApiAxiosParamCreator(configuration);
4777
4927
  return {
4778
4928
  /**
4779
4929
  * Cancel orders for a market using order hashes. - May be a single order hash or a list of order hashes. - All orders must belong to the same account. - If no order hashes are specified, then will cancel all orders for the given market - All orders being cancelled by request will receive the same time priority.
@@ -4787,8 +4937,8 @@ const TradeApiFp = function (configuration) {
4787
4937
  var _a, _b, _c;
4788
4938
  const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOrders(cancelOrdersRequest, options);
4789
4939
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4790
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.cancelOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4791
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4940
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.cancelOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4941
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4792
4942
  });
4793
4943
  },
4794
4944
  /**
@@ -4803,8 +4953,8 @@ const TradeApiFp = function (configuration) {
4803
4953
  var _a, _b, _c;
4804
4954
  const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelStandbyOrders(cancelOrdersRequest, options);
4805
4955
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4806
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.cancelStandbyOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4807
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4956
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.cancelStandbyOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4957
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4808
4958
  });
4809
4959
  },
4810
4960
  /**
@@ -4819,8 +4969,8 @@ const TradeApiFp = function (configuration) {
4819
4969
  var _a, _b, _c;
4820
4970
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenOrders(symbol, options);
4821
4971
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4822
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.getOpenOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4823
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4972
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.getOpenOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4973
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4824
4974
  });
4825
4975
  },
4826
4976
  /**
@@ -4835,8 +4985,8 @@ const TradeApiFp = function (configuration) {
4835
4985
  var _a, _b, _c;
4836
4986
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getStandbyOrders(symbol, options);
4837
4987
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4838
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.getStandbyOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4839
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4988
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.getStandbyOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4989
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4840
4990
  });
4841
4991
  },
4842
4992
  /**
@@ -4851,8 +5001,8 @@ const TradeApiFp = function (configuration) {
4851
5001
  var _a, _b, _c;
4852
5002
  const localVarAxiosArgs = yield localVarAxiosParamCreator.postCreateOrder(createOrderRequest, options);
4853
5003
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4854
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.postCreateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4855
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5004
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.postCreateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5005
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4856
5006
  });
4857
5007
  },
4858
5008
  /**
@@ -4867,8 +5017,8 @@ const TradeApiFp = function (configuration) {
4867
5017
  var _a, _b, _c;
4868
5018
  const localVarAxiosArgs = yield localVarAxiosParamCreator.postWithdraw(withdrawRequest, options);
4869
5019
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4870
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.postWithdraw']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4871
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5020
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.postWithdraw']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4872
5022
  });
4873
5023
  },
4874
5024
  /**
@@ -4883,8 +5033,8 @@ const TradeApiFp = function (configuration) {
4883
5033
  var _a, _b, _c;
4884
5034
  const localVarAxiosArgs = yield localVarAxiosParamCreator.putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options);
4885
5035
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4886
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.putAdjustIsolatedMargin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4887
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5036
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.putAdjustIsolatedMargin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5037
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4888
5038
  });
4889
5039
  },
4890
5040
  /**
@@ -4899,8 +5049,8 @@ const TradeApiFp = function (configuration) {
4899
5049
  var _a, _b, _c;
4900
5050
  const localVarAxiosArgs = yield localVarAxiosParamCreator.putAuthorizeAccount(accountAuthorizationRequest, options);
4901
5051
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4902
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.putAuthorizeAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4903
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5052
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.putAuthorizeAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5053
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4904
5054
  });
4905
5055
  },
4906
5056
  /**
@@ -4915,8 +5065,8 @@ const TradeApiFp = function (configuration) {
4915
5065
  var _a, _b, _c;
4916
5066
  const localVarAxiosArgs = yield localVarAxiosParamCreator.putDeauthorizeAccount(accountAuthorizationRequest, options);
4917
5067
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4918
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.putDeauthorizeAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4919
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5068
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.putDeauthorizeAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5069
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4920
5070
  });
4921
5071
  },
4922
5072
  /**
@@ -4931,19 +5081,18 @@ const TradeApiFp = function (configuration) {
4931
5081
  var _a, _b, _c;
4932
5082
  const localVarAxiosArgs = yield localVarAxiosParamCreator.putLeverageUpdate(accountPositionLeverageUpdateRequest, options);
4933
5083
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4934
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TradeApi.putLeverageUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4935
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5084
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TradeApi.putLeverageUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5085
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4936
5086
  });
4937
5087
  },
4938
5088
  };
4939
5089
  };
4940
- exports.TradeApiFp = TradeApiFp;
4941
5090
  /**
4942
5091
  * TradeApi - factory interface
4943
5092
  * @export
4944
5093
  */
4945
- const TradeApiFactory = function (configuration, basePath, axios) {
4946
- const localVarFp = (0, exports.TradeApiFp)(configuration);
5094
+ export const TradeApiFactory = function (configuration, basePath, axios) {
5095
+ const localVarFp = TradeApiFp(configuration);
4947
5096
  return {
4948
5097
  /**
4949
5098
  * Cancel orders for a market using order hashes. - May be a single order hash or a list of order hashes. - All orders must belong to the same account. - If no order hashes are specified, then will cancel all orders for the given market - All orders being cancelled by request will receive the same time priority.
@@ -5047,14 +5196,13 @@ const TradeApiFactory = function (configuration, basePath, axios) {
5047
5196
  },
5048
5197
  };
5049
5198
  };
5050
- exports.TradeApiFactory = TradeApiFactory;
5051
5199
  /**
5052
5200
  * TradeApi - object-oriented interface
5053
5201
  * @export
5054
5202
  * @class TradeApi
5055
5203
  * @extends {BaseAPI}
5056
5204
  */
5057
- class TradeApi extends base_1.BaseAPI {
5205
+ export class TradeApi extends BaseAPI {
5058
5206
  /**
5059
5207
  * Cancel orders for a market using order hashes. - May be a single order hash or a list of order hashes. - All orders must belong to the same account. - If no order hashes are specified, then will cancel all orders for the given market - All orders being cancelled by request will receive the same time priority.
5060
5208
  * @summary /trade/orders/cancel
@@ -5064,7 +5212,7 @@ class TradeApi extends base_1.BaseAPI {
5064
5212
  * @memberof TradeApi
5065
5213
  */
5066
5214
  cancelOrders(cancelOrdersRequest, options) {
5067
- return (0, exports.TradeApiFp)(this.configuration).cancelOrders(cancelOrdersRequest, options).then((request) => request(this.axios, this.basePath));
5215
+ return TradeApiFp(this.configuration).cancelOrders(cancelOrdersRequest, options).then((request) => request(this.axios, this.basePath));
5068
5216
  }
5069
5217
  /**
5070
5218
  * Cancel orders in standby for a market using order hashes. - May be a single order hash or a list of order hashes. - All orders must belong to the same account. - If no order hashes are specified, then will cancel all orders for the given market - All orders being cancelled by request will receive the same time priority.
@@ -5075,7 +5223,7 @@ class TradeApi extends base_1.BaseAPI {
5075
5223
  * @memberof TradeApi
5076
5224
  */
5077
5225
  cancelStandbyOrders(cancelOrdersRequest, options) {
5078
- return (0, exports.TradeApiFp)(this.configuration).cancelStandbyOrders(cancelOrdersRequest, options).then((request) => request(this.axios, this.basePath));
5226
+ return TradeApiFp(this.configuration).cancelStandbyOrders(cancelOrdersRequest, options).then((request) => request(this.axios, this.basePath));
5079
5227
  }
5080
5228
  /**
5081
5229
  * Retrieve details of open orders for a specific account.
@@ -5086,7 +5234,7 @@ class TradeApi extends base_1.BaseAPI {
5086
5234
  * @memberof TradeApi
5087
5235
  */
5088
5236
  getOpenOrders(symbol, options) {
5089
- return (0, exports.TradeApiFp)(this.configuration).getOpenOrders(symbol, options).then((request) => request(this.axios, this.basePath));
5237
+ return TradeApiFp(this.configuration).getOpenOrders(symbol, options).then((request) => request(this.axios, this.basePath));
5090
5238
  }
5091
5239
  /**
5092
5240
  * Retrieve details of orders in standby for a specific account.
@@ -5097,7 +5245,7 @@ class TradeApi extends base_1.BaseAPI {
5097
5245
  * @memberof TradeApi
5098
5246
  */
5099
5247
  getStandbyOrders(symbol, options) {
5100
- return (0, exports.TradeApiFp)(this.configuration).getStandbyOrders(symbol, options).then((request) => request(this.axios, this.basePath));
5248
+ return TradeApiFp(this.configuration).getStandbyOrders(symbol, options).then((request) => request(this.axios, this.basePath));
5101
5249
  }
5102
5250
  /**
5103
5251
  * Submit a new order for execution.
@@ -5108,7 +5256,7 @@ class TradeApi extends base_1.BaseAPI {
5108
5256
  * @memberof TradeApi
5109
5257
  */
5110
5258
  postCreateOrder(createOrderRequest, options) {
5111
- return (0, exports.TradeApiFp)(this.configuration).postCreateOrder(createOrderRequest, options).then((request) => request(this.axios, this.basePath));
5259
+ return TradeApiFp(this.configuration).postCreateOrder(createOrderRequest, options).then((request) => request(this.axios, this.basePath));
5112
5260
  }
5113
5261
  /**
5114
5262
  * Initiates a withdraw action to remove some amount of funds from a user\'s account.
@@ -5119,7 +5267,7 @@ class TradeApi extends base_1.BaseAPI {
5119
5267
  * @memberof TradeApi
5120
5268
  */
5121
5269
  postWithdraw(withdrawRequest, options) {
5122
- return (0, exports.TradeApiFp)(this.configuration).postWithdraw(withdrawRequest, options).then((request) => request(this.axios, this.basePath));
5270
+ return TradeApiFp(this.configuration).postWithdraw(withdrawRequest, options).then((request) => request(this.axios, this.basePath));
5123
5271
  }
5124
5272
  /**
5125
5273
  * Adjust margin for an isolated position on a specific market.
@@ -5130,7 +5278,7 @@ class TradeApi extends base_1.BaseAPI {
5130
5278
  * @memberof TradeApi
5131
5279
  */
5132
5280
  putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options) {
5133
- return (0, exports.TradeApiFp)(this.configuration).putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options).then((request) => request(this.axios, this.basePath));
5281
+ return TradeApiFp(this.configuration).putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options).then((request) => request(this.axios, this.basePath));
5134
5282
  }
5135
5283
  /**
5136
5284
  * Authorizes an account to trade, perform liquidations and more, on behalf of another account.
@@ -5141,7 +5289,7 @@ class TradeApi extends base_1.BaseAPI {
5141
5289
  * @memberof TradeApi
5142
5290
  */
5143
5291
  putAuthorizeAccount(accountAuthorizationRequest, options) {
5144
- return (0, exports.TradeApiFp)(this.configuration).putAuthorizeAccount(accountAuthorizationRequest, options).then((request) => request(this.axios, this.basePath));
5292
+ return TradeApiFp(this.configuration).putAuthorizeAccount(accountAuthorizationRequest, options).then((request) => request(this.axios, this.basePath));
5145
5293
  }
5146
5294
  /**
5147
5295
  * Deauthorizes an account to trade, perform liquidations and more, on behalf of another account.
@@ -5152,7 +5300,7 @@ class TradeApi extends base_1.BaseAPI {
5152
5300
  * @memberof TradeApi
5153
5301
  */
5154
5302
  putDeauthorizeAccount(accountAuthorizationRequest, options) {
5155
- return (0, exports.TradeApiFp)(this.configuration).putDeauthorizeAccount(accountAuthorizationRequest, options).then((request) => request(this.axios, this.basePath));
5303
+ return TradeApiFp(this.configuration).putDeauthorizeAccount(accountAuthorizationRequest, options).then((request) => request(this.axios, this.basePath));
5156
5304
  }
5157
5305
  /**
5158
5306
  * Updates leverage for positions of a given market and closes all open orders for that market.
@@ -5163,8 +5311,384 @@ class TradeApi extends base_1.BaseAPI {
5163
5311
  * @memberof TradeApi
5164
5312
  */
5165
5313
  putLeverageUpdate(accountPositionLeverageUpdateRequest, options) {
5166
- return (0, exports.TradeApiFp)(this.configuration).putLeverageUpdate(accountPositionLeverageUpdateRequest, options).then((request) => request(this.axios, this.basePath));
5314
+ return TradeApiFp(this.configuration).putLeverageUpdate(accountPositionLeverageUpdateRequest, options).then((request) => request(this.axios, this.basePath));
5315
+ }
5316
+ }
5317
+ /**
5318
+ * VeraPointsApi - axios parameter creator
5319
+ * @export
5320
+ */
5321
+ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5322
+ return {
5323
+ /**
5324
+ * Claim a swap transaction for Vera Points attribution.
5325
+ * @summary /vera/swap/claim
5326
+ * @param {SwapClaimRequest} swapClaimRequest
5327
+ * @param {*} [options] Override http request option.
5328
+ * @throws {RequiredError}
5329
+ */
5330
+ claimSwap: (swapClaimRequest_1, ...args_1) => __awaiter(this, [swapClaimRequest_1, ...args_1], void 0, function* (swapClaimRequest, options = {}) {
5331
+ // verify required parameter 'swapClaimRequest' is not null or undefined
5332
+ assertParamExists('claimSwap', 'swapClaimRequest', swapClaimRequest);
5333
+ const localVarPath = `/v1/vera/swap/claim`;
5334
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5335
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5336
+ let baseOptions;
5337
+ if (configuration) {
5338
+ baseOptions = configuration.baseOptions;
5339
+ }
5340
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5341
+ const localVarHeaderParameter = {};
5342
+ const localVarQueryParameter = {};
5343
+ // authentication bearerAuth required
5344
+ // http bearer authentication required
5345
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5346
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5349
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5350
+ localVarRequestOptions.data = serializeDataIfNeeded(swapClaimRequest, localVarRequestOptions, configuration);
5351
+ return {
5352
+ url: toPathString(localVarUrlObj),
5353
+ options: localVarRequestOptions,
5354
+ };
5355
+ }),
5356
+ /**
5357
+ * Claim a vault deposit transaction for Vera Points attribution.
5358
+ * @summary /vera/vault/claim
5359
+ * @param {VaultClaimRequest} vaultClaimRequest
5360
+ * @param {*} [options] Override http request option.
5361
+ * @throws {RequiredError}
5362
+ */
5363
+ claimVault: (vaultClaimRequest_1, ...args_1) => __awaiter(this, [vaultClaimRequest_1, ...args_1], void 0, function* (vaultClaimRequest, options = {}) {
5364
+ // verify required parameter 'vaultClaimRequest' is not null or undefined
5365
+ assertParamExists('claimVault', 'vaultClaimRequest', vaultClaimRequest);
5366
+ const localVarPath = `/v1/vera/vault/claim`;
5367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5369
+ let baseOptions;
5370
+ if (configuration) {
5371
+ baseOptions = configuration.baseOptions;
5372
+ }
5373
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5374
+ const localVarHeaderParameter = {};
5375
+ const localVarQueryParameter = {};
5376
+ // authentication bearerAuth required
5377
+ // http bearer authentication required
5378
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5379
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5380
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5382
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5383
+ localVarRequestOptions.data = serializeDataIfNeeded(vaultClaimRequest, localVarRequestOptions, configuration);
5384
+ return {
5385
+ url: toPathString(localVarUrlObj),
5386
+ options: localVarRequestOptions,
5387
+ };
5388
+ }),
5389
+ /**
5390
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5391
+ * @summary Get user\'s points, tier, and rank
5392
+ * @param {string} userAddress Wallet address to look up balance for.
5393
+ * @param {*} [options] Override http request option.
5394
+ * @throws {RequiredError}
5395
+ */
5396
+ getBalance: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
5397
+ // verify required parameter 'userAddress' is not null or undefined
5398
+ assertParamExists('getBalance', 'userAddress', userAddress);
5399
+ const localVarPath = `/v1/vera/balance`;
5400
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5401
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5402
+ let baseOptions;
5403
+ if (configuration) {
5404
+ baseOptions = configuration.baseOptions;
5405
+ }
5406
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5407
+ const localVarHeaderParameter = {};
5408
+ const localVarQueryParameter = {};
5409
+ if (userAddress !== undefined) {
5410
+ localVarQueryParameter['userAddress'] = userAddress;
5411
+ }
5412
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5413
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5414
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5415
+ return {
5416
+ url: toPathString(localVarUrlObj),
5417
+ options: localVarRequestOptions,
5418
+ };
5419
+ }),
5420
+ /**
5421
+ * Paginated leaderboard ranked by lifetime Vera Points.
5422
+ * @summary Top users by lifetime points
5423
+ * @param {number} [limit] Number of entries to return.
5424
+ * @param {number} [offset] Number of entries to skip.
5425
+ * @param {*} [options] Override http request option.
5426
+ * @throws {RequiredError}
5427
+ */
5428
+ getLeaderboard: (limit_1, offset_1, ...args_1) => __awaiter(this, [limit_1, offset_1, ...args_1], void 0, function* (limit, offset, options = {}) {
5429
+ const localVarPath = `/v1/vera/leaderboard`;
5430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5432
+ let baseOptions;
5433
+ if (configuration) {
5434
+ baseOptions = configuration.baseOptions;
5435
+ }
5436
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5437
+ const localVarHeaderParameter = {};
5438
+ const localVarQueryParameter = {};
5439
+ if (limit !== undefined) {
5440
+ localVarQueryParameter['limit'] = limit;
5441
+ }
5442
+ if (offset !== undefined) {
5443
+ localVarQueryParameter['offset'] = offset;
5444
+ }
5445
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5447
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5448
+ return {
5449
+ url: toPathString(localVarUrlObj),
5450
+ options: localVarRequestOptions,
5451
+ };
5452
+ }),
5453
+ /**
5454
+ * 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.
5455
+ * @summary /vera/session
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ */
5459
+ recordSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5460
+ const localVarPath = `/v1/vera/session`;
5461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5463
+ let baseOptions;
5464
+ if (configuration) {
5465
+ baseOptions = configuration.baseOptions;
5466
+ }
5467
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5468
+ const localVarHeaderParameter = {};
5469
+ const localVarQueryParameter = {};
5470
+ // authentication bearerAuth required
5471
+ // http bearer authentication required
5472
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5475
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5476
+ return {
5477
+ url: toPathString(localVarUrlObj),
5478
+ options: localVarRequestOptions,
5479
+ };
5480
+ }),
5481
+ };
5482
+ };
5483
+ /**
5484
+ * VeraPointsApi - functional programming interface
5485
+ * @export
5486
+ */
5487
+ export const VeraPointsApiFp = function (configuration) {
5488
+ const localVarAxiosParamCreator = VeraPointsApiAxiosParamCreator(configuration);
5489
+ return {
5490
+ /**
5491
+ * Claim a swap transaction for Vera Points attribution.
5492
+ * @summary /vera/swap/claim
5493
+ * @param {SwapClaimRequest} swapClaimRequest
5494
+ * @param {*} [options] Override http request option.
5495
+ * @throws {RequiredError}
5496
+ */
5497
+ claimSwap(swapClaimRequest, options) {
5498
+ return __awaiter(this, void 0, void 0, function* () {
5499
+ var _a, _b, _c;
5500
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimSwap(swapClaimRequest, options);
5501
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5502
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VeraPointsApi.claimSwap']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5503
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5504
+ });
5505
+ },
5506
+ /**
5507
+ * Claim a vault deposit transaction for Vera Points attribution.
5508
+ * @summary /vera/vault/claim
5509
+ * @param {VaultClaimRequest} vaultClaimRequest
5510
+ * @param {*} [options] Override http request option.
5511
+ * @throws {RequiredError}
5512
+ */
5513
+ claimVault(vaultClaimRequest, options) {
5514
+ return __awaiter(this, void 0, void 0, function* () {
5515
+ var _a, _b, _c;
5516
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimVault(vaultClaimRequest, options);
5517
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5518
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VeraPointsApi.claimVault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5519
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5520
+ });
5521
+ },
5522
+ /**
5523
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5524
+ * @summary Get user\'s points, tier, and rank
5525
+ * @param {string} userAddress Wallet address to look up balance for.
5526
+ * @param {*} [options] Override http request option.
5527
+ * @throws {RequiredError}
5528
+ */
5529
+ getBalance(userAddress, options) {
5530
+ return __awaiter(this, void 0, void 0, function* () {
5531
+ var _a, _b, _c;
5532
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(userAddress, 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 = operationServerMap['VeraPointsApi.getBalance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5535
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5536
+ });
5537
+ },
5538
+ /**
5539
+ * Paginated leaderboard ranked by lifetime Vera Points.
5540
+ * @summary Top users by lifetime points
5541
+ * @param {number} [limit] Number of entries to return.
5542
+ * @param {number} [offset] Number of entries to skip.
5543
+ * @param {*} [options] Override http request option.
5544
+ * @throws {RequiredError}
5545
+ */
5546
+ getLeaderboard(limit, offset, options) {
5547
+ return __awaiter(this, void 0, void 0, function* () {
5548
+ var _a, _b, _c;
5549
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeaderboard(limit, offset, options);
5550
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5551
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VeraPointsApi.getLeaderboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5552
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5553
+ });
5554
+ },
5555
+ /**
5556
+ * 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.
5557
+ * @summary /vera/session
5558
+ * @param {*} [options] Override http request option.
5559
+ * @throws {RequiredError}
5560
+ */
5561
+ recordSession(options) {
5562
+ return __awaiter(this, void 0, void 0, function* () {
5563
+ var _a, _b, _c;
5564
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.recordSession(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 = operationServerMap['VeraPointsApi.recordSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5567
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5568
+ });
5569
+ },
5570
+ };
5571
+ };
5572
+ /**
5573
+ * VeraPointsApi - factory interface
5574
+ * @export
5575
+ */
5576
+ export const VeraPointsApiFactory = function (configuration, basePath, axios) {
5577
+ const localVarFp = VeraPointsApiFp(configuration);
5578
+ return {
5579
+ /**
5580
+ * Claim a swap transaction for Vera Points attribution.
5581
+ * @summary /vera/swap/claim
5582
+ * @param {SwapClaimRequest} swapClaimRequest
5583
+ * @param {*} [options] Override http request option.
5584
+ * @throws {RequiredError}
5585
+ */
5586
+ claimSwap(swapClaimRequest, options) {
5587
+ return localVarFp.claimSwap(swapClaimRequest, options).then((request) => request(axios, basePath));
5588
+ },
5589
+ /**
5590
+ * Claim a vault deposit transaction for Vera Points attribution.
5591
+ * @summary /vera/vault/claim
5592
+ * @param {VaultClaimRequest} vaultClaimRequest
5593
+ * @param {*} [options] Override http request option.
5594
+ * @throws {RequiredError}
5595
+ */
5596
+ claimVault(vaultClaimRequest, options) {
5597
+ return localVarFp.claimVault(vaultClaimRequest, options).then((request) => request(axios, basePath));
5598
+ },
5599
+ /**
5600
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5601
+ * @summary Get user\'s points, tier, and rank
5602
+ * @param {string} userAddress Wallet address to look up balance for.
5603
+ * @param {*} [options] Override http request option.
5604
+ * @throws {RequiredError}
5605
+ */
5606
+ getBalance(userAddress, options) {
5607
+ return localVarFp.getBalance(userAddress, options).then((request) => request(axios, basePath));
5608
+ },
5609
+ /**
5610
+ * Paginated leaderboard ranked by lifetime Vera Points.
5611
+ * @summary Top users by lifetime points
5612
+ * @param {number} [limit] Number of entries to return.
5613
+ * @param {number} [offset] Number of entries to skip.
5614
+ * @param {*} [options] Override http request option.
5615
+ * @throws {RequiredError}
5616
+ */
5617
+ getLeaderboard(limit, offset, options) {
5618
+ return localVarFp.getLeaderboard(limit, offset, options).then((request) => request(axios, basePath));
5619
+ },
5620
+ /**
5621
+ * 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.
5622
+ * @summary /vera/session
5623
+ * @param {*} [options] Override http request option.
5624
+ * @throws {RequiredError}
5625
+ */
5626
+ recordSession(options) {
5627
+ return localVarFp.recordSession(options).then((request) => request(axios, basePath));
5628
+ },
5629
+ };
5630
+ };
5631
+ /**
5632
+ * VeraPointsApi - object-oriented interface
5633
+ * @export
5634
+ * @class VeraPointsApi
5635
+ * @extends {BaseAPI}
5636
+ */
5637
+ export class VeraPointsApi extends BaseAPI {
5638
+ /**
5639
+ * Claim a swap transaction for Vera Points attribution.
5640
+ * @summary /vera/swap/claim
5641
+ * @param {SwapClaimRequest} swapClaimRequest
5642
+ * @param {*} [options] Override http request option.
5643
+ * @throws {RequiredError}
5644
+ * @memberof VeraPointsApi
5645
+ */
5646
+ claimSwap(swapClaimRequest, options) {
5647
+ return VeraPointsApiFp(this.configuration).claimSwap(swapClaimRequest, options).then((request) => request(this.axios, this.basePath));
5648
+ }
5649
+ /**
5650
+ * Claim a vault deposit transaction for Vera Points attribution.
5651
+ * @summary /vera/vault/claim
5652
+ * @param {VaultClaimRequest} vaultClaimRequest
5653
+ * @param {*} [options] Override http request option.
5654
+ * @throws {RequiredError}
5655
+ * @memberof VeraPointsApi
5656
+ */
5657
+ claimVault(vaultClaimRequest, options) {
5658
+ return VeraPointsApiFp(this.configuration).claimVault(vaultClaimRequest, options).then((request) => request(this.axios, this.basePath));
5659
+ }
5660
+ /**
5661
+ * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5662
+ * @summary Get user\'s points, tier, and rank
5663
+ * @param {string} userAddress Wallet address to look up balance for.
5664
+ * @param {*} [options] Override http request option.
5665
+ * @throws {RequiredError}
5666
+ * @memberof VeraPointsApi
5667
+ */
5668
+ getBalance(userAddress, options) {
5669
+ return VeraPointsApiFp(this.configuration).getBalance(userAddress, options).then((request) => request(this.axios, this.basePath));
5670
+ }
5671
+ /**
5672
+ * Paginated leaderboard ranked by lifetime Vera Points.
5673
+ * @summary Top users by lifetime points
5674
+ * @param {number} [limit] Number of entries to return.
5675
+ * @param {number} [offset] Number of entries to skip.
5676
+ * @param {*} [options] Override http request option.
5677
+ * @throws {RequiredError}
5678
+ * @memberof VeraPointsApi
5679
+ */
5680
+ getLeaderboard(limit, offset, options) {
5681
+ return VeraPointsApiFp(this.configuration).getLeaderboard(limit, offset, options).then((request) => request(this.axios, this.basePath));
5682
+ }
5683
+ /**
5684
+ * 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.
5685
+ * @summary /vera/session
5686
+ * @param {*} [options] Override http request option.
5687
+ * @throws {RequiredError}
5688
+ * @memberof VeraPointsApi
5689
+ */
5690
+ recordSession(options) {
5691
+ return VeraPointsApiFp(this.configuration).recordSession(options).then((request) => request(this.axios, this.basePath));
5167
5692
  }
5168
5693
  }
5169
- exports.TradeApi = TradeApi;
5170
5694
  //# sourceMappingURL=api.js.map