@bluefin-exchange/pro-sdk 2.0.0-beta.0 → 2.0.0-beta.1

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 (38) hide show
  1. package/README.md +2 -3
  2. package/dist/esm/index.js +1 -1
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/src/api.js +609 -810
  5. package/dist/esm/src/api.js.map +1 -1
  6. package/dist/esm/src/base.js +5 -2
  7. package/dist/esm/src/base.js.map +1 -1
  8. package/dist/esm/src/common.js +23 -39
  9. package/dist/esm/src/common.js.map +1 -1
  10. package/dist/esm/src/configuration.js +62 -2
  11. package/dist/esm/src/configuration.js.map +1 -1
  12. package/dist/esm/src/index.js +6 -6
  13. package/dist/esm/src/index.js.map +1 -1
  14. package/dist/esm/src/request-signer.js +61 -81
  15. package/dist/esm/src/request-signer.js.map +1 -1
  16. package/dist/esm/src/sdk.js +529 -570
  17. package/dist/esm/src/sdk.js.map +1 -1
  18. package/dist/esm/src/websocket.js +69 -85
  19. package/dist/esm/src/websocket.js.map +1 -1
  20. package/dist/types/index.d.ts +1 -1
  21. package/dist/types/index.d.ts.map +1 -1
  22. package/dist/types/src/api.d.ts +7 -7
  23. package/dist/types/src/api.d.ts.map +1 -1
  24. package/dist/types/src/base.d.ts +1 -1
  25. package/dist/types/src/base.d.ts.map +1 -1
  26. package/dist/types/src/common.d.ts +2 -2
  27. package/dist/types/src/common.d.ts.map +1 -1
  28. package/dist/types/src/index.d.ts +6 -6
  29. package/dist/types/src/index.d.ts.map +1 -1
  30. package/dist/types/src/request-signer.d.ts +3 -2
  31. package/dist/types/src/request-signer.d.ts.map +1 -1
  32. package/dist/types/src/sdk.d.ts +9 -9
  33. package/dist/types/src/sdk.d.ts.map +1 -1
  34. package/package.json +6 -7
  35. package/dist/esm/example.js +0 -276
  36. package/dist/esm/example.js.map +0 -1
  37. package/dist/types/example.d.ts +0 -2
  38. package/dist/types/example.d.ts.map +0 -1
@@ -11,21 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  import globalAxios from 'axios';
24
15
  // Some imports not used depending on template conditions
25
16
  // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
17
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common.js';
27
18
  // @ts-ignore
28
- import { BASE_PATH, BaseAPI, operationServerMap } from './base';
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base.js';
29
20
  /**
30
21
  * Represents the type of account data stream.
31
22
  * @export
@@ -620,7 +611,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
620
611
  * @param {*} [options] Override http request option.
621
612
  * @throws {RequiredError}
622
613
  */
623
- getAccountDetails: (accountAddress_1, ...args_1) => __awaiter(this, [accountAddress_1, ...args_1], void 0, function* (accountAddress, options = {}) {
614
+ getAccountDetails: async (accountAddress, options = {}) => {
624
615
  const localVarPath = `/api/v1/account`;
625
616
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
626
617
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -628,7 +619,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
628
619
  if (configuration) {
629
620
  baseOptions = configuration.baseOptions;
630
621
  }
631
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
622
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
632
623
  const localVarHeaderParameter = {};
633
624
  const localVarQueryParameter = {};
634
625
  if (accountAddress !== undefined) {
@@ -636,12 +627,12 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
636
627
  }
637
628
  setSearchParams(localVarUrlObj, localVarQueryParameter);
638
629
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
640
631
  return {
641
632
  url: toPathString(localVarUrlObj),
642
633
  options: localVarRequestOptions,
643
634
  };
644
- }),
635
+ },
645
636
  /**
646
637
  * Retrieves the funding rate history for a specific account.
647
638
  * @summary /account/fundingRateHistory
@@ -653,7 +644,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
653
644
  * @param {*} [options] Override http request option.
654
645
  * @throws {RequiredError}
655
646
  */
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 = {}) {
647
+ getAccountFundingRateHistory: async (accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options = {}) => {
657
648
  const localVarPath = `/api/v1/account/fundingRateHistory`;
658
649
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
659
650
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -661,12 +652,12 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
661
652
  if (configuration) {
662
653
  baseOptions = configuration.baseOptions;
663
654
  }
664
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
655
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
665
656
  const localVarHeaderParameter = {};
666
657
  const localVarQueryParameter = {};
667
658
  // authentication bearerAuth required
668
659
  // http bearer authentication required
669
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
660
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
670
661
  if (accountAddress !== undefined) {
671
662
  localVarQueryParameter['accountAddress'] = accountAddress;
672
663
  }
@@ -684,19 +675,19 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
684
675
  }
685
676
  setSearchParams(localVarUrlObj, localVarQueryParameter);
686
677
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
687
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
678
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
688
679
  return {
689
680
  url: toPathString(localVarUrlObj),
690
681
  options: localVarRequestOptions,
691
682
  };
692
- }),
683
+ },
693
684
  /**
694
685
  * Retrieves the user\'s account preferences.
695
686
  * @summary /account/preferences
696
687
  * @param {*} [options] Override http request option.
697
688
  * @throws {RequiredError}
698
689
  */
699
- getAccountPreferences: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
690
+ getAccountPreferences: async (options = {}) => {
700
691
  const localVarPath = `/api/v1/account/preferences`;
701
692
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
693
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -704,20 +695,20 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
704
695
  if (configuration) {
705
696
  baseOptions = configuration.baseOptions;
706
697
  }
707
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
698
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
708
699
  const localVarHeaderParameter = {};
709
700
  const localVarQueryParameter = {};
710
701
  // authentication bearerAuth required
711
702
  // http bearer authentication required
712
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
703
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
713
704
  setSearchParams(localVarUrlObj, localVarQueryParameter);
714
705
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
715
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
706
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
716
707
  return {
717
708
  url: toPathString(localVarUrlObj),
718
709
  options: localVarRequestOptions,
719
710
  };
720
- }),
711
+ },
721
712
  /**
722
713
  * Retrieves the user\'s trade history.
723
714
  * @summary /account/trades
@@ -730,7 +721,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
730
721
  * @param {*} [options] Override http request option.
731
722
  * @throws {RequiredError}
732
723
  */
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 = {}) {
724
+ getAccountTrades: async (symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options = {}) => {
734
725
  const localVarPath = `/api/v1/account/trades`;
735
726
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
736
727
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -738,12 +729,12 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
738
729
  if (configuration) {
739
730
  baseOptions = configuration.baseOptions;
740
731
  }
741
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
732
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
742
733
  const localVarHeaderParameter = {};
743
734
  const localVarQueryParameter = {};
744
735
  // authentication bearerAuth required
745
736
  // http bearer authentication required
746
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
737
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
747
738
  if (symbol !== undefined) {
748
739
  localVarQueryParameter['symbol'] = symbol;
749
740
  }
@@ -764,12 +755,12 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
764
755
  }
765
756
  setSearchParams(localVarUrlObj, localVarQueryParameter);
766
757
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
767
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
758
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
768
759
  return {
769
760
  url: toPathString(localVarUrlObj),
770
761
  options: localVarRequestOptions,
771
762
  };
772
- }),
763
+ },
773
764
  /**
774
765
  * Retrieves the user\'s transaction history (any change in balance).
775
766
  * @summary /account/transactions
@@ -782,7 +773,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
782
773
  * @param {*} [options] Override http request option.
783
774
  * @throws {RequiredError}
784
775
  */
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 = {}) {
776
+ getAccountTransactionHistory: async (types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options = {}) => {
786
777
  const localVarPath = `/api/v1/account/transactions`;
787
778
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
788
779
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -790,12 +781,12 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
790
781
  if (configuration) {
791
782
  baseOptions = configuration.baseOptions;
792
783
  }
793
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
784
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
794
785
  const localVarHeaderParameter = {};
795
786
  const localVarQueryParameter = {};
796
787
  // authentication bearerAuth required
797
788
  // http bearer authentication required
798
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
789
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
799
790
  if (types) {
800
791
  localVarQueryParameter['types'] = types;
801
792
  }
@@ -816,12 +807,12 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
816
807
  }
817
808
  setSearchParams(localVarUrlObj, localVarQueryParameter);
818
809
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
819
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
810
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
820
811
  return {
821
812
  url: toPathString(localVarUrlObj),
822
813
  options: localVarRequestOptions,
823
814
  };
824
- }),
815
+ },
825
816
  /**
826
817
  * Retrieves the account value history for a specific account over a given time interval.
827
818
  * @summary /account/valueHistory
@@ -829,7 +820,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
829
820
  * @param {*} [options] Override http request option.
830
821
  * @throws {RequiredError}
831
822
  */
832
- getAccountValueHistory: (interval_1, ...args_1) => __awaiter(this, [interval_1, ...args_1], void 0, function* (interval, options = {}) {
823
+ getAccountValueHistory: async (interval, options = {}) => {
833
824
  // verify required parameter 'interval' is not null or undefined
834
825
  assertParamExists('getAccountValueHistory', 'interval', interval);
835
826
  const localVarPath = `/api/v1/account/valueHistory`;
@@ -839,23 +830,23 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
839
830
  if (configuration) {
840
831
  baseOptions = configuration.baseOptions;
841
832
  }
842
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
833
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
843
834
  const localVarHeaderParameter = {};
844
835
  const localVarQueryParameter = {};
845
836
  // authentication bearerAuth required
846
837
  // http bearer authentication required
847
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
838
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
848
839
  if (interval !== undefined) {
849
840
  localVarQueryParameter['interval'] = interval;
850
841
  }
851
842
  setSearchParams(localVarUrlObj, localVarQueryParameter);
852
843
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
844
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
854
845
  return {
855
846
  url: toPathString(localVarUrlObj),
856
847
  options: localVarRequestOptions,
857
848
  };
858
- }),
849
+ },
859
850
  /**
860
851
  * Retrieves the account value history for 24h.
861
852
  * @summary /accounts/{accountAddress}/valueHistory
@@ -863,7 +854,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
863
854
  * @param {*} [options] Override http request option.
864
855
  * @throws {RequiredError}
865
856
  */
866
- getAccountValueHistoryByAccount: (accountAddress_1, ...args_1) => __awaiter(this, [accountAddress_1, ...args_1], void 0, function* (accountAddress, options = {}) {
857
+ getAccountValueHistoryByAccount: async (accountAddress, options = {}) => {
867
858
  // verify required parameter 'accountAddress' is not null or undefined
868
859
  assertParamExists('getAccountValueHistoryByAccount', 'accountAddress', accountAddress);
869
860
  const localVarPath = `/api/v1/accounts/{accountAddress}/valueHistory`
@@ -874,17 +865,17 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
874
865
  if (configuration) {
875
866
  baseOptions = configuration.baseOptions;
876
867
  }
877
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
868
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
878
869
  const localVarHeaderParameter = {};
879
870
  const localVarQueryParameter = {};
880
871
  setSearchParams(localVarUrlObj, localVarQueryParameter);
881
872
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
873
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
883
874
  return {
884
875
  url: toPathString(localVarUrlObj),
885
876
  options: localVarRequestOptions,
886
877
  };
887
- }),
878
+ },
888
879
  /**
889
880
  * 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.
890
881
  * @summary Set the group ID for an account.
@@ -892,7 +883,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
892
883
  * @param {*} [options] Override http request option.
893
884
  * @throws {RequiredError}
894
885
  */
895
- patchAccountGroupID: (accountGroupIdPatch_1, ...args_1) => __awaiter(this, [accountGroupIdPatch_1, ...args_1], void 0, function* (accountGroupIdPatch, options = {}) {
886
+ patchAccountGroupID: async (accountGroupIdPatch, options = {}) => {
896
887
  // verify required parameter 'accountGroupIdPatch' is not null or undefined
897
888
  assertParamExists('patchAccountGroupID', 'accountGroupIdPatch', accountGroupIdPatch);
898
889
  const localVarPath = `/api/v1/account/groupId`;
@@ -902,22 +893,22 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
902
893
  if (configuration) {
903
894
  baseOptions = configuration.baseOptions;
904
895
  }
905
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
896
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
906
897
  const localVarHeaderParameter = {};
907
898
  const localVarQueryParameter = {};
908
899
  // authentication bearerAuth required
909
900
  // http bearer authentication required
910
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
901
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
911
902
  localVarHeaderParameter['Content-Type'] = 'application/json';
912
903
  setSearchParams(localVarUrlObj, localVarQueryParameter);
913
904
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
905
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
915
906
  localVarRequestOptions.data = serializeDataIfNeeded(accountGroupIdPatch, localVarRequestOptions, configuration);
916
907
  return {
917
908
  url: toPathString(localVarUrlObj),
918
909
  options: localVarRequestOptions,
919
910
  };
920
- }),
911
+ },
921
912
  /**
922
913
  * Update user\'s account preferences. This will overwrite the preferences, so always send the full object.
923
914
  * @summary /account/preferences
@@ -925,7 +916,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
925
916
  * @param {*} [options] Override http request option.
926
917
  * @throws {RequiredError}
927
918
  */
928
- putAccountPreferences: (updateAccountPreferenceRequest_1, ...args_1) => __awaiter(this, [updateAccountPreferenceRequest_1, ...args_1], void 0, function* (updateAccountPreferenceRequest, options = {}) {
919
+ putAccountPreferences: async (updateAccountPreferenceRequest, options = {}) => {
929
920
  // verify required parameter 'updateAccountPreferenceRequest' is not null or undefined
930
921
  assertParamExists('putAccountPreferences', 'updateAccountPreferenceRequest', updateAccountPreferenceRequest);
931
922
  const localVarPath = `/api/v1/account/preferences`;
@@ -935,22 +926,22 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
935
926
  if (configuration) {
936
927
  baseOptions = configuration.baseOptions;
937
928
  }
938
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
929
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
939
930
  const localVarHeaderParameter = {};
940
931
  const localVarQueryParameter = {};
941
932
  // authentication bearerAuth required
942
933
  // http bearer authentication required
943
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
934
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
944
935
  localVarHeaderParameter['Content-Type'] = 'application/json';
945
936
  setSearchParams(localVarUrlObj, localVarQueryParameter);
946
937
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
947
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
938
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
948
939
  localVarRequestOptions.data = serializeDataIfNeeded(updateAccountPreferenceRequest, localVarRequestOptions, configuration);
949
940
  return {
950
941
  url: toPathString(localVarUrlObj),
951
942
  options: localVarRequestOptions,
952
943
  };
953
- }),
944
+ },
954
945
  /**
955
946
  * Sponsors a transaction if it\'s eligible for sponsorship based on allowlisted methods and kinds.
956
947
  * @summary /account/sponsorTx
@@ -958,7 +949,7 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
958
949
  * @param {*} [options] Override http request option.
959
950
  * @throws {RequiredError}
960
951
  */
961
- sponsorTx: (sponsorTxRequest_1, ...args_1) => __awaiter(this, [sponsorTxRequest_1, ...args_1], void 0, function* (sponsorTxRequest, options = {}) {
952
+ sponsorTx: async (sponsorTxRequest, options = {}) => {
962
953
  // verify required parameter 'sponsorTxRequest' is not null or undefined
963
954
  assertParamExists('sponsorTx', 'sponsorTxRequest', sponsorTxRequest);
964
955
  const localVarPath = `/api/v1/account/sponsorTx`;
@@ -968,22 +959,22 @@ export const AccountDataApiAxiosParamCreator = function (configuration) {
968
959
  if (configuration) {
969
960
  baseOptions = configuration.baseOptions;
970
961
  }
971
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
962
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
972
963
  const localVarHeaderParameter = {};
973
964
  const localVarQueryParameter = {};
974
965
  // authentication bearerAuth required
975
966
  // http bearer authentication required
976
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
967
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
977
968
  localVarHeaderParameter['Content-Type'] = 'application/json';
978
969
  setSearchParams(localVarUrlObj, localVarQueryParameter);
979
970
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
980
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
971
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
981
972
  localVarRequestOptions.data = serializeDataIfNeeded(sponsorTxRequest, localVarRequestOptions, configuration);
982
973
  return {
983
974
  url: toPathString(localVarUrlObj),
984
975
  options: localVarRequestOptions,
985
976
  };
986
- }),
977
+ },
987
978
  };
988
979
  };
989
980
  /**
@@ -1000,14 +991,11 @@ export const AccountDataApiFp = function (configuration) {
1000
991
  * @param {*} [options] Override http request option.
1001
992
  * @throws {RequiredError}
1002
993
  */
1003
- getAccountDetails(accountAddress, options) {
1004
- return __awaiter(this, void 0, void 0, function* () {
1005
- var _a, _b, _c;
1006
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountDetails(accountAddress, options);
1007
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1010
- });
994
+ async getAccountDetails(accountAddress, options) {
995
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountDetails(accountAddress, options);
996
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
997
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountDetails']?.[localVarOperationServerIndex]?.url;
998
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1011
999
  },
1012
1000
  /**
1013
1001
  * Retrieves the funding rate history for a specific account.
@@ -1020,14 +1008,11 @@ export const AccountDataApiFp = function (configuration) {
1020
1008
  * @param {*} [options] Override http request option.
1021
1009
  * @throws {RequiredError}
1022
1010
  */
1023
- getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options) {
1024
- return __awaiter(this, void 0, void 0, function* () {
1025
- var _a, _b, _c;
1026
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options);
1027
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1030
- });
1011
+ async getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options) {
1012
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountFundingRateHistory(accountAddress, limit, page, startTimeAtMillis, endTimeAtMillis, options);
1013
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1014
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountFundingRateHistory']?.[localVarOperationServerIndex]?.url;
1015
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1031
1016
  },
