@dfns/sdk 0.5.6 → 0.5.8
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 +29 -2
- 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 +71 -29
- package/generated/policies/types.d.ts +144 -45
- package/generated/wallets/types.d.ts +166 -37
- 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" | "SeiAtlantic2" | "SeiPacific1" | "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
|
};
|
|
@@ -1974,7 +2001,7 @@ export type RegisterEndUserResponse = {
|
|
|
1974
2001
|
};
|
|
1975
2002
|
wallets: {
|
|
1976
2003
|
id: string;
|
|
1977
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
2004
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1978
2005
|
address?: string | undefined;
|
|
1979
2006
|
signingKey: {
|
|
1980
2007
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -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,8 @@ export type CreateDepositBody = {
|
|
|
2
2
|
kind: "Native";
|
|
3
3
|
amount: string;
|
|
4
4
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
5
|
+
createDestinationAccount?: boolean | undefined;
|
|
6
|
+
externalId?: string | undefined;
|
|
5
7
|
walletId: string;
|
|
6
8
|
otp?: string | undefined;
|
|
7
9
|
} | {
|
|
@@ -9,24 +11,28 @@ export type CreateDepositBody = {
|
|
|
9
11
|
contract: string;
|
|
10
12
|
amount: string;
|
|
11
13
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
14
|
+
externalId?: string | undefined;
|
|
12
15
|
walletId: string;
|
|
13
16
|
otp?: string | undefined;
|
|
14
17
|
} | {
|
|
15
18
|
kind: "Trc10";
|
|
16
19
|
tokenId: string;
|
|
17
20
|
amount: string;
|
|
21
|
+
externalId?: string | undefined;
|
|
18
22
|
walletId: string;
|
|
19
23
|
otp?: string | undefined;
|
|
20
24
|
} | {
|
|
21
25
|
kind: "Trc20";
|
|
22
26
|
contract: string;
|
|
23
27
|
amount: string;
|
|
28
|
+
externalId?: string | undefined;
|
|
24
29
|
walletId: string;
|
|
25
30
|
otp?: string | undefined;
|
|
26
31
|
} | {
|
|
27
32
|
kind: "Asa";
|
|
28
33
|
assetId: string;
|
|
29
34
|
amount: string;
|
|
35
|
+
externalId?: string | undefined;
|
|
30
36
|
walletId: string;
|
|
31
37
|
otp?: string | undefined;
|
|
32
38
|
} | {
|
|
@@ -34,6 +40,7 @@ export type CreateDepositBody = {
|
|
|
34
40
|
issuer: string;
|
|
35
41
|
assetCode: string;
|
|
36
42
|
amount: string;
|
|
43
|
+
externalId?: string | undefined;
|
|
37
44
|
walletId: string;
|
|
38
45
|
otp?: string | undefined;
|
|
39
46
|
} | {
|
|
@@ -41,12 +48,14 @@ export type CreateDepositBody = {
|
|
|
41
48
|
amount: string;
|
|
42
49
|
mint: string;
|
|
43
50
|
createDestinationAccount?: boolean | undefined;
|
|
51
|
+
externalId?: string | undefined;
|
|
44
52
|
walletId: string;
|
|
45
53
|
otp?: string | undefined;
|
|
46
54
|
} | {
|
|
47
55
|
kind: "Tep74";
|
|
48
56
|
master: string;
|
|
49
57
|
amount: string;
|
|
58
|
+
externalId?: string | undefined;
|
|
50
59
|
walletId: string;
|
|
51
60
|
otp?: string | undefined;
|
|
52
61
|
};
|
|
@@ -71,6 +80,8 @@ export type CreateDepositResponse = {
|
|
|
71
80
|
kind: "Native";
|
|
72
81
|
amount: string;
|
|
73
82
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
83
|
+
createDestinationAccount?: boolean | undefined;
|
|
84
|
+
externalId?: string | undefined;
|
|
74
85
|
walletId: string;
|
|
75
86
|
otp?: string | undefined;
|
|
76
87
|
} | {
|
|
@@ -78,24 +89,28 @@ export type CreateDepositResponse = {
|
|
|
78
89
|
contract: string;
|
|
79
90
|
amount: string;
|
|
80
91
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
92
|
+
externalId?: string | undefined;
|
|
81
93
|
walletId: string;
|
|
82
94
|
otp?: string | undefined;
|
|
83
95
|
} | {
|
|
84
96
|
kind: "Trc10";
|
|
85
97
|
tokenId: string;
|
|
86
98
|
amount: string;
|
|
99
|
+
externalId?: string | undefined;
|
|
87
100
|
walletId: string;
|
|
88
101
|
otp?: string | undefined;
|
|
89
102
|
} | {
|
|
90
103
|
kind: "Trc20";
|
|
91
104
|
contract: string;
|
|
92
105
|
amount: string;
|
|
106
|
+
externalId?: string | undefined;
|
|
93
107
|
walletId: string;
|
|
94
108
|
otp?: string | undefined;
|
|
95
109
|
} | {
|
|
96
110
|
kind: "Asa";
|
|
97
111
|
assetId: string;
|
|
98
112
|
amount: string;
|
|
113
|
+
externalId?: string | undefined;
|
|
99
114
|
walletId: string;
|
|
100
115
|
otp?: string | undefined;
|
|
101
116
|
} | {
|
|
@@ -103,6 +118,7 @@ export type CreateDepositResponse = {
|
|
|
103
118
|
issuer: string;
|
|
104
119
|
assetCode: string;
|
|
105
120
|
amount: string;
|
|
121
|
+
externalId?: string | undefined;
|
|
106
122
|
walletId: string;
|
|
107
123
|
otp?: string | undefined;
|
|
108
124
|
} | {
|
|
@@ -110,12 +126,14 @@ export type CreateDepositResponse = {
|
|
|
110
126
|
amount: string;
|
|
111
127
|
mint: string;
|
|
112
128
|
createDestinationAccount?: boolean | undefined;
|
|
129
|
+
externalId?: string | undefined;
|
|
113
130
|
walletId: string;
|
|
114
131
|
otp?: string | undefined;
|
|
115
132
|
} | {
|
|
116
133
|
kind: "Tep74";
|
|
117
134
|
master: string;
|
|
118
135
|
amount: string;
|
|
136
|
+
externalId?: string | undefined;
|
|
119
137
|
walletId: string;
|
|
120
138
|
otp?: string | undefined;
|
|
121
139
|
};
|
|
@@ -126,7 +144,7 @@ export type CreateDepositRequest = CreateDepositParams & {
|
|
|
126
144
|
};
|
|
127
145
|
export type CreateExchangeBody = {
|
|
128
146
|
name?: string | undefined;
|
|
129
|
-
kind: "Binance" | "Kraken" | "
|
|
147
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
130
148
|
readConfiguration: {
|
|
131
149
|
publicApiKey: string;
|
|
132
150
|
privateApiKey: string;
|
|
@@ -143,7 +161,7 @@ export type CreateExchangeBody = {
|
|
|
143
161
|
export type CreateExchangeResponse = {
|
|
144
162
|
id: string;
|
|
145
163
|
name?: string | undefined;
|
|
146
|
-
kind: "Binance" | "Kraken" | "
|
|
164
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
147
165
|
dateCreated: string;
|
|
148
166
|
};
|
|
149
167
|
export type CreateExchangeRequest = {
|
|
@@ -153,6 +171,8 @@ export type CreateWithdrawalBody = {
|
|
|
153
171
|
kind: "Native";
|
|
154
172
|
amount: string;
|
|
155
173
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
174
|
+
createDestinationAccount?: boolean | undefined;
|
|
175
|
+
externalId?: string | undefined;
|
|
156
176
|
walletId: string;
|
|
157
177
|
otp?: string | undefined;
|
|
158
178
|
} | {
|
|
@@ -160,24 +180,28 @@ export type CreateWithdrawalBody = {
|
|
|
160
180
|
contract: string;
|
|
161
181
|
amount: string;
|
|
162
182
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
183
|
+
externalId?: string | undefined;
|
|
163
184
|
walletId: string;
|
|
164
185
|
otp?: string | undefined;
|
|
165
186
|
} | {
|
|
166
187
|
kind: "Trc10";
|
|
167
188
|
tokenId: string;
|
|
168
189
|
amount: string;
|
|
190
|
+
externalId?: string | undefined;
|
|
169
191
|
walletId: string;
|
|
170
192
|
otp?: string | undefined;
|
|
171
193
|
} | {
|
|
172
194
|
kind: "Trc20";
|
|
173
195
|
contract: string;
|
|
174
196
|
amount: string;
|
|
197
|
+
externalId?: string | undefined;
|
|
175
198
|
walletId: string;
|
|
176
199
|
otp?: string | undefined;
|
|
177
200
|
} | {
|
|
178
201
|
kind: "Asa";
|
|
179
202
|
assetId: string;
|
|
180
203
|
amount: string;
|
|
204
|
+
externalId?: string | undefined;
|
|
181
205
|
walletId: string;
|
|
182
206
|
otp?: string | undefined;
|
|
183
207
|
} | {
|
|
@@ -185,6 +209,7 @@ export type CreateWithdrawalBody = {
|
|
|
185
209
|
issuer: string;
|
|
186
210
|
assetCode: string;
|
|
187
211
|
amount: string;
|
|
212
|
+
externalId?: string | undefined;
|
|
188
213
|
walletId: string;
|
|
189
214
|
otp?: string | undefined;
|
|
190
215
|
} | {
|
|
@@ -192,12 +217,14 @@ export type CreateWithdrawalBody = {
|
|
|
192
217
|
amount: string;
|
|
193
218
|
mint: string;
|
|
194
219
|
createDestinationAccount?: boolean | undefined;
|
|
220
|
+
externalId?: string | undefined;
|
|
195
221
|
walletId: string;
|
|
196
222
|
otp?: string | undefined;
|
|
197
223
|
} | {
|
|
198
224
|
kind: "Tep74";
|
|
199
225
|
master: string;
|
|
200
226
|
amount: string;
|
|
227
|
+
externalId?: string | undefined;
|
|
201
228
|
walletId: string;
|
|
202
229
|
otp?: string | undefined;
|
|
203
230
|
};
|
|
@@ -222,6 +249,8 @@ export type CreateWithdrawalResponse = {
|
|
|
222
249
|
kind: "Native";
|
|
223
250
|
amount: string;
|
|
224
251
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
252
|
+
createDestinationAccount?: boolean | undefined;
|
|
253
|
+
externalId?: string | undefined;
|
|
225
254
|
walletId: string;
|
|
226
255
|
otp?: string | undefined;
|
|
227
256
|
} | {
|
|
@@ -229,24 +258,28 @@ export type CreateWithdrawalResponse = {
|
|
|
229
258
|
contract: string;
|
|
230
259
|
amount: string;
|
|
231
260
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
261
|
+
externalId?: string | undefined;
|
|
232
262
|
walletId: string;
|
|
233
263
|
otp?: string | undefined;
|
|
234
264
|
} | {
|
|
235
265
|
kind: "Trc10";
|
|
236
266
|
tokenId: string;
|
|
237
267
|
amount: string;
|
|
268
|
+
externalId?: string | undefined;
|
|
238
269
|
walletId: string;
|
|
239
270
|
otp?: string | undefined;
|
|
240
271
|
} | {
|
|
241
272
|
kind: "Trc20";
|
|
242
273
|
contract: string;
|
|
243
274
|
amount: string;
|
|
275
|
+
externalId?: string | undefined;
|
|
244
276
|
walletId: string;
|
|
245
277
|
otp?: string | undefined;
|
|
246
278
|
} | {
|
|
247
279
|
kind: "Asa";
|
|
248
280
|
assetId: string;
|
|
249
281
|
amount: string;
|
|
282
|
+
externalId?: string | undefined;
|
|
250
283
|
walletId: string;
|
|
251
284
|
otp?: string | undefined;
|
|
252
285
|
} | {
|
|
@@ -254,6 +287,7 @@ export type CreateWithdrawalResponse = {
|
|
|
254
287
|
issuer: string;
|
|
255
288
|
assetCode: string;
|
|
256
289
|
amount: string;
|
|
290
|
+
externalId?: string | undefined;
|
|
257
291
|
walletId: string;
|
|
258
292
|
otp?: string | undefined;
|
|
259
293
|
} | {
|
|
@@ -261,12 +295,14 @@ export type CreateWithdrawalResponse = {
|
|
|
261
295
|
amount: string;
|
|
262
296
|
mint: string;
|
|
263
297
|
createDestinationAccount?: boolean | undefined;
|
|
298
|
+
externalId?: string | undefined;
|
|
264
299
|
walletId: string;
|
|
265
300
|
otp?: string | undefined;
|
|
266
301
|
} | {
|
|
267
302
|
kind: "Tep74";
|
|
268
303
|
master: string;
|
|
269
304
|
amount: string;
|
|
305
|
+
externalId?: string | undefined;
|
|
270
306
|
walletId: string;
|
|
271
307
|
otp?: string | undefined;
|
|
272
308
|
};
|
|
@@ -288,7 +324,7 @@ export type GetExchangeParams = {
|
|
|
288
324
|
export type GetExchangeResponse = {
|
|
289
325
|
id: string;
|
|
290
326
|
name?: string | undefined;
|
|
291
|
-
kind: "Binance" | "Kraken" | "
|
|
327
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
292
328
|
dateCreated: string;
|
|
293
329
|
};
|
|
294
330
|
export type GetExchangeRequest = GetExchangeParams;
|
|
@@ -304,31 +340,6 @@ export type ListAccountAssetsResponse = {
|
|
|
304
340
|
items: {
|
|
305
341
|
symbol: string;
|
|
306
342
|
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
343
|
}[];
|
|
333
344
|
nextPageToken?: string | undefined;
|
|
334
345
|
};
|
|
@@ -354,6 +365,37 @@ export type ListAccountsResponse = {
|
|
|
354
365
|
export type ListAccountsRequest = ListAccountsParams & {
|
|
355
366
|
query?: ListAccountsQuery;
|
|
356
367
|
};
|
|
368
|
+
export type ListAssetWithdrawalNetworksParams = {
|
|
369
|
+
exchangeId: string;
|
|
370
|
+
accountId: string;
|
|
371
|
+
asset: string;
|
|
372
|
+
};
|
|
373
|
+
export type ListAssetWithdrawalNetworksResponse = (({
|
|
374
|
+
kind: "Native";
|
|
375
|
+
} | {
|
|
376
|
+
kind: "Asa";
|
|
377
|
+
assetId: string;
|
|
378
|
+
} | {
|
|
379
|
+
kind: "Erc20" | "Trc20";
|
|
380
|
+
contract: string;
|
|
381
|
+
} | {
|
|
382
|
+
kind: "Sep41";
|
|
383
|
+
issuer: string;
|
|
384
|
+
assetCode: string;
|
|
385
|
+
} | {
|
|
386
|
+
kind: "Trc10";
|
|
387
|
+
tokenId: string;
|
|
388
|
+
} | {
|
|
389
|
+
kind: "Spl" | "Spl2022";
|
|
390
|
+
mint: string;
|
|
391
|
+
} | {
|
|
392
|
+
kind: "Tep74";
|
|
393
|
+
master: string;
|
|
394
|
+
}) & {
|
|
395
|
+
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" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
396
|
+
decimals: number;
|
|
397
|
+
})[];
|
|
398
|
+
export type ListAssetWithdrawalNetworksRequest = ListAssetWithdrawalNetworksParams;
|
|
357
399
|
export type ListExchangesQuery = {
|
|
358
400
|
limit?: number | undefined;
|
|
359
401
|
paginationToken?: string | undefined;
|
|
@@ -362,7 +404,7 @@ export type ListExchangesResponse = {
|
|
|
362
404
|
items: {
|
|
363
405
|
id: string;
|
|
364
406
|
name?: string | undefined;
|
|
365
|
-
kind: "Binance" | "Kraken" | "
|
|
407
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
366
408
|
dateCreated: string;
|
|
367
409
|
}[];
|
|
368
410
|
nextPageToken?: string | undefined;
|