@turnkey/http 5.0.0 → 6.1.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 +70 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +230 -110
- 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 +379 -179
- 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 +379 -179
- 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 +37144 -10889
- 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 +365 -173
- 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 +336 -160
- 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 +960 -330
- 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 +2 -2
|
@@ -1,116 +1,6 @@
|
|
|
1
1
|
import { request, signedRequest } from '../../../../../base.mjs';
|
|
2
2
|
|
|
3
3
|
/* @generated by `@turnkey/fetchers`. DO NOT EDIT BY HAND */
|
|
4
|
-
/**
|
|
5
|
-
* Get Earn deposit status
|
|
6
|
-
*
|
|
7
|
-
* Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
|
|
8
|
-
*
|
|
9
|
-
* `POST /public/v1/query/earn_deposit_status`
|
|
10
|
-
*/
|
|
11
|
-
const earnDepositStatus = (input) => request({
|
|
12
|
-
uri: "/public/v1/query/earn_deposit_status",
|
|
13
|
-
method: "POST",
|
|
14
|
-
body: input.body,
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* Request a WebAuthn assertion and return a signed `EarnDepositStatus` request, ready to be POSTed to Turnkey.
|
|
18
|
-
*
|
|
19
|
-
* See {@link EarnDepositStatus}
|
|
20
|
-
*/
|
|
21
|
-
const signEarnDepositStatus = (input, options) => signedRequest({
|
|
22
|
-
uri: "/public/v1/query/earn_deposit_status",
|
|
23
|
-
body: input.body,
|
|
24
|
-
options,
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* Get Earn enabled vaults
|
|
28
|
-
*
|
|
29
|
-
* Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
|
|
30
|
-
*
|
|
31
|
-
* `POST /public/v1/query/earn_enabled_vaults`
|
|
32
|
-
*/
|
|
33
|
-
const earnEnabledVaults = (input) => request({
|
|
34
|
-
uri: "/public/v1/query/earn_enabled_vaults",
|
|
35
|
-
method: "POST",
|
|
36
|
-
body: input.body,
|
|
37
|
-
});
|
|
38
|
-
/**
|
|
39
|
-
* Request a WebAuthn assertion and return a signed `EarnEnabledVaults` request, ready to be POSTed to Turnkey.
|
|
40
|
-
*
|
|
41
|
-
* See {@link EarnEnabledVaults}
|
|
42
|
-
*/
|
|
43
|
-
const signEarnEnabledVaults = (input, options) => signedRequest({
|
|
44
|
-
uri: "/public/v1/query/earn_enabled_vaults",
|
|
45
|
-
body: input.body,
|
|
46
|
-
options,
|
|
47
|
-
});
|
|
48
|
-
/**
|
|
49
|
-
* Get Earn positions
|
|
50
|
-
*
|
|
51
|
-
* Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
|
|
52
|
-
*
|
|
53
|
-
* `POST /public/v1/query/earn_positions`
|
|
54
|
-
*/
|
|
55
|
-
const earnPositions = (input) => request({
|
|
56
|
-
uri: "/public/v1/query/earn_positions",
|
|
57
|
-
method: "POST",
|
|
58
|
-
body: input.body,
|
|
59
|
-
});
|
|
60
|
-
/**
|
|
61
|
-
* Request a WebAuthn assertion and return a signed `EarnPositions` request, ready to be POSTed to Turnkey.
|
|
62
|
-
*
|
|
63
|
-
* See {@link EarnPositions}
|
|
64
|
-
*/
|
|
65
|
-
const signEarnPositions = (input, options) => signedRequest({
|
|
66
|
-
uri: "/public/v1/query/earn_positions",
|
|
67
|
-
body: input.body,
|
|
68
|
-
options,
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* Get Earn vault catalog
|
|
72
|
-
*
|
|
73
|
-
* 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.
|
|
74
|
-
*
|
|
75
|
-
* `POST /public/v1/query/earn_vaults`
|
|
76
|
-
*/
|
|
77
|
-
const earnVaults = (input) => request({
|
|
78
|
-
uri: "/public/v1/query/earn_vaults",
|
|
79
|
-
method: "POST",
|
|
80
|
-
body: input.body,
|
|
81
|
-
});
|
|
82
|
-
/**
|
|
83
|
-
* Request a WebAuthn assertion and return a signed `EarnVaults` request, ready to be POSTed to Turnkey.
|
|
84
|
-
*
|
|
85
|
-
* See {@link EarnVaults}
|
|
86
|
-
*/
|
|
87
|
-
const signEarnVaults = (input, options) => signedRequest({
|
|
88
|
-
uri: "/public/v1/query/earn_vaults",
|
|
89
|
-
body: input.body,
|
|
90
|
-
options,
|
|
91
|
-
});
|
|
92
|
-
/**
|
|
93
|
-
* Get Earn withdraw status
|
|
94
|
-
*
|
|
95
|
-
* Poll the status of a withdrawal by its withdraw_request_id.
|
|
96
|
-
*
|
|
97
|
-
* `POST /public/v1/query/earn_withdraw_status`
|
|
98
|
-
*/
|
|
99
|
-
const earnWithdrawStatus = (input) => request({
|
|
100
|
-
uri: "/public/v1/query/earn_withdraw_status",
|
|
101
|
-
method: "POST",
|
|
102
|
-
body: input.body,
|
|
103
|
-
});
|
|
104
|
-
/**
|
|
105
|
-
* Request a WebAuthn assertion and return a signed `EarnWithdrawStatus` request, ready to be POSTed to Turnkey.
|
|
106
|
-
*
|
|
107
|
-
* See {@link EarnWithdrawStatus}
|
|
108
|
-
*/
|
|
109
|
-
const signEarnWithdrawStatus = (input, options) => signedRequest({
|
|
110
|
-
uri: "/public/v1/query/earn_withdraw_status",
|
|
111
|
-
body: input.body,
|
|
112
|
-
options,
|
|
113
|
-
});
|
|
114
4
|
/**
|
|
115
5
|
* Get activity
|
|
116
6
|
*
|
|
@@ -265,6 +155,94 @@ const signGetBootProof = (input, options) => signedRequest({
|
|
|
265
155
|
body: input.body,
|
|
266
156
|
options,
|
|
267
157
|
});
|
|
158
|
+
/**
|
|
159
|
+
* Get Earn claim fees status
|
|
160
|
+
*
|
|
161
|
+
* Poll the status of a fee claim by its claim_request_id.
|
|
162
|
+
*
|
|
163
|
+
* `POST /public/v1/query/get_claim_earn_fees_status`
|
|
164
|
+
*/
|
|
165
|
+
const getClaimEarnFeesStatus = (input) => request({
|
|
166
|
+
uri: "/public/v1/query/get_claim_earn_fees_status",
|
|
167
|
+
method: "POST",
|
|
168
|
+
body: input.body,
|
|
169
|
+
});
|
|
170
|
+
/**
|
|
171
|
+
* Request a WebAuthn assertion and return a signed `GetClaimEarnFeesStatus` request, ready to be POSTed to Turnkey.
|
|
172
|
+
*
|
|
173
|
+
* See {@link GetClaimEarnFeesStatus}
|
|
174
|
+
*/
|
|
175
|
+
const signGetClaimEarnFeesStatus = (input, options) => signedRequest({
|
|
176
|
+
uri: "/public/v1/query/get_claim_earn_fees_status",
|
|
177
|
+
body: input.body,
|
|
178
|
+
options,
|
|
179
|
+
});
|
|
180
|
+
/**
|
|
181
|
+
* Get Earn deploy status
|
|
182
|
+
*
|
|
183
|
+
* Poll the status of a wrapper deployment by its deploy_request_id.
|
|
184
|
+
*
|
|
185
|
+
* `POST /public/v1/query/get_earn_deploy_status`
|
|
186
|
+
*/
|
|
187
|
+
const getEarnDeployStatus = (input) => request({
|
|
188
|
+
uri: "/public/v1/query/get_earn_deploy_status",
|
|
189
|
+
method: "POST",
|
|
190
|
+
body: input.body,
|
|
191
|
+
});
|
|
192
|
+
/**
|
|
193
|
+
* Request a WebAuthn assertion and return a signed `GetEarnDeployStatus` request, ready to be POSTed to Turnkey.
|
|
194
|
+
*
|
|
195
|
+
* See {@link GetEarnDeployStatus}
|
|
196
|
+
*/
|
|
197
|
+
const signGetEarnDeployStatus = (input, options) => signedRequest({
|
|
198
|
+
uri: "/public/v1/query/get_earn_deploy_status",
|
|
199
|
+
body: input.body,
|
|
200
|
+
options,
|
|
201
|
+
});
|
|
202
|
+
/**
|
|
203
|
+
* Get Earn deposit status
|
|
204
|
+
*
|
|
205
|
+
* Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
|
|
206
|
+
*
|
|
207
|
+
* `POST /public/v1/query/get_earn_deposit_status`
|
|
208
|
+
*/
|
|
209
|
+
const getEarnDepositStatus = (input) => request({
|
|
210
|
+
uri: "/public/v1/query/get_earn_deposit_status",
|
|
211
|
+
method: "POST",
|
|
212
|
+
body: input.body,
|
|
213
|
+
});
|
|
214
|
+
/**
|
|
215
|
+
* Request a WebAuthn assertion and return a signed `GetEarnDepositStatus` request, ready to be POSTed to Turnkey.
|
|
216
|
+
*
|
|
217
|
+
* See {@link GetEarnDepositStatus}
|
|
218
|
+
*/
|
|
219
|
+
const signGetEarnDepositStatus = (input, options) => signedRequest({
|
|
220
|
+
uri: "/public/v1/query/get_earn_deposit_status",
|
|
221
|
+
body: input.body,
|
|
222
|
+
options,
|
|
223
|
+
});
|
|
224
|
+
/**
|
|
225
|
+
* Get Earn withdraw status
|
|
226
|
+
*
|
|
227
|
+
* Poll the status of a withdrawal by its withdraw_request_id.
|
|
228
|
+
*
|
|
229
|
+
* `POST /public/v1/query/get_earn_withdraw_status`
|
|
230
|
+
*/
|
|
231
|
+
const getEarnWithdrawStatus = (input) => request({
|
|
232
|
+
uri: "/public/v1/query/get_earn_withdraw_status",
|
|
233
|
+
method: "POST",
|
|
234
|
+
body: input.body,
|
|
235
|
+
});
|
|
236
|
+
/**
|
|
237
|
+
* Request a WebAuthn assertion and return a signed `GetEarnWithdrawStatus` request, ready to be POSTed to Turnkey.
|
|
238
|
+
*
|
|
239
|
+
* See {@link GetEarnWithdrawStatus}
|
|
240
|
+
*/
|
|
241
|
+
const signGetEarnWithdrawStatus = (input, options) => signedRequest({
|
|
242
|
+
uri: "/public/v1/query/get_earn_withdraw_status",
|
|
243
|
+
body: input.body,
|
|
244
|
+
options,
|
|
245
|
+
});
|
|
268
246
|
/**
|
|
269
247
|
* Get gas usage
|
|
270
248
|
*
|
|
@@ -683,32 +661,10 @@ const signGetSmartContractInterface = (input, options) => signedRequest({
|
|
|
683
661
|
body: input.body,
|
|
684
662
|
options,
|
|
685
663
|
});
|
|
686
|
-
/**
|
|
687
|
-
* Get swap quote
|
|
688
|
-
*
|
|
689
|
-
* Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
|
|
690
|
-
*
|
|
691
|
-
* `POST /public/v1/query/get_swap_quote`
|
|
692
|
-
*/
|
|
693
|
-
const getSwapQuote = (input) => request({
|
|
694
|
-
uri: "/public/v1/query/get_swap_quote",
|
|
695
|
-
method: "POST",
|
|
696
|
-
body: input.body,
|
|
697
|
-
});
|
|
698
|
-
/**
|
|
699
|
-
* Request a WebAuthn assertion and return a signed `GetSwapQuote` request, ready to be POSTed to Turnkey.
|
|
700
|
-
*
|
|
701
|
-
* See {@link GetSwapQuote}
|
|
702
|
-
*/
|
|
703
|
-
const signGetSwapQuote = (input, options) => signedRequest({
|
|
704
|
-
uri: "/public/v1/query/get_swap_quote",
|
|
705
|
-
body: input.body,
|
|
706
|
-
options,
|
|
707
|
-
});
|
|
708
664
|
/**
|
|
709
665
|
* Get swap status
|
|
710
666
|
*
|
|
711
|
-
*
|
|
667
|
+
* Poll the status of a swap by its swap_request_id. Covers same-chain and cross-chain swaps.
|
|
712
668
|
*
|
|
713
669
|
* `POST /public/v1/query/get_swap_status`
|
|
714
670
|
*/
|
|
@@ -947,6 +903,72 @@ const signGetAppProofs = (input, options) => signedRequest({
|
|
|
947
903
|
body: input.body,
|
|
948
904
|
options,
|
|
949
905
|
});
|
|
906
|
+
/**
|
|
907
|
+
* Get Earn enabled vaults
|
|
908
|
+
*
|
|
909
|
+
* Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
|
|
910
|
+
*
|
|
911
|
+
* `POST /public/v1/query/list_earn_enabled_vaults`
|
|
912
|
+
*/
|
|
913
|
+
const listEarnEnabledVaults = (input) => request({
|
|
914
|
+
uri: "/public/v1/query/list_earn_enabled_vaults",
|
|
915
|
+
method: "POST",
|
|
916
|
+
body: input.body,
|
|
917
|
+
});
|
|
918
|
+
/**
|
|
919
|
+
* Request a WebAuthn assertion and return a signed `ListEarnEnabledVaults` request, ready to be POSTed to Turnkey.
|
|
920
|
+
*
|
|
921
|
+
* See {@link ListEarnEnabledVaults}
|
|
922
|
+
*/
|
|
923
|
+
const signListEarnEnabledVaults = (input, options) => signedRequest({
|
|
924
|
+
uri: "/public/v1/query/list_earn_enabled_vaults",
|
|
925
|
+
body: input.body,
|
|
926
|
+
options,
|
|
927
|
+
});
|
|
928
|
+
/**
|
|
929
|
+
* Get Earn positions
|
|
930
|
+
*
|
|
931
|
+
* Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
|
|
932
|
+
*
|
|
933
|
+
* `POST /public/v1/query/list_earn_positions`
|
|
934
|
+
*/
|
|
935
|
+
const listEarnPositions = (input) => request({
|
|
936
|
+
uri: "/public/v1/query/list_earn_positions",
|
|
937
|
+
method: "POST",
|
|
938
|
+
body: input.body,
|
|
939
|
+
});
|
|
940
|
+
/**
|
|
941
|
+
* Request a WebAuthn assertion and return a signed `ListEarnPositions` request, ready to be POSTed to Turnkey.
|
|
942
|
+
*
|
|
943
|
+
* See {@link ListEarnPositions}
|
|
944
|
+
*/
|
|
945
|
+
const signListEarnPositions = (input, options) => signedRequest({
|
|
946
|
+
uri: "/public/v1/query/list_earn_positions",
|
|
947
|
+
body: input.body,
|
|
948
|
+
options,
|
|
949
|
+
});
|
|
950
|
+
/**
|
|
951
|
+
* Get Earn vault catalog
|
|
952
|
+
*
|
|
953
|
+
* 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.
|
|
954
|
+
*
|
|
955
|
+
* `POST /public/v1/query/list_earn_vaults`
|
|
956
|
+
*/
|
|
957
|
+
const listEarnVaults = (input) => request({
|
|
958
|
+
uri: "/public/v1/query/list_earn_vaults",
|
|
959
|
+
method: "POST",
|
|
960
|
+
body: input.body,
|
|
961
|
+
});
|
|
962
|
+
/**
|
|
963
|
+
* Request a WebAuthn assertion and return a signed `ListEarnVaults` request, ready to be POSTed to Turnkey.
|
|
964
|
+
*
|
|
965
|
+
* See {@link ListEarnVaults}
|
|
966
|
+
*/
|
|
967
|
+
const signListEarnVaults = (input, options) => signedRequest({
|
|
968
|
+
uri: "/public/v1/query/list_earn_vaults",
|
|
969
|
+
body: input.body,
|
|
970
|
+
options,
|
|
971
|
+
});
|
|
950
972
|
/**
|
|
951
973
|
* List email events
|
|
952
974
|
*
|
|
@@ -969,6 +991,28 @@ const signListEmailEvents = (input, options) => signedRequest({
|
|
|
969
991
|
body: input.body,
|
|
970
992
|
options,
|
|
971
993
|
});
|
|
994
|
+
/**
|
|
995
|
+
* List Eth transaction history
|
|
996
|
+
*
|
|
997
|
+
* List Ethereum transaction history for a wallet address on the specified network.
|
|
998
|
+
*
|
|
999
|
+
* `POST /public/v1/query/list_eth_transaction_history`
|
|
1000
|
+
*/
|
|
1001
|
+
const listEthTransactionHistory = (input) => request({
|
|
1002
|
+
uri: "/public/v1/query/list_eth_transaction_history",
|
|
1003
|
+
method: "POST",
|
|
1004
|
+
body: input.body,
|
|
1005
|
+
});
|
|
1006
|
+
/**
|
|
1007
|
+
* Request a WebAuthn assertion and return a signed `ListEthTransactionHistory` request, ready to be POSTed to Turnkey.
|
|
1008
|
+
*
|
|
1009
|
+
* See {@link ListEthTransactionHistory}
|
|
1010
|
+
*/
|
|
1011
|
+
const signListEthTransactionHistory = (input, options) => signedRequest({
|
|
1012
|
+
uri: "/public/v1/query/list_eth_transaction_history",
|
|
1013
|
+
body: input.body,
|
|
1014
|
+
options,
|
|
1015
|
+
});
|
|
972
1016
|
/**
|
|
973
1017
|
* List Fiat On Ramp Credentials
|
|
974
1018
|
*
|
|
@@ -1101,6 +1145,28 @@ const signGetSmartContractInterfaces = (input, options) => signedRequest({
|
|
|
1101
1145
|
body: input.body,
|
|
1102
1146
|
options,
|
|
1103
1147
|
});
|
|
1148
|
+
/**
|
|
1149
|
+
* List Sol transaction history
|
|
1150
|
+
*
|
|
1151
|
+
* List Solana transaction history for a wallet address on the specified network.
|
|
1152
|
+
*
|
|
1153
|
+
* `POST /public/v1/query/list_sol_transaction_history`
|
|
1154
|
+
*/
|
|
1155
|
+
const listSolTransactionHistory = (input) => request({
|
|
1156
|
+
uri: "/public/v1/query/list_sol_transaction_history",
|
|
1157
|
+
method: "POST",
|
|
1158
|
+
body: input.body,
|
|
1159
|
+
});
|
|
1160
|
+
/**
|
|
1161
|
+
* Request a WebAuthn assertion and return a signed `ListSolTransactionHistory` request, ready to be POSTed to Turnkey.
|
|
1162
|
+
*
|
|
1163
|
+
* See {@link ListSolTransactionHistory}
|
|
1164
|
+
*/
|
|
1165
|
+
const signListSolTransactionHistory = (input, options) => signedRequest({
|
|
1166
|
+
uri: "/public/v1/query/list_sol_transaction_history",
|
|
1167
|
+
body: input.body,
|
|
1168
|
+
options,
|
|
1169
|
+
});
|
|
1104
1170
|
/**
|
|
1105
1171
|
* Get sub-organizations
|
|
1106
1172
|
*
|
|
@@ -1387,6 +1453,50 @@ const signApproveActivity = (input, options) => signedRequest({
|
|
|
1387
1453
|
body: input.body,
|
|
1388
1454
|
options,
|
|
1389
1455
|
});
|
|
1456
|
+
/**
|
|
1457
|
+
* Claim earn fees
|
|
1458
|
+
*
|
|
1459
|
+
* Claim earn fees through the activity pipeline.
|
|
1460
|
+
*
|
|
1461
|
+
* `POST /public/v1/submit/claim_earn_fees`
|
|
1462
|
+
*/
|
|
1463
|
+
const claimEarnFees = (input) => request({
|
|
1464
|
+
uri: "/public/v1/submit/claim_earn_fees",
|
|
1465
|
+
method: "POST",
|
|
1466
|
+
body: input.body,
|
|
1467
|
+
});
|
|
1468
|
+
/**
|
|
1469
|
+
* Request a WebAuthn assertion and return a signed `ClaimEarnFees` request, ready to be POSTed to Turnkey.
|
|
1470
|
+
*
|
|
1471
|
+
* See {@link ClaimEarnFees}
|
|
1472
|
+
*/
|
|
1473
|
+
const signClaimEarnFees = (input, options) => signedRequest({
|
|
1474
|
+
uri: "/public/v1/submit/claim_earn_fees",
|
|
1475
|
+
body: input.body,
|
|
1476
|
+
options,
|
|
1477
|
+
});
|
|
1478
|
+
/**
|
|
1479
|
+
* Claim swap fees
|
|
1480
|
+
*
|
|
1481
|
+
* Claim swap fees through the activity pipeline.
|
|
1482
|
+
*
|
|
1483
|
+
* `POST /public/v1/submit/claim_swap_fees`
|
|
1484
|
+
*/
|
|
1485
|
+
const claimSwapFees = (input) => request({
|
|
1486
|
+
uri: "/public/v1/submit/claim_swap_fees",
|
|
1487
|
+
method: "POST",
|
|
1488
|
+
body: input.body,
|
|
1489
|
+
});
|
|
1490
|
+
/**
|
|
1491
|
+
* Request a WebAuthn assertion and return a signed `ClaimSwapFees` request, ready to be POSTed to Turnkey.
|
|
1492
|
+
*
|
|
1493
|
+
* See {@link ClaimSwapFees}
|
|
1494
|
+
*/
|
|
1495
|
+
const signClaimSwapFees = (input, options) => signedRequest({
|
|
1496
|
+
uri: "/public/v1/submit/claim_swap_fees",
|
|
1497
|
+
body: input.body,
|
|
1498
|
+
options,
|
|
1499
|
+
});
|
|
1390
1500
|
/**
|
|
1391
1501
|
* Create API keys
|
|
1392
1502
|
*
|
|
@@ -1742,7 +1852,7 @@ const signCreateSmartContractInterface = (input, options) => signedRequest({
|
|
|
1742
1852
|
/**
|
|
1743
1853
|
* Create sub-organization
|
|
1744
1854
|
*
|
|
1745
|
-
* Create a new sub-organization.
|
|
1855
|
+
* 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).
|
|
1746
1856
|
*
|
|
1747
1857
|
* `POST /public/v1/submit/create_sub_organization`
|
|
1748
1858
|
*/
|
|
@@ -1761,6 +1871,28 @@ const signCreateSubOrganization = (input, options) => signedRequest({
|
|
|
1761
1871
|
body: input.body,
|
|
1762
1872
|
options,
|
|
1763
1873
|
});
|
|
1874
|
+
/**
|
|
1875
|
+
* Get swap quote
|
|
1876
|
+
*
|
|
1877
|
+
* Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
|
|
1878
|
+
*
|
|
1879
|
+
* `POST /public/v1/submit/create_swap_quote`
|
|
1880
|
+
*/
|
|
1881
|
+
const createSwapQuote = (input) => request({
|
|
1882
|
+
uri: "/public/v1/submit/create_swap_quote",
|
|
1883
|
+
method: "POST",
|
|
1884
|
+
body: input.body,
|
|
1885
|
+
});
|
|
1886
|
+
/**
|
|
1887
|
+
* Request a WebAuthn assertion and return a signed `CreateSwapQuote` request, ready to be POSTed to Turnkey.
|
|
1888
|
+
*
|
|
1889
|
+
* See {@link CreateSwapQuote}
|
|
1890
|
+
*/
|
|
1891
|
+
const signCreateSwapQuote = (input, options) => signedRequest({
|
|
1892
|
+
uri: "/public/v1/submit/create_swap_quote",
|
|
1893
|
+
body: input.body,
|
|
1894
|
+
options,
|
|
1895
|
+
});
|
|
1764
1896
|
/**
|
|
1765
1897
|
* Create a TVC App
|
|
1766
1898
|
*
|
|
@@ -1896,7 +2028,7 @@ const signCreateUserTag = (input, options) => signedRequest({
|
|
|
1896
2028
|
/**
|
|
1897
2029
|
* Create users
|
|
1898
2030
|
*
|
|
1899
|
-
* Create users in an existing organization.
|
|
2031
|
+
* 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).
|
|
1900
2032
|
*
|
|
1901
2033
|
* `POST /public/v1/submit/create_users`
|
|
1902
2034
|
*/
|
|
@@ -2465,6 +2597,28 @@ const signEarnDeposit = (input, options) => signedRequest({
|
|
|
2465
2597
|
body: input.body,
|
|
2466
2598
|
options,
|
|
2467
2599
|
});
|
|
2600
|
+
/**
|
|
2601
|
+
* Set Earn wrapper state
|
|
2602
|
+
*
|
|
2603
|
+
* Enable or disable deposits to a deployed Earn wrapper. Withdrawals are always allowed.
|
|
2604
|
+
*
|
|
2605
|
+
* `POST /public/v1/submit/earn_set_wrapper_state`
|
|
2606
|
+
*/
|
|
2607
|
+
const earnSetWrapperState = (input) => request({
|
|
2608
|
+
uri: "/public/v1/submit/earn_set_wrapper_state",
|
|
2609
|
+
method: "POST",
|
|
2610
|
+
body: input.body,
|
|
2611
|
+
});
|
|
2612
|
+
/**
|
|
2613
|
+
* Request a WebAuthn assertion and return a signed `EarnSetWrapperState` request, ready to be POSTed to Turnkey.
|
|
2614
|
+
*
|
|
2615
|
+
* See {@link EarnSetWrapperState}
|
|
2616
|
+
*/
|
|
2617
|
+
const signEarnSetWrapperState = (input, options) => signedRequest({
|
|
2618
|
+
uri: "/public/v1/submit/earn_set_wrapper_state",
|
|
2619
|
+
body: input.body,
|
|
2620
|
+
options,
|
|
2621
|
+
});
|
|
2468
2622
|
/**
|
|
2469
2623
|
* Withdraw from Earn vault
|
|
2470
2624
|
*
|
|
@@ -2553,10 +2707,32 @@ const signEthSendTransaction = (input, options) => signedRequest({
|
|
|
2553
2707
|
body: input.body,
|
|
2554
2708
|
options,
|
|
2555
2709
|
});
|
|
2710
|
+
/**
|
|
2711
|
+
* Undelegate an EVM account
|
|
2712
|
+
*
|
|
2713
|
+
* Submit an EIP-7702 undelegation transaction.
|
|
2714
|
+
*
|
|
2715
|
+
* `POST /public/v1/submit/eth_undelegate_7702`
|
|
2716
|
+
*/
|
|
2717
|
+
const ethUndelegate7702 = (input) => request({
|
|
2718
|
+
uri: "/public/v1/submit/eth_undelegate_7702",
|
|
2719
|
+
method: "POST",
|
|
2720
|
+
body: input.body,
|
|
2721
|
+
});
|
|
2722
|
+
/**
|
|
2723
|
+
* Request a WebAuthn assertion and return a signed `EthUndelegate7702` request, ready to be POSTed to Turnkey.
|
|
2724
|
+
*
|
|
2725
|
+
* See {@link EthUndelegate7702}
|
|
2726
|
+
*/
|
|
2727
|
+
const signEthUndelegate7702 = (input, options) => signedRequest({
|
|
2728
|
+
uri: "/public/v1/submit/eth_undelegate_7702",
|
|
2729
|
+
body: input.body,
|
|
2730
|
+
options,
|
|
2731
|
+
});
|
|
2556
2732
|
/**
|
|
2557
2733
|
* Execute swap
|
|
2558
2734
|
*
|
|
2559
|
-
* Execute
|
|
2735
|
+
* Execute the exact provider quote identified by quote_id through the activity pipeline and Turnkey broadcasting. Requests must use ACTIVITY_TYPE_EXECUTE_SWAP_V2.
|
|
2560
2736
|
*
|
|
2561
2737
|
* `POST /public/v1/submit/execute_swap`
|
|
2562
2738
|
*/
|
|
@@ -2729,6 +2905,28 @@ const signInitImportPrivateKey = (input, options) => signedRequest({
|
|
|
2729
2905
|
body: input.body,
|
|
2730
2906
|
options,
|
|
2731
2907
|
});
|
|
2908
|
+
/**
|
|
2909
|
+
* Init import secrets
|
|
2910
|
+
*
|
|
2911
|
+
* Initialize secret imports by generating Ingress Encryption Target Keys.
|
|
2912
|
+
*
|
|
2913
|
+
* `POST /public/v1/submit/init_import_secrets`
|
|
2914
|
+
*/
|
|
2915
|
+
const initImportSecrets = (input) => request({
|
|
2916
|
+
uri: "/public/v1/submit/init_import_secrets",
|
|
2917
|
+
method: "POST",
|
|
2918
|
+
body: input.body,
|
|
2919
|
+
});
|
|
2920
|
+
/**
|
|
2921
|
+
* Request a WebAuthn assertion and return a signed `InitImportSecrets` request, ready to be POSTed to Turnkey.
|
|
2922
|
+
*
|
|
2923
|
+
* See {@link InitImportSecrets}
|
|
2924
|
+
*/
|
|
2925
|
+
const signInitImportSecrets = (input, options) => signedRequest({
|
|
2926
|
+
uri: "/public/v1/submit/init_import_secrets",
|
|
2927
|
+
body: input.body,
|
|
2928
|
+
options,
|
|
2929
|
+
});
|
|
2732
2930
|
/**
|
|
2733
2931
|
* Init import wallet
|
|
2734
2932
|
*
|
|
@@ -3216,7 +3414,7 @@ const signSignTransaction = (input, options) => signedRequest({
|
|
|
3216
3414
|
/**
|
|
3217
3415
|
* Broadcast SVM transaction
|
|
3218
3416
|
*
|
|
3219
|
-
* Submit a transaction intent describing an SVM transaction you would like to broadcast.
|
|
3417
|
+
* Submit a transaction intent describing an SVM transaction you would like to broadcast. Supports single- and multi-signer intents via activity type versioning.
|
|
3220
3418
|
*
|
|
3221
3419
|
* `POST /public/v1/submit/sol_send_transaction`
|
|
3222
3420
|
*/
|
|
@@ -3653,28 +3851,6 @@ const signUpdateWebhookEndpoint = (input, options) => signedRequest({
|
|
|
3653
3851
|
body: input.body,
|
|
3654
3852
|
options,
|
|
3655
3853
|
});
|
|
3656
|
-
/**
|
|
3657
|
-
* Upsert Earn client fee config
|
|
3658
|
-
*
|
|
3659
|
-
* Set the client's Earn fee rate and payout wallet for the organization.
|
|
3660
|
-
*
|
|
3661
|
-
* `POST /public/v1/submit/upsert_earn_client_fee_config`
|
|
3662
|
-
*/
|
|
3663
|
-
const upsertEarnClientFeeConfig = (input) => request({
|
|
3664
|
-
uri: "/public/v1/submit/upsert_earn_client_fee_config",
|
|
3665
|
-
method: "POST",
|
|
3666
|
-
body: input.body,
|
|
3667
|
-
});
|
|
3668
|
-
/**
|
|
3669
|
-
* Request a WebAuthn assertion and return a signed `UpsertEarnClientFeeConfig` request, ready to be POSTed to Turnkey.
|
|
3670
|
-
*
|
|
3671
|
-
* See {@link UpsertEarnClientFeeConfig}
|
|
3672
|
-
*/
|
|
3673
|
-
const signUpsertEarnClientFeeConfig = (input, options) => signedRequest({
|
|
3674
|
-
uri: "/public/v1/submit/upsert_earn_client_fee_config",
|
|
3675
|
-
body: input.body,
|
|
3676
|
-
options,
|
|
3677
|
-
});
|
|
3678
3854
|
/**
|
|
3679
3855
|
* Upsert swap config
|
|
3680
3856
|
*
|
|
@@ -3779,5 +3955,5 @@ const signTestRateLimits = (input, options) => signedRequest({
|
|
|
3779
3955
|
options,
|
|
3780
3956
|
});
|
|
3781
3957
|
|
|
3782
|
-
export { approveActivity, createApiKeys, createApiOnlyUsers, createAuthenticators, createFiatOnRampCredential, createInvitations, createMfaPolicy, createOauth2Credential, createOauthProviders, createPolicies, createPolicy, createPrivateKeyTag, createPrivateKeys, createReadOnlySession, createReadWriteSession, createSessionProfile, createSmartContractInterface, createSubOrganization, createTvcApp, createTvcDeployment, createTvcManifestApprovals, createTvcOperator, createTvcQuorumKey, createUserTag, createUsers, createWallet, createWalletAccounts, createWebhookEndpoint, deleteApiKeys, deleteAuthenticators, deleteFiatOnRampCredential, deleteInvitation, deleteMfaPolicy, deleteOauth2Credential, deleteOauthProviders, deletePolicies, deletePolicy, deletePrivateKeyTags, deletePrivateKeys, deleteSmartContractInterface, deleteSubOrganization, deleteTvcAppAndDeployments, deleteTvcDeployment, deleteUserTags, deleteUsers, deleteWalletAccounts, deleteWallets, deleteWebhookEndpoint, earnDeployWrapper, earnDeposit,
|
|
3958
|
+
export { approveActivity, claimEarnFees, claimSwapFees, createApiKeys, createApiOnlyUsers, createAuthenticators, createFiatOnRampCredential, createInvitations, createMfaPolicy, createOauth2Credential, createOauthProviders, createPolicies, createPolicy, createPrivateKeyTag, createPrivateKeys, createReadOnlySession, createReadWriteSession, createSessionProfile, createSmartContractInterface, createSubOrganization, createSwapQuote, createTvcApp, createTvcDeployment, createTvcManifestApprovals, createTvcOperator, createTvcQuorumKey, createUserTag, createUsers, createWallet, createWalletAccounts, createWebhookEndpoint, deleteApiKeys, deleteAuthenticators, deleteFiatOnRampCredential, deleteInvitation, deleteMfaPolicy, deleteOauth2Credential, deleteOauthProviders, deletePolicies, deletePolicy, deletePrivateKeyTags, deletePrivateKeys, deleteSmartContractInterface, deleteSubOrganization, deleteTvcAppAndDeployments, deleteTvcDeployment, deleteUserTags, deleteUsers, deleteWalletAccounts, deleteWallets, deleteWebhookEndpoint, earnDeployWrapper, earnDeposit, earnSetWrapperState, earnWithdraw, emailAuth, ethSendRawTransaction, ethSendTransaction, ethUndelegate7702, executeSwap, exportPrivateKey, exportWallet, exportWalletAccount, getActivities, getActivity, getApiKey, getApiKeys, getAppProofs, getAppStatus, getAuthenticator, getAuthenticators, getBootProof, getClaimEarnFeesStatus, getEarnDeployStatus, getEarnDepositStatus, getEarnWithdrawStatus, getGasUsage, getIpAllowlist, getLatestBootProof, getMfaPolicies, getMfaPolicy, getMfaStatus, getNonces, getOauth2Credential, getOauthProviders, getOnRampTransactionStatus, getOrganization, getOrganizationConfigs, getPolicies, getPolicy, getPolicyEvaluations, getPrivateKey, getPrivateKeys, getSendTransactionStatus, getSessionProfile, getSessionProfiles, getSmartContractInterface, getSmartContractInterfaces, getSubOrgIds, getSwapStatus, getTvcApp, getTvcAppDeployments, getTvcApps, getTvcDeployment, getTvcDeploymentDebugLogs, getTvcDeploymentProvisioningDetails, getUser, getUsers, getVerifiedSubOrgIds, getWallet, getWalletAccount, getWalletAccounts, getWalletAddressBalances, getWallets, getWhoami, importPrivateKey, importWallet, initFiatOnRamp, initImportPrivateKey, initImportSecrets, initImportWallet, initOtp, initOtpAuth, initUserEmailRecovery, listEarnEnabledVaults, listEarnPositions, listEarnVaults, listEmailEvents, listEthTransactionHistory, listFiatOnRampCredentials, listOauth2Credentials, listPrivateKeyTags, listSolTransactionHistory, listSupportedAssets, listUserTags, listWebhookEndpoints, nOOPCodegenAnchor, oauth, oauth2Authenticate, oauthLogin, otpAuth, otpLogin, postTvcQuorumKeyShare, reEncryptTvcQuorumKeyShare, recoverUser, refreshFeatureFlags, rejectActivity, removeIpAllowlist, removeOrganizationFeature, restoreTvcDeployment, setIpAllowlist, setOrganizationFeature, signApproveActivity, signClaimEarnFees, signClaimSwapFees, signCreateApiKeys, signCreateApiOnlyUsers, signCreateAuthenticators, signCreateFiatOnRampCredential, signCreateInvitations, signCreateMfaPolicy, signCreateOauth2Credential, signCreateOauthProviders, signCreatePolicies, signCreatePolicy, signCreatePrivateKeyTag, signCreatePrivateKeys, signCreateReadOnlySession, signCreateReadWriteSession, signCreateSessionProfile, signCreateSmartContractInterface, signCreateSubOrganization, signCreateSwapQuote, signCreateTvcApp, signCreateTvcDeployment, signCreateTvcManifestApprovals, signCreateTvcOperator, signCreateTvcQuorumKey, signCreateUserTag, signCreateUsers, signCreateWallet, signCreateWalletAccounts, signCreateWebhookEndpoint, signDeleteApiKeys, signDeleteAuthenticators, signDeleteFiatOnRampCredential, signDeleteInvitation, signDeleteMfaPolicy, signDeleteOauth2Credential, signDeleteOauthProviders, signDeletePolicies, signDeletePolicy, signDeletePrivateKeyTags, signDeletePrivateKeys, signDeleteSmartContractInterface, signDeleteSubOrganization, signDeleteTvcAppAndDeployments, signDeleteTvcDeployment, signDeleteUserTags, signDeleteUsers, signDeleteWalletAccounts, signDeleteWallets, signDeleteWebhookEndpoint, signEarnDeployWrapper, signEarnDeposit, signEarnSetWrapperState, signEarnWithdraw, signEmailAuth, signEthSendRawTransaction, signEthSendTransaction, signEthUndelegate7702, signExecuteSwap, signExportPrivateKey, signExportWallet, signExportWalletAccount, signGetActivities, signGetActivity, signGetApiKey, signGetApiKeys, signGetAppProofs, signGetAppStatus, signGetAuthenticator, signGetAuthenticators, signGetBootProof, signGetClaimEarnFeesStatus, signGetEarnDeployStatus, signGetEarnDepositStatus, signGetEarnWithdrawStatus, signGetGasUsage, signGetIpAllowlist, signGetLatestBootProof, signGetMfaPolicies, signGetMfaPolicy, signGetMfaStatus, signGetNonces, signGetOauth2Credential, signGetOauthProviders, signGetOnRampTransactionStatus, signGetOrganization, signGetOrganizationConfigs, signGetPolicies, signGetPolicy, signGetPolicyEvaluations, signGetPrivateKey, signGetPrivateKeys, signGetSendTransactionStatus, signGetSessionProfile, signGetSessionProfiles, signGetSmartContractInterface, signGetSmartContractInterfaces, signGetSubOrgIds, signGetSwapStatus, signGetTvcApp, signGetTvcAppDeployments, signGetTvcApps, signGetTvcDeployment, signGetTvcDeploymentDebugLogs, signGetTvcDeploymentProvisioningDetails, signGetUser, signGetUsers, signGetVerifiedSubOrgIds, signGetWallet, signGetWalletAccount, signGetWalletAccounts, signGetWalletAddressBalances, signGetWallets, signGetWhoami, signImportPrivateKey, signImportWallet, signInitFiatOnRamp, signInitImportPrivateKey, signInitImportSecrets, signInitImportWallet, signInitOtp, signInitOtpAuth, signInitUserEmailRecovery, signListEarnEnabledVaults, signListEarnPositions, signListEarnVaults, signListEmailEvents, signListEthTransactionHistory, signListFiatOnRampCredentials, signListOauth2Credentials, signListPrivateKeyTags, signListSolTransactionHistory, signListSupportedAssets, signListUserTags, signListWebhookEndpoints, signNOOPCodegenAnchor, signOauth, signOauth2Authenticate, signOauthLogin, signOtpAuth, signOtpLogin, signPostTvcQuorumKeyShare, signRawPayload, signRawPayloads, signReEncryptTvcQuorumKeyShare, signRecoverUser, signRefreshFeatureFlags, signRejectActivity, signRemoveIpAllowlist, signRemoveOrganizationFeature, signRestoreTvcDeployment, signSetIpAllowlist, signSetOrganizationFeature, signSignRawPayload, signSignRawPayloads, signSignTransaction, signSolSendTransaction, signSparkClaimTransfer, signSparkPrepareLightningReceive, signSparkPrepareTransfer, signSparkSignFrost, signStampLogin, signTestRateLimits, signTransaction, signUpdateFiatOnRampCredential, signUpdateMfaPolicy, signUpdateOauth2Credential, signUpdateOrganizationName, signUpdatePolicy, signUpdatePrivateKeyTag, signUpdateRootQuorum, signUpdateTvcAppLiveDeployment, signUpdateUser, signUpdateUserEmail, signUpdateUserName, signUpdateUserPhoneNumber, signUpdateUserTag, signUpdateWallet, signUpdateWebhookEndpoint, signUpsertSwapConfig, signValidateTvcImage, signVerifyOtp, solSendTransaction, sparkClaimTransfer, sparkPrepareLightningReceive, sparkPrepareTransfer, sparkSignFrost, stampLogin, testRateLimits, updateFiatOnRampCredential, updateMfaPolicy, updateOauth2Credential, updateOrganizationName, updatePolicy, updatePrivateKeyTag, updateRootQuorum, updateTvcAppLiveDeployment, updateUser, updateUserEmail, updateUserName, updateUserPhoneNumber, updateUserTag, updateWallet, updateWebhookEndpoint, upsertSwapConfig, validateTvcImage, verifyOtp };
|
|
3783
3959
|
//# sourceMappingURL=public_api.fetcher.mjs.map
|