1032
1017
  /**
1033
1018
  * Retrieves the user\'s account preferences.
@@ -1035,14 +1020,11 @@ export const AccountDataApiFp = function (configuration) {
1035
1020
  * @param {*} [options] Override http request option.
1036
1021
  * @throws {RequiredError}
1037
1022
  */
1038
- getAccountPreferences(options) {
1039
- return __awaiter(this, void 0, void 0, function* () {
1040
- var _a, _b, _c;
1041
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountPreferences(options);
1042
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1045
- });
1023
+ async getAccountPreferences(options) {
1024
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPreferences(options);
1025
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1026
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountPreferences']?.[localVarOperationServerIndex]?.url;
1027
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1046
1028
  },
1047
1029
  /**
1048
1030
  * Retrieves the user\'s trade history.
@@ -1056,14 +1038,11 @@ export const AccountDataApiFp = function (configuration) {
1056
1038
  * @param {*} [options] Override http request option.
1057
1039
  * @throws {RequiredError}
1058
1040
  */
1059
- getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options) {
1060
- return __awaiter(this, void 0, void 0, function* () {
1061
- var _a, _b, _c;
1062
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options);
1063
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1066
- });
1041
+ async getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options) {
1042
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountTrades(symbol, startTimeAtMillis, endTimeAtMillis, limit, tradeType, page, options);
1043
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1044
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountTrades']?.[localVarOperationServerIndex]?.url;
1045
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1067
1046
  },
1068
1047
  /**
1069
1048
  * Retrieves the user\'s transaction history (any change in balance).
@@ -1077,14 +1056,11 @@ export const AccountDataApiFp = function (configuration) {
1077
1056
  * @param {*} [options] Override http request option.
1078
1057
  * @throws {RequiredError}
1079
1058
  */
1080
- getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
1081
- return __awaiter(this, void 0, void 0, function* () {
1082
- var _a, _b, _c;
1083
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options);
1084
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1087
- });
1059
+ async getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
1060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options);
1061
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1062
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountTransactionHistory']?.[localVarOperationServerIndex]?.url;
1063
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1088
1064
  },
1089
1065
  /**
1090
1066
  * Retrieves the account value history for a specific account over a given time interval.
@@ -1093,14 +1069,11 @@ export const AccountDataApiFp = function (configuration) {
1093
1069
  * @param {*} [options] Override http request option.
1094
1070
  * @throws {RequiredError}
1095
1071
  */
1096
- getAccountValueHistory(interval, options) {
1097
- return __awaiter(this, void 0, void 0, function* () {
1098
- var _a, _b, _c;
1099
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountValueHistory(interval, options);
1100
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1103
- });
1072
+ async getAccountValueHistory(interval, options) {
1073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountValueHistory(interval, options);
1074
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1075
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountValueHistory']?.[localVarOperationServerIndex]?.url;
1076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1104
1077
  },
1105
1078
  /**
1106
1079
  * Retrieves the account value history for 24h.
@@ -1109,14 +1082,11 @@ export const AccountDataApiFp = function (configuration) {
1109
1082
  * @param {*} [options] Override http request option.
1110
1083
  * @throws {RequiredError}
1111
1084
  */
1112
- getAccountValueHistoryByAccount(accountAddress, options) {
1113
- return __awaiter(this, void 0, void 0, function* () {
1114
- var _a, _b, _c;
1115
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountValueHistoryByAccount(accountAddress, options);
1116
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1119
- });
1085
+ async getAccountValueHistoryByAccount(accountAddress, options) {
1086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountValueHistoryByAccount(accountAddress, options);
1087
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1088
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.getAccountValueHistoryByAccount']?.[localVarOperationServerIndex]?.url;
1089
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1120
1090
  },
1121
1091
  /**
1122
1092
  * 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.
@@ -1125,14 +1095,11 @@ export const AccountDataApiFp = function (configuration) {
1125
1095
  * @param {*} [options] Override http request option.
1126
1096
  * @throws {RequiredError}
1127
1097
  */
1128
- patchAccountGroupID(accountGroupIdPatch, options) {
1129
- return __awaiter(this, void 0, void 0, function* () {
1130
- var _a, _b, _c;
1131
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchAccountGroupID(accountGroupIdPatch, options);
1132
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1135
- });
1098
+ async patchAccountGroupID(accountGroupIdPatch, options) {
1099
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountGroupID(accountGroupIdPatch, options);
1100
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1101
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.patchAccountGroupID']?.[localVarOperationServerIndex]?.url;
1102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1136
1103
  },
1137
1104
  /**
1138
1105
  * Update user\'s account preferences. This will overwrite the preferences, so always send the full object.
@@ -1141,14 +1108,11 @@ export const AccountDataApiFp = function (configuration) {
1141
1108
  * @param {*} [options] Override http request option.
1142
1109
  * @throws {RequiredError}
1143
1110
  */
1144
- putAccountPreferences(updateAccountPreferenceRequest, options) {
1145
- return __awaiter(this, void 0, void 0, function* () {
1146
- var _a, _b, _c;
1147
- const localVarAxiosArgs = yield localVarAxiosParamCreator.putAccountPreferences(updateAccountPreferenceRequest, options);
1148
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1151
- });
1111
+ async putAccountPreferences(updateAccountPreferenceRequest, options) {
1112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAccountPreferences(updateAccountPreferenceRequest, options);
1113
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1114
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.putAccountPreferences']?.[localVarOperationServerIndex]?.url;
1115
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1152
1116
  },
1153
1117
  /**
1154
1118
  * Sponsors a transaction if it\'s eligible for sponsorship based on allowlisted methods and kinds.
@@ -1157,14 +1121,11 @@ export const AccountDataApiFp = function (configuration) {
1157
1121
  * @param {*} [options] Override http request option.
1158
1122
  * @throws {RequiredError}
1159
1123
  */
1160
- sponsorTx(sponsorTxRequest, options) {
1161
- return __awaiter(this, void 0, void 0, function* () {
1162
- var _a, _b, _c;
1163
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sponsorTx(sponsorTxRequest, options);
1164
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1167
- });
1124
+ async sponsorTx(sponsorTxRequest, options) {
1125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sponsorTx(sponsorTxRequest, options);
1126
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1127
+ const localVarOperationServerBasePath = operationServerMap['AccountDataApi.sponsorTx']?.[localVarOperationServerIndex]?.url;
1128
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1168
1129
  },
1169
1130
  };
1170
1131
  };
@@ -1432,7 +1393,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1432
1393
  * @param {*} [options] Override http request option.
1433
1394
  * @throws {RequiredError}
1434
1395
  */
1435
- authJwksGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1396
+ authJwksGet: async (options = {}) => {
1436
1397
  const localVarPath = `/auth/jwks`;
1437
1398
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1438
1399
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1440,17 +1401,17 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1440
1401
  if (configuration) {
1441
1402
  baseOptions = configuration.baseOptions;
1442
1403
  }
1443
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1404
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1444
1405
  const localVarHeaderParameter = {};
1445
1406
  const localVarQueryParameter = {};
1446
1407
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1447
1408
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1448
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1409
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1449
1410
  return {
1450
1411
  url: toPathString(localVarUrlObj),
1451
1412
  options: localVarRequestOptions,
1452
1413
  };
1453
- }),
1414
+ },
1454
1415
  /**
1455
1416
  * login with token
1456
1417
  * @param {string} payloadSignature
@@ -1461,7 +1422,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1461
1422
  * @param {*} [options] Override http request option.
1462
1423
  * @throws {RequiredError}
1463
1424
  */
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 = {}) {
1425
+ authTokenPost: async (payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options = {}) => {
1465
1426
  // verify required parameter 'payloadSignature' is not null or undefined
1466
1427
  assertParamExists('authTokenPost', 'payloadSignature', payloadSignature);
1467
1428
  // verify required parameter 'loginRequest' is not null or undefined
@@ -1473,7 +1434,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1473
1434
  if (configuration) {
1474
1435
  baseOptions = configuration.baseOptions;
1475
1436
  }
1476
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1437
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1477
1438
  const localVarHeaderParameter = {};
1478
1439
  const localVarQueryParameter = {};
1479
1440
  if (refreshTokenValidForSeconds !== undefined) {
@@ -1491,20 +1452,20 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1491
1452
  }
1492
1453
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1493
1454
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1494
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1455
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1495
1456
  localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration);
1496
1457
  return {
1497
1458
  url: toPathString(localVarUrlObj),
1498
1459
  options: localVarRequestOptions,
1499
1460
  };
1500
- }),
1461
+ },
1501
1462
  /**
1502
1463
  * Retrieves a new auth token for an account. Expiry is set to 5 min.
1503
1464
  * @param {RefreshTokenRequest} refreshTokenRequest
1504
1465
  * @param {*} [options] Override http request option.
1505
1466
  * @throws {RequiredError}
1506
1467
  */
1507
- authTokenRefreshPut: (refreshTokenRequest_1, ...args_1) => __awaiter(this, [refreshTokenRequest_1, ...args_1], void 0, function* (refreshTokenRequest, options = {}) {
1468
+ authTokenRefreshPut: async (refreshTokenRequest, options = {}) => {
1508
1469
  // verify required parameter 'refreshTokenRequest' is not null or undefined
1509
1470
  assertParamExists('authTokenRefreshPut', 'refreshTokenRequest', refreshTokenRequest);
1510
1471
  const localVarPath = `/auth/token/refresh`;
@@ -1514,19 +1475,19 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1514
1475
  if (configuration) {
1515
1476
  baseOptions = configuration.baseOptions;
1516
1477
  }
1517
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1478
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1518
1479
  const localVarHeaderParameter = {};
1519
1480
  const localVarQueryParameter = {};
1520
1481
  localVarHeaderParameter['Content-Type'] = 'application/json';
1521
1482
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1522
1483
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1523
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1484
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1524
1485
  localVarRequestOptions.data = serializeDataIfNeeded(refreshTokenRequest, localVarRequestOptions, configuration);
1525
1486
  return {
1526
1487
  url: toPathString(localVarUrlObj),
1527
1488
  options: localVarRequestOptions,
1528
1489
  };
1529
- }),
1490
+ },
1530
1491
  /**
1531
1492
  * login compatible with BCS payload with intent bytes
1532
1493
  * @param {string} payloadSignature
@@ -1537,7 +1498,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1537
1498
  * @param {*} [options] Override http request option.
1538
1499
  * @throws {RequiredError}
1539
1500
  */
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 = {}) {
1501
+ authV2TokenPost: async (payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options = {}) => {
1541
1502
  // verify required parameter 'payloadSignature' is not null or undefined
1542
1503
  assertParamExists('authV2TokenPost', 'payloadSignature', payloadSignature);
1543
1504
  // verify required parameter 'loginRequest' is not null or undefined
@@ -1549,7 +1510,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1549
1510
  if (configuration) {
1550
1511
  baseOptions = configuration.baseOptions;
1551
1512
  }
1552
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1513
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1553
1514
  const localVarHeaderParameter = {};
1554
1515
  const localVarQueryParameter = {};
1555
1516
  if (refreshTokenValidForSeconds !== undefined) {
@@ -1567,20 +1528,20 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1567
1528
  }
1568
1529
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1569
1530
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1570
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1531
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1571
1532
  localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration);
1572
1533
  return {
1573
1534
  url: toPathString(localVarUrlObj),
1574
1535
  options: localVarRequestOptions,
1575
1536
  };
1576
- }),
1537
+ },
1577
1538
  /**
1578
1539
  * OpenID Connect Discovery endpoint
1579
1540
  * @summary /.well-known/openid-configuration
1580
1541
  * @param {*} [options] Override http request option.
1581
1542
  * @throws {RequiredError}
1582
1543
  */
1583
- getWellKnownOpenidConfiguration: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1544
+ getWellKnownOpenidConfiguration: async (options = {}) => {
1584
1545
  const localVarPath = `/.well-known/openid-configuration`;
1585
1546
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1586
1547
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1588,17 +1549,17 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1588
1549
  if (configuration) {
1589
1550
  baseOptions = configuration.baseOptions;
1590
1551
  }
1591
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1552
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1592
1553
  const localVarHeaderParameter = {};
1593
1554
  const localVarQueryParameter = {};
1594
1555
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1595
1556
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1596
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1557
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1597
1558
  return {
1598
1559
  url: toPathString(localVarUrlObj),
1599
1560
  options: localVarRequestOptions,
1600
1561
  };
1601
- }),
1562
+ },
1602
1563
  /**
1603
1564
  * ZK Login User Details
1604
1565
  * @summary /auth/zklogin
@@ -1606,7 +1567,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1606
1567
  * @param {*} [options] Override http request option.
1607
1568
  * @throws {RequiredError}
1608
1569
  */
1609
- getZkLoginUserDetails: (zkloginJwt_1, ...args_1) => __awaiter(this, [zkloginJwt_1, ...args_1], void 0, function* (zkloginJwt, options = {}) {
1570
+ getZkLoginUserDetails: async (zkloginJwt, options = {}) => {
1610
1571
  // verify required parameter 'zkloginJwt' is not null or undefined
1611
1572
  assertParamExists('getZkLoginUserDetails', 'zkloginJwt', zkloginJwt);
1612
1573
  const localVarPath = `/auth/zklogin`;
@@ -1616,7 +1577,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1616
1577
  if (configuration) {
1617
1578
  baseOptions = configuration.baseOptions;
1618
1579
  }
1619
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1580
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1620
1581
  const localVarHeaderParameter = {};
1621
1582
  const localVarQueryParameter = {};
1622
1583
  if (zkloginJwt != null) {
@@ -1624,12 +1585,12 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1624
1585
  }
1625
1586
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1626
1587
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1627
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1588
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1628
1589
  return {
1629
1590
  url: toPathString(localVarUrlObj),
1630
1591
  options: localVarRequestOptions,
1631
1592
  };
1632
- }),
1593
+ },
1633
1594
  /**
1634
1595
  * OAuth2 client_credentials grant for service accounts
1635
1596
  * @summary /auth/client-credentials
@@ -1637,7 +1598,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1637
1598
  * @param {*} [options] Override http request option.
1638
1599
  * @throws {RequiredError}
1639
1600
  */
1640
- postAuthClientCredentials: (clientCredentialsRequest_1, ...args_1) => __awaiter(this, [clientCredentialsRequest_1, ...args_1], void 0, function* (clientCredentialsRequest, options = {}) {
1601
+ postAuthClientCredentials: async (clientCredentialsRequest, options = {}) => {
1641
1602
  // verify required parameter 'clientCredentialsRequest' is not null or undefined
1642
1603
  assertParamExists('postAuthClientCredentials', 'clientCredentialsRequest', clientCredentialsRequest);
1643
1604
  const localVarPath = `/auth/client-credentials`;
@@ -1647,19 +1608,19 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1647
1608
  if (configuration) {
1648
1609
  baseOptions = configuration.baseOptions;
1649
1610
  }
1650
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1611
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1651
1612
  const localVarHeaderParameter = {};
1652
1613
  const localVarQueryParameter = {};
1653
1614
  localVarHeaderParameter['Content-Type'] = 'application/json';
1654
1615
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1655
1616
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1656
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1617
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1657
1618
  localVarRequestOptions.data = serializeDataIfNeeded(clientCredentialsRequest, localVarRequestOptions, configuration);
1658
1619
  return {
1659
1620
  url: toPathString(localVarUrlObj),
1660
1621
  options: localVarRequestOptions,
1661
1622
  };
1662
- }),
1623
+ },
1663
1624
  /**
1664
1625
  *
1665
1626
  * @summary /auth/zklogin/zkp
@@ -1668,7 +1629,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1668
1629
  * @param {*} [options] Override http request option.
1669
1630
  * @throws {RequiredError}
1670
1631
  */
1671
- postZkLoginZkp: (zkloginJwt_1, zKLoginZKPRequest_1, ...args_1) => __awaiter(this, [zkloginJwt_1, zKLoginZKPRequest_1, ...args_1], void 0, function* (zkloginJwt, zKLoginZKPRequest, options = {}) {
1632
+ postZkLoginZkp: async (zkloginJwt, zKLoginZKPRequest, options = {}) => {
1672
1633
  // verify required parameter 'zkloginJwt' is not null or undefined
1673
1634
  assertParamExists('postZkLoginZkp', 'zkloginJwt', zkloginJwt);
1674
1635
  // verify required parameter 'zKLoginZKPRequest' is not null or undefined
@@ -1680,7 +1641,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1680
1641
  if (configuration) {
1681
1642
  baseOptions = configuration.baseOptions;
1682
1643
  }
1683
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1644
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1684
1645
  const localVarHeaderParameter = {};
1685
1646
  const localVarQueryParameter = {};
1686
1647
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1689,13 +1650,13 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1689
1650
  }
1690
1651
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1691
1652
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1692
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1653
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1693
1654
  localVarRequestOptions.data = serializeDataIfNeeded(zKLoginZKPRequest, localVarRequestOptions, configuration);
1694
1655
  return {
1695
1656
  url: toPathString(localVarUrlObj),
1696
1657
  options: localVarRequestOptions,
1697
1658
  };
1698
- }),
1659
+ },
1699
1660
  };
1700
1661
  };
1701
1662
  /**
@@ -1710,14 +1671,11 @@ export const AuthApiFp = function (configuration) {
1710
1671
  * @param {*} [options] Override http request option.
1711
1672
  * @throws {RequiredError}
1712
1673
  */
