@bluefin-exchange/pro-sdk 1.13.0 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/esm/example.js +42 -43
- package/dist/esm/example.js.map +1 -1
- package/dist/esm/index.js +1 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/api.js +1095 -571
- package/dist/esm/src/api.js.map +1 -1
- package/dist/esm/src/base.js +7 -15
- package/dist/esm/src/base.js.map +1 -1
- package/dist/esm/src/common.js +12 -24
- package/dist/esm/src/common.js.map +1 -1
- package/dist/esm/src/configuration.js +1 -5
- package/dist/esm/src/configuration.js.map +1 -1
- package/dist/esm/src/index.js +6 -22
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/request-signer.js +14 -19
- package/dist/esm/src/request-signer.js.map +1 -1
- package/dist/esm/src/sdk.js +42 -46
- package/dist/esm/src/sdk.js.map +1 -1
- package/dist/esm/src/utils.js +1 -4
- package/dist/esm/src/utils.js.map +1 -1
- package/dist/esm/src/websocket.js +5 -9
- package/dist/esm/src/websocket.js.map +1 -1
- package/dist/types/src/api.d.ts +607 -8
- package/dist/types/src/api.d.ts.map +1 -1
- package/dist/types/src/request-signer.d.ts +1 -1
- package/dist/types/src/sdk.d.ts +3 -2
- package/dist/types/src/sdk.d.ts.map +1 -1
- package/package.json +18 -13
- package/dist/cjs/example.js +0 -277
- package/dist/cjs/example.js.map +0 -1
- package/dist/cjs/index.js +0 -18
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/src/api.js +0 -5170
- package/dist/cjs/src/api.js.map +0 -1
- package/dist/cjs/src/base.js +0 -69
- package/dist/cjs/src/base.js.map +0 -1
- package/dist/cjs/src/common.js +0 -162
- package/dist/cjs/src/common.js.map +0 -1
- package/dist/cjs/src/configuration.js +0 -45
- package/dist/cjs/src/configuration.js.map +0 -1
- package/dist/cjs/src/index.js +0 -23
- package/dist/cjs/src/index.js.map +0 -1
- package/dist/cjs/src/request-signer.js +0 -234
- package/dist/cjs/src/request-signer.js.map +0 -1
- package/dist/cjs/src/sdk.js +0 -863
- package/dist/cjs/src/sdk.js.map +0 -1
- package/dist/cjs/src/utils.js +0 -10
- package/dist/cjs/src/utils.js.map +0 -1
- package/dist/cjs/src/websocket.js +0 -159
- package/dist/cjs/src/websocket.js.map +0 -1
package/dist/types/src/api.d.ts
CHANGED
|
@@ -1099,6 +1099,12 @@ export interface ActiveOrderUpdate {
|
|
|
1099
1099
|
* @memberof ActiveOrderUpdate
|
|
1100
1100
|
*/
|
|
1101
1101
|
'updatedAtMillis': number;
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @type {ClientType}
|
|
1105
|
+
* @memberof ActiveOrderUpdate
|
|
1106
|
+
*/
|
|
1107
|
+
'client'?: ClientType;
|
|
1102
1108
|
}
|
|
1103
1109
|
/**
|
|
1104
1110
|
*
|
|
@@ -1765,6 +1771,64 @@ export interface AuthorizedWallet {
|
|
|
1765
1771
|
*/
|
|
1766
1772
|
'authorizedAtMillis': number;
|
|
1767
1773
|
}
|
|
1774
|
+
/**
|
|
1775
|
+
*
|
|
1776
|
+
* @export
|
|
1777
|
+
* @interface BalanceResponse
|
|
1778
|
+
*/
|
|
1779
|
+
export interface BalanceResponse {
|
|
1780
|
+
/**
|
|
1781
|
+
* User\'s wallet address.
|
|
1782
|
+
* @type {string}
|
|
1783
|
+
* @memberof BalanceResponse
|
|
1784
|
+
*/
|
|
1785
|
+
'userAddress': string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Lifetime Vera Points total.
|
|
1788
|
+
* @type {string}
|
|
1789
|
+
* @memberof BalanceResponse
|
|
1790
|
+
*/
|
|
1791
|
+
'totalPoints': string;
|
|
1792
|
+
/**
|
|
1793
|
+
* Current status tier.
|
|
1794
|
+
* @type {string}
|
|
1795
|
+
* @memberof BalanceResponse
|
|
1796
|
+
*/
|
|
1797
|
+
'currentTier': BalanceResponseCurrentTierEnum;
|
|
1798
|
+
/**
|
|
1799
|
+
* User\'s rank by lifetime points (1-based).
|
|
1800
|
+
* @type {number}
|
|
1801
|
+
* @memberof BalanceResponse
|
|
1802
|
+
*/
|
|
1803
|
+
'rank': number;
|
|
1804
|
+
/**
|
|
1805
|
+
* Next tier above current; null if Diamond.
|
|
1806
|
+
* @type {string}
|
|
1807
|
+
* @memberof BalanceResponse
|
|
1808
|
+
*/
|
|
1809
|
+
'nextTier': BalanceResponseNextTierEnum | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* Points required for next tier; null if Diamond.
|
|
1812
|
+
* @type {string}
|
|
1813
|
+
* @memberof BalanceResponse
|
|
1814
|
+
*/
|
|
1815
|
+
'nextTierThreshold': string | null;
|
|
1816
|
+
}
|
|
1817
|
+
export declare const BalanceResponseCurrentTierEnum: {
|
|
1818
|
+
readonly None: "NONE";
|
|
1819
|
+
readonly Silver: "SILVER";
|
|
1820
|
+
readonly Gold: "GOLD";
|
|
1821
|
+
readonly Platinum: "PLATINUM";
|
|
1822
|
+
readonly Diamond: "DIAMOND";
|
|
1823
|
+
};
|
|
1824
|
+
export type BalanceResponseCurrentTierEnum = typeof BalanceResponseCurrentTierEnum[keyof typeof BalanceResponseCurrentTierEnum];
|
|
1825
|
+
export declare const BalanceResponseNextTierEnum: {
|
|
1826
|
+
readonly Silver: "SILVER";
|
|
1827
|
+
readonly Gold: "GOLD";
|
|
1828
|
+
readonly Platinum: "PLATINUM";
|
|
1829
|
+
readonly Diamond: "DIAMOND";
|
|
1830
|
+
};
|
|
1831
|
+
export type BalanceResponseNextTierEnum = typeof BalanceResponseNextTierEnum[keyof typeof BalanceResponseNextTierEnum];
|
|
1768
1832
|
/**
|
|
1769
1833
|
*
|
|
1770
1834
|
* @export
|
|
@@ -1957,6 +2021,70 @@ export declare const ClaimSignatureItemRewardTypeEnum: {
|
|
|
1957
2021
|
readonly Cash: "Cash";
|
|
1958
2022
|
};
|
|
1959
2023
|
export type ClaimSignatureItemRewardTypeEnum = typeof ClaimSignatureItemRewardTypeEnum[keyof typeof ClaimSignatureItemRewardTypeEnum];
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @export
|
|
2027
|
+
* @interface ClientCredentialsRequest
|
|
2028
|
+
*/
|
|
2029
|
+
export interface ClientCredentialsRequest {
|
|
2030
|
+
/**
|
|
2031
|
+
*
|
|
2032
|
+
* @type {string}
|
|
2033
|
+
* @memberof ClientCredentialsRequest
|
|
2034
|
+
*/
|
|
2035
|
+
'client_id': string;
|
|
2036
|
+
/**
|
|
2037
|
+
*
|
|
2038
|
+
* @type {string}
|
|
2039
|
+
* @memberof ClientCredentialsRequest
|
|
2040
|
+
*/
|
|
2041
|
+
'client_secret': string;
|
|
2042
|
+
/**
|
|
2043
|
+
*
|
|
2044
|
+
* @type {string}
|
|
2045
|
+
* @memberof ClientCredentialsRequest
|
|
2046
|
+
*/
|
|
2047
|
+
'grant_type': ClientCredentialsRequestGrantTypeEnum;
|
|
2048
|
+
}
|
|
2049
|
+
export declare const ClientCredentialsRequestGrantTypeEnum: {
|
|
2050
|
+
readonly ClientCredentials: "client_credentials";
|
|
2051
|
+
};
|
|
2052
|
+
export type ClientCredentialsRequestGrantTypeEnum = typeof ClientCredentialsRequestGrantTypeEnum[keyof typeof ClientCredentialsRequestGrantTypeEnum];
|
|
2053
|
+
/**
|
|
2054
|
+
*
|
|
2055
|
+
* @export
|
|
2056
|
+
* @interface ClientCredentialsResponse
|
|
2057
|
+
*/
|
|
2058
|
+
export interface ClientCredentialsResponse {
|
|
2059
|
+
/**
|
|
2060
|
+
*
|
|
2061
|
+
* @type {string}
|
|
2062
|
+
* @memberof ClientCredentialsResponse
|
|
2063
|
+
*/
|
|
2064
|
+
'access_token': string;
|
|
2065
|
+
/**
|
|
2066
|
+
*
|
|
2067
|
+
* @type {string}
|
|
2068
|
+
* @memberof ClientCredentialsResponse
|
|
2069
|
+
*/
|
|
2070
|
+
'token_type': string;
|
|
2071
|
+
/**
|
|
2072
|
+
* Token validity in seconds
|
|
2073
|
+
* @type {number}
|
|
2074
|
+
* @memberof ClientCredentialsResponse
|
|
2075
|
+
*/
|
|
2076
|
+
'expires_in': number;
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
* The client application that initiated the request.
|
|
2080
|
+
* @export
|
|
2081
|
+
* @enum {string}
|
|
2082
|
+
*/
|
|
2083
|
+
export declare const ClientType: {
|
|
2084
|
+
readonly Web: "WEB";
|
|
2085
|
+
readonly Vera: "VERA";
|
|
2086
|
+
};
|
|
2087
|
+
export type ClientType = typeof ClientType[keyof typeof ClientType];
|
|
1960
2088
|
/**
|
|
1961
2089
|
*
|
|
1962
2090
|
* @export
|
|
@@ -2780,6 +2908,45 @@ export interface LeaderboardEntry {
|
|
|
2780
2908
|
*/
|
|
2781
2909
|
'volumeE9': string;
|
|
2782
2910
|
}
|
|
2911
|
+
/**
|
|
2912
|
+
*
|
|
2913
|
+
* @export
|
|
2914
|
+
* @interface LeaderboardEntry1
|
|
2915
|
+
*/
|
|
2916
|
+
export interface LeaderboardEntry1 {
|
|
2917
|
+
/**
|
|
2918
|
+
* Rank by lifetime points (1-based).
|
|
2919
|
+
* @type {number}
|
|
2920
|
+
* @memberof LeaderboardEntry1
|
|
2921
|
+
*/
|
|
2922
|
+
'rank': number;
|
|
2923
|
+
/**
|
|
2924
|
+
* Wallet address (may be partially masked in response).
|
|
2925
|
+
* @type {string}
|
|
2926
|
+
* @memberof LeaderboardEntry1
|
|
2927
|
+
*/
|
|
2928
|
+
'userAddress': string;
|
|
2929
|
+
/**
|
|
2930
|
+
* Lifetime Vera Points total.
|
|
2931
|
+
* @type {string}
|
|
2932
|
+
* @memberof LeaderboardEntry1
|
|
2933
|
+
*/
|
|
2934
|
+
'totalPoints': string;
|
|
2935
|
+
/**
|
|
2936
|
+
*
|
|
2937
|
+
* @type {string}
|
|
2938
|
+
* @memberof LeaderboardEntry1
|
|
2939
|
+
*/
|
|
2940
|
+
'currentTier': LeaderboardEntry1CurrentTierEnum;
|
|
2941
|
+
}
|
|
2942
|
+
export declare const LeaderboardEntry1CurrentTierEnum: {
|
|
2943
|
+
readonly None: "NONE";
|
|
2944
|
+
readonly Silver: "SILVER";
|
|
2945
|
+
readonly Gold: "GOLD";
|
|
2946
|
+
readonly Platinum: "PLATINUM";
|
|
2947
|
+
readonly Diamond: "DIAMOND";
|
|
2948
|
+
};
|
|
2949
|
+
export type LeaderboardEntry1CurrentTierEnum = typeof LeaderboardEntry1CurrentTierEnum[keyof typeof LeaderboardEntry1CurrentTierEnum];
|
|
2783
2950
|
/**
|
|
2784
2951
|
*
|
|
2785
2952
|
* @export
|
|
@@ -2806,6 +2973,25 @@ export interface LeaderboardResponse {
|
|
|
2806
2973
|
*/
|
|
2807
2974
|
'data': Array<LeaderboardEntry>;
|
|
2808
2975
|
}
|
|
2976
|
+
/**
|
|
2977
|
+
*
|
|
2978
|
+
* @export
|
|
2979
|
+
* @interface LeaderboardResponse1
|
|
2980
|
+
*/
|
|
2981
|
+
export interface LeaderboardResponse1 {
|
|
2982
|
+
/**
|
|
2983
|
+
*
|
|
2984
|
+
* @type {Array<LeaderboardEntry1>}
|
|
2985
|
+
* @memberof LeaderboardResponse1
|
|
2986
|
+
*/
|
|
2987
|
+
'entries': Array<LeaderboardEntry1>;
|
|
2988
|
+
/**
|
|
2989
|
+
* Total number of users (for pagination).
|
|
2990
|
+
* @type {number}
|
|
2991
|
+
* @memberof LeaderboardResponse1
|
|
2992
|
+
*/
|
|
2993
|
+
'total'?: number;
|
|
2994
|
+
}
|
|
2809
2995
|
/**
|
|
2810
2996
|
* User is expected to sign this payload and sends is signature in login api as header and payload itself in request body
|
|
2811
2997
|
* @export
|
|
@@ -3468,6 +3654,61 @@ export interface OnboardRefereeRequest {
|
|
|
3468
3654
|
*/
|
|
3469
3655
|
'code': string;
|
|
3470
3656
|
}
|
|
3657
|
+
/**
|
|
3658
|
+
*
|
|
3659
|
+
* @export
|
|
3660
|
+
* @interface OpenIDConfigurationResponse
|
|
3661
|
+
*/
|
|
3662
|
+
export interface OpenIDConfigurationResponse {
|
|
3663
|
+
/**
|
|
3664
|
+
*
|
|
3665
|
+
* @type {string}
|
|
3666
|
+
* @memberof OpenIDConfigurationResponse
|
|
3667
|
+
*/
|
|
3668
|
+
'issuer': string;
|
|
3669
|
+
/**
|
|
3670
|
+
*
|
|
3671
|
+
* @type {string}
|
|
3672
|
+
* @memberof OpenIDConfigurationResponse
|
|
3673
|
+
*/
|
|
3674
|
+
'authorization_endpoint': string;
|
|
3675
|
+
/**
|
|
3676
|
+
*
|
|
3677
|
+
* @type {string}
|
|
3678
|
+
* @memberof OpenIDConfigurationResponse
|
|
3679
|
+
*/
|
|
3680
|
+
'jwks_uri': string;
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @type {string}
|
|
3684
|
+
* @memberof OpenIDConfigurationResponse
|
|
3685
|
+
*/
|
|
3686
|
+
'token_endpoint': string;
|
|
3687
|
+
/**
|
|
3688
|
+
*
|
|
3689
|
+
* @type {Array<string>}
|
|
3690
|
+
* @memberof OpenIDConfigurationResponse
|
|
3691
|
+
*/
|
|
3692
|
+
'response_types_supported': Array<string>;
|
|
3693
|
+
/**
|
|
3694
|
+
*
|
|
3695
|
+
* @type {Array<string>}
|
|
3696
|
+
* @memberof OpenIDConfigurationResponse
|
|
3697
|
+
*/
|
|
3698
|
+
'id_token_signing_alg_values_supported': Array<string>;
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @type {Array<string>}
|
|
3702
|
+
* @memberof OpenIDConfigurationResponse
|
|
3703
|
+
*/
|
|
3704
|
+
'subject_types_supported': Array<string>;
|
|
3705
|
+
/**
|
|
3706
|
+
*
|
|
3707
|
+
* @type {Array<string>}
|
|
3708
|
+
* @memberof OpenIDConfigurationResponse
|
|
3709
|
+
*/
|
|
3710
|
+
'scopes_supported': Array<string>;
|
|
3711
|
+
}
|
|
3471
3712
|
/**
|
|
3472
3713
|
*
|
|
3473
3714
|
* @export
|
|
@@ -4322,6 +4563,25 @@ export declare const SelfTradePreventionType: {
|
|
|
4322
4563
|
readonly Unspecified: "UNSPECIFIED";
|
|
4323
4564
|
};
|
|
4324
4565
|
export type SelfTradePreventionType = typeof SelfTradePreventionType[keyof typeof SelfTradePreventionType];
|
|
4566
|
+
/**
|
|
4567
|
+
*
|
|
4568
|
+
* @export
|
|
4569
|
+
* @interface SessionResponse
|
|
4570
|
+
*/
|
|
4571
|
+
export interface SessionResponse {
|
|
4572
|
+
/**
|
|
4573
|
+
* User\'s wallet address.
|
|
4574
|
+
* @type {string}
|
|
4575
|
+
* @memberof SessionResponse
|
|
4576
|
+
*/
|
|
4577
|
+
'userAddress': string;
|
|
4578
|
+
/**
|
|
4579
|
+
* UTC date of the recorded session.
|
|
4580
|
+
* @type {string}
|
|
4581
|
+
* @memberof SessionResponse
|
|
4582
|
+
*/
|
|
4583
|
+
'sessionDate': string;
|
|
4584
|
+
}
|
|
4325
4585
|
/**
|
|
4326
4586
|
*
|
|
4327
4587
|
* @export
|
|
@@ -4560,6 +4820,42 @@ export declare const SubscriptionType: {
|
|
|
4560
4820
|
readonly Unsubscribe: "Unsubscribe";
|
|
4561
4821
|
};
|
|
4562
4822
|
export type SubscriptionType = typeof SubscriptionType[keyof typeof SubscriptionType];
|
|
4823
|
+
/**
|
|
4824
|
+
*
|
|
4825
|
+
* @export
|
|
4826
|
+
* @interface SwapClaimRequest
|
|
4827
|
+
*/
|
|
4828
|
+
export interface SwapClaimRequest {
|
|
4829
|
+
/**
|
|
4830
|
+
* On-chain transaction hash of the swap.
|
|
4831
|
+
* @type {string}
|
|
4832
|
+
* @memberof SwapClaimRequest
|
|
4833
|
+
*/
|
|
4834
|
+
'txHash': string;
|
|
4835
|
+
}
|
|
4836
|
+
/**
|
|
4837
|
+
*
|
|
4838
|
+
* @export
|
|
4839
|
+
* @interface SwapClaimResponse
|
|
4840
|
+
*/
|
|
4841
|
+
export interface SwapClaimResponse {
|
|
4842
|
+
/**
|
|
4843
|
+
* The claimed transaction hash.
|
|
4844
|
+
* @type {string}
|
|
4845
|
+
* @memberof SwapClaimResponse
|
|
4846
|
+
*/
|
|
4847
|
+
'txHash': string;
|
|
4848
|
+
/**
|
|
4849
|
+
* Claim status.
|
|
4850
|
+
* @type {string}
|
|
4851
|
+
* @memberof SwapClaimResponse
|
|
4852
|
+
*/
|
|
4853
|
+
'status': SwapClaimResponseStatusEnum;
|
|
4854
|
+
}
|
|
4855
|
+
export declare const SwapClaimResponseStatusEnum: {
|
|
4856
|
+
readonly Claimed: "claimed";
|
|
4857
|
+
};
|
|
4858
|
+
export type SwapClaimResponseStatusEnum = typeof SwapClaimResponseStatusEnum[keyof typeof SwapClaimResponseStatusEnum];
|
|
4563
4859
|
/**
|
|
4564
4860
|
*
|
|
4565
4861
|
* @export
|
|
@@ -5103,6 +5399,12 @@ export interface Trade {
|
|
|
5103
5399
|
* @memberof Trade
|
|
5104
5400
|
*/
|
|
5105
5401
|
'executedAtMillis': number;
|
|
5402
|
+
/**
|
|
5403
|
+
*
|
|
5404
|
+
* @type {ClientType}
|
|
5405
|
+
* @memberof Trade
|
|
5406
|
+
*/
|
|
5407
|
+
'client'?: ClientType;
|
|
5106
5408
|
}
|
|
5107
5409
|
/**
|
|
5108
5410
|
* Trade side based on the user order in this trade.
|
|
@@ -5399,6 +5701,42 @@ export declare const UserCampaignRewardsClaimStatusEnum: {
|
|
|
5399
5701
|
readonly ClaimEnded: "CLAIM_ENDED";
|
|
5400
5702
|
};
|
|
5401
5703
|
export type UserCampaignRewardsClaimStatusEnum = typeof UserCampaignRewardsClaimStatusEnum[keyof typeof UserCampaignRewardsClaimStatusEnum];
|
|
5704
|
+
/**
|
|
5705
|
+
*
|
|
5706
|
+
* @export
|
|
5707
|
+
* @interface VaultClaimRequest
|
|
5708
|
+
*/
|
|
5709
|
+
export interface VaultClaimRequest {
|
|
5710
|
+
/**
|
|
5711
|
+
* On-chain transaction hash of the vault deposit.
|
|
5712
|
+
* @type {string}
|
|
5713
|
+
* @memberof VaultClaimRequest
|
|
5714
|
+
*/
|
|
5715
|
+
'txHash': string;
|
|
5716
|
+
}
|
|
5717
|
+
/**
|
|
5718
|
+
*
|
|
5719
|
+
* @export
|
|
5720
|
+
* @interface VaultClaimResponse
|
|
5721
|
+
*/
|
|
5722
|
+
export interface VaultClaimResponse {
|
|
5723
|
+
/**
|
|
5724
|
+
* The claimed transaction hash.
|
|
5725
|
+
* @type {string}
|
|
5726
|
+
* @memberof VaultClaimResponse
|
|
5727
|
+
*/
|
|
5728
|
+
'txHash': string;
|
|
5729
|
+
/**
|
|
5730
|
+
* Claim status.
|
|
5731
|
+
* @type {string}
|
|
5732
|
+
* @memberof VaultClaimResponse
|
|
5733
|
+
*/
|
|
5734
|
+
'status': VaultClaimResponseStatusEnum;
|
|
5735
|
+
}
|
|
5736
|
+
export declare const VaultClaimResponseStatusEnum: {
|
|
5737
|
+
readonly Claimed: "claimed";
|
|
5738
|
+
};
|
|
5739
|
+
export type VaultClaimResponseStatusEnum = typeof VaultClaimResponseStatusEnum[keyof typeof VaultClaimResponseStatusEnum];
|
|
5402
5740
|
/**
|
|
5403
5741
|
*
|
|
5404
5742
|
* @export
|
|
@@ -5973,10 +6311,11 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
5973
6311
|
* @param {LoginRequest} loginRequest
|
|
5974
6312
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
5975
6313
|
* @param {boolean} [readOnly]
|
|
6314
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
5976
6315
|
* @param {*} [options] Override http request option.
|
|
5977
6316
|
* @throws {RequiredError}
|
|
5978
6317
|
*/
|
|
5979
|
-
authTokenPost: (payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6318
|
+
authTokenPost: (payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5980
6319
|
/**
|
|
5981
6320
|
* Retrieves a new auth token for an account. Expiry is set to 5 min.
|
|
5982
6321
|
* @param {RefreshTokenRequest} refreshTokenRequest
|
|
@@ -5990,10 +6329,18 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
5990
6329
|
* @param {LoginRequest} loginRequest
|
|
5991
6330
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
5992
6331
|
* @param {boolean} [readOnly]
|
|
6332
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6333
|
+
* @param {*} [options] Override http request option.
|
|
6334
|
+
* @throws {RequiredError}
|
|
6335
|
+
*/
|
|
6336
|
+
authV2TokenPost: (payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6337
|
+
/**
|
|
6338
|
+
* OpenID Connect Discovery endpoint
|
|
6339
|
+
* @summary /.well-known/openid-configuration
|
|
5993
6340
|
* @param {*} [options] Override http request option.
|
|
5994
6341
|
* @throws {RequiredError}
|
|
5995
6342
|
*/
|
|
5996
|
-
|
|
6343
|
+
getWellKnownOpenidConfiguration: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5997
6344
|
/**
|
|
5998
6345
|
* ZK Login User Details
|
|
5999
6346
|
* @summary /auth/zklogin
|
|
@@ -6002,6 +6349,14 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6002
6349
|
* @throws {RequiredError}
|
|
6003
6350
|
*/
|
|
6004
6351
|
getZkLoginUserDetails: (zkloginJwt: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6352
|
+
/**
|
|
6353
|
+
* OAuth2 client_credentials grant for service accounts
|
|
6354
|
+
* @summary /auth/client-credentials
|
|
6355
|
+
* @param {ClientCredentialsRequest} clientCredentialsRequest
|
|
6356
|
+
* @param {*} [options] Override http request option.
|
|
6357
|
+
* @throws {RequiredError}
|
|
6358
|
+
*/
|
|
6359
|
+
postAuthClientCredentials: (clientCredentialsRequest: ClientCredentialsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6005
6360
|
/**
|
|
6006
6361
|
*
|
|
6007
6362
|
* @summary /auth/zklogin/zkp
|
|
@@ -6031,10 +6386,11 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
|
6031
6386
|
* @param {LoginRequest} loginRequest
|
|
6032
6387
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
6033
6388
|
* @param {boolean} [readOnly]
|
|
6389
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6034
6390
|
* @param {*} [options] Override http request option.
|
|
6035
6391
|
* @throws {RequiredError}
|
|
6036
6392
|
*/
|
|
6037
|
-
authTokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
6393
|
+
authTokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
6038
6394
|
/**
|
|
6039
6395
|
* Retrieves a new auth token for an account. Expiry is set to 5 min.
|
|
6040
6396
|
* @param {RefreshTokenRequest} refreshTokenRequest
|
|
@@ -6048,10 +6404,18 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
|
6048
6404
|
* @param {LoginRequest} loginRequest
|
|
6049
6405
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
6050
6406
|
* @param {boolean} [readOnly]
|
|
6407
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6408
|
+
* @param {*} [options] Override http request option.
|
|
6409
|
+
* @throws {RequiredError}
|
|
6410
|
+
*/
|
|
6411
|
+
authV2TokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
6412
|
+
/**
|
|
6413
|
+
* OpenID Connect Discovery endpoint
|
|
6414
|
+
* @summary /.well-known/openid-configuration
|
|
6051
6415
|
* @param {*} [options] Override http request option.
|
|
6052
6416
|
* @throws {RequiredError}
|
|
6053
6417
|
*/
|
|
6054
|
-
|
|
6418
|
+
getWellKnownOpenidConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenIDConfigurationResponse>>;
|
|
6055
6419
|
/**
|
|
6056
6420
|
* ZK Login User Details
|
|
6057
6421
|
* @summary /auth/zklogin
|
|
@@ -6060,6 +6424,14 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
|
6060
6424
|
* @throws {RequiredError}
|
|
6061
6425
|
*/
|
|
6062
6426
|
getZkLoginUserDetails(zkloginJwt: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ZKLoginUserDetailsResponse>>;
|
|
6427
|
+
/**
|
|
6428
|
+
* OAuth2 client_credentials grant for service accounts
|
|
6429
|
+
* @summary /auth/client-credentials
|
|
6430
|
+
* @param {ClientCredentialsRequest} clientCredentialsRequest
|
|
6431
|
+
* @param {*} [options] Override http request option.
|
|
6432
|
+
* @throws {RequiredError}
|
|
6433
|
+
*/
|
|
6434
|
+
postAuthClientCredentials(clientCredentialsRequest: ClientCredentialsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientCredentialsResponse>>;
|
|
6063
6435
|
/**
|
|
6064
6436
|
*
|
|
6065
6437
|
* @summary /auth/zklogin/zkp
|
|
@@ -6089,10 +6461,11 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6089
6461
|
* @param {LoginRequest} loginRequest
|
|
6090
6462
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
6091
6463
|
* @param {boolean} [readOnly]
|
|
6464
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6092
6465
|
* @param {*} [options] Override http request option.
|
|
6093
6466
|
* @throws {RequiredError}
|
|
6094
6467
|
*/
|
|
6095
|
-
authTokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
6468
|
+
authTokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
6096
6469
|
/**
|
|
6097
6470
|
* Retrieves a new auth token for an account. Expiry is set to 5 min.
|
|
6098
6471
|
* @param {RefreshTokenRequest} refreshTokenRequest
|
|
@@ -6106,10 +6479,18 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6106
6479
|
* @param {LoginRequest} loginRequest
|
|
6107
6480
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
6108
6481
|
* @param {boolean} [readOnly]
|
|
6482
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6483
|
+
* @param {*} [options] Override http request option.
|
|
6484
|
+
* @throws {RequiredError}
|
|
6485
|
+
*/
|
|
6486
|
+
authV2TokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
6487
|
+
/**
|
|
6488
|
+
* OpenID Connect Discovery endpoint
|
|
6489
|
+
* @summary /.well-known/openid-configuration
|
|
6109
6490
|
* @param {*} [options] Override http request option.
|
|
6110
6491
|
* @throws {RequiredError}
|
|
6111
6492
|
*/
|
|
6112
|
-
|
|
6493
|
+
getWellKnownOpenidConfiguration(options?: RawAxiosRequestConfig): AxiosPromise<OpenIDConfigurationResponse>;
|
|
6113
6494
|
/**
|
|
6114
6495
|
* ZK Login User Details
|
|
6115
6496
|
* @summary /auth/zklogin
|
|
@@ -6118,6 +6499,14 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6118
6499
|
* @throws {RequiredError}
|
|
6119
6500
|
*/
|
|
6120
6501
|
getZkLoginUserDetails(zkloginJwt: string, options?: RawAxiosRequestConfig): AxiosPromise<ZKLoginUserDetailsResponse>;
|
|
6502
|
+
/**
|
|
6503
|
+
* OAuth2 client_credentials grant for service accounts
|
|
6504
|
+
* @summary /auth/client-credentials
|
|
6505
|
+
* @param {ClientCredentialsRequest} clientCredentialsRequest
|
|
6506
|
+
* @param {*} [options] Override http request option.
|
|
6507
|
+
* @throws {RequiredError}
|
|
6508
|
+
*/
|
|
6509
|
+
postAuthClientCredentials(clientCredentialsRequest: ClientCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientCredentialsResponse>;
|
|
6121
6510
|
/**
|
|
6122
6511
|
*
|
|
6123
6512
|
* @summary /auth/zklogin/zkp
|
|
@@ -6150,11 +6539,12 @@ export declare class AuthApi extends BaseAPI {
|
|
|
6150
6539
|
* @param {LoginRequest} loginRequest
|
|
6151
6540
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
6152
6541
|
* @param {boolean} [readOnly]
|
|
6542
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6153
6543
|
* @param {*} [options] Override http request option.
|
|
6154
6544
|
* @throws {RequiredError}
|
|
6155
6545
|
* @memberof AuthApi
|
|
6156
6546
|
*/
|
|
6157
|
-
authTokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
6547
|
+
authTokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
6158
6548
|
/**
|
|
6159
6549
|
* Retrieves a new auth token for an account. Expiry is set to 5 min.
|
|
6160
6550
|
* @param {RefreshTokenRequest} refreshTokenRequest
|
|
@@ -6169,11 +6559,20 @@ export declare class AuthApi extends BaseAPI {
|
|
|
6169
6559
|
* @param {LoginRequest} loginRequest
|
|
6170
6560
|
* @param {number} [refreshTokenValidForSeconds] The number of seconds the refresh token is valid for. If not provided, the default is 30 days.
|
|
6171
6561
|
* @param {boolean} [readOnly]
|
|
6562
|
+
* @param {ClientType} [client] The client application originating the request (WEB or VERA). Defaults to WEB if not supplied.
|
|
6563
|
+
* @param {*} [options] Override http request option.
|
|
6564
|
+
* @throws {RequiredError}
|
|
6565
|
+
* @memberof AuthApi
|
|
6566
|
+
*/
|
|
6567
|
+
authV2TokenPost(payloadSignature: string, loginRequest: LoginRequest, refreshTokenValidForSeconds?: number, readOnly?: boolean, client?: ClientType, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
6568
|
+
/**
|
|
6569
|
+
* OpenID Connect Discovery endpoint
|
|
6570
|
+
* @summary /.well-known/openid-configuration
|
|
6172
6571
|
* @param {*} [options] Override http request option.
|
|
6173
6572
|
* @throws {RequiredError}
|
|
6174
6573
|
* @memberof AuthApi
|
|
6175
6574
|
*/
|
|
6176
|
-
|
|
6575
|
+
getWellKnownOpenidConfiguration(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OpenIDConfigurationResponse, any, {}>>;
|
|
6177
6576
|
/**
|
|
6178
6577
|
* ZK Login User Details
|
|
6179
6578
|
* @summary /auth/zklogin
|
|
@@ -6183,6 +6582,15 @@ export declare class AuthApi extends BaseAPI {
|
|
|
6183
6582
|
* @memberof AuthApi
|
|
6184
6583
|
*/
|
|
6185
6584
|
getZkLoginUserDetails(zkloginJwt: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ZKLoginUserDetailsResponse, any, {}>>;
|
|
6585
|
+
/**
|
|
6586
|
+
* OAuth2 client_credentials grant for service accounts
|
|
6587
|
+
* @summary /auth/client-credentials
|
|
6588
|
+
* @param {ClientCredentialsRequest} clientCredentialsRequest
|
|
6589
|
+
* @param {*} [options] Override http request option.
|
|
6590
|
+
* @throws {RequiredError}
|
|
6591
|
+
* @memberof AuthApi
|
|
6592
|
+
*/
|
|
6593
|
+
postAuthClientCredentials(clientCredentialsRequest: ClientCredentialsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientCredentialsResponse, any, {}>>;
|
|
6186
6594
|
/**
|
|
6187
6595
|
*
|
|
6188
6596
|
* @summary /auth/zklogin/zkp
|
|
@@ -7887,4 +8295,195 @@ export declare class TradeApi extends BaseAPI {
|
|
|
7887
8295
|
*/
|
|
7888
8296
|
putLeverageUpdate(accountPositionLeverageUpdateRequest: AccountPositionLeverageUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
7889
8297
|
}
|
|
8298
|
+
/**
|
|
8299
|
+
* VeraPointsApi - axios parameter creator
|
|
8300
|
+
* @export
|
|
8301
|
+
*/
|
|
8302
|
+
export declare const VeraPointsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
8303
|
+
/**
|
|
8304
|
+
* Claim a swap transaction for Vera Points attribution.
|
|
8305
|
+
* @summary /vera/swap/claim
|
|
8306
|
+
* @param {SwapClaimRequest} swapClaimRequest
|
|
8307
|
+
* @param {*} [options] Override http request option.
|
|
8308
|
+
* @throws {RequiredError}
|
|
8309
|
+
*/
|
|
8310
|
+
claimSwap: (swapClaimRequest: SwapClaimRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8311
|
+
/**
|
|
8312
|
+
* Claim a vault deposit transaction for Vera Points attribution.
|
|
8313
|
+
* @summary /vera/vault/claim
|
|
8314
|
+
* @param {VaultClaimRequest} vaultClaimRequest
|
|
8315
|
+
* @param {*} [options] Override http request option.
|
|
8316
|
+
* @throws {RequiredError}
|
|
8317
|
+
*/
|
|
8318
|
+
claimVault: (vaultClaimRequest: VaultClaimRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8319
|
+
/**
|
|
8320
|
+
* Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
|
|
8321
|
+
* @summary Get user\'s points, tier, and rank
|
|
8322
|
+
* @param {string} userAddress Wallet address to look up balance for.
|
|
8323
|
+
* @param {*} [options] Override http request option.
|
|
8324
|
+
* @throws {RequiredError}
|
|
8325
|
+
*/
|
|
8326
|
+
getBalance: (userAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8327
|
+
/**
|
|
8328
|
+
* Paginated leaderboard ranked by lifetime Vera Points.
|
|
8329
|
+
* @summary Top users by lifetime points
|
|
8330
|
+
* @param {number} [limit] Number of entries to return.
|
|
8331
|
+
* @param {number} [offset] Number of entries to skip.
|
|
8332
|
+
* @param {*} [options] Override http request option.
|
|
8333
|
+
* @throws {RequiredError}
|
|
8334
|
+
*/
|
|
8335
|
+
getLeaderboard: (limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8336
|
+
/**
|
|
8337
|
+
* 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.
|
|
8338
|
+
* @summary /vera/session
|
|
8339
|
+
* @param {*} [options] Override http request option.
|
|
8340
|
+
* @throws {RequiredError}
|
|
8341
|
+
*/
|
|
8342
|
+
recordSession: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8343
|
+
};
|
|
8344
|
+
/**
|
|
8345
|
+
* VeraPointsApi - functional programming interface
|
|
8346
|
+
* @export
|
|
8347
|
+
*/
|
|
8348
|
+
export declare const VeraPointsApiFp: (configuration?: Configuration) => {
|
|
8349
|
+
/**
|
|
8350
|
+
* Claim a swap transaction for Vera Points attribution.
|
|
8351
|
+
* @summary /vera/swap/claim
|
|
8352
|
+
* @param {SwapClaimRequest} swapClaimRequest
|
|
8353
|
+
* @param {*} [options] Override http request option.
|
|
8354
|
+
* @throws {RequiredError}
|
|
8355
|
+
*/
|
|
8356
|
+
claimSwap(swapClaimRequest: SwapClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwapClaimResponse>>;
|
|
8357
|
+
/**
|
|
8358
|
+
* Claim a vault deposit transaction for Vera Points attribution.
|
|
8359
|
+
* @summary /vera/vault/claim
|
|
8360
|
+
* @param {VaultClaimRequest} vaultClaimRequest
|
|
8361
|
+
* @param {*} [options] Override http request option.
|
|
8362
|
+
* @throws {RequiredError}
|
|
8363
|
+
*/
|
|
8364
|
+
claimVault(vaultClaimRequest: VaultClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultClaimResponse>>;
|
|
8365
|
+
/**
|
|
8366
|
+
* Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
|
|
8367
|
+
* @summary Get user\'s points, tier, and rank
|
|
8368
|
+
* @param {string} userAddress Wallet address to look up balance for.
|
|
8369
|
+
* @param {*} [options] Override http request option.
|
|
8370
|
+
* @throws {RequiredError}
|
|
8371
|
+
*/
|
|
8372
|
+
getBalance(userAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BalanceResponse>>;
|
|
8373
|
+
/**
|
|
8374
|
+
* Paginated leaderboard ranked by lifetime Vera Points.
|
|
8375
|
+
* @summary Top users by lifetime points
|
|
8376
|
+
* @param {number} [limit] Number of entries to return.
|
|
8377
|
+
* @param {number} [offset] Number of entries to skip.
|
|
8378
|
+
* @param {*} [options] Override http request option.
|
|
8379
|
+
* @throws {RequiredError}
|
|
8380
|
+
*/
|
|
8381
|
+
getLeaderboard(limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaderboardResponse>>;
|
|
8382
|
+
/**
|
|
8383
|
+
* 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.
|
|
8384
|
+
* @summary /vera/session
|
|
8385
|
+
* @param {*} [options] Override http request option.
|
|
8386
|
+
* @throws {RequiredError}
|
|
8387
|
+
*/
|
|
8388
|
+
recordSession(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionResponse>>;
|
|
8389
|
+
};
|
|
8390
|
+
/**
|
|
8391
|
+
* VeraPointsApi - factory interface
|
|
8392
|
+
* @export
|
|
8393
|
+
*/
|
|
8394
|
+
export declare const VeraPointsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
8395
|
+
/**
|
|
8396
|
+
* Claim a swap transaction for Vera Points attribution.
|
|
8397
|
+
* @summary /vera/swap/claim
|
|
8398
|
+
* @param {SwapClaimRequest} swapClaimRequest
|
|
8399
|
+
* @param {*} [options] Override http request option.
|
|
8400
|
+
* @throws {RequiredError}
|
|
8401
|
+
*/
|
|
8402
|
+
claimSwap(swapClaimRequest: SwapClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<SwapClaimResponse>;
|
|
8403
|
+
/**
|
|
8404
|
+
* Claim a vault deposit transaction for Vera Points attribution.
|
|
8405
|
+
* @summary /vera/vault/claim
|
|
8406
|
+
* @param {VaultClaimRequest} vaultClaimRequest
|
|
8407
|
+
* @param {*} [options] Override http request option.
|
|
8408
|
+
* @throws {RequiredError}
|
|
8409
|
+
*/
|
|
8410
|
+
claimVault(vaultClaimRequest: VaultClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<VaultClaimResponse>;
|
|
8411
|
+
/**
|
|
8412
|
+
* Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
|
|
8413
|
+
* @summary Get user\'s points, tier, and rank
|
|
8414
|
+
* @param {string} userAddress Wallet address to look up balance for.
|
|
8415
|
+
* @param {*} [options] Override http request option.
|
|
8416
|
+
* @throws {RequiredError}
|
|
8417
|
+
*/
|
|
8418
|
+
getBalance(userAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<BalanceResponse>;
|
|
8419
|
+
/**
|
|
8420
|
+
* Paginated leaderboard ranked by lifetime Vera Points.
|
|
8421
|
+
* @summary Top users by lifetime points
|
|
8422
|
+
* @param {number} [limit] Number of entries to return.
|
|
8423
|
+
* @param {number} [offset] Number of entries to skip.
|
|
8424
|
+
* @param {*} [options] Override http request option.
|
|
8425
|
+
* @throws {RequiredError}
|
|
8426
|
+
*/
|
|
8427
|
+
getLeaderboard(limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<LeaderboardResponse>;
|
|
8428
|
+
/**
|
|
8429
|
+
* 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.
|
|
8430
|
+
* @summary /vera/session
|
|
8431
|
+
* @param {*} [options] Override http request option.
|
|
8432
|
+
* @throws {RequiredError}
|
|
8433
|
+
*/
|
|
8434
|
+
recordSession(options?: RawAxiosRequestConfig): AxiosPromise<SessionResponse>;
|
|
8435
|
+
};
|
|
8436
|
+
/**
|
|
8437
|
+
* VeraPointsApi - object-oriented interface
|
|
8438
|
+
* @export
|
|
8439
|
+
* @class VeraPointsApi
|
|
8440
|
+
* @extends {BaseAPI}
|
|
8441
|
+
*/
|
|
8442
|
+
export declare class VeraPointsApi extends BaseAPI {
|
|
8443
|
+
/**
|
|
8444
|
+
* Claim a swap transaction for Vera Points attribution.
|
|
8445
|
+
* @summary /vera/swap/claim
|
|
8446
|
+
* @param {SwapClaimRequest} swapClaimRequest
|
|
8447
|
+
* @param {*} [options] Override http request option.
|
|
8448
|
+
* @throws {RequiredError}
|
|
8449
|
+
* @memberof VeraPointsApi
|
|
8450
|
+
*/
|
|
8451
|
+
claimSwap(swapClaimRequest: SwapClaimRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SwapClaimResponse, any, {}>>;
|
|
8452
|
+
/**
|
|
8453
|
+
* Claim a vault deposit transaction for Vera Points attribution.
|
|
8454
|
+
* @summary /vera/vault/claim
|
|
8455
|
+
* @param {VaultClaimRequest} vaultClaimRequest
|
|
8456
|
+
* @param {*} [options] Override http request option.
|
|
8457
|
+
* @throws {RequiredError}
|
|
8458
|
+
* @memberof VeraPointsApi
|
|
8459
|
+
*/
|
|
8460
|
+
claimVault(vaultClaimRequest: VaultClaimRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultClaimResponse, any, {}>>;
|
|
8461
|
+
/**
|
|
8462
|
+
* Returns a user\'s lifetime Vera Points, current tier, rank, and next tier threshold. Public endpoint; user_address is passed as query parameter.
|
|
8463
|
+
* @summary Get user\'s points, tier, and rank
|
|
8464
|
+
* @param {string} userAddress Wallet address to look up balance for.
|
|
8465
|
+
* @param {*} [options] Override http request option.
|
|
8466
|
+
* @throws {RequiredError}
|
|
8467
|
+
* @memberof VeraPointsApi
|
|
8468
|
+
*/
|
|
8469
|
+
getBalance(userAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BalanceResponse, any, {}>>;
|
|
8470
|
+
/**
|
|
8471
|
+
* Paginated leaderboard ranked by lifetime Vera Points.
|
|
8472
|
+
* @summary Top users by lifetime points
|
|
8473
|
+
* @param {number} [limit] Number of entries to return.
|
|
8474
|
+
* @param {number} [offset] Number of entries to skip.
|
|
8475
|
+
* @param {*} [options] Override http request option.
|
|
8476
|
+
* @throws {RequiredError}
|
|
8477
|
+
* @memberof VeraPointsApi
|
|
8478
|
+
*/
|
|
8479
|
+
getLeaderboard(limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaderboardResponse, any, {}>>;
|
|
8480
|
+
/**
|
|
8481
|
+
* 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.
|
|
8482
|
+
* @summary /vera/session
|
|
8483
|
+
* @param {*} [options] Override http request option.
|
|
8484
|
+
* @throws {RequiredError}
|
|
8485
|
+
* @memberof VeraPointsApi
|
|
8486
|
+
*/
|
|
8487
|
+
recordSession(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SessionResponse, any, {}>>;
|
|
8488
|
+
}
|
|
7890
8489
|
//# sourceMappingURL=api.d.ts.map
|