@dfns/sdk 0.5.6 → 0.5.7
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/generated/auth/types.d.ts +28 -1
- package/generated/exchanges/client.d.ts +1 -0
- package/generated/exchanges/client.js +11 -0
- package/generated/exchanges/delegatedClient.d.ts +1 -0
- package/generated/exchanges/delegatedClient.js +11 -0
- package/generated/exchanges/types.d.ts +67 -29
- package/generated/policies/types.d.ts +69 -0
- package/generated/wallets/types.d.ts +91 -2
- package/package.json +1 -1
|
@@ -1688,6 +1688,7 @@ export type RecoverBody = {
|
|
|
1688
1688
|
clientData: string;
|
|
1689
1689
|
attestationData: string;
|
|
1690
1690
|
};
|
|
1691
|
+
credentialName?: string | undefined;
|
|
1691
1692
|
} | {
|
|
1692
1693
|
credentialKind: "Key";
|
|
1693
1694
|
credentialInfo: {
|
|
@@ -1695,11 +1696,13 @@ export type RecoverBody = {
|
|
|
1695
1696
|
clientData: string;
|
|
1696
1697
|
attestationData: string;
|
|
1697
1698
|
};
|
|
1699
|
+
credentialName?: string | undefined;
|
|
1698
1700
|
} | {
|
|
1699
1701
|
credentialKind: "Password";
|
|
1700
1702
|
credentialInfo: {
|
|
1701
1703
|
password: string;
|
|
1702
1704
|
};
|
|
1705
|
+
credentialName?: string | undefined;
|
|
1703
1706
|
} | {
|
|
1704
1707
|
credentialKind: "PasswordProtectedKey";
|
|
1705
1708
|
credentialInfo: {
|
|
@@ -1708,6 +1711,7 @@ export type RecoverBody = {
|
|
|
1708
1711
|
attestationData: string;
|
|
1709
1712
|
};
|
|
1710
1713
|
encryptedPrivateKey: string;
|
|
1714
|
+
credentialName?: string | undefined;
|
|
1711
1715
|
};
|
|
1712
1716
|
secondFactorCredential?: ({
|
|
1713
1717
|
credentialKind: "Fido2";
|
|
@@ -1716,6 +1720,7 @@ export type RecoverBody = {
|
|
|
1716
1720
|
clientData: string;
|
|
1717
1721
|
attestationData: string;
|
|
1718
1722
|
};
|
|
1723
|
+
credentialName?: string | undefined;
|
|
1719
1724
|
} | {
|
|
1720
1725
|
credentialKind: "Key";
|
|
1721
1726
|
credentialInfo: {
|
|
@@ -1723,11 +1728,13 @@ export type RecoverBody = {
|
|
|
1723
1728
|
clientData: string;
|
|
1724
1729
|
attestationData: string;
|
|
1725
1730
|
};
|
|
1731
|
+
credentialName?: string | undefined;
|
|
1726
1732
|
} | {
|
|
1727
1733
|
credentialKind: "Totp";
|
|
1728
1734
|
credentialInfo: {
|
|
1729
1735
|
otpCode: string;
|
|
1730
1736
|
};
|
|
1737
|
+
credentialName?: string | undefined;
|
|
1731
1738
|
} | {
|
|
1732
1739
|
credentialKind: "PasswordProtectedKey";
|
|
1733
1740
|
credentialInfo: {
|
|
@@ -1736,6 +1743,7 @@ export type RecoverBody = {
|
|
|
1736
1743
|
attestationData: string;
|
|
1737
1744
|
};
|
|
1738
1745
|
encryptedPrivateKey: string;
|
|
1746
|
+
credentialName?: string | undefined;
|
|
1739
1747
|
}) | undefined;
|
|
1740
1748
|
recoveryCredential?: {
|
|
1741
1749
|
credentialKind: "RecoveryKey";
|
|
@@ -1745,6 +1753,7 @@ export type RecoverBody = {
|
|
|
1745
1753
|
attestationData: string;
|
|
1746
1754
|
};
|
|
1747
1755
|
encryptedPrivateKey?: string | undefined;
|
|
1756
|
+
credentialName?: string | undefined;
|
|
1748
1757
|
} | undefined;
|
|
1749
1758
|
};
|
|
1750
1759
|
};
|
|
@@ -1813,6 +1822,7 @@ export type RegisterBody = {
|
|
|
1813
1822
|
clientData: string;
|
|
1814
1823
|
attestationData: string;
|
|
1815
1824
|
};
|
|
1825
|
+
credentialName?: string | undefined;
|
|
1816
1826
|
} | {
|
|
1817
1827
|
credentialKind: "Key";
|
|
1818
1828
|
credentialInfo: {
|
|
@@ -1820,11 +1830,13 @@ export type RegisterBody = {
|
|
|
1820
1830
|
clientData: string;
|
|
1821
1831
|
attestationData: string;
|
|
1822
1832
|
};
|
|
1833
|
+
credentialName?: string | undefined;
|
|
1823
1834
|
} | {
|
|
1824
1835
|
credentialKind: "Password";
|
|
1825
1836
|
credentialInfo: {
|
|
1826
1837
|
password: string;
|
|
1827
1838
|
};
|
|
1839
|
+
credentialName?: string | undefined;
|
|
1828
1840
|
} | {
|
|
1829
1841
|
credentialKind: "PasswordProtectedKey";
|
|
1830
1842
|
credentialInfo: {
|
|
@@ -1833,6 +1845,7 @@ export type RegisterBody = {
|
|
|
1833
1845
|
attestationData: string;
|
|
1834
1846
|
};
|
|
1835
1847
|
encryptedPrivateKey: string;
|
|
1848
|
+
credentialName?: string | undefined;
|
|
1836
1849
|
};
|
|
1837
1850
|
secondFactorCredential?: ({
|
|
1838
1851
|
credentialKind: "Fido2";
|
|
@@ -1841,6 +1854,7 @@ export type RegisterBody = {
|
|
|
1841
1854
|
clientData: string;
|
|
1842
1855
|
attestationData: string;
|
|
1843
1856
|
};
|
|
1857
|
+
credentialName?: string | undefined;
|
|
1844
1858
|
} | {
|
|
1845
1859
|
credentialKind: "Key";
|
|
1846
1860
|
credentialInfo: {
|
|
@@ -1848,11 +1862,13 @@ export type RegisterBody = {
|
|
|
1848
1862
|
clientData: string;
|
|
1849
1863
|
attestationData: string;
|
|
1850
1864
|
};
|
|
1865
|
+
credentialName?: string | undefined;
|
|
1851
1866
|
} | {
|
|
1852
1867
|
credentialKind: "Totp";
|
|
1853
1868
|
credentialInfo: {
|
|
1854
1869
|
otpCode: string;
|
|
1855
1870
|
};
|
|
1871
|
+
credentialName?: string | undefined;
|
|
1856
1872
|
} | {
|
|
1857
1873
|
credentialKind: "PasswordProtectedKey";
|
|
1858
1874
|
credentialInfo: {
|
|
@@ -1861,6 +1877,7 @@ export type RegisterBody = {
|
|
|
1861
1877
|
attestationData: string;
|
|
1862
1878
|
};
|
|
1863
1879
|
encryptedPrivateKey: string;
|
|
1880
|
+
credentialName?: string | undefined;
|
|
1864
1881
|
}) | undefined;
|
|
1865
1882
|
recoveryCredential?: {
|
|
1866
1883
|
credentialKind: "RecoveryKey";
|
|
@@ -1870,6 +1887,7 @@ export type RegisterBody = {
|
|
|
1870
1887
|
attestationData: string;
|
|
1871
1888
|
};
|
|
1872
1889
|
encryptedPrivateKey?: string | undefined;
|
|
1890
|
+
credentialName?: string | undefined;
|
|
1873
1891
|
} | undefined;
|
|
1874
1892
|
};
|
|
1875
1893
|
export type RegisterResponse = {
|
|
@@ -1895,6 +1913,7 @@ export type RegisterEndUserBody = {
|
|
|
1895
1913
|
clientData: string;
|
|
1896
1914
|
attestationData: string;
|
|
1897
1915
|
};
|
|
1916
|
+
credentialName?: string | undefined;
|
|
1898
1917
|
} | {
|
|
1899
1918
|
credentialKind: "Key";
|
|
1900
1919
|
credentialInfo: {
|
|
@@ -1902,11 +1921,13 @@ export type RegisterEndUserBody = {
|
|
|
1902
1921
|
clientData: string;
|
|
1903
1922
|
attestationData: string;
|
|
1904
1923
|
};
|
|
1924
|
+
credentialName?: string | undefined;
|
|
1905
1925
|
} | {
|
|
1906
1926
|
credentialKind: "Password";
|
|
1907
1927
|
credentialInfo: {
|
|
1908
1928
|
password: string;
|
|
1909
1929
|
};
|
|
1930
|
+
credentialName?: string | undefined;
|
|
1910
1931
|
} | {
|
|
1911
1932
|
credentialKind: "PasswordProtectedKey";
|
|
1912
1933
|
credentialInfo: {
|
|
@@ -1915,6 +1936,7 @@ export type RegisterEndUserBody = {
|
|
|
1915
1936
|
attestationData: string;
|
|
1916
1937
|
};
|
|
1917
1938
|
encryptedPrivateKey: string;
|
|
1939
|
+
credentialName?: string | undefined;
|
|
1918
1940
|
};
|
|
1919
1941
|
secondFactorCredential?: ({
|
|
1920
1942
|
credentialKind: "Fido2";
|
|
@@ -1923,6 +1945,7 @@ export type RegisterEndUserBody = {
|
|
|
1923
1945
|
clientData: string;
|
|
1924
1946
|
attestationData: string;
|
|
1925
1947
|
};
|
|
1948
|
+
credentialName?: string | undefined;
|
|
1926
1949
|
} | {
|
|
1927
1950
|
credentialKind: "Key";
|
|
1928
1951
|
credentialInfo: {
|
|
@@ -1930,11 +1953,13 @@ export type RegisterEndUserBody = {
|
|
|
1930
1953
|
clientData: string;
|
|
1931
1954
|
attestationData: string;
|
|
1932
1955
|
};
|
|
1956
|
+
credentialName?: string | undefined;
|
|
1933
1957
|
} | {
|
|
1934
1958
|
credentialKind: "Totp";
|
|
1935
1959
|
credentialInfo: {
|
|
1936
1960
|
otpCode: string;
|
|
1937
1961
|
};
|
|
1962
|
+
credentialName?: string | undefined;
|
|
1938
1963
|
} | {
|
|
1939
1964
|
credentialKind: "PasswordProtectedKey";
|
|
1940
1965
|
credentialInfo: {
|
|
@@ -1943,6 +1968,7 @@ export type RegisterEndUserBody = {
|
|
|
1943
1968
|
attestationData: string;
|
|
1944
1969
|
};
|
|
1945
1970
|
encryptedPrivateKey: string;
|
|
1971
|
+
credentialName?: string | undefined;
|
|
1946
1972
|
}) | undefined;
|
|
1947
1973
|
recoveryCredential?: {
|
|
1948
1974
|
credentialKind: "RecoveryKey";
|
|
@@ -1952,9 +1978,10 @@ export type RegisterEndUserBody = {
|
|
|
1952
1978
|
attestationData: string;
|
|
1953
1979
|
};
|
|
1954
1980
|
encryptedPrivateKey?: string | undefined;
|
|
1981
|
+
credentialName?: string | undefined;
|
|
1955
1982
|
} | undefined;
|
|
1956
1983
|
wallets: {
|
|
1957
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "
|
|
1984
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1958
1985
|
name?: string | undefined;
|
|
1959
1986
|
}[];
|
|
1960
1987
|
};
|
|
@@ -10,5 +10,6 @@ export declare class ExchangesClient {
|
|
|
10
10
|
getExchange(request: T.GetExchangeRequest): Promise<T.GetExchangeResponse>;
|
|
11
11
|
listAccountAssets(request: T.ListAccountAssetsRequest): Promise<T.ListAccountAssetsResponse>;
|
|
12
12
|
listAccounts(request: T.ListAccountsRequest): Promise<T.ListAccountsResponse>;
|
|
13
|
+
listAssetWithdrawalNetworks(request: T.ListAssetWithdrawalNetworksRequest): Promise<T.ListAssetWithdrawalNetworksResponse>;
|
|
13
14
|
listExchanges(request?: T.ListExchangesRequest): Promise<T.ListExchangesResponse>;
|
|
14
15
|
}
|
|
@@ -89,6 +89,17 @@ class ExchangesClient {
|
|
|
89
89
|
});
|
|
90
90
|
return response.json();
|
|
91
91
|
}
|
|
92
|
+
async listAssetWithdrawalNetworks(request) {
|
|
93
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/assets/:asset/withdrawal-networks', {
|
|
94
|
+
path: request ?? {},
|
|
95
|
+
query: {},
|
|
96
|
+
});
|
|
97
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
98
|
+
method: 'GET',
|
|
99
|
+
apiOptions: this.apiOptions,
|
|
100
|
+
});
|
|
101
|
+
return response.json();
|
|
102
|
+
}
|
|
92
103
|
async listExchanges(request) {
|
|
93
104
|
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
94
105
|
path: request ?? {},
|
|
@@ -15,5 +15,6 @@ export declare class DelegatedExchangesClient {
|
|
|
15
15
|
getExchange(request: T.GetExchangeRequest): Promise<T.GetExchangeResponse>;
|
|
16
16
|
listAccountAssets(request: T.ListAccountAssetsRequest): Promise<T.ListAccountAssetsResponse>;
|
|
17
17
|
listAccounts(request: T.ListAccountsRequest): Promise<T.ListAccountsResponse>;
|
|
18
|
+
listAssetWithdrawalNetworks(request: T.ListAssetWithdrawalNetworksRequest): Promise<T.ListAssetWithdrawalNetworksResponse>;
|
|
18
19
|
listExchanges(request?: T.ListExchangesRequest): Promise<T.ListExchangesResponse>;
|
|
19
20
|
}
|
|
@@ -149,6 +149,17 @@ class DelegatedExchangesClient {
|
|
|
149
149
|
});
|
|
150
150
|
return response.json();
|
|
151
151
|
}
|
|
152
|
+
async listAssetWithdrawalNetworks(request) {
|
|
153
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/assets/:asset/withdrawal-networks', {
|
|
154
|
+
path: request ?? {},
|
|
155
|
+
query: {},
|
|
156
|
+
});
|
|
157
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
158
|
+
method: 'GET',
|
|
159
|
+
apiOptions: this.apiOptions,
|
|
160
|
+
});
|
|
161
|
+
return response.json();
|
|
162
|
+
}
|
|
152
163
|
async listExchanges(request) {
|
|
153
164
|
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
154
165
|
path: request ?? {},
|
|
@@ -2,6 +2,7 @@ export type CreateDepositBody = {
|
|
|
2
2
|
kind: "Native";
|
|
3
3
|
amount: string;
|
|
4
4
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
5
|
+
externalId?: string | undefined;
|
|
5
6
|
walletId: string;
|
|
6
7
|
otp?: string | undefined;
|
|
7
8
|
} | {
|
|
@@ -9,24 +10,28 @@ export type CreateDepositBody = {
|
|
|
9
10
|
contract: string;
|
|
10
11
|
amount: string;
|
|
11
12
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
13
|
+
externalId?: string | undefined;
|
|
12
14
|
walletId: string;
|
|
13
15
|
otp?: string | undefined;
|
|
14
16
|
} | {
|
|
15
17
|
kind: "Trc10";
|
|
16
18
|
tokenId: string;
|
|
17
19
|
amount: string;
|
|
20
|
+
externalId?: string | undefined;
|
|
18
21
|
walletId: string;
|
|
19
22
|
otp?: string | undefined;
|
|
20
23
|
} | {
|
|
21
24
|
kind: "Trc20";
|
|
22
25
|
contract: string;
|
|
23
26
|
amount: string;
|
|
27
|
+
externalId?: string | undefined;
|
|
24
28
|
walletId: string;
|
|
25
29
|
otp?: string | undefined;
|
|
26
30
|
} | {
|
|
27
31
|
kind: "Asa";
|
|
28
32
|
assetId: string;
|
|
29
33
|
amount: string;
|
|
34
|
+
externalId?: string | undefined;
|
|
30
35
|
walletId: string;
|
|
31
36
|
otp?: string | undefined;
|
|
32
37
|
} | {
|
|
@@ -34,6 +39,7 @@ export type CreateDepositBody = {
|
|
|
34
39
|
issuer: string;
|
|
35
40
|
assetCode: string;
|
|
36
41
|
amount: string;
|
|
42
|
+
externalId?: string | undefined;
|
|
37
43
|
walletId: string;
|
|
38
44
|
otp?: string | undefined;
|
|
39
45
|
} | {
|
|
@@ -41,12 +47,14 @@ export type CreateDepositBody = {
|
|
|
41
47
|
amount: string;
|
|
42
48
|
mint: string;
|
|
43
49
|
createDestinationAccount?: boolean | undefined;
|
|
50
|
+
externalId?: string | undefined;
|
|
44
51
|
walletId: string;
|
|
45
52
|
otp?: string | undefined;
|
|
46
53
|
} | {
|
|
47
54
|
kind: "Tep74";
|
|
48
55
|
master: string;
|
|
49
56
|
amount: string;
|
|
57
|
+
externalId?: string | undefined;
|
|
50
58
|
walletId: string;
|
|
51
59
|
otp?: string | undefined;
|
|
52
60
|
};
|
|
@@ -71,6 +79,7 @@ export type CreateDepositResponse = {
|
|
|
71
79
|
kind: "Native";
|
|
72
80
|
amount: string;
|
|
73
81
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
82
|
+
externalId?: string | undefined;
|
|
74
83
|
walletId: string;
|
|
75
84
|
otp?: string | undefined;
|
|
76
85
|
} | {
|
|
@@ -78,24 +87,28 @@ export type CreateDepositResponse = {
|
|
|
78
87
|
contract: string;
|
|
79
88
|
amount: string;
|
|
80
89
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
90
|
+
externalId?: string | undefined;
|
|
81
91
|
walletId: string;
|
|
82
92
|
otp?: string | undefined;
|
|
83
93
|
} | {
|
|
84
94
|
kind: "Trc10";
|
|
85
95
|
tokenId: string;
|
|
86
96
|
amount: string;
|
|
97
|
+
externalId?: string | undefined;
|
|
87
98
|
walletId: string;
|
|
88
99
|
otp?: string | undefined;
|
|
89
100
|
} | {
|
|
90
101
|
kind: "Trc20";
|
|
91
102
|
contract: string;
|
|
92
103
|
amount: string;
|
|
104
|
+
externalId?: string | undefined;
|
|
93
105
|
walletId: string;
|
|
94
106
|
otp?: string | undefined;
|
|
95
107
|
} | {
|
|
96
108
|
kind: "Asa";
|
|
97
109
|
assetId: string;
|
|
98
110
|
amount: string;
|
|
111
|
+
externalId?: string | undefined;
|
|
99
112
|
walletId: string;
|
|
100
113
|
otp?: string | undefined;
|
|
101
114
|
} | {
|
|
@@ -103,6 +116,7 @@ export type CreateDepositResponse = {
|
|
|
103
116
|
issuer: string;
|
|
104
117
|
assetCode: string;
|
|
105
118
|
amount: string;
|
|
119
|
+
externalId?: string | undefined;
|
|
106
120
|
walletId: string;
|
|
107
121
|
otp?: string | undefined;
|
|
108
122
|
} | {
|
|
@@ -110,12 +124,14 @@ export type CreateDepositResponse = {
|
|
|
110
124
|
amount: string;
|
|
111
125
|
mint: string;
|
|
112
126
|
createDestinationAccount?: boolean | undefined;
|
|
127
|
+
externalId?: string | undefined;
|
|
113
128
|
walletId: string;
|
|
114
129
|
otp?: string | undefined;
|
|
115
130
|
} | {
|
|
116
131
|
kind: "Tep74";
|
|
117
132
|
master: string;
|
|
118
133
|
amount: string;
|
|
134
|
+
externalId?: string | undefined;
|
|
119
135
|
walletId: string;
|
|
120
136
|
otp?: string | undefined;
|
|
121
137
|
};
|
|
@@ -126,7 +142,7 @@ export type CreateDepositRequest = CreateDepositParams & {
|
|
|
126
142
|
};
|
|
127
143
|
export type CreateExchangeBody = {
|
|
128
144
|
name?: string | undefined;
|
|
129
|
-
kind: "Binance" | "Kraken" | "
|
|
145
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
130
146
|
readConfiguration: {
|
|
131
147
|
publicApiKey: string;
|
|
132
148
|
privateApiKey: string;
|
|
@@ -143,7 +159,7 @@ export type CreateExchangeBody = {
|
|
|
143
159
|
export type CreateExchangeResponse = {
|
|
144
160
|
id: string;
|
|
145
161
|
name?: string | undefined;
|
|
146
|
-
kind: "Binance" | "Kraken" | "
|
|
162
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
147
163
|
dateCreated: string;
|
|
148
164
|
};
|
|
149
165
|
export type CreateExchangeRequest = {
|
|
@@ -153,6 +169,7 @@ export type CreateWithdrawalBody = {
|
|
|
153
169
|
kind: "Native";
|
|
154
170
|
amount: string;
|
|
155
171
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
172
|
+
externalId?: string | undefined;
|
|
156
173
|
walletId: string;
|
|
157
174
|
otp?: string | undefined;
|
|
158
175
|
} | {
|
|
@@ -160,24 +177,28 @@ export type CreateWithdrawalBody = {
|
|
|
160
177
|
contract: string;
|
|
161
178
|
amount: string;
|
|
162
179
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
180
|
+
externalId?: string | undefined;
|
|
163
181
|
walletId: string;
|
|
164
182
|
otp?: string | undefined;
|
|
165
183
|
} | {
|
|
166
184
|
kind: "Trc10";
|
|
167
185
|
tokenId: string;
|
|
168
186
|
amount: string;
|
|
187
|
+
externalId?: string | undefined;
|
|
169
188
|
walletId: string;
|
|
170
189
|
otp?: string | undefined;
|
|
171
190
|
} | {
|
|
172
191
|
kind: "Trc20";
|
|
173
192
|
contract: string;
|
|
174
193
|
amount: string;
|
|
194
|
+
externalId?: string | undefined;
|
|
175
195
|
walletId: string;
|
|
176
196
|
otp?: string | undefined;
|
|
177
197
|
} | {
|
|
178
198
|
kind: "Asa";
|
|
179
199
|
assetId: string;
|
|
180
200
|
amount: string;
|
|
201
|
+
externalId?: string | undefined;
|
|
181
202
|
walletId: string;
|
|
182
203
|
otp?: string | undefined;
|
|
183
204
|
} | {
|
|
@@ -185,6 +206,7 @@ export type CreateWithdrawalBody = {
|
|
|
185
206
|
issuer: string;
|
|
186
207
|
assetCode: string;
|
|
187
208
|
amount: string;
|
|
209
|
+
externalId?: string | undefined;
|
|
188
210
|
walletId: string;
|
|
189
211
|
otp?: string | undefined;
|
|
190
212
|
} | {
|
|
@@ -192,12 +214,14 @@ export type CreateWithdrawalBody = {
|
|
|
192
214
|
amount: string;
|
|
193
215
|
mint: string;
|
|
194
216
|
createDestinationAccount?: boolean | undefined;
|
|
217
|
+
externalId?: string | undefined;
|
|
195
218
|
walletId: string;
|
|
196
219
|
otp?: string | undefined;
|
|
197
220
|
} | {
|
|
198
221
|
kind: "Tep74";
|
|
199
222
|
master: string;
|
|
200
223
|
amount: string;
|
|
224
|
+
externalId?: string | undefined;
|
|
201
225
|
walletId: string;
|
|
202
226
|
otp?: string | undefined;
|
|
203
227
|
};
|
|
@@ -222,6 +246,7 @@ export type CreateWithdrawalResponse = {
|
|
|
222
246
|
kind: "Native";
|
|
223
247
|
amount: string;
|
|
224
248
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
249
|
+
externalId?: string | undefined;
|
|
225
250
|
walletId: string;
|
|
226
251
|
otp?: string | undefined;
|
|
227
252
|
} | {
|
|
@@ -229,24 +254,28 @@ export type CreateWithdrawalResponse = {
|
|
|
229
254
|
contract: string;
|
|
230
255
|
amount: string;
|
|
231
256
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
257
|
+
externalId?: string | undefined;
|
|
232
258
|
walletId: string;
|
|
233
259
|
otp?: string | undefined;
|
|
234
260
|
} | {
|
|
235
261
|
kind: "Trc10";
|
|
236
262
|
tokenId: string;
|
|
237
263
|
amount: string;
|
|
264
|
+
externalId?: string | undefined;
|
|
238
265
|
walletId: string;
|
|
239
266
|
otp?: string | undefined;
|
|
240
267
|
} | {
|
|
241
268
|
kind: "Trc20";
|
|
242
269
|
contract: string;
|
|
243
270
|
amount: string;
|
|
271
|
+
externalId?: string | undefined;
|
|
244
272
|
walletId: string;
|
|
245
273
|
otp?: string | undefined;
|
|
246
274
|
} | {
|
|
247
275
|
kind: "Asa";
|
|
248
276
|
assetId: string;
|
|
249
277
|
amount: string;
|
|
278
|
+
externalId?: string | undefined;
|
|
250
279
|
walletId: string;
|
|
251
280
|
otp?: string | undefined;
|
|
252
281
|
} | {
|
|
@@ -254,6 +283,7 @@ export type CreateWithdrawalResponse = {
|
|
|
254
283
|
issuer: string;
|
|
255
284
|
assetCode: string;
|
|
256
285
|
amount: string;
|
|
286
|
+
externalId?: string | undefined;
|
|
257
287
|
walletId: string;
|
|
258
288
|
otp?: string | undefined;
|
|
259
289
|
} | {
|
|
@@ -261,12 +291,14 @@ export type CreateWithdrawalResponse = {
|
|
|
261
291
|
amount: string;
|
|
262
292
|
mint: string;
|
|
263
293
|
createDestinationAccount?: boolean | undefined;
|
|
294
|
+
externalId?: string | undefined;
|
|
264
295
|
walletId: string;
|
|
265
296
|
otp?: string | undefined;
|
|
266
297
|
} | {
|
|
267
298
|
kind: "Tep74";
|
|
268
299
|
master: string;
|
|
269
300
|
amount: string;
|
|
301
|
+
externalId?: string | undefined;
|
|
270
302
|
walletId: string;
|
|
271
303
|
otp?: string | undefined;
|
|
272
304
|
};
|
|
@@ -288,7 +320,7 @@ export type GetExchangeParams = {
|
|
|
288
320
|
export type GetExchangeResponse = {
|
|
289
321
|
id: string;
|
|
290
322
|
name?: string | undefined;
|
|
291
|
-
kind: "Binance" | "Kraken" | "
|
|
323
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
292
324
|
dateCreated: string;
|
|
293
325
|
};
|
|
294
326
|
export type GetExchangeRequest = GetExchangeParams;
|
|
@@ -304,31 +336,6 @@ export type ListAccountAssetsResponse = {
|
|
|
304
336
|
items: {
|
|
305
337
|
symbol: string;
|
|
306
338
|
balance: string;
|
|
307
|
-
networks: (({
|
|
308
|
-
kind: "Native";
|
|
309
|
-
} | {
|
|
310
|
-
kind: "Asa";
|
|
311
|
-
assetId: string;
|
|
312
|
-
} | {
|
|
313
|
-
kind: "Erc20" | "Trc20";
|
|
314
|
-
contract: string;
|
|
315
|
-
} | {
|
|
316
|
-
kind: "Sep41";
|
|
317
|
-
issuer: string;
|
|
318
|
-
assetCode: string;
|
|
319
|
-
} | {
|
|
320
|
-
kind: "Trc10";
|
|
321
|
-
tokenId: string;
|
|
322
|
-
} | {
|
|
323
|
-
kind: "Spl" | "Spl2022";
|
|
324
|
-
mint: string;
|
|
325
|
-
} | {
|
|
326
|
-
kind: "Tep74";
|
|
327
|
-
master: string;
|
|
328
|
-
}) & {
|
|
329
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
330
|
-
decimals: number;
|
|
331
|
-
})[];
|
|
332
339
|
}[];
|
|
333
340
|
nextPageToken?: string | undefined;
|
|
334
341
|
};
|
|
@@ -354,6 +361,37 @@ export type ListAccountsResponse = {
|
|
|
354
361
|
export type ListAccountsRequest = ListAccountsParams & {
|
|
355
362
|
query?: ListAccountsQuery;
|
|
356
363
|
};
|
|
364
|
+
export type ListAssetWithdrawalNetworksParams = {
|
|
365
|
+
exchangeId: string;
|
|
366
|
+
accountId: string;
|
|
367
|
+
asset: string;
|
|
368
|
+
};
|
|
369
|
+
export type ListAssetWithdrawalNetworksResponse = (({
|
|
370
|
+
kind: "Native";
|
|
371
|
+
} | {
|
|
372
|
+
kind: "Asa";
|
|
373
|
+
assetId: string;
|
|
374
|
+
} | {
|
|
375
|
+
kind: "Erc20" | "Trc20";
|
|
376
|
+
contract: string;
|
|
377
|
+
} | {
|
|
378
|
+
kind: "Sep41";
|
|
379
|
+
issuer: string;
|
|
380
|
+
assetCode: string;
|
|
381
|
+
} | {
|
|
382
|
+
kind: "Trc10";
|
|
383
|
+
tokenId: string;
|
|
384
|
+
} | {
|
|
385
|
+
kind: "Spl" | "Spl2022";
|
|
386
|
+
mint: string;
|
|
387
|
+
} | {
|
|
388
|
+
kind: "Tep74";
|
|
389
|
+
master: string;
|
|
390
|
+
}) & {
|
|
391
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
392
|
+
decimals: number;
|
|
393
|
+
})[];
|
|
394
|
+
export type ListAssetWithdrawalNetworksRequest = ListAssetWithdrawalNetworksParams;
|
|
357
395
|
export type ListExchangesQuery = {
|
|
358
396
|
limit?: number | undefined;
|
|
359
397
|
paginationToken?: string | undefined;
|
|
@@ -362,7 +400,7 @@ export type ListExchangesResponse = {
|
|
|
362
400
|
items: {
|
|
363
401
|
id: string;
|
|
364
402
|
name?: string | undefined;
|
|
365
|
-
kind: "Binance" | "Kraken" | "
|
|
403
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
366
404
|
dateCreated: string;
|
|
367
405
|
}[];
|
|
368
406
|
nextPageToken?: string | undefined;
|