1713
- authJwksGet(options) {
1714
- return __awaiter(this, void 0, void 0, function* () {
1715
- var _a, _b, _c;
1716
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authJwksGet(options);
1717
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1720
- });
1674
+ async authJwksGet(options) {
1675
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authJwksGet(options);
1676
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1677
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authJwksGet']?.[localVarOperationServerIndex]?.url;
1678
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1721
1679
  },
1722
1680
  /**
1723
1681
  * login with token
@@ -1729,14 +1687,11 @@ export const AuthApiFp = function (configuration) {
1729
1687
  * @param {*} [options] Override http request option.
1730
1688
  * @throws {RequiredError}
1731
1689
  */
1732
- authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1733
- return __awaiter(this, void 0, void 0, function* () {
1734
- var _a, _b, _c;
1735
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1736
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1739
- });
1690
+ async authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1691
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authTokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1692
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1693
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authTokenPost']?.[localVarOperationServerIndex]?.url;
1694
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1740
1695
  },
1741
1696
  /**
1742
1697
  * Retrieves a new auth token for an account. Expiry is set to 5 min.
@@ -1744,14 +1699,11 @@ export const AuthApiFp = function (configuration) {
1744
1699
  * @param {*} [options] Override http request option.
1745
1700
  * @throws {RequiredError}
1746
1701
  */
1747
- authTokenRefreshPut(refreshTokenRequest, options) {
1748
- return __awaiter(this, void 0, void 0, function* () {
1749
- var _a, _b, _c;
1750
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authTokenRefreshPut(refreshTokenRequest, options);
1751
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1754
- });
1702
+ async authTokenRefreshPut(refreshTokenRequest, options) {
1703
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authTokenRefreshPut(refreshTokenRequest, options);
1704
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1705
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authTokenRefreshPut']?.[localVarOperationServerIndex]?.url;
1706
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1755
1707
  },
1756
1708
  /**
1757
1709
  * login compatible with BCS payload with intent bytes
@@ -1763,14 +1715,11 @@ export const AuthApiFp = function (configuration) {
1763
1715
  * @param {*} [options] Override http request option.
1764
1716
  * @throws {RequiredError}
1765
1717
  */
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
- });
1718
+ async authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options) {
1719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authV2TokenPost(payloadSignature, loginRequest, refreshTokenValidForSeconds, readOnly, client, options);
1720
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1721
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authV2TokenPost']?.[localVarOperationServerIndex]?.url;
1722
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1774
1723
  },
1775
1724
  /**
1776
1725
  * OpenID Connect Discovery endpoint
@@ -1778,14 +1727,11 @@ export const AuthApiFp = function (configuration) {
1778
1727
  * @param {*} [options] Override http request option.
1779
1728
  * @throws {RequiredError}
1780
1729
  */
1781
- getWellKnownOpenidConfiguration(options) {
1782
- return __awaiter(this, void 0, void 0, function* () {
1783
- var _a, _b, _c;
1784
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getWellKnownOpenidConfiguration(options);
1785
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1788
- });
1730
+ async getWellKnownOpenidConfiguration(options) {
1731
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWellKnownOpenidConfiguration(options);
1732
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1733
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.getWellKnownOpenidConfiguration']?.[localVarOperationServerIndex]?.url;
1734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1789
1735
  },
1790
1736
  /**
1791
1737
  * ZK Login User Details
@@ -1794,14 +1740,11 @@ export const AuthApiFp = function (configuration) {
1794
1740
  * @param {*} [options] Override http request option.
1795
1741
  * @throws {RequiredError}
1796
1742
  */
1797
- getZkLoginUserDetails(zkloginJwt, options) {
1798
- return __awaiter(this, void 0, void 0, function* () {
1799
- var _a, _b, _c;
1800
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getZkLoginUserDetails(zkloginJwt, options);
1801
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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
- });
1743
+ async getZkLoginUserDetails(zkloginJwt, options) {
1744
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getZkLoginUserDetails(zkloginJwt, options);
1745
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1746
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.getZkLoginUserDetails']?.[localVarOperationServerIndex]?.url;
1747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1805
1748
  },
1806
1749
  /**
1807
1750
  * OAuth2 client_credentials grant for service accounts
@@ -1810,14 +1753,11 @@ export const AuthApiFp = function (configuration) {
1810
1753
  * @param {*} [options] Override http request option.
1811
1754
  * @throws {RequiredError}
1812
1755
  */
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);
1820
- });
1756
+ async postAuthClientCredentials(clientCredentialsRequest, options) {
1757
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAuthClientCredentials(clientCredentialsRequest, options);
1758
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1759
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.postAuthClientCredentials']?.[localVarOperationServerIndex]?.url;
1760
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1821
1761
  },
1822
1762
  /**
1823
1763
  *
@@ -1827,14 +1767,11 @@ export const AuthApiFp = function (configuration) {
1827
1767
  * @param {*} [options] Override http request option.
1828
1768
  * @throws {RequiredError}
1829
1769
  */
1830
- postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options) {
1831
- return __awaiter(this, void 0, void 0, function* () {
1832
- var _a, _b, _c;
1833
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options);
1834
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
1837
- });
1770
+ async postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options) {
1771
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postZkLoginZkp(zkloginJwt, zKLoginZKPRequest, options);
1772
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1773
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.postZkLoginZkp']?.[localVarOperationServerIndex]?.url;
1774
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1838
1775
  },
1839
1776
  };
1840
1777
  };
@@ -2041,7 +1978,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2041
1978
  * @param {*} [options] Override http request option.
2042
1979
  * @throws {RequiredError}
2043
1980
  */
2044
- getAllMarketTicker: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1981
+ getAllMarketTicker: async (options = {}) => {
2045
1982
  const localVarPath = `/v1/exchange/tickers`;
2046
1983
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2047
1984
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2049,17 +1986,17 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2049
1986
  if (configuration) {
2050
1987
  baseOptions = configuration.baseOptions;
2051
1988
  }
2052
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1989
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2053
1990
  const localVarHeaderParameter = {};
2054
1991
  const localVarQueryParameter = {};
2055
1992
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2056
1993
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2057
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1994
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2058
1995
  return {
2059
1996
  url: toPathString(localVarUrlObj),
2060
1997
  options: localVarRequestOptions,
2061
1998
  };
2062
- }),
1999
+ },
2063
2000
  /**
2064
2001
  * Retrieves candle stick data for a market.
2065
2002
  * @summary /exchange/candlesticks
@@ -2073,7 +2010,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2073
2010
  * @param {*} [options] Override http request option.
2074
2011
  * @throws {RequiredError}
2075
2012
  */
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 = {}) {
2013
+ getCandlestickData: async (symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options = {}) => {
2077
2014
  // verify required parameter 'symbol' is not null or undefined
2078
2015
  assertParamExists('getCandlestickData', 'symbol', symbol);
2079
2016
  // verify required parameter 'interval' is not null or undefined
@@ -2087,7 +2024,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2087
2024
  if (configuration) {
2088
2025
  baseOptions = configuration.baseOptions;
2089
2026
  }
2090
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2027
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2091
2028
  const localVarHeaderParameter = {};
2092
2029
  const localVarQueryParameter = {};
2093
2030
  if (symbol !== undefined) {
@@ -2113,19 +2050,19 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2113
2050
  }
2114
2051
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2115
2052
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2116
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2053
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2117
2054
  return {
2118
2055
  url: toPathString(localVarUrlObj),
2119
2056
  options: localVarRequestOptions,
2120
2057
  };
2121
- }),
2058
+ },
2122
2059
  /**
2123
2060
  * Check if the country is geo restricted.
2124
2061
  * @summary /exchange/country
2125
2062
  * @param {*} [options] Override http request option.
2126
2063
  * @throws {RequiredError}
2127
2064
  */
2128
- getCountry: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2065
+ getCountry: async (options = {}) => {
2129
2066
  const localVarPath = `/v1/exchange/country`;
2130
2067
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2131
2068
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2133,24 +2070,24 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2133
2070
  if (configuration) {
2134
2071
  baseOptions = configuration.baseOptions;
2135
2072
  }
2136
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2073
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2137
2074
  const localVarHeaderParameter = {};
2138
2075
  const localVarQueryParameter = {};
2139
2076
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2140
2077
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2141
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2078
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2142
2079
  return {
2143
2080
  url: toPathString(localVarUrlObj),
2144
2081
  options: localVarRequestOptions,
2145
2082
  };
2146
- }),
2083
+ },
2147
2084
  /**
2148
2085
  * Returns the current exchange information including available margin assets, markets, and rules.
2149
2086
  * @summary /exchange/info
2150
2087
  * @param {*} [options] Override http request option.
2151
2088
  * @throws {RequiredError}
2152
2089
  */
2153
- getExchangeInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2090
+ getExchangeInfo: async (options = {}) => {
2154
2091
  const localVarPath = `/v1/exchange/info`;
2155
2092
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2156
2093
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2158,17 +2095,17 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2158
2095
  if (configuration) {
2159
2096
  baseOptions = configuration.baseOptions;
2160
2097
  }
2161
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2098
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2162
2099
  const localVarHeaderParameter = {};
2163
2100
  const localVarQueryParameter = {};
2164
2101
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2165
2102
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2166
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2103
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2167
2104
  return {
2168
2105
  url: toPathString(localVarUrlObj),
2169
2106
  options: localVarRequestOptions,
2170
2107
  };
2171
- }),
2108
+ },
2172
2109
  /**
2173
2110
  * Retrieves exchange statistics.
2174
2111
  * @summary /exchange/stats
@@ -2180,7 +2117,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2180
2117
  * @param {*} [options] Override http request option.
2181
2118
  * @throws {RequiredError}
2182
2119
  */
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 = {}) {
2120
+ getExchangeStats: async (interval, startTimeAtMillis, endTimeAtMillis, limit, page, options = {}) => {
2184
2121
  const localVarPath = `/v1/exchange/stats`;
2185
2122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2186
2123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2188,7 +2125,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2188
2125
  if (configuration) {
2189
2126
  baseOptions = configuration.baseOptions;
2190
2127
  }
2191
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2128
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2192
2129
  const localVarHeaderParameter = {};
2193
2130
  const localVarQueryParameter = {};
2194
2131
  if (interval !== undefined) {
@@ -2208,19 +2145,19 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2208
2145
  }
2209
2146
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2210
2147
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2211
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2148
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2212
2149
  return {
2213
2150
  url: toPathString(localVarUrlObj),
2214
2151
  options: localVarRequestOptions,
2215
2152
  };
2216
- }),
2153
+ },
2217
2154
  /**
2218
2155
  * Retrieves all time exchange statistics.
2219
2156
  * @summary /v1/exchange/stats/allTime
2220
2157
  * @param {*} [options] Override http request option.
2221
2158
  * @throws {RequiredError}
2222
2159
  */
2223
- getExchangeStatsAllTime: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2160
+ getExchangeStatsAllTime: async (options = {}) => {
2224
2161
  const localVarPath = `/v1/exchange/stats/allTime`;
2225
2162
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2226
2163
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2228,17 +2165,17 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2228
2165
  if (configuration) {
2229
2166
  baseOptions = configuration.baseOptions;
2230
2167
  }
2231
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2168
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2232
2169
  const localVarHeaderParameter = {};
2233
2170
  const localVarQueryParameter = {};
2234
2171
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2235
2172
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2236
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2173
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2237
2174
  return {
2238
2175
  url: toPathString(localVarUrlObj),
2239
2176
  options: localVarRequestOptions,
2240
2177
  };
2241
- }),
2178
+ },
2242
2179
  /**
2243
2180
  * Retrieve the funding rate history for a specific market address.
2244
2181
  * @summary /exchange/fundingRateHistory
@@ -2250,7 +2187,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2250
2187
  * @param {*} [options] Override http request option.
2251
2188
  * @throws {RequiredError}
2252
2189
  */
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 = {}) {
2190
+ getFundingRateHistory: async (symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options = {}) => {
2254
2191
  // verify required parameter 'symbol' is not null or undefined
2255
2192
  assertParamExists('getFundingRateHistory', 'symbol', symbol);
2256
2193
  const localVarPath = `/v1/exchange/fundingRateHistory`;
@@ -2260,7 +2197,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2260
2197
  if (configuration) {
2261
2198
  baseOptions = configuration.baseOptions;
2262
2199
  }
2263
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2200
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2264
2201
  const localVarHeaderParameter = {};
2265
2202
  const localVarQueryParameter = {};
2266
2203
  if (symbol !== undefined) {
@@ -2280,24 +2217,24 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2280
2217
  }
2281
2218
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2282
2219
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2283
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2220
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2284
2221
  return {
2285
2222
  url: toPathString(localVarUrlObj),
2286
2223
  options: localVarRequestOptions,
2287
2224
  };
2288
- }),
2225
+ },
2289
2226
  /**
2290
2227
  * Retrieves the leaderboard of traders based on their performance.
2291
2228
  * @summary /accounts/leaderboard
2292
2229
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2293
2230
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2294
2231
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2295
- * @param {number} [limit] Default 50; max 100.
2232
+ * @param {number} [limit] Default 50; max 1000.
2296
2233
  * @param {number} [page] The page number to retrieve in a paginated response.
2297
2234
  * @param {*} [options] Override http request option.
2298
2235
  * @throws {RequiredError}
2299
2236
  */
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 = {}) {
2237
+ getLeaderboard: async (interval, sortBy, sortOrder, limit, page, options = {}) => {
2301
2238
  const localVarPath = `/api/v1/accounts/leaderboard`;
2302
2239
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2303
2240
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2305,7 +2242,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2305
2242
  if (configuration) {
2306
2243
  baseOptions = configuration.baseOptions;
2307
2244
  }
2308
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2245
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2309
2246
  const localVarHeaderParameter = {};
2310
2247
  const localVarQueryParameter = {};
2311
2248
  if (interval !== undefined) {
@@ -2325,12 +2262,12 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2325
2262
  }
2326
2263
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2327
2264
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2328
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2265
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2329
2266
  return {
2330
2267
  url: toPathString(localVarUrlObj),
2331
2268
  options: localVarRequestOptions,
2332
2269
  };
2333
- }),
2270
+ },
2334
2271
  /**
2335
2272
  * Retrieves aggregated ticker data for a market.
2336
2273
  * @summary /exchange/ticker
@@ -2338,7 +2275,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2338
2275
  * @param {*} [options] Override http request option.
2339
2276
  * @throws {RequiredError}
2340
2277
  */
2341
- getMarketTicker: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) {
2278
+ getMarketTicker: async (symbol, options = {}) => {
2342
2279
  // verify required parameter 'symbol' is not null or undefined
2343
2280
  assertParamExists('getMarketTicker', 'symbol', symbol);
2344
2281
  const localVarPath = `/v1/exchange/ticker`;
@@ -2348,7 +2285,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2348
2285
  if (configuration) {
2349
2286
  baseOptions = configuration.baseOptions;
2350
2287
  }
2351
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2288
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2352
2289
  const localVarHeaderParameter = {};
2353
2290
  const localVarQueryParameter = {};
2354
2291
  if (symbol !== undefined) {
@@ -2356,12 +2293,12 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2356
2293
  }
2357
2294
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2358
2295
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2359
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2296
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2360
2297
  return {
2361
2298
  url: toPathString(localVarUrlObj),
2362
2299
  options: localVarRequestOptions,
2363
2300
  };
2364
- }),
2301
+ },
2365
2302
  /**
2366
2303
  * Returns the current state of the orderbook.
2367
2304
  * @summary /exchange/depth
@@ -2370,7 +2307,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2370
2307
  * @param {*} [options] Override http request option.
2371
2308
  * @throws {RequiredError}
2372
2309
  */
2373
- getOrderbookDepth: (symbol_1, limit_1, ...args_1) => __awaiter(this, [symbol_1, limit_1, ...args_1], void 0, function* (symbol, limit, options = {}) {
2310
+ getOrderbookDepth: async (symbol, limit, options = {}) => {
2374
2311
  // verify required parameter 'symbol' is not null or undefined
2375
2312
  assertParamExists('getOrderbookDepth', 'symbol', symbol);
2376
2313
  const localVarPath = `/v1/exchange/depth`;
@@ -2380,7 +2317,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2380
2317
  if (configuration) {
2381
2318
  baseOptions = configuration.baseOptions;
2382
2319
  }
2383
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2320
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2384
2321
  const localVarHeaderParameter = {};
2385
2322
  const localVarQueryParameter = {};
2386
2323
  if (symbol !== undefined) {
@@ -2391,12 +2328,12 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2391
2328
  }
2392
2329
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2393
2330
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2394
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2331
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2395
2332
  return {
2396
2333
  url: toPathString(localVarUrlObj),
2397
2334
  options: localVarRequestOptions,
2398
2335
  };
2399
- }),
2336
+ },
2400
2337
  /**
2401
2338
  * Retrieves recent trades executed on a market.
2402
2339
  * @summary /exchange/trades
@@ -2409,7 +2346,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2409
2346
  * @param {*} [options] Override http request option.
2410
2347
  * @throws {RequiredError}
2411
2348
  */
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 = {}) {
2349
+ getRecentTrades: async (symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options = {}) => {
2413
2350
  // verify required parameter 'symbol' is not null or undefined
2414
2351
  assertParamExists('getRecentTrades', 'symbol', symbol);
2415
2352
  const localVarPath = `/v1/exchange/trades`;
@@ -2419,7 +2356,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2419
2356
  if (configuration) {
2420
2357
  baseOptions = configuration.baseOptions;
2421
2358
  }
2422
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2359
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2423
2360
  const localVarHeaderParameter = {};
2424
2361
  const localVarQueryParameter = {};
2425
2362
  if (symbol !== undefined) {
@@ -2442,12 +2379,12 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
2442
2379
  }
2443
2380
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2444
2381
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2445
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2382
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2446
2383
  return {
2447
2384
  url: toPathString(localVarUrlObj),
2448
2385
  options: localVarRequestOptions,
2449
2386
  };
2450
- }),
2387
+ },
2451
2388
  };
