@turnkey/http 5.0.0 → 6.0.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/CHANGELOG.md +41 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +198 -93
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +327 -152
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +327 -152
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +26556 -10074
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +315 -147
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +290 -136
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +741 -253
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +4 -4
|
@@ -3,116 +3,6 @@
|
|
|
3
3
|
var base = require('../../../../../base.js');
|
|
4
4
|
|
|
5
5
|
/* @generated by `@turnkey/fetchers`. DO NOT EDIT BY HAND */
|
|
6
|
-
/**
|
|
7
|
-
* Get Earn deposit status
|
|
8
|
-
*
|
|
9
|
-
* Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
|
|
10
|
-
*
|
|
11
|
-
* `POST /public/v1/query/earn_deposit_status`
|
|
12
|
-
*/
|
|
13
|
-
const earnDepositStatus = (input) => base.request({
|
|
14
|
-
uri: "/public/v1/query/earn_deposit_status",
|
|
15
|
-
method: "POST",
|
|
16
|
-
body: input.body,
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* Request a WebAuthn assertion and return a signed `EarnDepositStatus` request, ready to be POSTed to Turnkey.
|
|
20
|
-
*
|
|
21
|
-
* See {@link EarnDepositStatus}
|
|
22
|
-
*/
|
|
23
|
-
const signEarnDepositStatus = (input, options) => base.signedRequest({
|
|
24
|
-
uri: "/public/v1/query/earn_deposit_status",
|
|
25
|
-
body: input.body,
|
|
26
|
-
options,
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Get Earn enabled vaults
|
|
30
|
-
*
|
|
31
|
-
* Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
|
|
32
|
-
*
|
|
33
|
-
* `POST /public/v1/query/earn_enabled_vaults`
|
|
34
|
-
*/
|
|
35
|
-
const earnEnabledVaults = (input) => base.request({
|
|
36
|
-
uri: "/public/v1/query/earn_enabled_vaults",
|
|
37
|
-
method: "POST",
|
|
38
|
-
body: input.body,
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* Request a WebAuthn assertion and return a signed `EarnEnabledVaults` request, ready to be POSTed to Turnkey.
|
|
42
|
-
*
|
|
43
|
-
* See {@link EarnEnabledVaults}
|
|
44
|
-
*/
|
|
45
|
-
const signEarnEnabledVaults = (input, options) => base.signedRequest({
|
|
46
|
-
uri: "/public/v1/query/earn_enabled_vaults",
|
|
47
|
-
body: input.body,
|
|
48
|
-
options,
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* Get Earn positions
|
|
52
|
-
*
|
|
53
|
-
* Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
|
|
54
|
-
*
|
|
55
|
-
* `POST /public/v1/query/earn_positions`
|
|
56
|
-
*/
|
|
57
|
-
const earnPositions = (input) => base.request({
|
|
58
|
-
uri: "/public/v1/query/earn_positions",
|
|
59
|
-
method: "POST",
|
|
60
|
-
body: input.body,
|
|
61
|
-
});
|
|
62
|
-
/**
|
|
63
|
-
* Request a WebAuthn assertion and return a signed `EarnPositions` request, ready to be POSTed to Turnkey.
|
|
64
|
-
*
|
|
65
|
-
* See {@link EarnPositions}
|
|
66
|
-
*/
|
|
67
|
-
const signEarnPositions = (input, options) => base.signedRequest({
|
|
68
|
-
uri: "/public/v1/query/earn_positions",
|
|
69
|
-
body: input.body,
|
|
70
|
-
options,
|
|
71
|
-
});
|
|
72
|
-
/**
|
|
73
|
-
* Get Earn vault catalog
|
|
74
|
-
*
|
|
75
|
-
* Get the catalog of all wrappable yield vaults across supported chains, enriched with live TVL and APY. Annotates which vaults the organization has already enabled.
|
|
76
|
-
*
|
|
77
|
-
* `POST /public/v1/query/earn_vaults`
|
|
78
|
-
*/
|
|
79
|
-
const earnVaults = (input) => base.request({
|
|
80
|
-
uri: "/public/v1/query/earn_vaults",
|
|
81
|
-
method: "POST",
|
|
82
|
-
body: input.body,
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* Request a WebAuthn assertion and return a signed `EarnVaults` request, ready to be POSTed to Turnkey.
|
|
86
|
-
*
|
|
87
|
-
* See {@link EarnVaults}
|
|
88
|
-
*/
|
|
89
|
-
const signEarnVaults = (input, options) => base.signedRequest({
|
|
90
|
-
uri: "/public/v1/query/earn_vaults",
|
|
91
|
-
body: input.body,
|
|
92
|
-
options,
|
|
93
|
-
});
|
|
94
|
-
/**
|
|
95
|
-
* Get Earn withdraw status
|
|
96
|
-
*
|
|
97
|
-
* Poll the status of a withdrawal by its withdraw_request_id.
|
|
98
|
-
*
|
|
99
|
-
* `POST /public/v1/query/earn_withdraw_status`
|
|
100
|
-
*/
|
|
101
|
-
const earnWithdrawStatus = (input) => base.request({
|
|
102
|
-
uri: "/public/v1/query/earn_withdraw_status",
|
|
103
|
-
method: "POST",
|
|
104
|
-
body: input.body,
|
|
105
|
-
});
|
|
106
|
-
/**
|
|
107
|
-
* Request a WebAuthn assertion and return a signed `EarnWithdrawStatus` request, ready to be POSTed to Turnkey.
|
|
108
|
-
*
|
|
109
|
-
* See {@link EarnWithdrawStatus}
|
|
110
|
-
*/
|
|
111
|
-
const signEarnWithdrawStatus = (input, options) => base.signedRequest({
|
|
112
|
-
uri: "/public/v1/query/earn_withdraw_status",
|
|
113
|
-
body: input.body,
|
|
114
|
-
options,
|
|
115
|
-
});
|
|
116
6
|
/**
|
|
117
7
|
* Get activity
|
|
118
8
|
*
|
|
@@ -267,6 +157,94 @@ const signGetBootProof = (input, options) => base.signedRequest({
|
|
|
267
157
|
body: input.body,
|
|
268
158
|
options,
|
|
269
159
|
});
|
|
160
|
+
/**
|
|
161
|
+
* Get Earn claim fees status
|
|
162
|
+
*
|
|
163
|
+
* Poll the status of a fee claim by its claim_request_id.
|
|
164
|
+
*
|
|
165
|
+
* `POST /public/v1/query/get_claim_earn_fees_status`
|
|
166
|
+
*/
|
|
167
|
+
const getClaimEarnFeesStatus = (input) => base.request({
|
|
168
|
+
uri: "/public/v1/query/get_claim_earn_fees_status",
|
|
169
|
+
method: "POST",
|
|
170
|
+
body: input.body,
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* Request a WebAuthn assertion and return a signed `GetClaimEarnFeesStatus` request, ready to be POSTed to Turnkey.
|
|
174
|
+
*
|
|
175
|
+
* See {@link GetClaimEarnFeesStatus}
|
|
176
|
+
*/
|
|
177
|
+
const signGetClaimEarnFeesStatus = (input, options) => base.signedRequest({
|
|
178
|
+
uri: "/public/v1/query/get_claim_earn_fees_status",
|
|
179
|
+
body: input.body,
|
|
180
|
+
options,
|
|
181
|
+
});
|
|
182
|
+
/**
|
|
183
|
+
* Get Earn deploy status
|
|
184
|
+
*
|
|
185
|
+
* Poll the status of a wrapper deployment by its deploy_request_id.
|
|
186
|
+
*
|
|
187
|
+
* `POST /public/v1/query/get_earn_deploy_status`
|
|
188
|
+
*/
|
|
189
|
+
const getEarnDeployStatus = (input) => base.request({
|
|
190
|
+
uri: "/public/v1/query/get_earn_deploy_status",
|
|
191
|
+
method: "POST",
|
|
192
|
+
body: input.body,
|
|
193
|
+
});
|
|
194
|
+
/**
|
|
195
|
+
* Request a WebAuthn assertion and return a signed `GetEarnDeployStatus` request, ready to be POSTed to Turnkey.
|
|
196
|
+
*
|
|
197
|
+
* See {@link GetEarnDeployStatus}
|
|
198
|
+
*/
|
|
199
|
+
const signGetEarnDeployStatus = (input, options) => base.signedRequest({
|
|
200
|
+
uri: "/public/v1/query/get_earn_deploy_status",
|
|
201
|
+
body: input.body,
|
|
202
|
+
options,
|
|
203
|
+
});
|
|
204
|
+
/**
|
|
205
|
+
* Get Earn deposit status
|
|
206
|
+
*
|
|
207
|
+
* Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
|
|
208
|
+
*
|
|
209
|
+
* `POST /public/v1/query/get_earn_deposit_status`
|
|
210
|
+
*/
|
|
211
|
+
const getEarnDepositStatus = (input) => base.request({
|
|
212
|
+
uri: "/public/v1/query/get_earn_deposit_status",
|
|
213
|
+
method: "POST",
|
|
214
|
+
body: input.body,
|
|
215
|
+
});
|
|
216
|
+
/**
|
|
217
|
+
* Request a WebAuthn assertion and return a signed `GetEarnDepositStatus` request, ready to be POSTed to Turnkey.
|
|
218
|
+
*
|
|
219
|
+
* See {@link GetEarnDepositStatus}
|
|
220
|
+
*/
|
|
221
|
+
const signGetEarnDepositStatus = (input, options) => base.signedRequest({
|
|
222
|
+
uri: "/public/v1/query/get_earn_deposit_status",
|
|
223
|
+
body: input.body,
|
|
224
|
+
options,
|
|
225
|
+
});
|
|
226
|
+
/**
|
|
227
|
+
* Get Earn withdraw status
|
|
228
|
+
*
|
|
229
|
+
* Poll the status of a withdrawal by its withdraw_request_id.
|
|
230
|
+
*
|
|
231
|
+
* `POST /public/v1/query/get_earn_withdraw_status`
|
|
232
|
+
*/
|
|
233
|
+
const getEarnWithdrawStatus = (input) => base.request({
|
|
234
|
+
uri: "/public/v1/query/get_earn_withdraw_status",
|
|
235
|
+
method: "POST",
|
|
236
|
+
body: input.body,
|
|
237
|
+
});
|
|
238
|
+
/**
|
|
239
|
+
* Request a WebAuthn assertion and return a signed `GetEarnWithdrawStatus` request, ready to be POSTed to Turnkey.
|
|
240
|
+
*
|
|
241
|
+
* See {@link GetEarnWithdrawStatus}
|
|
242
|
+
*/
|
|
243
|
+
const signGetEarnWithdrawStatus = (input, options) => base.signedRequest({
|
|
244
|
+
uri: "/public/v1/query/get_earn_withdraw_status",
|
|
245
|
+
body: input.body,
|
|
246
|
+
options,
|
|
247
|
+
});
|
|
270
248
|
/**
|
|
271
249
|
* Get gas usage
|
|
272
250
|
*
|
|
@@ -949,6 +927,72 @@ const signGetAppProofs = (input, options) => base.signedRequest({
|
|
|
949
927
|
body: input.body,
|
|
950
928
|
options,
|
|
951
929
|
});
|
|
930
|
+
/**
|
|
931
|
+
* Get Earn enabled vaults
|
|
932
|
+
*
|
|
933
|
+
* Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
|
|
934
|
+
*
|
|
935
|
+
* `POST /public/v1/query/list_earn_enabled_vaults`
|
|
936
|
+
*/
|
|
937
|
+
const listEarnEnabledVaults = (input) => base.request({
|
|
938
|
+
uri: "/public/v1/query/list_earn_enabled_vaults",
|
|
939
|
+
method: "POST",
|
|
940
|
+
body: input.body,
|
|
941
|
+
});
|
|
942
|
+
/**
|
|
943
|
+
* Request a WebAuthn assertion and return a signed `ListEarnEnabledVaults` request, ready to be POSTed to Turnkey.
|
|
944
|
+
*
|
|
945
|
+
* See {@link ListEarnEnabledVaults}
|
|
946
|
+
*/
|
|
947
|
+
const signListEarnEnabledVaults = (input, options) => base.signedRequest({
|
|
948
|
+
uri: "/public/v1/query/list_earn_enabled_vaults",
|
|
949
|
+
body: input.body,
|
|
950
|
+
options,
|
|
951
|
+
});
|
|
952
|
+
/**
|
|
953
|
+
* Get Earn positions
|
|
954
|
+
*
|
|
955
|
+
* Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
|
|
956
|
+
*
|
|
957
|
+
* `POST /public/v1/query/list_earn_positions`
|
|
958
|
+
*/
|
|
959
|
+
const listEarnPositions = (input) => base.request({
|
|
960
|
+
uri: "/public/v1/query/list_earn_positions",
|
|
961
|
+
method: "POST",
|
|
962
|
+
body: input.body,
|
|
963
|
+
});
|
|
964
|
+
/**
|
|
965
|
+
* Request a WebAuthn assertion and return a signed `ListEarnPositions` request, ready to be POSTed to Turnkey.
|
|
966
|
+
*
|
|
967
|
+
* See {@link ListEarnPositions}
|
|
968
|
+
*/
|
|
969
|
+
const signListEarnPositions = (input, options) => base.signedRequest({
|
|
970
|
+
uri: "/public/v1/query/list_earn_positions",
|
|
971
|
+
body: input.body,
|
|
972
|
+
options,
|
|
973
|
+
});
|
|
974
|
+
/**
|
|
975
|
+
* Get Earn vault catalog
|
|
976
|
+
*
|
|
977
|
+
* Get the catalog of all wrappable yield vaults across supported chains, enriched with live TVL and APY. Annotates which vaults the organization has already enabled.
|
|
978
|
+
*
|
|
979
|
+
* `POST /public/v1/query/list_earn_vaults`
|
|
980
|
+
*/
|
|
981
|
+
const listEarnVaults = (input) => base.request({
|
|
982
|
+
uri: "/public/v1/query/list_earn_vaults",
|
|
983
|
+
method: "POST",
|
|
984
|
+
body: input.body,
|
|
985
|
+
});
|
|
986
|
+
/**
|
|
987
|
+
* Request a WebAuthn assertion and return a signed `ListEarnVaults` request, ready to be POSTed to Turnkey.
|
|
988
|
+
*
|
|
989
|
+
* See {@link ListEarnVaults}
|
|
990
|
+
*/
|
|
991
|
+
const signListEarnVaults = (input, options) => base.signedRequest({
|
|
992
|
+
uri: "/public/v1/query/list_earn_vaults",
|
|
993
|
+
body: input.body,
|
|
994
|
+
options,
|
|
995
|
+
});
|
|
952
996
|
/**
|
|
953
997
|
* List email events
|
|
954
998
|
*
|
|
@@ -971,6 +1015,28 @@ const signListEmailEvents = (input, options) => base.signedRequest({
|
|
|
971
1015
|
body: input.body,
|
|
972
1016
|
options,
|
|
973
1017
|
});
|
|
1018
|
+
/**
|
|
1019
|
+
* List Eth transaction history
|
|
1020
|
+
*
|
|
1021
|
+
* List Ethereum transaction history for a wallet address on the specified network.
|
|
1022
|
+
*
|
|
1023
|
+
* `POST /public/v1/query/list_eth_transaction_history`
|
|
1024
|
+
*/
|
|
1025
|
+
const listEthTransactionHistory = (input) => base.request({
|
|
1026
|
+
uri: "/public/v1/query/list_eth_transaction_history",
|
|
1027
|
+
method: "POST",
|
|
1028
|
+
body: input.body,
|
|
1029
|
+
});
|
|
1030
|
+
/**
|
|
1031
|
+
* Request a WebAuthn assertion and return a signed `ListEthTransactionHistory` request, ready to be POSTed to Turnkey.
|
|
1032
|
+
*
|
|
1033
|
+
* See {@link ListEthTransactionHistory}
|
|
1034
|
+
*/
|
|
1035
|
+
const signListEthTransactionHistory = (input, options) => base.signedRequest({
|
|
1036
|
+
uri: "/public/v1/query/list_eth_transaction_history",
|
|
1037
|
+
body: input.body,
|
|
1038
|
+
options,
|
|
1039
|
+
});
|
|
974
1040
|
/**
|
|
975
1041
|
* List Fiat On Ramp Credentials
|
|
976
1042
|
*
|
|
@@ -1103,6 +1169,28 @@ const signGetSmartContractInterfaces = (input, options) => base.signedRequest({
|
|
|
1103
1169
|
body: input.body,
|
|
1104
1170
|
options,
|
|
1105
1171
|
});
|
|
1172
|
+
/**
|
|
1173
|
+
* List Sol transaction history
|
|
1174
|
+
*
|
|
1175
|
+
* List Solana transaction history for a wallet address on the specified network.
|
|
1176
|
+
*
|
|
1177
|
+
* `POST /public/v1/query/list_sol_transaction_history`
|
|
1178
|
+
*/
|
|
1179
|
+
const listSolTransactionHistory = (input) => base.request({
|
|
1180
|
+
uri: "/public/v1/query/list_sol_transaction_history",
|
|
1181
|
+
method: "POST",
|
|
1182
|
+
body: input.body,
|
|
1183
|
+
});
|
|
1184
|
+
/**
|
|
1185
|
+
* Request a WebAuthn assertion and return a signed `ListSolTransactionHistory` request, ready to be POSTed to Turnkey.
|
|
1186
|
+
*
|
|
1187
|
+
* See {@link ListSolTransactionHistory}
|
|
1188
|
+
*/
|
|
1189
|
+
const signListSolTransactionHistory = (input, options) => base.signedRequest({
|
|
1190
|
+
uri: "/public/v1/query/list_sol_transaction_history",
|
|
1191
|
+
body: input.body,
|
|
1192
|
+
options,
|
|
1193
|
+
});
|
|
1106
1194
|
/**
|
|
1107
1195
|
* Get sub-organizations
|
|
1108
1196
|
*
|
|
@@ -1389,6 +1477,50 @@ const signApproveActivity = (input, options) => base.signedRequest({
|
|
|
1389
1477
|
body: input.body,
|
|
1390
1478
|
options,
|
|
1391
1479
|
});
|
|
1480
|
+
/**
|
|
1481
|
+
* Claim earn fees
|
|
1482
|
+
*
|
|
1483
|
+
* Claim earn fees through the activity pipeline.
|
|
1484
|
+
*
|
|
1485
|
+
* `POST /public/v1/submit/claim_earn_fees`
|
|
1486
|
+
*/
|
|
1487
|
+
const claimEarnFees = (input) => base.request({
|
|
1488
|
+
uri: "/public/v1/submit/claim_earn_fees",
|
|
1489
|
+
method: "POST",
|
|
1490
|
+
body: input.body,
|
|
1491
|
+
});
|
|
1492
|
+
/**
|
|
1493
|
+
* Request a WebAuthn assertion and return a signed `ClaimEarnFees` request, ready to be POSTed to Turnkey.
|
|
1494
|
+
*
|
|
1495
|
+
* See {@link ClaimEarnFees}
|
|
1496
|
+
*/
|
|
1497
|
+
const signClaimEarnFees = (input, options) => base.signedRequest({
|
|
1498
|
+
uri: "/public/v1/submit/claim_earn_fees",
|
|
1499
|
+
body: input.body,
|
|
1500
|
+
options,
|
|
1501
|
+
});
|
|
1502
|
+
/**
|
|
1503
|
+
* Claim swap fees
|
|
1504
|
+
*
|
|
1505
|
+
* Claim swap fees through the activity pipeline.
|
|
1506
|
+
*
|
|
1507
|
+
* `POST /public/v1/submit/claim_swap_fees`
|
|
1508
|
+
*/
|
|
1509
|
+
const claimSwapFees = (input) => base.request({
|
|
1510
|
+
uri: "/public/v1/submit/claim_swap_fees",
|
|
1511
|
+
method: "POST",
|
|
1512
|
+
body: input.body,
|
|
1513
|
+
});
|
|
1514
|
+
/**
|
|
1515
|
+
* Request a WebAuthn assertion and return a signed `ClaimSwapFees` request, ready to be POSTed to Turnkey.
|
|
1516
|
+
*
|
|
1517
|
+
* See {@link ClaimSwapFees}
|
|
1518
|
+
*/
|
|
1519
|
+
const signClaimSwapFees = (input, options) => base.signedRequest({
|
|
1520
|
+
uri: "/public/v1/submit/claim_swap_fees",
|
|
1521
|
+
body: input.body,
|
|
1522
|
+
options,
|
|
1523
|
+
});
|
|
1392
1524
|
/**
|
|
1393
1525
|
* Create API keys
|
|
1394
1526
|
*
|
|
@@ -1744,7 +1876,7 @@ const signCreateSmartContractInterface = (input, options) => base.signedRequest(
|
|
|
1744
1876
|
/**
|
|
1745
1877
|
* Create sub-organization
|
|
1746
1878
|
*
|
|
1747
|
-
* Create a new sub-organization.
|
|
1879
|
+
* Create a new sub-organization. Each root user must have at least one valid credential: an API key, an authenticator, an OAuth provider, or an email or phone number with a login method enabled on the sub-organization (email, email OTP, or SMS).
|
|
1748
1880
|
*
|
|
1749
1881
|
* `POST /public/v1/submit/create_sub_organization`
|
|
1750
1882
|
*/
|
|
@@ -1898,7 +2030,7 @@ const signCreateUserTag = (input, options) => base.signedRequest({
|
|
|
1898
2030
|
/**
|
|
1899
2031
|
* Create users
|
|
1900
2032
|
*
|
|
1901
|
-
* Create users in an existing organization.
|
|
2033
|
+
* Create users in an existing organization. Each user must have at least one valid credential: an API key, an authenticator, an OAuth provider, or an email or phone number with a login method enabled on the organization (email, email OTP, or SMS).
|
|
1902
2034
|
*
|
|
1903
2035
|
* `POST /public/v1/submit/create_users`
|
|
1904
2036
|
*/
|
|
@@ -2467,6 +2599,28 @@ const signEarnDeposit = (input, options) => base.signedRequest({
|
|
|
2467
2599
|
body: input.body,
|
|
2468
2600
|
options,
|
|
2469
2601
|
});
|
|
2602
|
+
/**
|
|
2603
|
+
* Set Earn wrapper state
|
|
2604
|
+
*
|
|
2605
|
+
* Enable or disable deposits to a deployed Earn wrapper. Withdrawals are always allowed.
|
|
2606
|
+
*
|
|
2607
|
+
* `POST /public/v1/submit/earn_set_wrapper_state`
|
|
2608
|
+
*/
|
|
2609
|
+
const earnSetWrapperState = (input) => base.request({
|
|
2610
|
+
uri: "/public/v1/submit/earn_set_wrapper_state",
|
|
2611
|
+
method: "POST",
|
|
2612
|
+
body: input.body,
|
|
2613
|
+
});
|
|
2614
|
+
/**
|
|
2615
|
+
* Request a WebAuthn assertion and return a signed `EarnSetWrapperState` request, ready to be POSTed to Turnkey.
|
|
2616
|
+
*
|
|
2617
|
+
* See {@link EarnSetWrapperState}
|
|
2618
|
+
*/
|
|
2619
|
+
const signEarnSetWrapperState = (input, options) => base.signedRequest({
|
|
2620
|
+
uri: "/public/v1/submit/earn_set_wrapper_state",
|
|
2621
|
+
body: input.body,
|
|
2622
|
+
options,
|
|
2623
|
+
});
|
|
2470
2624
|
/**
|
|
2471
2625
|
* Withdraw from Earn vault
|
|
2472
2626
|
*
|
|
@@ -2731,6 +2885,28 @@ const signInitImportPrivateKey = (input, options) => base.signedRequest({
|
|
|
2731
2885
|
body: input.body,
|
|
2732
2886
|
options,
|
|
2733
2887
|
});
|
|
2888
|
+
/**
|
|
2889
|
+
* Init import secrets
|
|
2890
|
+
*
|
|
2891
|
+
* Initialize secret imports by generating Ingress Encryption Target Keys.
|
|
2892
|
+
*
|
|
2893
|
+
* `POST /public/v1/submit/init_import_secrets`
|
|
2894
|
+
*/
|
|
2895
|
+
const initImportSecrets = (input) => base.request({
|
|
2896
|
+
uri: "/public/v1/submit/init_import_secrets",
|
|
2897
|
+
method: "POST",
|
|
2898
|
+
body: input.body,
|
|
2899
|
+
});
|
|
2900
|
+
/**
|
|
2901
|
+
* Request a WebAuthn assertion and return a signed `InitImportSecrets` request, ready to be POSTed to Turnkey.
|
|
2902
|
+
*
|
|
2903
|
+
* See {@link InitImportSecrets}
|
|
2904
|
+
*/
|
|
2905
|
+
const signInitImportSecrets = (input, options) => base.signedRequest({
|
|
2906
|
+
uri: "/public/v1/submit/init_import_secrets",
|
|
2907
|
+
body: input.body,
|
|
2908
|
+
options,
|
|
2909
|
+
});
|
|
2734
2910
|
/**
|
|
2735
2911
|
* Init import wallet
|
|
2736
2912
|
*
|
|
@@ -3218,7 +3394,7 @@ const signSignTransaction = (input, options) => base.signedRequest({
|
|
|
3218
3394
|
/**
|
|
3219
3395
|
* Broadcast SVM transaction
|
|
3220
3396
|
*
|
|
3221
|
-
* Submit a transaction intent describing an SVM transaction you would like to broadcast.
|
|
3397
|
+
* Submit a transaction intent describing an SVM transaction you would like to broadcast. Supports single- and multi-signer intents via activity type versioning.
|
|
3222
3398
|
*
|
|
3223
3399
|
* `POST /public/v1/submit/sol_send_transaction`
|
|
3224
3400
|
*/
|
|
@@ -3655,28 +3831,6 @@ const signUpdateWebhookEndpoint = (input, options) => base.signedRequest({
|
|
|
3655
3831
|
body: input.body,
|
|
3656
3832
|
options,
|
|
3657
3833
|
});
|
|
3658
|
-
/**
|
|
3659
|
-
* Upsert Earn client fee config
|
|
3660
|
-
*
|
|
3661
|
-
* Set the client's Earn fee rate and payout wallet for the organization.
|
|
3662
|
-
*
|
|
3663
|
-
* `POST /public/v1/submit/upsert_earn_client_fee_config`
|
|
3664
|
-
*/
|
|
3665
|
-
const upsertEarnClientFeeConfig = (input) => base.request({
|
|
3666
|
-
uri: "/public/v1/submit/upsert_earn_client_fee_config",
|
|
3667
|
-
method: "POST",
|
|
3668
|
-
body: input.body,
|
|
3669
|
-
});
|
|
3670
|
-
/**
|
|
3671
|
-
* Request a WebAuthn assertion and return a signed `UpsertEarnClientFeeConfig` request, ready to be POSTed to Turnkey.
|
|
3672
|
-
*
|
|
3673
|
-
* See {@link UpsertEarnClientFeeConfig}
|
|
3674
|
-
*/
|
|
3675
|
-
const signUpsertEarnClientFeeConfig = (input, options) => base.signedRequest({
|
|
3676
|
-
uri: "/public/v1/submit/upsert_earn_client_fee_config",
|
|
3677
|
-
body: input.body,
|
|
3678
|
-
options,
|
|
3679
|
-
});
|
|
3680
3834
|
/**
|
|
3681
3835
|
* Upsert swap config
|
|
3682
3836
|
*
|
|
@@ -3782,6 +3936,8 @@ const signTestRateLimits = (input, options) => base.signedRequest({
|
|
|
3782
3936
|
});
|
|
3783
3937
|
|
|
3784
3938
|
exports.approveActivity = approveActivity;
|
|
3939
|
+
exports.claimEarnFees = claimEarnFees;
|
|
3940
|
+
exports.claimSwapFees = claimSwapFees;
|
|
3785
3941
|
exports.createApiKeys = createApiKeys;
|
|
3786
3942
|
exports.createApiOnlyUsers = createApiOnlyUsers;
|
|
3787
3943
|
exports.createAuthenticators = createAuthenticators;
|
|
@@ -3831,12 +3987,8 @@ exports.deleteWallets = deleteWallets;
|
|
|
3831
3987
|
exports.deleteWebhookEndpoint = deleteWebhookEndpoint;
|
|
3832
3988
|
exports.earnDeployWrapper = earnDeployWrapper;
|
|
3833
3989
|
exports.earnDeposit = earnDeposit;
|
|
3834
|
-
exports.
|
|
3835
|
-
exports.earnEnabledVaults = earnEnabledVaults;
|
|
3836
|
-
exports.earnPositions = earnPositions;
|
|
3837
|
-
exports.earnVaults = earnVaults;
|
|
3990
|
+
exports.earnSetWrapperState = earnSetWrapperState;
|
|
3838
3991
|
exports.earnWithdraw = earnWithdraw;
|
|
3839
|
-
exports.earnWithdrawStatus = earnWithdrawStatus;
|
|
3840
3992
|
exports.emailAuth = emailAuth;
|
|
3841
3993
|
exports.ethSendRawTransaction = ethSendRawTransaction;
|
|
3842
3994
|
exports.ethSendTransaction = ethSendTransaction;
|
|
@@ -3853,6 +4005,10 @@ exports.getAppStatus = getAppStatus;
|
|
|
3853
4005
|
exports.getAuthenticator = getAuthenticator;
|
|
3854
4006
|
exports.getAuthenticators = getAuthenticators;
|
|
3855
4007
|
exports.getBootProof = getBootProof;
|
|
4008
|
+
exports.getClaimEarnFeesStatus = getClaimEarnFeesStatus;
|
|
4009
|
+
exports.getEarnDeployStatus = getEarnDeployStatus;
|
|
4010
|
+
exports.getEarnDepositStatus = getEarnDepositStatus;
|
|
4011
|
+
exports.getEarnWithdrawStatus = getEarnWithdrawStatus;
|
|
3856
4012
|
exports.getGasUsage = getGasUsage;
|
|
3857
4013
|
exports.getIpAllowlist = getIpAllowlist;
|
|
3858
4014
|
exports.getLatestBootProof = getLatestBootProof;
|
|
@@ -3897,14 +4053,20 @@ exports.importPrivateKey = importPrivateKey;
|
|
|
3897
4053
|
exports.importWallet = importWallet;
|
|
3898
4054
|
exports.initFiatOnRamp = initFiatOnRamp;
|
|
3899
4055
|
exports.initImportPrivateKey = initImportPrivateKey;
|
|
4056
|
+
exports.initImportSecrets = initImportSecrets;
|
|
3900
4057
|
exports.initImportWallet = initImportWallet;
|
|
3901
4058
|
exports.initOtp = initOtp;
|
|
3902
4059
|
exports.initOtpAuth = initOtpAuth;
|
|
3903
4060
|
exports.initUserEmailRecovery = initUserEmailRecovery;
|
|
4061
|
+
exports.listEarnEnabledVaults = listEarnEnabledVaults;
|
|
4062
|
+
exports.listEarnPositions = listEarnPositions;
|
|
4063
|
+
exports.listEarnVaults = listEarnVaults;
|
|
3904
4064
|
exports.listEmailEvents = listEmailEvents;
|
|
4065
|
+
exports.listEthTransactionHistory = listEthTransactionHistory;
|
|
3905
4066
|
exports.listFiatOnRampCredentials = listFiatOnRampCredentials;
|
|
3906
4067
|
exports.listOauth2Credentials = listOauth2Credentials;
|
|
3907
4068
|
exports.listPrivateKeyTags = listPrivateKeyTags;
|
|
4069
|
+
exports.listSolTransactionHistory = listSolTransactionHistory;
|
|
3908
4070
|
exports.listSupportedAssets = listSupportedAssets;
|
|
3909
4071
|
exports.listUserTags = listUserTags;
|
|
3910
4072
|
exports.listWebhookEndpoints = listWebhookEndpoints;
|
|
@@ -3925,6 +4087,8 @@ exports.restoreTvcDeployment = restoreTvcDeployment;
|
|
|
3925
4087
|
exports.setIpAllowlist = setIpAllowlist;
|
|
3926
4088
|
exports.setOrganizationFeature = setOrganizationFeature;
|
|
3927
4089
|
exports.signApproveActivity = signApproveActivity;
|
|
4090
|
+
exports.signClaimEarnFees = signClaimEarnFees;
|
|
4091
|
+
exports.signClaimSwapFees = signClaimSwapFees;
|
|
3928
4092
|
exports.signCreateApiKeys = signCreateApiKeys;
|
|
3929
4093
|
exports.signCreateApiOnlyUsers = signCreateApiOnlyUsers;
|
|
3930
4094
|
exports.signCreateAuthenticators = signCreateAuthenticators;
|
|
@@ -3974,12 +4138,8 @@ exports.signDeleteWallets = signDeleteWallets;
|
|
|
3974
4138
|
exports.signDeleteWebhookEndpoint = signDeleteWebhookEndpoint;
|
|
3975
4139
|
exports.signEarnDeployWrapper = signEarnDeployWrapper;
|
|
3976
4140
|
exports.signEarnDeposit = signEarnDeposit;
|
|
3977
|
-
exports.
|
|
3978
|
-
exports.signEarnEnabledVaults = signEarnEnabledVaults;
|
|
3979
|
-
exports.signEarnPositions = signEarnPositions;
|
|
3980
|
-
exports.signEarnVaults = signEarnVaults;
|
|
4141
|
+
exports.signEarnSetWrapperState = signEarnSetWrapperState;
|
|
3981
4142
|
exports.signEarnWithdraw = signEarnWithdraw;
|
|
3982
|
-
exports.signEarnWithdrawStatus = signEarnWithdrawStatus;
|
|
3983
4143
|
exports.signEmailAuth = signEmailAuth;
|
|
3984
4144
|
exports.signEthSendRawTransaction = signEthSendRawTransaction;
|
|
3985
4145
|
exports.signEthSendTransaction = signEthSendTransaction;
|
|
@@ -3996,6 +4156,10 @@ exports.signGetAppStatus = signGetAppStatus;
|
|
|
3996
4156
|
exports.signGetAuthenticator = signGetAuthenticator;
|
|
3997
4157
|
exports.signGetAuthenticators = signGetAuthenticators;
|
|
3998
4158
|
exports.signGetBootProof = signGetBootProof;
|
|
4159
|
+
exports.signGetClaimEarnFeesStatus = signGetClaimEarnFeesStatus;
|
|
4160
|
+
exports.signGetEarnDeployStatus = signGetEarnDeployStatus;
|
|
4161
|
+
exports.signGetEarnDepositStatus = signGetEarnDepositStatus;
|
|
4162
|
+
exports.signGetEarnWithdrawStatus = signGetEarnWithdrawStatus;
|
|
3999
4163
|
exports.signGetGasUsage = signGetGasUsage;
|
|
4000
4164
|
exports.signGetIpAllowlist = signGetIpAllowlist;
|
|
4001
4165
|
exports.signGetLatestBootProof = signGetLatestBootProof;
|
|
@@ -4040,14 +4204,20 @@ exports.signImportPrivateKey = signImportPrivateKey;
|
|
|
4040
4204
|
exports.signImportWallet = signImportWallet;
|
|
4041
4205
|
exports.signInitFiatOnRamp = signInitFiatOnRamp;
|
|
4042
4206
|
exports.signInitImportPrivateKey = signInitImportPrivateKey;
|
|
4207
|
+
exports.signInitImportSecrets = signInitImportSecrets;
|
|
4043
4208
|
exports.signInitImportWallet = signInitImportWallet;
|
|
4044
4209
|
exports.signInitOtp = signInitOtp;
|
|
4045
4210
|
exports.signInitOtpAuth = signInitOtpAuth;
|
|
4046
4211
|
exports.signInitUserEmailRecovery = signInitUserEmailRecovery;
|
|
4212
|
+
exports.signListEarnEnabledVaults = signListEarnEnabledVaults;
|
|
4213
|
+
exports.signListEarnPositions = signListEarnPositions;
|
|
4214
|
+
exports.signListEarnVaults = signListEarnVaults;
|
|
4047
4215
|
exports.signListEmailEvents = signListEmailEvents;
|
|
4216
|
+
exports.signListEthTransactionHistory = signListEthTransactionHistory;
|
|
4048
4217
|
exports.signListFiatOnRampCredentials = signListFiatOnRampCredentials;
|
|
4049
4218
|
exports.signListOauth2Credentials = signListOauth2Credentials;
|
|
4050
4219
|
exports.signListPrivateKeyTags = signListPrivateKeyTags;
|
|
4220
|
+
exports.signListSolTransactionHistory = signListSolTransactionHistory;
|
|
4051
4221
|
exports.signListSupportedAssets = signListSupportedAssets;
|
|
4052
4222
|
exports.signListUserTags = signListUserTags;
|
|
4053
4223
|
exports.signListWebhookEndpoints = signListWebhookEndpoints;
|
|
@@ -4095,7 +4265,6 @@ exports.signUpdateUserPhoneNumber = signUpdateUserPhoneNumber;
|
|
|
4095
4265
|
exports.signUpdateUserTag = signUpdateUserTag;
|
|
4096
4266
|
exports.signUpdateWallet = signUpdateWallet;
|
|
4097
4267
|
exports.signUpdateWebhookEndpoint = signUpdateWebhookEndpoint;
|
|
4098
|
-
exports.signUpsertEarnClientFeeConfig = signUpsertEarnClientFeeConfig;
|
|
4099
4268
|
exports.signUpsertSwapConfig = signUpsertSwapConfig;
|
|
4100
4269
|
exports.signValidateTvcImage = signValidateTvcImage;
|
|
4101
4270
|
exports.signVerifyOtp = signVerifyOtp;
|
|
@@ -4121,7 +4290,6 @@ exports.updateUserPhoneNumber = updateUserPhoneNumber;
|
|
|
4121
4290
|
exports.updateUserTag = updateUserTag;
|
|
4122
4291
|
exports.updateWallet = updateWallet;
|
|
4123
4292
|
exports.updateWebhookEndpoint = updateWebhookEndpoint;
|
|
4124
|
-
exports.upsertEarnClientFeeConfig = upsertEarnClientFeeConfig;
|
|
4125
4293
|
exports.upsertSwapConfig = upsertSwapConfig;
|
|
4126
4294
|
exports.validateTvcImage = validateTvcImage;
|
|
4127
4295
|
exports.verifyOtp = verifyOtp;
|