2452
2389
  };
2453
2390
  /**
@@ -2463,14 +2400,11 @@ export const ExchangeApiFp = function (configuration) {
2463
2400
  * @param {*} [options] Override http request option.
2464
2401
  * @throws {RequiredError}
2465
2402
  */
2466
- getAllMarketTicker(options) {
2467
- return __awaiter(this, void 0, void 0, function* () {
2468
- var _a, _b, _c;
2469
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllMarketTicker(options);
2470
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2473
- });
2403
+ async getAllMarketTicker(options) {
2404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllMarketTicker(options);
2405
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2406
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getAllMarketTicker']?.[localVarOperationServerIndex]?.url;
2407
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2474
2408
  },
2475
2409
  /**
2476
2410
  * Retrieves candle stick data for a market.
@@ -2485,14 +2419,11 @@ export const ExchangeApiFp = function (configuration) {
2485
2419
  * @param {*} [options] Override http request option.
2486
2420
  * @throws {RequiredError}
2487
2421
  */
2488
- getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
2489
- return __awaiter(this, void 0, void 0, function* () {
2490
- var _a, _b, _c;
2491
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options);
2492
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2495
- });
2422
+ async getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
2423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCandlestickData(symbol, interval, type, startTimeAtMillis, endTimeAtMillis, limit, page, options);
2424
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2425
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getCandlestickData']?.[localVarOperationServerIndex]?.url;
2426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2496
2427
  },
2497
2428
  /**
2498
2429
  * Check if the country is geo restricted.
@@ -2500,14 +2431,11 @@ export const ExchangeApiFp = function (configuration) {
2500
2431
  * @param {*} [options] Override http request option.
2501
2432
  * @throws {RequiredError}
2502
2433
  */
2503
- getCountry(options) {
2504
- return __awaiter(this, void 0, void 0, function* () {
2505
- var _a, _b, _c;
2506
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCountry(options);
2507
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2510
- });
2434
+ async getCountry(options) {
2435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCountry(options);
2436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2437
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getCountry']?.[localVarOperationServerIndex]?.url;
2438
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2511
2439
  },
2512
2440
  /**
2513
2441
  * Returns the current exchange information including available margin assets, markets, and rules.
@@ -2515,14 +2443,11 @@ export const ExchangeApiFp = function (configuration) {
2515
2443
  * @param {*} [options] Override http request option.
2516
2444
  * @throws {RequiredError}
2517
2445
  */
2518
- getExchangeInfo(options) {
2519
- return __awaiter(this, void 0, void 0, function* () {
2520
- var _a, _b, _c;
2521
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeInfo(options);
2522
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2525
- });
2446
+ async getExchangeInfo(options) {
2447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getExchangeInfo(options);
2448
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2449
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getExchangeInfo']?.[localVarOperationServerIndex]?.url;
2450
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2526
2451
  },
2527
2452
  /**
2528
2453
  * Retrieves exchange statistics.
@@ -2535,14 +2460,11 @@ export const ExchangeApiFp = function (configuration) {
2535
2460
  * @param {*} [options] Override http request option.
2536
2461
  * @throws {RequiredError}
2537
2462
  */
2538
- getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
2539
- return __awaiter(this, void 0, void 0, function* () {
2540
- var _a, _b, _c;
2541
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options);
2542
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2545
- });
2463
+ async getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options) {
2464
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getExchangeStats(interval, startTimeAtMillis, endTimeAtMillis, limit, page, options);
2465
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2466
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getExchangeStats']?.[localVarOperationServerIndex]?.url;
2467
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2546
2468
  },
2547
2469
  /**
2548
2470
  * Retrieves all time exchange statistics.
@@ -2550,14 +2472,11 @@ export const ExchangeApiFp = function (configuration) {
2550
2472
  * @param {*} [options] Override http request option.
2551
2473
  * @throws {RequiredError}
2552
2474
  */
2553
- getExchangeStatsAllTime(options) {
2554
- return __awaiter(this, void 0, void 0, function* () {
2555
- var _a, _b, _c;
2556
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeStatsAllTime(options);
2557
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2560
- });
2475
+ async getExchangeStatsAllTime(options) {
2476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getExchangeStatsAllTime(options);
2477
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2478
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getExchangeStatsAllTime']?.[localVarOperationServerIndex]?.url;
2479
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2561
2480
  },
2562
2481
  /**
2563
2482
  * Retrieve the funding rate history for a specific market address.
@@ -2570,14 +2489,11 @@ export const ExchangeApiFp = function (configuration) {
2570
2489
  * @param {*} [options] Override http request option.
2571
2490
  * @throws {RequiredError}
2572
2491
  */
2573
- getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options) {
2574
- return __awaiter(this, void 0, void 0, function* () {
2575
- var _a, _b, _c;
2576
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options);
2577
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2580
- });
2492
+ async getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options) {
2493
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFundingRateHistory(symbol, limit, startTimeAtMillis, endTimeAtMillis, page, options);
2494
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2495
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getFundingRateHistory']?.[localVarOperationServerIndex]?.url;
2496
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2581
2497
  },
2582
2498
  /**
2583
2499
  * Retrieves the leaderboard of traders based on their performance.
@@ -2585,19 +2501,16 @@ export const ExchangeApiFp = function (configuration) {
2585
2501
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2586
2502
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2587
2503
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2588
- * @param {number} [limit] Default 50; max 100.
2504
+ * @param {number} [limit] Default 50; max 1000.
2589
2505
  * @param {number} [page] The page number to retrieve in a paginated response.
2590
2506
  * @param {*} [options] Override http request option.
2591
2507
  * @throws {RequiredError}
2592
2508
  */
2593
- getLeaderboard(interval, sortBy, sortOrder, limit, page, options) {
2594
- return __awaiter(this, void 0, void 0, function* () {
2595
- var _a, _b, _c;
2596
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeaderboard(interval, sortBy, sortOrder, limit, page, options);
2597
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2600
- });
2509
+ async getLeaderboard(interval, sortBy, sortOrder, limit, page, options) {
2510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeaderboard(interval, sortBy, sortOrder, limit, page, options);
2511
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2512
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getLeaderboard']?.[localVarOperationServerIndex]?.url;
2513
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2601
2514
  },
2602
2515
  /**
2603
2516
  * Retrieves aggregated ticker data for a market.
@@ -2606,14 +2519,11 @@ export const ExchangeApiFp = function (configuration) {
2606
2519
  * @param {*} [options] Override http request option.
2607
2520
  * @throws {RequiredError}
2608
2521
  */
2609
- getMarketTicker(symbol, options) {
2610
- return __awaiter(this, void 0, void 0, function* () {
2611
- var _a, _b, _c;
2612
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMarketTicker(symbol, options);
2613
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2616
- });
2522
+ async getMarketTicker(symbol, options) {
2523
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMarketTicker(symbol, options);
2524
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2525
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getMarketTicker']?.[localVarOperationServerIndex]?.url;
2526
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2617
2527
  },
2618
2528
  /**
2619
2529
  * Returns the current state of the orderbook.
@@ -2623,14 +2533,11 @@ export const ExchangeApiFp = function (configuration) {
2623
2533
  * @param {*} [options] Override http request option.
2624
2534
  * @throws {RequiredError}
2625
2535
  */
2626
- getOrderbookDepth(symbol, limit, options) {
2627
- return __awaiter(this, void 0, void 0, function* () {
2628
- var _a, _b, _c;
2629
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderbookDepth(symbol, limit, options);
2630
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2633
- });
2536
+ async getOrderbookDepth(symbol, limit, options) {
2537
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderbookDepth(symbol, limit, options);
2538
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2539
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getOrderbookDepth']?.[localVarOperationServerIndex]?.url;
2540
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2634
2541
  },
2635
2542
  /**
2636
2543
  * Retrieves recent trades executed on a market.
@@ -2644,14 +2551,11 @@ export const ExchangeApiFp = function (configuration) {
2644
2551
  * @param {*} [options] Override http request option.
2645
2552
  * @throws {RequiredError}
2646
2553
  */
2647
- getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options) {
2648
- return __awaiter(this, void 0, void 0, function* () {
2649
- var _a, _b, _c;
2650
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options);
2651
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
2654
- });
2554
+ async getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options) {
2555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRecentTrades(symbol, tradeType, limit, startTimeAtMillis, endTimeAtMillis, page, options);
2556
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2557
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getRecentTrades']?.[localVarOperationServerIndex]?.url;
2558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2655
2559
  },
2656
2560
  };
2657
2561
  };
@@ -2748,7 +2652,7 @@ export const ExchangeApiFactory = function (configuration, basePath, axios) {
2748
2652
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2749
2653
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2750
2654
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2751
- * @param {number} [limit] Default 50; max 100.
2655
+ * @param {number} [limit] Default 50; max 1000.
2752
2656
  * @param {number} [page] The page number to retrieve in a paginated response.
2753
2657
  * @param {*} [options] Override http request option.
2754
2658
  * @throws {RequiredError}
@@ -2894,7 +2798,7 @@ export class ExchangeApi extends BaseAPI {
2894
2798
  * @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
2895
2799
  * @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
2896
2800
  * @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
2897
- * @param {number} [limit] Default 50; max 100.
2801
+ * @param {number} [limit] Default 50; max 1000.
2898
2802
  * @param {number} [page] The page number to retrieve in a paginated response.
2899
2803
  * @param {*} [options] Override http request option.
2900
2804
  * @throws {RequiredError}
@@ -2967,7 +2871,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
2967
2871
  * @param {*} [options] Override http request option.
2968
2872
  * @throws {RequiredError}
2969
2873
  */
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 = {}) {
2874
+ getAffiliateIntervalOverview: async (userAddress, page, limit, options = {}) => {
2971
2875
  // verify required parameter 'userAddress' is not null or undefined
2972
2876
  assertParamExists('getAffiliateIntervalOverview', 'userAddress', userAddress);
2973
2877
  const localVarPath = `/v1/rewards/affiliate/intervalOverview`;
@@ -2977,7 +2881,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
2977
2881
  if (configuration) {
2978
2882
  baseOptions = configuration.baseOptions;
2979
2883
  }
2980
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2884
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2981
2885
  const localVarHeaderParameter = {};
2982
2886
  const localVarQueryParameter = {};
2983
2887
  if (userAddress !== undefined) {
@@ -2991,12 +2895,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
2991
2895
  }
2992
2896
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2993
2897
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2994
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2898
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2995
2899
  return {
2996
2900
  url: toPathString(localVarUrlObj),
2997
2901
  options: localVarRequestOptions,
2998
2902
  };
2999
- }),
2903
+ },
3000
2904
  /**
3001
2905
  * Returns rankings and earnings for affiliates, sorted by the specified category.
3002
2906
  * @summary /rewards/affiliate/leaderDashboard
@@ -3008,7 +2912,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3008
2912
  * @param {*} [options] Override http request option.
3009
2913
  * @throws {RequiredError}
3010
2914
  */
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 = {}) {
2915
+ getAffiliateLeaderDashboard: async (sortBy, sortOrder, page, limit, search, options = {}) => {
3012
2916
  const localVarPath = `/v1/rewards/affiliate/leaderDashboard`;
3013
2917
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3014
2918
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3016,7 +2920,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3016
2920
  if (configuration) {
3017
2921
  baseOptions = configuration.baseOptions;
3018
2922
  }
3019
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2923
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3020
2924
  const localVarHeaderParameter = {};
3021
2925
  const localVarQueryParameter = {};
3022
2926
  if (sortBy !== undefined) {
@@ -3036,12 +2940,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3036
2940
  }
3037
2941
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3038
2942
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3039
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2943
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3040
2944
  return {
3041
2945
  url: toPathString(localVarUrlObj),
3042
2946
  options: localVarRequestOptions,
3043
2947
  };
3044
- }),
2948
+ },
3045
2949
  /**
3046
2950
  * Returns the affiliate metadata.
3047
2951
  * @summary /rewards/affiliate
@@ -3049,7 +2953,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3049
2953
  * @param {*} [options] Override http request option.
3050
2954
  * @throws {RequiredError}
3051
2955
  */
3052
- getAffiliateMetadata: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
2956
+ getAffiliateMetadata: async (userAddress, options = {}) => {
3053
2957
  // verify required parameter 'userAddress' is not null or undefined
3054
2958
  assertParamExists('getAffiliateMetadata', 'userAddress', userAddress);
3055
2959
  const localVarPath = `/v1/rewards/affiliate`;
@@ -3059,7 +2963,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3059
2963
  if (configuration) {
3060
2964
  baseOptions = configuration.baseOptions;
3061
2965
  }
3062
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2966
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3063
2967
  const localVarHeaderParameter = {};
3064
2968
  const localVarQueryParameter = {};
3065
2969
  if (userAddress !== undefined) {
@@ -3067,12 +2971,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3067
2971
  }
3068
2972
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3069
2973
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3070
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2974
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3071
2975
  return {
3072
2976
  url: toPathString(localVarUrlObj),
3073
2977
  options: localVarRequestOptions,
3074
2978
  };
3075
- }),
2979
+ },
3076
2980
  /**
3077
2981
  * Returns detailed earnings breakdown for an affiliate users earnings (including perps, spot LP, lending), referral earnings, and total earnings.
3078
2982
  * @summary /rewards/affiliate/overview
@@ -3086,7 +2990,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3086
2990
  * @param {*} [options] Override http request option.
3087
2991
  * @throws {RequiredError}
3088
2992
  */
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 = {}) {
2993
+ getAffiliateOverview: async (userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options = {}) => {
3090
2994
  // verify required parameter 'userAddress' is not null or undefined
3091
2995
  assertParamExists('getAffiliateOverview', 'userAddress', userAddress);
3092
2996
  const localVarPath = `/v1/rewards/affiliate/overview`;
@@ -3096,7 +3000,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3096
3000
  if (configuration) {
3097
3001
  baseOptions = configuration.baseOptions;
3098
3002
  }
3099
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3003
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3100
3004
  const localVarHeaderParameter = {};
3101
3005
  const localVarQueryParameter = {};
3102
3006
  if (page !== undefined) {
@@ -3122,12 +3026,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3122
3026
  }
3123
3027
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3124
3028
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3125
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3029
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3126
3030
  return {
3127
3031
  url: toPathString(localVarUrlObj),
3128
3032
  options: localVarRequestOptions,
3129
3033
  };
3130
- }),
3034
+ },
3131
3035
  /**
3132
3036
  * Returns performance summary for an affiliate including total referrals, earnings, and rankings.
3133
3037
  * @summary /rewards/affiliate/summary
@@ -3135,7 +3039,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3135
3039
  * @param {*} [options] Override http request option.
3136
3040
  * @throws {RequiredError}
3137
3041
  */
3138
- getAffiliateSummary: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
3042
+ getAffiliateSummary: async (userAddress, options = {}) => {
3139
3043
  // verify required parameter 'userAddress' is not null or undefined
3140
3044
  assertParamExists('getAffiliateSummary', 'userAddress', userAddress);
3141
3045
  const localVarPath = `/v1/rewards/affiliate/summary`;
@@ -3145,7 +3049,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3145
3049
  if (configuration) {
3146
3050
  baseOptions = configuration.baseOptions;
3147
3051
  }
3148
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3052
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3149
3053
  const localVarHeaderParameter = {};
3150
3054
  const localVarQueryParameter = {};
3151
3055
  if (userAddress !== undefined) {
@@ -3153,12 +3057,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3153
3057
  }
3154
3058
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3155
3059
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3156
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3060
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3157
3061
  return {
3158
3062
  url: toPathString(localVarUrlObj),
3159
3063
  options: localVarRequestOptions,
3160
3064
  };
3161
- }),
3065
+ },
3162
3066
  /**
3163
3067
  * Returns the rewards earned by users for a specific campaign.
3164
3068
  * @summary /rewards/campaign
@@ -3168,7 +3072,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3168
3072
  * @param {*} [options] Override http request option.
3169
3073
  * @throws {RequiredError}
3170
3074
  */
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 = {}) {
3075
+ getCampaignRewards: async (campaignName, userAddress, epochNumber, options = {}) => {
3172
3076
  // verify required parameter 'campaignName' is not null or undefined
3173
3077
  assertParamExists('getCampaignRewards', 'campaignName', campaignName);
3174
3078
  // verify required parameter 'userAddress' is not null or undefined
@@ -3180,7 +3084,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3180
3084
  if (configuration) {
3181
3085
  baseOptions = configuration.baseOptions;
3182
3086
  }
3183
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3087
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3184
3088
  const localVarHeaderParameter = {};
3185
3089
  const localVarQueryParameter = {};
3186
3090
  if (campaignName !== undefined) {
@@ -3194,19 +3098,19 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3194
3098
  }
3195
3099
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3196
3100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3197
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3101
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3198
3102
  return {
3199
3103
  url: toPathString(localVarUrlObj),
3200
3104
  options: localVarRequestOptions,
3201
3105
  };
3202
- }),
3106
+ },
3203
3107
  /**
3204
3108
  * Returns the contract configuration metadata
3205
3109
  * @summary Get contract configurations
3206
3110
  * @param {*} [options] Override http request option.
3207
3111
  * @throws {RequiredError}
3208
3112
  */
3209
- getContractConfig: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3113
+ getContractConfig: async (options = {}) => {
3210
3114
  const localVarPath = `/v1/rewards/contract/config`;
3211
3115
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3212
3116
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3214,17 +3118,17 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3214
3118
  if (configuration) {
3215
3119
  baseOptions = configuration.baseOptions;
3216
3120
  }
3217
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3121
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3218
3122
  const localVarHeaderParameter = {};
3219
3123
  const localVarQueryParameter = {};
3220
3124
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3221
3125
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3222
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3126
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3223
3127
  return {
3224
3128
  url: toPathString(localVarUrlObj),
3225
3129
  options: localVarRequestOptions,
3226
3130
  };
3227
- }),
3131
+ },
3228
3132
  /**
3229
3133
  * Returns the rewards earned by users for the intervals.
3230
3134
  * @summary /rewards
@@ -3232,7 +3136,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3232
3136
  * @param {*} [options] Override http request option.
3233
3137
  * @throws {RequiredError}
3234
3138
  */
3235
- getRewards: (intervalNumber_1, ...args_1) => __awaiter(this, [intervalNumber_1, ...args_1], void 0, function* (intervalNumber, options = {}) {
3139
+ getRewards: async (intervalNumber, options = {}) => {
3236
3140
  const localVarPath = `/v1/rewards`;
3237
3141
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3238
3142
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3240,23 +3144,23 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3240
3144
  if (configuration) {
3241
3145
  baseOptions = configuration.baseOptions;
3242
3146
  }
3243
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3147
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3244
3148
  const localVarHeaderParameter = {};
3245
3149
  const localVarQueryParameter = {};
3246
3150
  // authentication bearerAuth required
3247
3151
  // http bearer authentication required
3248
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3152
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3249
3153
  if (intervalNumber !== undefined) {
3250
3154
  localVarQueryParameter['intervalNumber'] = intervalNumber;
3251
3155
  }
3252
3156
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3253
3157
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3254
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3158
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3255
3159
  return {
3256
3160
  url: toPathString(localVarUrlObj),
3257
3161
  options: localVarRequestOptions,
3258
3162
  };
3259
- }),
3163
+ },
3260
3164
  /**
3261
3165
  * Returns the metadata for the rewards campaigns.
3262
3166
  * @summary /rewards/metadata/campaign
@@ -3265,7 +3169,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3265
3169
  * @param {*} [options] Override http request option.
3266
3170
  * @throws {RequiredError}
3267
3171
  */
3268
- getRewardsCampaignMetadata: (campaignName_1, status_1, ...args_1) => __awaiter(this, [campaignName_1, status_1, ...args_1], void 0, function* (campaignName, status, options = {}) {
3172
+ getRewardsCampaignMetadata: async (campaignName, status, options = {}) => {
3269
3173
  const localVarPath = `/v1/rewards/metadata/campaign`;
3270
3174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3271
3175
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3273,7 +3177,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3273
3177
  if (configuration) {
3274
3178
  baseOptions = configuration.baseOptions;
3275
3179
  }
3276
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3180
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3277
3181
  const localVarHeaderParameter = {};
3278
3182
  const localVarQueryParameter = {};
3279
3183
  if (campaignName !== undefined) {
@@ -3284,12 +3188,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3284
3188
  }
3285
3189
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3286
3190
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3287
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3191
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3288
3192
  return {
3289
3193
  url: toPathString(localVarUrlObj),
3290
3194
  options: localVarRequestOptions,
3291
3195
  };
3292
- }),
3196
+ },
3293
3197
  /**
3294
3198
  * Returns the latest epoch configs for the campaigns.
3295
3199
  * @summary /rewards/metadata/epoch/configs
@@ -3297,7 +3201,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3297
3201
  * @param {*} [options] Override http request option.
3298
3202
  * @throws {RequiredError}
3299
3203
  */
3300
- getRewardsEpochConfigMetadata: (intervalNumber_1, ...args_1) => __awaiter(this, [intervalNumber_1, ...args_1], void 0, function* (intervalNumber, options = {}) {
3204
+ getRewardsEpochConfigMetadata: async (intervalNumber, options = {}) => {
3301
3205
  const localVarPath = `/v1/rewards/metadata/epoch/configs`;
3302
3206
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3303
3207
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3305,7 +3209,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3305
3209
  if (configuration) {
3306
3210
  baseOptions = configuration.baseOptions;
3307
3211
  }
3308
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3212
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3309
3213
  const localVarHeaderParameter = {};
3310
3214
  const localVarQueryParameter = {};
3311
3215
  if (intervalNumber !== undefined) {
@@ -3313,12 +3217,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3313
3217
  }
3314
3218
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3315
3219
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3316
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3220
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3317
3221
  return {
3318
3222
  url: toPathString(localVarUrlObj),
3319
3223
  options: localVarRequestOptions,
3320
3224
  };
3321
- }),
3225
+ },
3322
3226
  /**
3323
3227
  * Returns the latest or next epoch epoch for campaign.
3324
3228
  * @summary /rewards/metadata/epoch
@@ -3327,7 +3231,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3327
3231
  * @param {*} [options] Override http request option.
3328
3232
  * @throws {RequiredError}
3329
3233
  */
3330
- getRewardsEpochMetadata: (campaignName_1, epoch_1, ...args_1) => __awaiter(this, [campaignName_1, epoch_1, ...args_1], void 0, function* (campaignName, epoch, options = {}) {
3234
+ getRewardsEpochMetadata: async (campaignName, epoch, options = {}) => {
3331
3235
  const localVarPath = `/v1/rewards/metadata/epoch`;
3332
3236
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3333
3237
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3335,7 +3239,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3335
3239
  if (configuration) {
3336
3240
  baseOptions = configuration.baseOptions;
3337
3241
  }
3338
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3242
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3339
3243
  const localVarHeaderParameter = {};
3340
3244
  const localVarQueryParameter = {};
3341
3245
  if (campaignName !== undefined) {
@@ -3346,12 +3250,12 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3346
3250
  }
3347
3251
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3348
3252
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3349
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3350
3254
  return {
3351
3255
  url: toPathString(localVarUrlObj),
3352
3256
  options: localVarRequestOptions,
3353
3257
  };
3354
- }),
3258
+ },
3355
3259
  /**
3356
3260
  * Returns the interval metadata for provided parameters.
3357
3261
  * @summary /rewards/metadata/interval
@@ -3359,7 +3263,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3359
3263
  * @param {*} [options] Override http request option.
3360
3264
  * @throws {RequiredError}
3361
3265
  */
3362
- getRewardsIntervalMetadata: (interval_1, ...args_1) => __awaiter(this, [interval_1, ...args_1], void 0, function* (interval, options = {}) {
3266
+ getRewardsIntervalMetadata: async (interval, options = {}) => {
3363
3267
  const localVarPath = `/v1/rewards/metadata/interval`;
3364
3268
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3365
3269
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3367,7 +3271,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3367
3271
  if (configuration) {
3368
3272
  baseOptions = configuration.baseOptions;
3369
3273
  }
3370
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3274
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3371
3275
  const localVarHeaderParameter = {};
3372
3276
  const localVarQueryParameter = {};
3373
3277
  if (interval !== undefined) {
@@ -3375,19 +3279,19 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3375
3279
  }
3376
3280
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3377
3281
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3378
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3282
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3379
3283
  return {
3380
3284
  url: toPathString(localVarUrlObj),
3381
3285
  options: localVarRequestOptions,
3382
3286
  };
3383
- }),
3287
+ },
3384
3288
  /**
3385
3289
  * Returns the all time rewards earned by users.
3386
3290
  * @summary /rewards/summary
3387
3291
  * @param {*} [options] Override http request option.
3388
3292
  * @throws {RequiredError}
3389
3293
  */
3390
- getRewardsSummary: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3294
+ getRewardsSummary: async (options = {}) => {
3391
3295
  const localVarPath = `/v1/rewards/summary`;
3392
3296
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3393
3297
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3395,20 +3299,20 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3395
3299
  if (configuration) {
3396
3300
  baseOptions = configuration.baseOptions;
3397
3301
  }
3398
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3302
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3399
3303
  const localVarHeaderParameter = {};
3400
3304
  const localVarQueryParameter = {};
3401
3305
  // authentication bearerAuth required
3402
3306
  // http bearer authentication required
3403
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3307
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3404
3308
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3405
3309
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3406
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3310
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3407
3311
  return {
3408
3312
  url: toPathString(localVarUrlObj),
3409
3313
  options: localVarRequestOptions,
3410
3314
  };
3411
- }),
3315
+ },
3412
3316
  /**
3413
3317
  * Mark user claims as claimed for the specified campaign name and interval number
3414
3318
  * @summary /v1/rewards/claims/mark-claimed
@@ -3416,7 +3320,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3416
3320
  * @param {*} [options] Override http request option.
3417
3321
  * @throws {RequiredError}
3418
3322
  */
3419
- markAsClaimed: (markAsClaimedRequest_1, ...args_1) => __awaiter(this, [markAsClaimedRequest_1, ...args_1], void 0, function* (markAsClaimedRequest, options = {}) {
3323
+ markAsClaimed: async (markAsClaimedRequest, options = {}) => {
3420
3324
  // verify required parameter 'markAsClaimedRequest' is not null or undefined
3421
3325
  assertParamExists('markAsClaimed', 'markAsClaimedRequest', markAsClaimedRequest);
3422
3326
  const localVarPath = `/v1/rewards/claims/mark-claimed`;
@@ -3426,22 +3330,22 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3426
3330
  if (configuration) {
3427
3331
  baseOptions = configuration.baseOptions;
3428
3332
  }
3429
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3333
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3430
3334
  const localVarHeaderParameter = {};
3431
3335
  const localVarQueryParameter = {};
3432
3336
  // authentication bearerAuth required
3433
3337
  // http bearer authentication required
3434
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3338
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3435
3339
  localVarHeaderParameter['Content-Type'] = 'application/json';
3436
3340
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3437
3341
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3438
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3342
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3439
3343
  localVarRequestOptions.data = serializeDataIfNeeded(markAsClaimedRequest, localVarRequestOptions, configuration);
3440
3344
  return {
3441
3345
  url: toPathString(localVarUrlObj),
3442
3346
  options: localVarRequestOptions,
3443
3347
  };
3444
- }),
3348
+ },
3445
3349
  /**
3446
3350
  * Submit an application to become an affiliate.
3447
3351
  * @summary /rewards/affiliate/onboard
@@ -3449,7 +3353,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3449
3353
  * @param {*} [options] Override http request option.
3450
3354
  * @throws {RequiredError}
3451
3355
  */
3452
- onboardAffiliate: (onboardAffiliateRequest_1, ...args_1) => __awaiter(this, [onboardAffiliateRequest_1, ...args_1], void 0, function* (onboardAffiliateRequest, options = {}) {
3356
+ onboardAffiliate: async (onboardAffiliateRequest, options = {}) => {
3453
3357
  // verify required parameter 'onboardAffiliateRequest' is not null or undefined
3454
3358
  assertParamExists('onboardAffiliate', 'onboardAffiliateRequest', onboardAffiliateRequest);
3455
3359
  const localVarPath = `/v1/rewards/affiliate/onboard`;
@@ -3459,22 +3363,22 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3459
3363
  if (configuration) {
3460
3364
  baseOptions = configuration.baseOptions;
3461
3365
  }
3462
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3366
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3463
3367
  const localVarHeaderParameter = {};
3464
3368
  const localVarQueryParameter = {};
3465
3369
  // authentication bearerAuth required
3466
3370
  // http bearer authentication required
3467
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3371
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3468
3372
  localVarHeaderParameter['Content-Type'] = 'application/json';
3469
3373
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3470
3374
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3471
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3375
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3472
3376
  localVarRequestOptions.data = serializeDataIfNeeded(onboardAffiliateRequest, localVarRequestOptions, configuration);
3473
3377
  return {
3474
3378
  url: toPathString(localVarUrlObj),
3475
3379
  options: localVarRequestOptions,
3476
3380
  };
3477
- }),
3381
+ },
3478
3382
  /**
3479
3383
  * Onboard a referee with a referral code.
3480
3384
  * @summary /rewards/affiliate/onboard/referee
@@ -3482,7 +3386,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3482
3386
  * @param {*} [options] Override http request option.
3483
3387
  * @throws {RequiredError}
3484
3388
  */
3485
- onboardReferee: (onboardRefereeRequest_1, ...args_1) => __awaiter(this, [onboardRefereeRequest_1, ...args_1], void 0, function* (onboardRefereeRequest, options = {}) {
3389
+ onboardReferee: async (onboardRefereeRequest, options = {}) => {
3486
3390
  // verify required parameter 'onboardRefereeRequest' is not null or undefined
3487
3391
  assertParamExists('onboardReferee', 'onboardRefereeRequest', onboardRefereeRequest);
3488
3392
  const localVarPath = `/v1/rewards/affiliate/onboard/referee`;
@@ -3492,22 +3396,22 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3492
3396
  if (configuration) {
3493
3397
  baseOptions = configuration.baseOptions;
3494
3398
  }
3495
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3399
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3496
3400
  const localVarHeaderParameter = {};
3497
3401
  const localVarQueryParameter = {};
3498
3402
  // authentication bearerAuth required
3499
3403
  // http bearer authentication required
3500
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3404
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3501
3405
  localVarHeaderParameter['Content-Type'] = 'application/json';
3502
3406
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3503
3407
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3504
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3408
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3505
3409
  localVarRequestOptions.data = serializeDataIfNeeded(onboardRefereeRequest, localVarRequestOptions, configuration);
3506
3410
  return {
3507
3411
  url: toPathString(localVarUrlObj),
3508
3412
  options: localVarRequestOptions,
3509
3413
  };
3510
- }),
3414
+ },
3511
3415
  /**
3512
3416
  * Update the ember refferal share for an affiliate.
3513
3417
  * @summary /rewards/affiliate/emberRefferalShare
@@ -3515,7 +3419,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3515
3419
  * @param {*} [options] Override http request option.
3516
3420
  * @throws {RequiredError}
3517
3421
  */
3518
- updateAffiliateEmberRefferalShare: (updateAffiliateEmberRefferalShareRequest_1, ...args_1) => __awaiter(this, [updateAffiliateEmberRefferalShareRequest_1, ...args_1], void 0, function* (updateAffiliateEmberRefferalShareRequest, options = {}) {
3422
+ updateAffiliateEmberRefferalShare: async (updateAffiliateEmberRefferalShareRequest, options = {}) => {
3519
3423
  // verify required parameter 'updateAffiliateEmberRefferalShareRequest' is not null or undefined
3520
3424
  assertParamExists('updateAffiliateEmberRefferalShare', 'updateAffiliateEmberRefferalShareRequest', updateAffiliateEmberRefferalShareRequest);
3521
3425
  const localVarPath = `/v1/rewards/affiliate/emberRefferalShare`;
@@ -3525,22 +3429,22 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3525
3429
  if (configuration) {
3526
3430
  baseOptions = configuration.baseOptions;
3527
3431
  }
3528
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3432
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3529
3433
  const localVarHeaderParameter = {};
3530
3434
  const localVarQueryParameter = {};
3531
3435
  // authentication bearerAuth required
3532
3436
  // http bearer authentication required
3533
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3437
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3534
3438
  localVarHeaderParameter['Content-Type'] = 'application/json';
3535
3439
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3536
3440
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3537
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3441
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3538
3442
  localVarRequestOptions.data = serializeDataIfNeeded(updateAffiliateEmberRefferalShareRequest, localVarRequestOptions, configuration);
3539
3443
  return {
3540
3444
  url: toPathString(localVarUrlObj),
3541
3445
  options: localVarRequestOptions,
3542
3446
  };
3543
- }),
3447
+ },
3544
3448
  /**
3545
3449
  * Update the fee config for an affiliate.
3546
3450
  * @summary /rewards/affiliate/feeConfig
@@ -3548,7 +3452,7 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3548
3452
  * @param {*} [options] Override http request option.
3549
3453
  * @throws {RequiredError}
3550
3454
  */
3551
- updateAffiliateFeeConfig: (updateAffiliateFeeConfigRequest_1, ...args_1) => __awaiter(this, [updateAffiliateFeeConfigRequest_1, ...args_1], void 0, function* (updateAffiliateFeeConfigRequest, options = {}) {
3455
+ updateAffiliateFeeConfig: async (updateAffiliateFeeConfigRequest, options = {}) => {
3552
3456
  // verify required parameter 'updateAffiliateFeeConfigRequest' is not null or undefined
3553
3457
  assertParamExists('updateAffiliateFeeConfig', 'updateAffiliateFeeConfigRequest', updateAffiliateFeeConfigRequest);
3554
3458
  const localVarPath = `/v1/rewards/affiliate/feeConfig`;
@@ -3558,22 +3462,22 @@ export const RewardsApiAxiosParamCreator = function (configuration) {
3558
3462
  if (configuration) {
3559
3463
  baseOptions = configuration.baseOptions;
3560
3464
  }
3561
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3465
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3562
3466
  const localVarHeaderParameter = {};
3563
3467
  const localVarQueryParameter = {};
3564
3468
  // authentication bearerAuth required
3565
3469
  // http bearer authentication required
3566
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3470
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3567
3471
  localVarHeaderParameter['Content-Type'] = 'application/json';
3568
3472
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3569
3473
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3570
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3474
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3571
3475
  localVarRequestOptions.data = serializeDataIfNeeded(updateAffiliateFeeConfigRequest, localVarRequestOptions, configuration);
3572
3476
  return {
3573
3477
  url: toPathString(localVarUrlObj),
3574
3478
  options: localVarRequestOptions,
3575
3479
  };
3576
- }),
3480
+ },
3577
3481
  };
3578
3482
  };
3579
3483
  /**
@@ -3592,14 +3496,11 @@ export const RewardsApiFp = function (configuration) {
3592
3496
  * @param {*} [options] Override http request option.
3593
3497
  * @throws {RequiredError}
3594
3498
  */
3595
- getAffiliateIntervalOverview(userAddress, page, limit, options) {
3596
- return __awaiter(this, void 0, void 0, function* () {
3597
- var _a, _b, _c;
3598
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateIntervalOverview(userAddress, page, limit, options);
3599
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3602
- });
3499
+ async getAffiliateIntervalOverview(userAddress, page, limit, options) {
3500
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateIntervalOverview(userAddress, page, limit, options);
3501
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3502
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getAffiliateIntervalOverview']?.[localVarOperationServerIndex]?.url;
3503
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3603
3504
  },
3604
3505
  /**
3605
3506
  * Returns rankings and earnings for affiliates, sorted by the specified category.
@@ -3612,14 +3513,11 @@ export const RewardsApiFp = function (configuration) {
3612
3513
  * @param {*} [options] Override http request option.
3613
3514
  * @throws {RequiredError}
3614
3515
  */
3615
- getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options) {
3616
- return __awaiter(this, void 0, void 0, function* () {
3617
- var _a, _b, _c;
3618
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options);
3619
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3622
- });
3516
+ async getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options) {
3517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateLeaderDashboard(sortBy, sortOrder, page, limit, search, options);
3518
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3519
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getAffiliateLeaderDashboard']?.[localVarOperationServerIndex]?.url;
3520
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3623
3521
  },
3624
3522
  /**
3625
3523
  * Returns the affiliate metadata.
@@ -3628,14 +3526,11 @@ export const RewardsApiFp = function (configuration) {
3628
3526
  * @param {*} [options] Override http request option.
3629
3527
  * @throws {RequiredError}
3630
3528
  */
3631
- getAffiliateMetadata(userAddress, options) {
3632
- return __awaiter(this, void 0, void 0, function* () {
3633
- var _a, _b, _c;
3634
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateMetadata(userAddress, options);
3635
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3638
- });
3529
+ async getAffiliateMetadata(userAddress, options) {
3530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateMetadata(userAddress, options);
3531
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3532
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getAffiliateMetadata']?.[localVarOperationServerIndex]?.url;
3533
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3639
3534
  },
3640
3535
  /**
3641
3536
  * Returns detailed earnings breakdown for an affiliate users earnings (including perps, spot LP, lending), referral earnings, and total earnings.
@@ -3650,14 +3545,11 @@ export const RewardsApiFp = function (configuration) {
3650
3545
  * @param {*} [options] Override http request option.
3651
3546
  * @throws {RequiredError}
3652
3547
  */
3653
- getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options) {
3654
- return __awaiter(this, void 0, void 0, function* () {
3655
- var _a, _b, _c;
3656
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options);
3657
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3660
- });
3548
+ async getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options) {
3549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateOverview(userAddress, page, limit, sortBy, sortOrder, search, minEarningsE9, options);
3550
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3551
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getAffiliateOverview']?.[localVarOperationServerIndex]?.url;
3552
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3661
3553
  },
3662
3554
  /**
3663
3555
  * Returns performance summary for an affiliate including total referrals, earnings, and rankings.
@@ -3666,14 +3558,11 @@ export const RewardsApiFp = function (configuration) {
3666
3558
  * @param {*} [options] Override http request option.
3667
3559
  * @throws {RequiredError}
3668
3560
  */
3669
- getAffiliateSummary(userAddress, options) {
3670
- return __awaiter(this, void 0, void 0, function* () {
3671
- var _a, _b, _c;
3672
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateSummary(userAddress, options);
3673
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3676
- });
3561
+ async getAffiliateSummary(userAddress, options) {
3562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAffiliateSummary(userAddress, options);
3563
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3564
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getAffiliateSummary']?.[localVarOperationServerIndex]?.url;
3565
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3677
3566
  },
3678
3567
  /**
3679
3568
  * Returns the rewards earned by users for a specific campaign.
@@ -3684,14 +3573,11 @@ export const RewardsApiFp = function (configuration) {
3684
3573
  * @param {*} [options] Override http request option.
3685
3574
  * @throws {RequiredError}
3686
3575
  */
3687
- getCampaignRewards(campaignName, userAddress, epochNumber, options) {
3688
- return __awaiter(this, void 0, void 0, function* () {
3689
- var _a, _b, _c;
3690
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCampaignRewards(campaignName, userAddress, epochNumber, options);
3691
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3694
- });
3576
+ async getCampaignRewards(campaignName, userAddress, epochNumber, options) {
3577
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCampaignRewards(campaignName, userAddress, epochNumber, options);
3578
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3579
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getCampaignRewards']?.[localVarOperationServerIndex]?.url;
3580
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3695
3581
  },
3696
3582
  /**
3697
3583
  * Returns the contract configuration metadata
@@ -3699,14 +3585,11 @@ export const RewardsApiFp = function (configuration) {
3699
3585
  * @param {*} [options] Override http request option.
3700
3586
  * @throws {RequiredError}
3701
3587
  */
3702
- getContractConfig(options) {
3703
- return __awaiter(this, void 0, void 0, function* () {
3704
- var _a, _b, _c;
3705
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getContractConfig(options);
3706
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3709
- });
3588
+ async getContractConfig(options) {
3589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContractConfig(options);
3590
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3591
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getContractConfig']?.[localVarOperationServerIndex]?.url;
3592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3710
3593
  },
3711
3594
  /**
3712
3595
  * Returns the rewards earned by users for the intervals.
@@ -3715,14 +3598,11 @@ export const RewardsApiFp = function (configuration) {
3715
3598
  * @param {*} [options] Override http request option.
3716
3599
  * @throws {RequiredError}
3717
3600
  */
3718
- getRewards(intervalNumber, options) {
3719
- return __awaiter(this, void 0, void 0, function* () {
3720
- var _a, _b, _c;
3721
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewards(intervalNumber, options);
3722
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3725
- });
3601
+ async getRewards(intervalNumber, options) {
3602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRewards(intervalNumber, options);
3603
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3604
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getRewards']?.[localVarOperationServerIndex]?.url;
3605
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3726
3606
  },
3727
3607
  /**
3728
3608
  * Returns the metadata for the rewards campaigns.
@@ -3732,14 +3612,11 @@ export const RewardsApiFp = function (configuration) {
3732
3612
  * @param {*} [options] Override http request option.
3733
3613
  * @throws {RequiredError}
3734
3614
  */
3735
- getRewardsCampaignMetadata(campaignName, status, options) {
3736
- return __awaiter(this, void 0, void 0, function* () {
3737
- var _a, _b, _c;
3738
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsCampaignMetadata(campaignName, status, options);
3739
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3742
- });
3615
+ async getRewardsCampaignMetadata(campaignName, status, options) {
3616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRewardsCampaignMetadata(campaignName, status, options);
3617
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3618
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getRewardsCampaignMetadata']?.[localVarOperationServerIndex]?.url;
3619
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3743
3620
  },
3744
3621
  /**
3745
3622
  * Returns the latest epoch configs for the campaigns.
@@ -3748,14 +3625,11 @@ export const RewardsApiFp = function (configuration) {
3748
3625
  * @param {*} [options] Override http request option.
3749
3626
  * @throws {RequiredError}
3750
3627
  */
3751
- getRewardsEpochConfigMetadata(intervalNumber, options) {
3752
- return __awaiter(this, void 0, void 0, function* () {
3753
- var _a, _b, _c;
3754
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsEpochConfigMetadata(intervalNumber, options);
3755
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3758
- });
3628
+ async getRewardsEpochConfigMetadata(intervalNumber, options) {
3629
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRewardsEpochConfigMetadata(intervalNumber, options);
3630
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3631
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getRewardsEpochConfigMetadata']?.[localVarOperationServerIndex]?.url;
3632
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3759
3633
  },
3760
3634
  /**
3761
3635
  * Returns the latest or next epoch epoch for campaign.
@@ -3765,14 +3639,11 @@ export const RewardsApiFp = function (configuration) {
3765
3639
  * @param {*} [options] Override http request option.
3766
3640
  * @throws {RequiredError}
3767
3641
  */
3768
- getRewardsEpochMetadata(campaignName, epoch, options) {
3769
- return __awaiter(this, void 0, void 0, function* () {
3770
- var _a, _b, _c;
3771
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsEpochMetadata(campaignName, epoch, options);
3772
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3775
- });
3642
+ async getRewardsEpochMetadata(campaignName, epoch, options) {
3643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRewardsEpochMetadata(campaignName, epoch, options);
3644
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3645
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getRewardsEpochMetadata']?.[localVarOperationServerIndex]?.url;
3646
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3776
3647
  },
3777
3648
  /**
3778
3649
  * Returns the interval metadata for provided parameters.
@@ -3781,14 +3652,11 @@ export const RewardsApiFp = function (configuration) {
3781
3652
  * @param {*} [options] Override http request option.
3782
3653
  * @throws {RequiredError}
3783
3654
  */
3784
- getRewardsIntervalMetadata(interval, options) {
3785
- return __awaiter(this, void 0, void 0, function* () {
3786
- var _a, _b, _c;
3787
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsIntervalMetadata(interval, options);
3788
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3791
- });
3655
+ async getRewardsIntervalMetadata(interval, options) {
3656
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRewardsIntervalMetadata(interval, options);
3657
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3658
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getRewardsIntervalMetadata']?.[localVarOperationServerIndex]?.url;
3659
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3792
3660
  },
3793
3661
  /**
3794
3662
  * Returns the all time rewards earned by users.
@@ -3796,14 +3664,11 @@ export const RewardsApiFp = function (configuration) {
3796
3664
  * @param {*} [options] Override http request option.
3797
3665
  * @throws {RequiredError}
3798
3666
  */
3799
- getRewardsSummary(options) {
3800
- return __awaiter(this, void 0, void 0, function* () {
3801
- var _a, _b, _c;
3802
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRewardsSummary(options);
3803
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3806
- });
3667
+ async getRewardsSummary(options) {
3668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRewardsSummary(options);
3669
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3670
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.getRewardsSummary']?.[localVarOperationServerIndex]?.url;
3671
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3807
3672
  },
3808
3673
  /**
3809
3674
  * Mark user claims as claimed for the specified campaign name and interval number
@@ -3812,14 +3677,11 @@ export const RewardsApiFp = function (configuration) {
3812
3677
  * @param {*} [options] Override http request option.
3813
3678
  * @throws {RequiredError}
3814
3679
  */
3815
- markAsClaimed(markAsClaimedRequest, options) {
3816
- return __awaiter(this, void 0, void 0, function* () {
3817
- var _a, _b, _c;
3818
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markAsClaimed(markAsClaimedRequest, options);
3819
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3822
- });
3680
+ async markAsClaimed(markAsClaimedRequest, options) {
3681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markAsClaimed(markAsClaimedRequest, options);
3682
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3683
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.markAsClaimed']?.[localVarOperationServerIndex]?.url;
3684
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3823
3685
  },
3824
3686
  /**
3825
3687
  * Submit an application to become an affiliate.
@@ -3828,14 +3690,11 @@ export const RewardsApiFp = function (configuration) {
3828
3690
  * @param {*} [options] Override http request option.
3829
3691
  * @throws {RequiredError}
3830
3692
  */
3831
- onboardAffiliate(onboardAffiliateRequest, options) {
3832
- return __awaiter(this, void 0, void 0, function* () {
3833
- var _a, _b, _c;
3834
- const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardAffiliate(onboardAffiliateRequest, options);
3835
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3838
- });
3693
+ async onboardAffiliate(onboardAffiliateRequest, options) {
3694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onboardAffiliate(onboardAffiliateRequest, options);
3695
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3696
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.onboardAffiliate']?.[localVarOperationServerIndex]?.url;
3697
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3839
3698
  },
3840
3699
  /**
3841
3700
  * Onboard a referee with a referral code.
@@ -3844,14 +3703,11 @@ export const RewardsApiFp = function (configuration) {
3844
3703
  * @param {*} [options] Override http request option.
3845
3704
  * @throws {RequiredError}
3846
3705
  */
3847
- onboardReferee(onboardRefereeRequest, options) {
3848
- return __awaiter(this, void 0, void 0, function* () {
3849
- var _a, _b, _c;
3850
- const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardReferee(onboardRefereeRequest, options);
3851
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3854
- });
3706
+ async onboardReferee(onboardRefereeRequest, options) {
3707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onboardReferee(onboardRefereeRequest, options);
3708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3709
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.onboardReferee']?.[localVarOperationServerIndex]?.url;
3710
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3855
3711
  },
3856
3712
  /**
3857
3713
  * Update the ember refferal share for an affiliate.
@@ -3860,14 +3716,11 @@ export const RewardsApiFp = function (configuration) {
3860
3716
  * @param {*} [options] Override http request option.
3861
3717
  * @throws {RequiredError}
3862
3718
  */
3863
- updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options) {
3864
- return __awaiter(this, void 0, void 0, function* () {
3865
- var _a, _b, _c;
3866
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options);
3867
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3870
- });
3719
+ async updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options) {
3720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options);
3721
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3722
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.updateAffiliateEmberRefferalShare']?.[localVarOperationServerIndex]?.url;
3723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3871
3724
  },
3872
3725
  /**
3873
3726
  * Update the fee config for an affiliate.
@@ -3876,14 +3729,11 @@ export const RewardsApiFp = function (configuration) {
3876
3729
  * @param {*} [options] Override http request option.
3877
3730
  * @throws {RequiredError}
3878
3731
  */
3879
- updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options) {
3880
- return __awaiter(this, void 0, void 0, function* () {
3881
- var _a, _b, _c;
3882
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options);
3883
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
3886
- });
3732
+ async updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options) {
3733
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAffiliateFeeConfig(updateAffiliateFeeConfigRequest, options);
3734
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3735
+ const localVarOperationServerBasePath = operationServerMap['RewardsApi.updateAffiliateFeeConfig']?.[localVarOperationServerIndex]?.url;
3736
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3887
3737
  },
3888
3738
  };
3889
3739
  };
@@ -4369,7 +4219,7 @@ export const StreamsApiAxiosParamCreator = function (configuration) {
4369
4219
  * @param {*} [options] Override http request option.
4370
4220
  * @throws {RequiredError}
4371
4221
  */
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 = {}) {
4222
+ webSocketAccountData: async (authorization, upgrade, secWebSocketKey, secWebSocketVersion, options = {}) => {
4373
4223
  // verify required parameter 'authorization' is not null or undefined
4374
4224
  assertParamExists('webSocketAccountData', 'authorization', authorization);
4375
4225
  // verify required parameter 'upgrade' is not null or undefined
@@ -4385,12 +4235,12 @@ export const StreamsApiAxiosParamCreator = function (configuration) {
4385
4235
  if (configuration) {
4386
4236
  baseOptions = configuration.baseOptions;
4387
4237
  }
4388
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4238
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4389
4239
  const localVarHeaderParameter = {};
4390
4240
  const localVarQueryParameter = {};
4391
4241
  // authentication bearerAuth required
4392
4242
  // http bearer authentication required
4393
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4243
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4394
4244
  if (authorization != null) {
4395
4245
  localVarHeaderParameter['Authorization'] = String(authorization);
4396
4246
  }
@@ -4405,12 +4255,12 @@ export const StreamsApiAxiosParamCreator = function (configuration) {
4405
4255
  }
4406
4256
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4407
4257
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4408
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4258
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4409
4259
  return {
4410
4260
  url: toPathString(localVarUrlObj),
4411
4261
  options: localVarRequestOptions,
4412
4262
  };
4413
- }),
4263
+ },
4414
4264
  /**
4415
4265
  * WebSocket Market Streams URL.
4416
4266
  * @param {WebSocketMarketDataUpgradeEnum} upgrade
@@ -4419,7 +4269,7 @@ export const StreamsApiAxiosParamCreator = function (configuration) {
4419
4269
  * @param {*} [options] Override http request option.
4420
4270
  * @throws {RequiredError}
4421
4271
  */
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 = {}) {
4272
+ webSocketMarketData: async (upgrade, secWebSocketKey, secWebSocketVersion, options = {}) => {
4423
4273
  // verify required parameter 'upgrade' is not null or undefined
4424
4274
  assertParamExists('webSocketMarketData', 'upgrade', upgrade);
4425
4275
  // verify required parameter 'secWebSocketKey' is not null or undefined
@@ -4433,7 +4283,7 @@ export const StreamsApiAxiosParamCreator = function (configuration) {
4433
4283
  if (configuration) {
4434
4284
  baseOptions = configuration.baseOptions;
4435
4285
  }
4436
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4286
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4437
4287
  const localVarHeaderParameter = {};
4438
4288
  const localVarQueryParameter = {};
4439
4289
  if (upgrade != null) {
@@ -4447,12 +4297,12 @@ export const StreamsApiAxiosParamCreator = function (configuration) {
4447
4297
  }
4448
4298
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4449
4299
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4450
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4300
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4451
4301
  return {
4452
4302
  url: toPathString(localVarUrlObj),
4453
4303
  options: localVarRequestOptions,
4454
4304
  };
4455
- }),
4305
+ },
4456
4306
  };
4457
4307
  };
4458
4308
  /**
@@ -4471,14 +4321,11 @@ export const StreamsApiFp = function (configuration) {
4471
4321
  * @param {*} [options] Override http request option.
4472
4322
  * @throws {RequiredError}
4473
4323
  */
4474
- webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options) {
4475
- return __awaiter(this, void 0, void 0, function* () {
4476
- var _a, _b, _c;
4477
- const localVarAxiosArgs = yield localVarAxiosParamCreator.webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options);
4478
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
4481
- });
4324
+ async webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options) {
4325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webSocketAccountData(authorization, upgrade, secWebSocketKey, secWebSocketVersion, options);
4326
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4327
+ const localVarOperationServerBasePath = operationServerMap['StreamsApi.webSocketAccountData']?.[localVarOperationServerIndex]?.url;
4328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4482
4329
  },
4483
4330
  /**
4484
4331
  * WebSocket Market Streams URL.
@@ -4488,14 +4335,11 @@ export const StreamsApiFp = function (configuration) {
4488
4335
  * @param {*} [options] Override http request option.
4489
4336
  * @throws {RequiredError}
4490
4337
  */
4491
- webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options) {
4492
- return __awaiter(this, void 0, void 0, function* () {
4493
- var _a, _b, _c;
4494
- const localVarAxiosArgs = yield localVarAxiosParamCreator.webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options);
4495
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
4498
- });
4338
+ async webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options) {
4339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webSocketMarketData(upgrade, secWebSocketKey, secWebSocketVersion, options);
4340
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4341
+ const localVarOperationServerBasePath = operationServerMap['StreamsApi.webSocketMarketData']?.[localVarOperationServerIndex]?.url;
4342
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4499
4343
  },
4500
4344
  };
4501
4345
  };
@@ -4601,7 +4445,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4601
4445
  * @param {*} [options] Override http request option.
4602
4446
  * @throws {RequiredError}
4603
4447
  */
4604
- cancelOrders: (cancelOrdersRequest_1, ...args_1) => __awaiter(this, [cancelOrdersRequest_1, ...args_1], void 0, function* (cancelOrdersRequest, options = {}) {
4448
+ cancelOrders: async (cancelOrdersRequest, options = {}) => {
4605
4449
  // verify required parameter 'cancelOrdersRequest' is not null or undefined
4606
4450
  assertParamExists('cancelOrders', 'cancelOrdersRequest', cancelOrdersRequest);
4607
4451
  const localVarPath = `/api/v1/trade/orders/cancel`;
@@ -4611,22 +4455,22 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4611
4455
  if (configuration) {
4612
4456
  baseOptions = configuration.baseOptions;
4613
4457
  }
4614
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4458
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4615
4459
  const localVarHeaderParameter = {};
4616
4460
  const localVarQueryParameter = {};
4617
4461
  // authentication bearerAuth required
4618
4462
  // http bearer authentication required
4619
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4463
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4620
4464
  localVarHeaderParameter['Content-Type'] = 'application/json';
4621
4465
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4622
4466
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4623
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4467
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4624
4468
  localVarRequestOptions.data = serializeDataIfNeeded(cancelOrdersRequest, localVarRequestOptions, configuration);
4625
4469
  return {
4626
4470
  url: toPathString(localVarUrlObj),
4627
4471
  options: localVarRequestOptions,
4628
4472
  };
4629
- }),
4473
+ },
4630
4474
  /**
4631
4475
  * 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.
4632
4476
  * @summary /trade/orders/cancel/standby
@@ -4634,7 +4478,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4634
4478
  * @param {*} [options] Override http request option.
4635
4479
  * @throws {RequiredError}
4636
4480
  */
4637
- cancelStandbyOrders: (cancelOrdersRequest_1, ...args_1) => __awaiter(this, [cancelOrdersRequest_1, ...args_1], void 0, function* (cancelOrdersRequest, options = {}) {
4481
+ cancelStandbyOrders: async (cancelOrdersRequest, options = {}) => {
4638
4482
  // verify required parameter 'cancelOrdersRequest' is not null or undefined
4639
4483
  assertParamExists('cancelStandbyOrders', 'cancelOrdersRequest', cancelOrdersRequest);
4640
4484
  const localVarPath = `/api/v1/trade/orders/cancel/standby`;
@@ -4644,22 +4488,22 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4644
4488
  if (configuration) {
4645
4489
  baseOptions = configuration.baseOptions;
4646
4490
  }
4647
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4491
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4648
4492
  const localVarHeaderParameter = {};
4649
4493
  const localVarQueryParameter = {};
4650
4494
  // authentication bearerAuth required
4651
4495
  // http bearer authentication required
4652
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4496
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4653
4497
  localVarHeaderParameter['Content-Type'] = 'application/json';
4654
4498
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4655
4499
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4656
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4500
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4657
4501
  localVarRequestOptions.data = serializeDataIfNeeded(cancelOrdersRequest, localVarRequestOptions, configuration);
4658
4502
  return {
4659
4503
  url: toPathString(localVarUrlObj),
4660
4504
  options: localVarRequestOptions,
4661
4505
  };
4662
- }),
4506
+ },
4663
4507
  /**
4664
4508
  * Retrieve details of open orders for a specific account.
4665
4509
  * @summary /trade/openOrders
@@ -4667,7 +4511,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4667
4511
  * @param {*} [options] Override http request option.
4668
4512
  * @throws {RequiredError}
4669
4513
  */
4670
- getOpenOrders: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) {
4514
+ getOpenOrders: async (symbol, options = {}) => {
4671
4515
  const localVarPath = `/api/v1/trade/openOrders`;
4672
4516
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4673
4517
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4675,23 +4519,23 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4675
4519
  if (configuration) {
4676
4520
  baseOptions = configuration.baseOptions;
4677
4521
  }
4678
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4522
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4679
4523
  const localVarHeaderParameter = {};
4680
4524
  const localVarQueryParameter = {};
4681
4525
  // authentication bearerAuth required
4682
4526
  // http bearer authentication required
4683
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4527
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4684
4528
  if (symbol !== undefined) {
4685
4529
  localVarQueryParameter['symbol'] = symbol;
4686
4530
  }
4687
4531
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4688
4532
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4689
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4533
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4690
4534
  return {
4691
4535
  url: toPathString(localVarUrlObj),
4692
4536
  options: localVarRequestOptions,
4693
4537
  };
4694
- }),
4538
+ },
4695
4539
  /**
4696
4540
  * Retrieve details of orders in standby for a specific account.
4697
4541
  * @summary /trade/standbyOrders
@@ -4699,7 +4543,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4699
4543
  * @param {*} [options] Override http request option.
4700
4544
  * @throws {RequiredError}
4701
4545
  */
4702
- getStandbyOrders: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) {
4546
+ getStandbyOrders: async (symbol, options = {}) => {
4703
4547
  const localVarPath = `/api/v1/trade/standbyOrders`;
4704
4548
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4705
4549
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4707,23 +4551,23 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4707
4551
  if (configuration) {
4708
4552
  baseOptions = configuration.baseOptions;
4709
4553
  }
4710
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4554
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4711
4555
  const localVarHeaderParameter = {};
4712
4556
  const localVarQueryParameter = {};
4713
4557
  // authentication bearerAuth required
4714
4558
  // http bearer authentication required
4715
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4559
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4716
4560
  if (symbol !== undefined) {
4717
4561
  localVarQueryParameter['symbol'] = symbol;
4718
4562
  }
4719
4563
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4720
4564
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4721
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4565
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4722
4566
  return {
4723
4567
  url: toPathString(localVarUrlObj),
4724
4568
  options: localVarRequestOptions,
4725
4569
  };
4726
- }),
4570
+ },
4727
4571
  /**
4728
4572
  * Submit a new order for execution.
4729
4573
  * @summary /trade/orders
@@ -4731,7 +4575,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4731
4575
  * @param {*} [options] Override http request option.
4732
4576
  * @throws {RequiredError}
4733
4577
  */
4734
- postCreateOrder: (createOrderRequest_1, ...args_1) => __awaiter(this, [createOrderRequest_1, ...args_1], void 0, function* (createOrderRequest, options = {}) {
4578
+ postCreateOrder: async (createOrderRequest, options = {}) => {
4735
4579
  // verify required parameter 'createOrderRequest' is not null or undefined
4736
4580
  assertParamExists('postCreateOrder', 'createOrderRequest', createOrderRequest);
4737
4581
  const localVarPath = `/api/v1/trade/orders`;
@@ -4741,22 +4585,22 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4741
4585
  if (configuration) {
4742
4586
  baseOptions = configuration.baseOptions;
4743
4587
  }
4744
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4588
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4745
4589
  const localVarHeaderParameter = {};
4746
4590
  const localVarQueryParameter = {};
4747
4591
  // authentication bearerAuth required
4748
4592
  // http bearer authentication required
4749
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4593
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4750
4594
  localVarHeaderParameter['Content-Type'] = 'application/json';
4751
4595
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4752
4596
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4753
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4597
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4754
4598
  localVarRequestOptions.data = serializeDataIfNeeded(createOrderRequest, localVarRequestOptions, configuration);
4755
4599
  return {
4756
4600
  url: toPathString(localVarUrlObj),
4757
4601
  options: localVarRequestOptions,
4758
4602
  };
4759
- }),
4603
+ },
4760
4604
  /**
4761
4605
  * Initiates a withdraw action to remove some amount of funds from a user\'s account.
4762
4606
  * @summary /trade/withdraw
@@ -4764,7 +4608,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4764
4608
  * @param {*} [options] Override http request option.
4765
4609
  * @throws {RequiredError}
4766
4610
  */
4767
- postWithdraw: (withdrawRequest_1, ...args_1) => __awaiter(this, [withdrawRequest_1, ...args_1], void 0, function* (withdrawRequest, options = {}) {
4611
+ postWithdraw: async (withdrawRequest, options = {}) => {
4768
4612
  // verify required parameter 'withdrawRequest' is not null or undefined
4769
4613
  assertParamExists('postWithdraw', 'withdrawRequest', withdrawRequest);
4770
4614
  const localVarPath = `/api/v1/trade/withdraw`;
@@ -4774,22 +4618,22 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4774
4618
  if (configuration) {
4775
4619
  baseOptions = configuration.baseOptions;
4776
4620
  }
4777
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4621
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4778
4622
  const localVarHeaderParameter = {};
4779
4623
  const localVarQueryParameter = {};
4780
4624
  // authentication bearerAuth required
4781
4625
  // http bearer authentication required
4782
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4626
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4783
4627
  localVarHeaderParameter['Content-Type'] = 'application/json';
4784
4628
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4785
4629
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4786
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4630
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4787
4631
  localVarRequestOptions.data = serializeDataIfNeeded(withdrawRequest, localVarRequestOptions, configuration);
4788
4632
  return {
4789
4633
  url: toPathString(localVarUrlObj),
4790
4634
  options: localVarRequestOptions,
4791
4635
  };
4792
- }),
4636
+ },
4793
4637
  /**
4794
4638
  * Adjust margin for an isolated position on a specific market.
4795
4639
  * @summary /trade/adjustIsolatedMargin
@@ -4797,7 +4641,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4797
4641
  * @param {*} [options] Override http request option.
4798
4642
  * @throws {RequiredError}
4799
4643
  */
4800
- putAdjustIsolatedMargin: (adjustIsolatedMarginRequest_1, ...args_1) => __awaiter(this, [adjustIsolatedMarginRequest_1, ...args_1], void 0, function* (adjustIsolatedMarginRequest, options = {}) {
4644
+ putAdjustIsolatedMargin: async (adjustIsolatedMarginRequest, options = {}) => {
4801
4645
  // verify required parameter 'adjustIsolatedMarginRequest' is not null or undefined
4802
4646
  assertParamExists('putAdjustIsolatedMargin', 'adjustIsolatedMarginRequest', adjustIsolatedMarginRequest);
4803
4647
  const localVarPath = `/api/v1/trade/adjustIsolatedMargin`;
@@ -4807,22 +4651,22 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4807
4651
  if (configuration) {
4808
4652
  baseOptions = configuration.baseOptions;
4809
4653
  }
4810
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4654
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4811
4655
  const localVarHeaderParameter = {};
4812
4656
  const localVarQueryParameter = {};
4813
4657
  // authentication bearerAuth required
4814
4658
  // http bearer authentication required
4815
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4659
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4816
4660
  localVarHeaderParameter['Content-Type'] = 'application/json';
4817
4661
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4818
4662
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4819
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4663
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4820
4664
  localVarRequestOptions.data = serializeDataIfNeeded(adjustIsolatedMarginRequest, localVarRequestOptions, configuration);
4821
4665
  return {
4822
4666
  url: toPathString(localVarUrlObj),
4823
4667
  options: localVarRequestOptions,
4824
4668
  };
4825
- }),
4669
+ },
4826
4670
  /**
4827
4671
  * Authorizes an account to trade, perform liquidations and more, on behalf of another account.
4828
4672
  * @summary /trade/accounts/authorize
@@ -4830,7 +4674,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4830
4674
  * @param {*} [options] Override http request option.
4831
4675
  * @throws {RequiredError}
4832
4676
  */
4833
- putAuthorizeAccount: (accountAuthorizationRequest_1, ...args_1) => __awaiter(this, [accountAuthorizationRequest_1, ...args_1], void 0, function* (accountAuthorizationRequest, options = {}) {
4677
+ putAuthorizeAccount: async (accountAuthorizationRequest, options = {}) => {
4834
4678
  // verify required parameter 'accountAuthorizationRequest' is not null or undefined
4835
4679
  assertParamExists('putAuthorizeAccount', 'accountAuthorizationRequest', accountAuthorizationRequest);
4836
4680
  const localVarPath = `/api/v1/trade/accounts/authorize`;
@@ -4840,19 +4684,19 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4840
4684
  if (configuration) {
4841
4685
  baseOptions = configuration.baseOptions;
4842
4686
  }
4843
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4687
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4844
4688
  const localVarHeaderParameter = {};
4845
4689
  const localVarQueryParameter = {};
4846
4690
  localVarHeaderParameter['Content-Type'] = 'application/json';
4847
4691
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4848
4692
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4849
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4693
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4850
4694
  localVarRequestOptions.data = serializeDataIfNeeded(accountAuthorizationRequest, localVarRequestOptions, configuration);
4851
4695
  return {
4852
4696
  url: toPathString(localVarUrlObj),
4853
4697
  options: localVarRequestOptions,
4854
4698
  };
4855
- }),
4699
+ },
4856
4700
  /**
4857
4701
  * Deauthorizes an account to trade, perform liquidations and more, on behalf of another account.
4858
4702
  * @summary /trade/accounts/deauthorize
@@ -4860,7 +4704,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4860
4704
  * @param {*} [options] Override http request option.
4861
4705
  * @throws {RequiredError}
4862
4706
  */
4863
- putDeauthorizeAccount: (accountAuthorizationRequest_1, ...args_1) => __awaiter(this, [accountAuthorizationRequest_1, ...args_1], void 0, function* (accountAuthorizationRequest, options = {}) {
4707
+ putDeauthorizeAccount: async (accountAuthorizationRequest, options = {}) => {
4864
4708
  // verify required parameter 'accountAuthorizationRequest' is not null or undefined
4865
4709
  assertParamExists('putDeauthorizeAccount', 'accountAuthorizationRequest', accountAuthorizationRequest);
4866
4710
  const localVarPath = `/api/v1/trade/accounts/deauthorize`;
@@ -4870,19 +4714,19 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4870
4714
  if (configuration) {
4871
4715
  baseOptions = configuration.baseOptions;
4872
4716
  }
4873
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4717
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4874
4718
  const localVarHeaderParameter = {};
4875
4719
  const localVarQueryParameter = {};
4876
4720
  localVarHeaderParameter['Content-Type'] = 'application/json';
4877
4721
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4878
4722
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4879
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4723
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4880
4724
  localVarRequestOptions.data = serializeDataIfNeeded(accountAuthorizationRequest, localVarRequestOptions, configuration);
4881
4725
  return {
4882
4726
  url: toPathString(localVarUrlObj),
4883
4727
  options: localVarRequestOptions,
4884
4728
  };
4885
- }),
4729
+ },
4886
4730
  /**
4887
4731
  * Updates leverage for positions of a given market and closes all open orders for that market.
4888
4732
  * @summary /trade/leverage
@@ -4890,7 +4734,7 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4890
4734
  * @param {*} [options] Override http request option.
4891
4735
  * @throws {RequiredError}
4892
4736
  */
4893
- putLeverageUpdate: (accountPositionLeverageUpdateRequest_1, ...args_1) => __awaiter(this, [accountPositionLeverageUpdateRequest_1, ...args_1], void 0, function* (accountPositionLeverageUpdateRequest, options = {}) {
4737
+ putLeverageUpdate: async (accountPositionLeverageUpdateRequest, options = {}) => {
4894
4738
  // verify required parameter 'accountPositionLeverageUpdateRequest' is not null or undefined
4895
4739
  assertParamExists('putLeverageUpdate', 'accountPositionLeverageUpdateRequest', accountPositionLeverageUpdateRequest);
4896
4740
  const localVarPath = `/api/v1/trade/leverage`;
@@ -4900,22 +4744,22 @@ export const TradeApiAxiosParamCreator = function (configuration) {
4900
4744
  if (configuration) {
4901
4745
  baseOptions = configuration.baseOptions;
4902
4746
  }
4903
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4747
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4904
4748
  const localVarHeaderParameter = {};
4905
4749
  const localVarQueryParameter = {};
4906
4750
  // authentication bearerAuth required
4907
4751
  // http bearer authentication required
4908
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4752
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4909
4753
  localVarHeaderParameter['Content-Type'] = 'application/json';
4910
4754
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4911
4755
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4912
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4756
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4913
4757
  localVarRequestOptions.data = serializeDataIfNeeded(accountPositionLeverageUpdateRequest, localVarRequestOptions, configuration);
4914
4758
  return {
4915
4759
  url: toPathString(localVarUrlObj),
4916
4760
  options: localVarRequestOptions,
4917
4761
  };
4918
- }),
4762
+ },
4919
4763
  };
4920
4764
  };
4921
4765
  /**
@@ -4932,14 +4776,11 @@ export const TradeApiFp = function (configuration) {
4932
4776
  * @param {*} [options] Override http request option.
4933
4777
  * @throws {RequiredError}
4934
4778
  */
4935
- cancelOrders(cancelOrdersRequest, options) {
4936
- return __awaiter(this, void 0, void 0, function* () {
4937
- var _a, _b, _c;
4938
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOrders(cancelOrdersRequest, options);
4939
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
4942
- });
4779
+ async cancelOrders(cancelOrdersRequest, options) {
4780
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrders(cancelOrdersRequest, options);
4781
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4782
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.cancelOrders']?.[localVarOperationServerIndex]?.url;
4783
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4943
4784
  },
4944
4785
  /**
4945
4786
  * 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.
@@ -4948,14 +4789,11 @@ export const TradeApiFp = function (configuration) {
4948
4789
  * @param {*} [options] Override http request option.
4949
4790
  * @throws {RequiredError}
4950
4791
  */
4951
- cancelStandbyOrders(cancelOrdersRequest, options) {
4952
- return __awaiter(this, void 0, void 0, function* () {
4953
- var _a, _b, _c;
4954
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelStandbyOrders(cancelOrdersRequest, options);
4955
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
4958
- });
4792
+ async cancelStandbyOrders(cancelOrdersRequest, options) {
4793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelStandbyOrders(cancelOrdersRequest, options);
4794
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4795
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.cancelStandbyOrders']?.[localVarOperationServerIndex]?.url;
4796
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4959
4797
  },
4960
4798
  /**
4961
4799
  * Retrieve details of open orders for a specific account.
@@ -4964,14 +4802,11 @@ export const TradeApiFp = function (configuration) {
4964
4802
  * @param {*} [options] Override http request option.
4965
4803
  * @throws {RequiredError}
4966
4804
  */
4967
- getOpenOrders(symbol, options) {
4968
- return __awaiter(this, void 0, void 0, function* () {
4969
- var _a, _b, _c;
4970
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenOrders(symbol, options);
4971
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
4974
- });
4805
+ async getOpenOrders(symbol, options) {
4806
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenOrders(symbol, options);
4807
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4808
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.getOpenOrders']?.[localVarOperationServerIndex]?.url;
4809
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4975
4810
  },
4976
4811
  /**
4977
4812
  * Retrieve details of orders in standby for a specific account.
@@ -4980,14 +4815,11 @@ export const TradeApiFp = function (configuration) {
4980
4815
  * @param {*} [options] Override http request option.
4981
4816
  * @throws {RequiredError}
4982
4817
  */
4983
- getStandbyOrders(symbol, options) {
4984
- return __awaiter(this, void 0, void 0, function* () {
4985
- var _a, _b, _c;
4986
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getStandbyOrders(symbol, options);
4987
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
4990
- });
4818
+ async getStandbyOrders(symbol, options) {
4819
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStandbyOrders(symbol, options);
4820
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4821
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.getStandbyOrders']?.[localVarOperationServerIndex]?.url;
4822
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4991
4823
  },
4992
4824
  /**
4993
4825
  * Submit a new order for execution.
@@ -4996,14 +4828,11 @@ export const TradeApiFp = function (configuration) {
4996
4828
  * @param {*} [options] Override http request option.
4997
4829
  * @throws {RequiredError}
4998
4830
  */
4999
- postCreateOrder(createOrderRequest, options) {
5000
- return __awaiter(this, void 0, void 0, function* () {
5001
- var _a, _b, _c;
5002
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postCreateOrder(createOrderRequest, options);
5003
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
5006
- });
4831
+ async postCreateOrder(createOrderRequest, options) {
4832
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateOrder(createOrderRequest, options);
4833
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4834
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.postCreateOrder']?.[localVarOperationServerIndex]?.url;
4835
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5007
4836
  },
5008
4837
  /**
5009
4838
  * Initiates a withdraw action to remove some amount of funds from a user\'s account.
@@ -5012,14 +4841,11 @@ export const TradeApiFp = function (configuration) {
5012
4841
  * @param {*} [options] Override http request option.
5013
4842
  * @throws {RequiredError}
5014
4843
  */
5015
- postWithdraw(withdrawRequest, options) {
5016
- return __awaiter(this, void 0, void 0, function* () {
5017
- var _a, _b, _c;
5018
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postWithdraw(withdrawRequest, options);
5019
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
5022
- });
4844
+ async postWithdraw(withdrawRequest, options) {
4845
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postWithdraw(withdrawRequest, options);
4846
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4847
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.postWithdraw']?.[localVarOperationServerIndex]?.url;
4848
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5023
4849
  },
5024
4850
  /**
5025
4851
  * Adjust margin for an isolated position on a specific market.
@@ -5028,14 +4854,11 @@ export const TradeApiFp = function (configuration) {
5028
4854
  * @param {*} [options] Override http request option.
5029
4855
  * @throws {RequiredError}
5030
4856
  */
5031
- putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options) {
5032
- return __awaiter(this, void 0, void 0, function* () {
5033
- var _a, _b, _c;
5034
- const localVarAxiosArgs = yield localVarAxiosParamCreator.putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options);
5035
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
5038
- });
4857
+ async putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options) {
4858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAdjustIsolatedMargin(adjustIsolatedMarginRequest, options);
4859
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4860
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.putAdjustIsolatedMargin']?.[localVarOperationServerIndex]?.url;
4861
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5039
4862
  },
5040
4863
  /**
5041
4864
  * Authorizes an account to trade, perform liquidations and more, on behalf of another account.
@@ -5044,14 +4867,11 @@ export const TradeApiFp = function (configuration) {
5044
4867
  * @param {*} [options] Override http request option.
5045
4868
  * @throws {RequiredError}
5046
4869
  */
5047
- putAuthorizeAccount(accountAuthorizationRequest, options) {
5048
- return __awaiter(this, void 0, void 0, function* () {
5049
- var _a, _b, _c;
5050
- const localVarAxiosArgs = yield localVarAxiosParamCreator.putAuthorizeAccount(accountAuthorizationRequest, options);
5051
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
5054
- });
4870
+ async putAuthorizeAccount(accountAuthorizationRequest, options) {
4871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAuthorizeAccount(accountAuthorizationRequest, options);
4872
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4873
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.putAuthorizeAccount']?.[localVarOperationServerIndex]?.url;
4874
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5055
4875
  },
5056
4876
  /**
5057
4877
  * Deauthorizes an account to trade, perform liquidations and more, on behalf of another account.
@@ -5060,14 +4880,11 @@ export const TradeApiFp = function (configuration) {
5060
4880
  * @param {*} [options] Override http request option.
5061
4881
  * @throws {RequiredError}
5062
4882
  */
5063
- putDeauthorizeAccount(accountAuthorizationRequest, options) {
5064
- return __awaiter(this, void 0, void 0, function* () {
5065
- var _a, _b, _c;
5066
- const localVarAxiosArgs = yield localVarAxiosParamCreator.putDeauthorizeAccount(accountAuthorizationRequest, options);
5067
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
5070
- });
4883
+ async putDeauthorizeAccount(accountAuthorizationRequest, options) {
4884
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putDeauthorizeAccount(accountAuthorizationRequest, options);
4885
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4886
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.putDeauthorizeAccount']?.[localVarOperationServerIndex]?.url;
4887
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5071
4888
  },
5072
4889
  /**
5073
4890
  * Updates leverage for positions of a given market and closes all open orders for that market.
@@ -5076,14 +4893,11 @@ export const TradeApiFp = function (configuration) {
5076
4893
  * @param {*} [options] Override http request option.
5077
4894
  * @throws {RequiredError}
5078
4895
  */
5079
- putLeverageUpdate(accountPositionLeverageUpdateRequest, options) {
5080
- return __awaiter(this, void 0, void 0, function* () {
5081
- var _a, _b, _c;
5082
- const localVarAxiosArgs = yield localVarAxiosParamCreator.putLeverageUpdate(accountPositionLeverageUpdateRequest, options);
5083
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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);
5086
- });
4896
+ async putLeverageUpdate(accountPositionLeverageUpdateRequest, options) {
4897
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putLeverageUpdate(accountPositionLeverageUpdateRequest, options);
4898
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4899
+ const localVarOperationServerBasePath = operationServerMap['TradeApi.putLeverageUpdate']?.[localVarOperationServerIndex]?.url;
4900
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5087
4901
  },
5088
4902
  };
5089
4903
  };
@@ -5327,7 +5141,7 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5327
5141
  * @param {*} [options] Override http request option.
5328
5142
  * @throws {RequiredError}
5329
5143
  */
5330
- claimSwap: (swapClaimRequest_1, ...args_1) => __awaiter(this, [swapClaimRequest_1, ...args_1], void 0, function* (swapClaimRequest, options = {}) {
5144
+ claimSwap: async (swapClaimRequest, options = {}) => {
5331
5145
  // verify required parameter 'swapClaimRequest' is not null or undefined
5332
5146
  assertParamExists('claimSwap', 'swapClaimRequest', swapClaimRequest);
5333
5147
  const localVarPath = `/v1/vera/swap/claim`;
@@ -5337,22 +5151,22 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5337
5151
  if (configuration) {
5338
5152
  baseOptions = configuration.baseOptions;
5339
5153
  }
5340
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5154
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5341
5155
  const localVarHeaderParameter = {};
5342
5156
  const localVarQueryParameter = {};
5343
5157
  // authentication bearerAuth required
5344
5158
  // http bearer authentication required
5345
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5159
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
5346
5160
  localVarHeaderParameter['Content-Type'] = 'application/json';
5347
5161
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5348
5162
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5349
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5163
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5350
5164
  localVarRequestOptions.data = serializeDataIfNeeded(swapClaimRequest, localVarRequestOptions, configuration);
5351
5165
  return {
5352
5166
  url: toPathString(localVarUrlObj),
5353
5167
  options: localVarRequestOptions,
5354
5168
  };
5355
- }),
5169
+ },
5356
5170
  /**
5357
5171
  * Claim a vault deposit transaction for Vera Points attribution.
5358
5172
  * @summary /vera/vault/claim
@@ -5360,7 +5174,7 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5360
5174
  * @param {*} [options] Override http request option.
5361
5175
  * @throws {RequiredError}
5362
5176
  */
5363
- claimVault: (vaultClaimRequest_1, ...args_1) => __awaiter(this, [vaultClaimRequest_1, ...args_1], void 0, function* (vaultClaimRequest, options = {}) {
5177
+ claimVault: async (vaultClaimRequest, options = {}) => {
5364
5178
  // verify required parameter 'vaultClaimRequest' is not null or undefined
5365
5179
  assertParamExists('claimVault', 'vaultClaimRequest', vaultClaimRequest);
5366
5180
  const localVarPath = `/v1/vera/vault/claim`;
@@ -5370,22 +5184,22 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5370
5184
  if (configuration) {
5371
5185
  baseOptions = configuration.baseOptions;
5372
5186
  }
5373
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5187
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5374
5188
  const localVarHeaderParameter = {};
5375
5189
  const localVarQueryParameter = {};
5376
5190
  // authentication bearerAuth required
5377
5191
  // http bearer authentication required
5378
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5192
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
5379
5193
  localVarHeaderParameter['Content-Type'] = 'application/json';
5380
5194
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5381
5195
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5382
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5196
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5383
5197
  localVarRequestOptions.data = serializeDataIfNeeded(vaultClaimRequest, localVarRequestOptions, configuration);
5384
5198
  return {
5385
5199
  url: toPathString(localVarUrlObj),
5386
5200
  options: localVarRequestOptions,
5387
5201
  };
5388
- }),
5202
+ },
5389
5203
  /**
5390
5204
  * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
5391
5205
  * @summary Get user\'s points, tier, and rank
@@ -5393,7 +5207,7 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5393
5207
  * @param {*} [options] Override http request option.
5394
5208
  * @throws {RequiredError}
5395
5209
  */
5396
- getBalance: (userAddress_1, ...args_1) => __awaiter(this, [userAddress_1, ...args_1], void 0, function* (userAddress, options = {}) {
5210
+ getBalance: async (userAddress, options = {}) => {
5397
5211
  // verify required parameter 'userAddress' is not null or undefined
5398
5212
  assertParamExists('getBalance', 'userAddress', userAddress);
5399
5213
  const localVarPath = `/v1/vera/balance`;
@@ -5403,7 +5217,7 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5403
5217
  if (configuration) {
5404
5218
  baseOptions = configuration.baseOptions;
5405
5219
  }
5406
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5220
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5407
5221
  const localVarHeaderParameter = {};
5408
5222
  const localVarQueryParameter = {};
5409
5223
  if (userAddress !== undefined) {
@@ -5411,12 +5225,12 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5411
5225
  }
5412
5226
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5413
5227
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5414
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5228
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5415
5229
  return {
5416
5230
  url: toPathString(localVarUrlObj),
5417
5231
  options: localVarRequestOptions,
5418
5232
  };
5419
- }),
5233
+ },
5420
5234
  /**
5421
5235
  * Paginated leaderboard ranked by lifetime Vera Points.
5422
5236
  * @summary Top users by lifetime points
@@ -5425,7 +5239,7 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5425
5239
  * @param {*} [options] Override http request option.
5426
5240
  * @throws {RequiredError}
5427
5241
  */
5428
- getLeaderboard: (limit_1, offset_1, ...args_1) => __awaiter(this, [limit_1, offset_1, ...args_1], void 0, function* (limit, offset, options = {}) {
5242
+ getLeaderboard: async (limit, offset, options = {}) => {
5429
5243
  const localVarPath = `/v1/vera/leaderboard`;
5430
5244
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5431
5245
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5433,7 +5247,7 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5433
5247
  if (configuration) {
5434
5248
  baseOptions = configuration.baseOptions;
5435
5249
  }
5436
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5250
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5437
5251
  const localVarHeaderParameter = {};
5438
5252
  const localVarQueryParameter = {};
5439
5253
  if (limit !== undefined) {
@@ -5444,19 +5258,19 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5444
5258
  }
5445
5259
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5446
5260
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5447
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5261
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5448
5262
  return {
5449
5263
  url: toPathString(localVarUrlObj),
5450
5264
  options: localVarRequestOptions,
5451
5265
  };
5452
- }),
5266
+ },
5453
5267
  /**
5454
5268
  * 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
5269
  * @summary /vera/session
5456
5270
  * @param {*} [options] Override http request option.
5457
5271
  * @throws {RequiredError}
5458
5272
  */
5459
- recordSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5273
+ recordSession: async (options = {}) => {
5460
5274
  const localVarPath = `/v1/vera/session`;
5461
5275
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5462
5276
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5464,20 +5278,20 @@ export const VeraPointsApiAxiosParamCreator = function (configuration) {
5464
5278
  if (configuration) {
5465
5279
  baseOptions = configuration.baseOptions;
5466
5280
  }
5467
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5281
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5468
5282
  const localVarHeaderParameter = {};
5469
5283
  const localVarQueryParameter = {};
5470
5284
  // authentication bearerAuth required
5471
5285
  // http bearer authentication required
5472
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5286
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
5473
5287
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5474
5288
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5475
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5289
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5476
5290
  return {
5477
5291
  url: toPathString(localVarUrlObj),
5478
5292
  options: localVarRequestOptions,
5479
5293
  };
5480
- }),
5294
+ },
5481
5295
  };
5482
5296
  };
5483
5297
  /**
@@ -5494,14 +5308,11 @@ export const VeraPointsApiFp = function (configuration) {
5494
5308
  * @param {*} [options] Override http request option.
5495
5309
  * @throws {RequiredError}
5496
5310
  */
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
- });
5311
+ async claimSwap(swapClaimRequest, options) {
5312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimSwap(swapClaimRequest, options);
5313
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5314
+ const localVarOperationServerBasePath = operationServerMap['VeraPointsApi.claimSwap']?.[localVarOperationServerIndex]?.url;
5315
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5505
5316
  },
5506
5317
  /**
5507
5318
  * Claim a vault deposit transaction for Vera Points attribution.
@@ -5510,14 +5321,11 @@ export const VeraPointsApiFp = function (configuration) {
5510
5321
  * @param {*} [options] Override http request option.
5511
5322
  * @throws {RequiredError}
5512
5323
  */
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
- });
5324
+ async claimVault(vaultClaimRequest, options) {
5325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimVault(vaultClaimRequest, options);
5326
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5327
+ const localVarOperationServerBasePath = operationServerMap['VeraPointsApi.claimVault']?.[localVarOperationServerIndex]?.url;
5328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5521
5329
  },
5522
5330
  /**
5523
5331
  * Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
@@ -5526,14 +5334,11 @@ export const VeraPointsApiFp = function (configuration) {
5526
5334
  * @param {*} [options] Override http request option.
5527
5335
  * @throws {RequiredError}
5528
5336
  */
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
- });
5337
+ async getBalance(userAddress, options) {
5338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(userAddress, options);
5339
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5340
+ const localVarOperationServerBasePath = operationServerMap['VeraPointsApi.getBalance']?.[localVarOperationServerIndex]?.url;
5341
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5537
5342
  },
5538
5343
  /**
5539
5344
  * Paginated leaderboard ranked by lifetime Vera Points.
@@ -5543,14 +5348,11 @@ export const VeraPointsApiFp = function (configuration) {
5543
5348
  * @param {*} [options] Override http request option.
5544
5349
  * @throws {RequiredError}
5545
5350
  */
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
- });
5351
+ async getLeaderboard(limit, offset, options) {
5352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeaderboard(limit, offset, options);
5353
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5354
+ const localVarOperationServerBasePath = operationServerMap['VeraPointsApi.getLeaderboard']?.[localVarOperationServerIndex]?.url;
5355
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5554
5356
  },
5555
5357
  /**
5556
5358
  * 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.
@@ -5558,14 +5360,11 @@ export const VeraPointsApiFp = function (configuration) {
5558
5360
  * @param {*} [options] Override http request option.
5559
5361
  * @throws {RequiredError}
5560
5362
  */
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
- });
5363
+ async recordSession(options) {
5364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recordSession(options);
5365
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5366
+ const localVarOperationServerBasePath = operationServerMap['VeraPointsApi.recordSession']?.[localVarOperationServerIndex]?.url;
5367
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5569
5368
  },
5570
5369
  };
5571
5370
  };