@turnkey/http 4.1.1 → 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.
Files changed (24) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +515 -5
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +855 -5
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +855 -5
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +75730 -8740
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +821 -5
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +754 -6
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +1992 -70
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  16. package/dist/async.d.ts.map +1 -1
  17. package/dist/async.js +24 -0
  18. package/dist/async.js.map +1 -1
  19. package/dist/async.mjs +24 -0
  20. package/dist/async.mjs.map +1 -1
  21. package/dist/version.d.ts +1 -1
  22. package/dist/version.js +1 -1
  23. package/dist/version.mjs +1 -1
  24. package/package.json +2 -2
@@ -181,6 +181,106 @@ class TurnkeyClient {
181
181
  url: fullUrl,
182
182
  };
183
183
  };
184
+ /**
185
+ * Poll the status of a fee claim by its claim_request_id.
186
+ *
187
+ * Sign the provided `TGetClaimEarnFeesStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_claim_earn_fees_status).
188
+ *
189
+ * See also {@link stampGetClaimEarnFeesStatus}.
190
+ */
191
+ this.getClaimEarnFeesStatus = async (input) => {
192
+ return this.request("/public/v1/query/get_claim_earn_fees_status", input);
193
+ };
194
+ /**
195
+ * Produce a `SignedRequest` from `TGetClaimEarnFeesStatusBody` by using the client's `stamp` function.
196
+ *
197
+ * See also {@link GetClaimEarnFeesStatus}.
198
+ */
199
+ this.stampGetClaimEarnFeesStatus = async (input) => {
200
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_claim_earn_fees_status";
201
+ const body = JSON.stringify(input);
202
+ const stamp = await this.stamper.stamp(body);
203
+ return {
204
+ body: body,
205
+ stamp: stamp,
206
+ url: fullUrl,
207
+ };
208
+ };
209
+ /**
210
+ * Poll the status of a wrapper deployment by its deploy_request_id.
211
+ *
212
+ * Sign the provided `TGetEarnDeployStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_deploy_status).
213
+ *
214
+ * See also {@link stampGetEarnDeployStatus}.
215
+ */
216
+ this.getEarnDeployStatus = async (input) => {
217
+ return this.request("/public/v1/query/get_earn_deploy_status", input);
218
+ };
219
+ /**
220
+ * Produce a `SignedRequest` from `TGetEarnDeployStatusBody` by using the client's `stamp` function.
221
+ *
222
+ * See also {@link GetEarnDeployStatus}.
223
+ */
224
+ this.stampGetEarnDeployStatus = async (input) => {
225
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_earn_deploy_status";
226
+ const body = JSON.stringify(input);
227
+ const stamp = await this.stamper.stamp(body);
228
+ return {
229
+ body: body,
230
+ stamp: stamp,
231
+ url: fullUrl,
232
+ };
233
+ };
234
+ /**
235
+ * Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
236
+ *
237
+ * Sign the provided `TGetEarnDepositStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_deposit_status).
238
+ *
239
+ * See also {@link stampGetEarnDepositStatus}.
240
+ */
241
+ this.getEarnDepositStatus = async (input) => {
242
+ return this.request("/public/v1/query/get_earn_deposit_status", input);
243
+ };
244
+ /**
245
+ * Produce a `SignedRequest` from `TGetEarnDepositStatusBody` by using the client's `stamp` function.
246
+ *
247
+ * See also {@link GetEarnDepositStatus}.
248
+ */
249
+ this.stampGetEarnDepositStatus = async (input) => {
250
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_earn_deposit_status";
251
+ const body = JSON.stringify(input);
252
+ const stamp = await this.stamper.stamp(body);
253
+ return {
254
+ body: body,
255
+ stamp: stamp,
256
+ url: fullUrl,
257
+ };
258
+ };
259
+ /**
260
+ * Poll the status of a withdrawal by its withdraw_request_id.
261
+ *
262
+ * Sign the provided `TGetEarnWithdrawStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_withdraw_status).
263
+ *
264
+ * See also {@link stampGetEarnWithdrawStatus}.
265
+ */
266
+ this.getEarnWithdrawStatus = async (input) => {
267
+ return this.request("/public/v1/query/get_earn_withdraw_status", input);
268
+ };
269
+ /**
270
+ * Produce a `SignedRequest` from `TGetEarnWithdrawStatusBody` by using the client's `stamp` function.
271
+ *
272
+ * See also {@link GetEarnWithdrawStatus}.
273
+ */
274
+ this.stampGetEarnWithdrawStatus = async (input) => {
275
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_earn_withdraw_status";
276
+ const body = JSON.stringify(input);
277
+ const stamp = await this.stamper.stamp(body);
278
+ return {
279
+ body: body,
280
+ stamp: stamp,
281
+ url: fullUrl,
282
+ };
283
+ };
184
284
  /**
185
285
  * Get gas usage and gas limits for either the parent organization or a sub-organization.
186
286
  *
@@ -256,6 +356,81 @@ class TurnkeyClient {
256
356
  url: fullUrl,
257
357
  };
258
358
  };
359
+ /**
360
+ * Get all MFA policies for a user.
361
+ *
362
+ * Sign the provided `TGetMfaPoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_mfa_policies).
363
+ *
364
+ * See also {@link stampGetMfaPolicies}.
365
+ */
366
+ this.getMfaPolicies = async (input) => {
367
+ return this.request("/public/v1/query/get_mfa_policies", input);
368
+ };
369
+ /**
370
+ * Produce a `SignedRequest` from `TGetMfaPoliciesBody` by using the client's `stamp` function.
371
+ *
372
+ * See also {@link GetMfaPolicies}.
373
+ */
374
+ this.stampGetMfaPolicies = async (input) => {
375
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_mfa_policies";
376
+ const body = JSON.stringify(input);
377
+ const stamp = await this.stamper.stamp(body);
378
+ return {
379
+ body: body,
380
+ stamp: stamp,
381
+ url: fullUrl,
382
+ };
383
+ };
384
+ /**
385
+ * Get a single MFA policy for a user.
386
+ *
387
+ * Sign the provided `TGetMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_mfa_policy).
388
+ *
389
+ * See also {@link stampGetMfaPolicy}.
390
+ */
391
+ this.getMfaPolicy = async (input) => {
392
+ return this.request("/public/v1/query/get_mfa_policy", input);
393
+ };
394
+ /**
395
+ * Produce a `SignedRequest` from `TGetMfaPolicyBody` by using the client's `stamp` function.
396
+ *
397
+ * See also {@link GetMfaPolicy}.
398
+ */
399
+ this.stampGetMfaPolicy = async (input) => {
400
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_mfa_policy";
401
+ const body = JSON.stringify(input);
402
+ const stamp = await this.stamper.stamp(body);
403
+ return {
404
+ body: body,
405
+ stamp: stamp,
406
+ url: fullUrl,
407
+ };
408
+ };
409
+ /**
410
+ * Get the MFA status of an activity for a specific user or all voting users.
411
+ *
412
+ * Sign the provided `TGetMfaStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_mfa_status).
413
+ *
414
+ * See also {@link stampGetMfaStatus}.
415
+ */
416
+ this.getMfaStatus = async (input) => {
417
+ return this.request("/public/v1/query/get_mfa_status", input);
418
+ };
419
+ /**
420
+ * Produce a `SignedRequest` from `TGetMfaStatusBody` by using the client's `stamp` function.
421
+ *
422
+ * See also {@link GetMfaStatus}.
423
+ */
424
+ this.stampGetMfaStatus = async (input) => {
425
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_mfa_status";
426
+ const body = JSON.stringify(input);
427
+ const stamp = await this.stamper.stamp(body);
428
+ return {
429
+ body: body,
430
+ stamp: stamp,
431
+ url: fullUrl,
432
+ };
433
+ };
259
434
  /**
260
435
  * Get nonce values for an address on a given network. Can fetch the standard on-chain nonce and/or the gas station nonce used for sponsored transactions.
261
436
  *
@@ -506,6 +681,56 @@ class TurnkeyClient {
506
681
  url: fullUrl,
507
682
  };
508
683
  };
684
+ /**
685
+ * Get a single session profile for an organization.
686
+ *
687
+ * Sign the provided `TGetSessionProfileBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_session_profile).
688
+ *
689
+ * See also {@link stampGetSessionProfile}.
690
+ */
691
+ this.getSessionProfile = async (input) => {
692
+ return this.request("/public/v1/query/get_session_profile", input);
693
+ };
694
+ /**
695
+ * Produce a `SignedRequest` from `TGetSessionProfileBody` by using the client's `stamp` function.
696
+ *
697
+ * See also {@link GetSessionProfile}.
698
+ */
699
+ this.stampGetSessionProfile = async (input) => {
700
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_session_profile";
701
+ const body = JSON.stringify(input);
702
+ const stamp = await this.stamper.stamp(body);
703
+ return {
704
+ body: body,
705
+ stamp: stamp,
706
+ url: fullUrl,
707
+ };
708
+ };
709
+ /**
710
+ * Get all session profiles for an organization.
711
+ *
712
+ * Sign the provided `TGetSessionProfilesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_session_profiles).
713
+ *
714
+ * See also {@link stampGetSessionProfiles}.
715
+ */
716
+ this.getSessionProfiles = async (input) => {
717
+ return this.request("/public/v1/query/get_session_profiles", input);
718
+ };
719
+ /**
720
+ * Produce a `SignedRequest` from `TGetSessionProfilesBody` by using the client's `stamp` function.
721
+ *
722
+ * See also {@link GetSessionProfiles}.
723
+ */
724
+ this.stampGetSessionProfiles = async (input) => {
725
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_session_profiles";
726
+ const body = JSON.stringify(input);
727
+ const stamp = await this.stamper.stamp(body);
728
+ return {
729
+ body: body,
730
+ stamp: stamp,
731
+ url: fullUrl,
732
+ };
733
+ };
509
734
  /**
510
735
  * Get details about a smart contract interface.
511
736
  *
@@ -531,6 +756,56 @@ class TurnkeyClient {
531
756
  url: fullUrl,
532
757
  };
533
758
  };
759
+ /**
760
+ * Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
761
+ *
762
+ * Sign the provided `TGetSwapQuoteBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_quote).
763
+ *
764
+ * See also {@link stampGetSwapQuote}.
765
+ */
766
+ this.getSwapQuote = async (input) => {
767
+ return this.request("/public/v1/query/get_swap_quote", input);
768
+ };
769
+ /**
770
+ * Produce a `SignedRequest` from `TGetSwapQuoteBody` by using the client's `stamp` function.
771
+ *
772
+ * See also {@link GetSwapQuote}.
773
+ */
774
+ this.stampGetSwapQuote = async (input) => {
775
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_swap_quote";
776
+ const body = JSON.stringify(input);
777
+ const stamp = await this.stamper.stamp(body);
778
+ return {
779
+ body: body,
780
+ stamp: stamp,
781
+ url: fullUrl,
782
+ };
783
+ };
784
+ /**
785
+ * Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps.
786
+ *
787
+ * Sign the provided `TGetSwapStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_status).
788
+ *
789
+ * See also {@link stampGetSwapStatus}.
790
+ */
791
+ this.getSwapStatus = async (input) => {
792
+ return this.request("/public/v1/query/get_swap_status", input);
793
+ };
794
+ /**
795
+ * Produce a `SignedRequest` from `TGetSwapStatusBody` by using the client's `stamp` function.
796
+ *
797
+ * See also {@link GetSwapStatus}.
798
+ */
799
+ this.stampGetSwapStatus = async (input) => {
800
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_swap_status";
801
+ const body = JSON.stringify(input);
802
+ const stamp = await this.stamper.stamp(body);
803
+ return {
804
+ body: body,
805
+ stamp: stamp,
806
+ url: fullUrl,
807
+ };
808
+ };
534
809
  /**
535
810
  * Get details about a single TVC App
536
811
  *
@@ -581,6 +856,31 @@ class TurnkeyClient {
581
856
  url: fullUrl,
582
857
  };
583
858
  };
859
+ /**
860
+ * Get a bounded window of application logs from a debug-mode TVC deployment. Returned lines are collected from every running replica and sorted by platform timestamp.
861
+ *
862
+ * Sign the provided `TGetTvcDeploymentDebugLogsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_deployment_debug_logs).
863
+ *
864
+ * See also {@link stampGetTvcDeploymentDebugLogs}.
865
+ */
866
+ this.getTvcDeploymentDebugLogs = async (input) => {
867
+ return this.request("/public/v1/query/get_tvc_deployment_debug_logs", input);
868
+ };
869
+ /**
870
+ * Produce a `SignedRequest` from `TGetTvcDeploymentDebugLogsBody` by using the client's `stamp` function.
871
+ *
872
+ * See also {@link GetTvcDeploymentDebugLogs}.
873
+ */
874
+ this.stampGetTvcDeploymentDebugLogs = async (input) => {
875
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_tvc_deployment_debug_logs";
876
+ const body = JSON.stringify(input);
877
+ const stamp = await this.stamper.stamp(body);
878
+ return {
879
+ body: body,
880
+ stamp: stamp,
881
+ url: fullUrl,
882
+ };
883
+ };
584
884
  /**
585
885
  * Get the attestation document and manifest envelope of the provisioning enclave for a TVC deployment
586
886
  *
@@ -683,7 +983,7 @@ class TurnkeyClient {
683
983
  };
684
984
  };
685
985
  /**
686
- * Get balances of supported assets for an address on the specified network. Only non-zero balances are returned. This feature is in beta - please contact support for access.
986
+ * Get balances of supported assets for an address on the specified network. Only non-zero balances are returned.
687
987
  *
688
988
  * Sign the provided `TGetWalletAddressBalancesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet_address_balances).
689
989
  *
@@ -757,6 +1057,131 @@ class TurnkeyClient {
757
1057
  url: fullUrl,
758
1058
  };
759
1059
  };
1060
+ /**
1061
+ * Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
1062
+ *
1063
+ * Sign the provided `TListEarnEnabledVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_enabled_vaults).
1064
+ *
1065
+ * See also {@link stampListEarnEnabledVaults}.
1066
+ */
1067
+ this.listEarnEnabledVaults = async (input) => {
1068
+ return this.request("/public/v1/query/list_earn_enabled_vaults", input);
1069
+ };
1070
+ /**
1071
+ * Produce a `SignedRequest` from `TListEarnEnabledVaultsBody` by using the client's `stamp` function.
1072
+ *
1073
+ * See also {@link ListEarnEnabledVaults}.
1074
+ */
1075
+ this.stampListEarnEnabledVaults = async (input) => {
1076
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_earn_enabled_vaults";
1077
+ const body = JSON.stringify(input);
1078
+ const stamp = await this.stamper.stamp(body);
1079
+ return {
1080
+ body: body,
1081
+ stamp: stamp,
1082
+ url: fullUrl,
1083
+ };
1084
+ };
1085
+ /**
1086
+ * Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
1087
+ *
1088
+ * Sign the provided `TListEarnPositionsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_positions).
1089
+ *
1090
+ * See also {@link stampListEarnPositions}.
1091
+ */
1092
+ this.listEarnPositions = async (input) => {
1093
+ return this.request("/public/v1/query/list_earn_positions", input);
1094
+ };
1095
+ /**
1096
+ * Produce a `SignedRequest` from `TListEarnPositionsBody` by using the client's `stamp` function.
1097
+ *
1098
+ * See also {@link ListEarnPositions}.
1099
+ */
1100
+ this.stampListEarnPositions = async (input) => {
1101
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_earn_positions";
1102
+ const body = JSON.stringify(input);
1103
+ const stamp = await this.stamper.stamp(body);
1104
+ return {
1105
+ body: body,
1106
+ stamp: stamp,
1107
+ url: fullUrl,
1108
+ };
1109
+ };
1110
+ /**
1111
+ * 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.
1112
+ *
1113
+ * Sign the provided `TListEarnVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_vaults).
1114
+ *
1115
+ * See also {@link stampListEarnVaults}.
1116
+ */
1117
+ this.listEarnVaults = async (input) => {
1118
+ return this.request("/public/v1/query/list_earn_vaults", input);
1119
+ };
1120
+ /**
1121
+ * Produce a `SignedRequest` from `TListEarnVaultsBody` by using the client's `stamp` function.
1122
+ *
1123
+ * See also {@link ListEarnVaults}.
1124
+ */
1125
+ this.stampListEarnVaults = async (input) => {
1126
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_earn_vaults";
1127
+ const body = JSON.stringify(input);
1128
+ const stamp = await this.stamper.stamp(body);
1129
+ return {
1130
+ body: body,
1131
+ stamp: stamp,
1132
+ url: fullUrl,
1133
+ };
1134
+ };
1135
+ /**
1136
+ * List email events for the organization.
1137
+ *
1138
+ * Sign the provided `TListEmailEventsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_email_events).
1139
+ *
1140
+ * See also {@link stampListEmailEvents}.
1141
+ */
1142
+ this.listEmailEvents = async (input) => {
1143
+ return this.request("/public/v1/query/list_email_events", input);
1144
+ };
1145
+ /**
1146
+ * Produce a `SignedRequest` from `TListEmailEventsBody` by using the client's `stamp` function.
1147
+ *
1148
+ * See also {@link ListEmailEvents}.
1149
+ */
1150
+ this.stampListEmailEvents = async (input) => {
1151
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_email_events";
1152
+ const body = JSON.stringify(input);
1153
+ const stamp = await this.stamper.stamp(body);
1154
+ return {
1155
+ body: body,
1156
+ stamp: stamp,
1157
+ url: fullUrl,
1158
+ };
1159
+ };
1160
+ /**
1161
+ * List Ethereum transaction history for a wallet address on the specified network.
1162
+ *
1163
+ * Sign the provided `TListEthTransactionHistoryBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_eth_transaction_history).
1164
+ *
1165
+ * See also {@link stampListEthTransactionHistory}.
1166
+ */
1167
+ this.listEthTransactionHistory = async (input) => {
1168
+ return this.request("/public/v1/query/list_eth_transaction_history", input);
1169
+ };
1170
+ /**
1171
+ * Produce a `SignedRequest` from `TListEthTransactionHistoryBody` by using the client's `stamp` function.
1172
+ *
1173
+ * See also {@link ListEthTransactionHistory}.
1174
+ */
1175
+ this.stampListEthTransactionHistory = async (input) => {
1176
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_eth_transaction_history";
1177
+ const body = JSON.stringify(input);
1178
+ const stamp = await this.stamper.stamp(body);
1179
+ return {
1180
+ body: body,
1181
+ stamp: stamp,
1182
+ url: fullUrl,
1183
+ };
1184
+ };
760
1185
  /**
761
1186
  * List all fiat on ramp provider credentials within an organization.
762
1187
  *
@@ -907,6 +1332,31 @@ class TurnkeyClient {
907
1332
  url: fullUrl,
908
1333
  };
909
1334
  };
1335
+ /**
1336
+ * List Solana transaction history for a wallet address on the specified network.
1337
+ *
1338
+ * Sign the provided `TListSolTransactionHistoryBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_sol_transaction_history).
1339
+ *
1340
+ * See also {@link stampListSolTransactionHistory}.
1341
+ */
1342
+ this.listSolTransactionHistory = async (input) => {
1343
+ return this.request("/public/v1/query/list_sol_transaction_history", input);
1344
+ };
1345
+ /**
1346
+ * Produce a `SignedRequest` from `TListSolTransactionHistoryBody` by using the client's `stamp` function.
1347
+ *
1348
+ * See also {@link ListSolTransactionHistory}.
1349
+ */
1350
+ this.stampListSolTransactionHistory = async (input) => {
1351
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_sol_transaction_history";
1352
+ const body = JSON.stringify(input);
1353
+ const stamp = await this.stamper.stamp(body);
1354
+ return {
1355
+ body: body,
1356
+ stamp: stamp,
1357
+ url: fullUrl,
1358
+ };
1359
+ };
910
1360
  /**
911
1361
  * Get all suborg IDs associated given a parent org ID and an optional filter.
912
1362
  *
@@ -933,7 +1383,7 @@ class TurnkeyClient {
933
1383
  };
934
1384
  };
935
1385
  /**
936
- * List supported assets for the specified network. This feature is in beta - please contact support for access.
1386
+ * List supported assets for the specified network.
937
1387
  *
938
1388
  * Sign the provided `TListSupportedAssetsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_supported_assets).
939
1389
  *
@@ -1232,6 +1682,56 @@ class TurnkeyClient {
1232
1682
  url: fullUrl,
1233
1683
  };
1234
1684
  };
1685
+ /**
1686
+ * Claim earn fees through the activity pipeline.
1687
+ *
1688
+ * Sign the provided `TClaimEarnFeesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/claim_earn_fees).
1689
+ *
1690
+ * See also {@link stampClaimEarnFees}.
1691
+ */
1692
+ this.claimEarnFees = async (input) => {
1693
+ return this.request("/public/v1/submit/claim_earn_fees", input);
1694
+ };
1695
+ /**
1696
+ * Produce a `SignedRequest` from `TClaimEarnFeesBody` by using the client's `stamp` function.
1697
+ *
1698
+ * See also {@link ClaimEarnFees}.
1699
+ */
1700
+ this.stampClaimEarnFees = async (input) => {
1701
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/claim_earn_fees";
1702
+ const body = JSON.stringify(input);
1703
+ const stamp = await this.stamper.stamp(body);
1704
+ return {
1705
+ body: body,
1706
+ stamp: stamp,
1707
+ url: fullUrl,
1708
+ };
1709
+ };
1710
+ /**
1711
+ * Claim swap fees through the activity pipeline.
1712
+ *
1713
+ * Sign the provided `TClaimSwapFeesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/claim_swap_fees).
1714
+ *
1715
+ * See also {@link stampClaimSwapFees}.
1716
+ */
1717
+ this.claimSwapFees = async (input) => {
1718
+ return this.request("/public/v1/submit/claim_swap_fees", input);
1719
+ };
1720
+ /**
1721
+ * Produce a `SignedRequest` from `TClaimSwapFeesBody` by using the client's `stamp` function.
1722
+ *
1723
+ * See also {@link ClaimSwapFees}.
1724
+ */
1725
+ this.stampClaimSwapFees = async (input) => {
1726
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/claim_swap_fees";
1727
+ const body = JSON.stringify(input);
1728
+ const stamp = await this.stamper.stamp(body);
1729
+ return {
1730
+ body: body,
1731
+ stamp: stamp,
1732
+ url: fullUrl,
1733
+ };
1734
+ };
1235
1735
  /**
1236
1736
  * Add API keys to an existing user.
1237
1737
  *
@@ -1357,6 +1857,31 @@ class TurnkeyClient {
1357
1857
  url: fullUrl,
1358
1858
  };
1359
1859
  };
1860
+ /**
1861
+ * Create a new MFA policy for a user.
1862
+ *
1863
+ * Sign the provided `TCreateMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_mfa_policy).
1864
+ *
1865
+ * See also {@link stampCreateMfaPolicy}.
1866
+ */
1867
+ this.createMfaPolicy = async (input) => {
1868
+ return this.request("/public/v1/submit/create_mfa_policy", input);
1869
+ };
1870
+ /**
1871
+ * Produce a `SignedRequest` from `TCreateMfaPolicyBody` by using the client's `stamp` function.
1872
+ *
1873
+ * See also {@link CreateMfaPolicy}.
1874
+ */
1875
+ this.stampCreateMfaPolicy = async (input) => {
1876
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_mfa_policy";
1877
+ const body = JSON.stringify(input);
1878
+ const stamp = await this.stamper.stamp(body);
1879
+ return {
1880
+ body: body,
1881
+ stamp: stamp,
1882
+ url: fullUrl,
1883
+ };
1884
+ };
1360
1885
  /**
1361
1886
  * Enable authentication for end users with an OAuth 2.0 provider
1362
1887
  *
@@ -1557,6 +2082,31 @@ class TurnkeyClient {
1557
2082
  url: fullUrl,
1558
2083
  };
1559
2084
  };
2085
+ /**
2086
+ * Create a new session profile for an organization.
2087
+ *
2088
+ * Sign the provided `TCreateSessionProfileBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_session_profile).
2089
+ *
2090
+ * See also {@link stampCreateSessionProfile}.
2091
+ */
2092
+ this.createSessionProfile = async (input) => {
2093
+ return this.request("/public/v1/submit/create_session_profile", input);
2094
+ };
2095
+ /**
2096
+ * Produce a `SignedRequest` from `TCreateSessionProfileBody` by using the client's `stamp` function.
2097
+ *
2098
+ * See also {@link CreateSessionProfile}.
2099
+ */
2100
+ this.stampCreateSessionProfile = async (input) => {
2101
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_session_profile";
2102
+ const body = JSON.stringify(input);
2103
+ const stamp = await this.stamper.stamp(body);
2104
+ return {
2105
+ body: body,
2106
+ stamp: stamp,
2107
+ url: fullUrl,
2108
+ };
2109
+ };
1560
2110
  /**
1561
2111
  * Create an ABI/IDL in JSON.
1562
2112
  *
@@ -1583,7 +2133,7 @@ class TurnkeyClient {
1583
2133
  };
1584
2134
  };
1585
2135
  /**
1586
- * Create a new sub-organization.
2136
+ * 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).
1587
2137
  *
1588
2138
  * Sign the provided `TCreateSubOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_sub_organization).
1589
2139
  *
@@ -1682,6 +2232,56 @@ class TurnkeyClient {
1682
2232
  url: fullUrl,
1683
2233
  };
1684
2234
  };
2235
+ /**
2236
+ * Create a TVC Operator backed by uncompressed P-256 Turnkey wallet accounts
2237
+ *
2238
+ * Sign the provided `TCreateTvcOperatorBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_operator).
2239
+ *
2240
+ * See also {@link stampCreateTvcOperator}.
2241
+ */
2242
+ this.createTvcOperator = async (input) => {
2243
+ return this.request("/public/v1/submit/create_tvc_operator", input);
2244
+ };
2245
+ /**
2246
+ * Produce a `SignedRequest` from `TCreateTvcOperatorBody` by using the client's `stamp` function.
2247
+ *
2248
+ * See also {@link CreateTvcOperator}.
2249
+ */
2250
+ this.stampCreateTvcOperator = async (input) => {
2251
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_operator";
2252
+ const body = JSON.stringify(input);
2253
+ const stamp = await this.stamper.stamp(body);
2254
+ return {
2255
+ body: body,
2256
+ stamp: stamp,
2257
+ url: fullUrl,
2258
+ };
2259
+ };
2260
+ /**
2261
+ * Create a hosted TVC quorum key and encrypted shares.
2262
+ *
2263
+ * Sign the provided `TCreateTvcQuorumKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_quorum_key).
2264
+ *
2265
+ * See also {@link stampCreateTvcQuorumKey}.
2266
+ */
2267
+ this.createTvcQuorumKey = async (input) => {
2268
+ return this.request("/public/v1/submit/create_tvc_quorum_key", input);
2269
+ };
2270
+ /**
2271
+ * Produce a `SignedRequest` from `TCreateTvcQuorumKeyBody` by using the client's `stamp` function.
2272
+ *
2273
+ * See also {@link CreateTvcQuorumKey}.
2274
+ */
2275
+ this.stampCreateTvcQuorumKey = async (input) => {
2276
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_quorum_key";
2277
+ const body = JSON.stringify(input);
2278
+ const stamp = await this.stamper.stamp(body);
2279
+ return {
2280
+ body: body,
2281
+ stamp: stamp,
2282
+ url: fullUrl,
2283
+ };
2284
+ };
1685
2285
  /**
1686
2286
  * Create a user tag and add it to users.
1687
2287
  *
@@ -1708,7 +2308,7 @@ class TurnkeyClient {
1708
2308
  };
1709
2309
  };
1710
2310
  /**
1711
- * Create users in an existing organization.
2311
+ * 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).
1712
2312
  *
1713
2313
  * Sign the provided `TCreateUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_users).
1714
2314
  *
@@ -1907,6 +2507,31 @@ class TurnkeyClient {
1907
2507
  url: fullUrl,
1908
2508
  };
1909
2509
  };
2510
+ /**
2511
+ * Delete an MFA policy for a user.
2512
+ *
2513
+ * Sign the provided `TDeleteMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_mfa_policy).
2514
+ *
2515
+ * See also {@link stampDeleteMfaPolicy}.
2516
+ */
2517
+ this.deleteMfaPolicy = async (input) => {
2518
+ return this.request("/public/v1/submit/delete_mfa_policy", input);
2519
+ };
2520
+ /**
2521
+ * Produce a `SignedRequest` from `TDeleteMfaPolicyBody` by using the client's `stamp` function.
2522
+ *
2523
+ * See also {@link DeleteMfaPolicy}.
2524
+ */
2525
+ this.stampDeleteMfaPolicy = async (input) => {
2526
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_mfa_policy";
2527
+ const body = JSON.stringify(input);
2528
+ const stamp = await this.stamper.stamp(body);
2529
+ return {
2530
+ body: body,
2531
+ stamp: stamp,
2532
+ url: fullUrl,
2533
+ };
2534
+ };
1910
2535
  /**
1911
2536
  * Disable authentication for end users with an OAuth 2.0 provider
1912
2537
  *
@@ -2282,6 +2907,106 @@ class TurnkeyClient {
2282
2907
  url: fullUrl,
2283
2908
  };
2284
2909
  };
2910
+ /**
2911
+ * Enable a yield vault for an organization by deploying its fee wrapper. Must be called before any deposits into the vault.
2912
+ *
2913
+ * Sign the provided `TEarnDeployWrapperBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_deploy_wrapper).
2914
+ *
2915
+ * See also {@link stampEarnDeployWrapper}.
2916
+ */
2917
+ this.earnDeployWrapper = async (input) => {
2918
+ return this.request("/public/v1/submit/earn_deploy_wrapper", input);
2919
+ };
2920
+ /**
2921
+ * Produce a `SignedRequest` from `TEarnDeployWrapperBody` by using the client's `stamp` function.
2922
+ *
2923
+ * See also {@link EarnDeployWrapper}.
2924
+ */
2925
+ this.stampEarnDeployWrapper = async (input) => {
2926
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_deploy_wrapper";
2927
+ const body = JSON.stringify(input);
2928
+ const stamp = await this.stamper.stamp(body);
2929
+ return {
2930
+ body: body,
2931
+ stamp: stamp,
2932
+ url: fullUrl,
2933
+ };
2934
+ };
2935
+ /**
2936
+ * Deposit assets from a wallet into an enabled yield vault.
2937
+ *
2938
+ * Sign the provided `TEarnDepositBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_deposit).
2939
+ *
2940
+ * See also {@link stampEarnDeposit}.
2941
+ */
2942
+ this.earnDeposit = async (input) => {
2943
+ return this.request("/public/v1/submit/earn_deposit", input);
2944
+ };
2945
+ /**
2946
+ * Produce a `SignedRequest` from `TEarnDepositBody` by using the client's `stamp` function.
2947
+ *
2948
+ * See also {@link EarnDeposit}.
2949
+ */
2950
+ this.stampEarnDeposit = async (input) => {
2951
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_deposit";
2952
+ const body = JSON.stringify(input);
2953
+ const stamp = await this.stamper.stamp(body);
2954
+ return {
2955
+ body: body,
2956
+ stamp: stamp,
2957
+ url: fullUrl,
2958
+ };
2959
+ };
2960
+ /**
2961
+ * Enable or disable deposits to a deployed Earn wrapper. Withdrawals are always allowed.
2962
+ *
2963
+ * Sign the provided `TEarnSetWrapperStateBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_set_wrapper_state).
2964
+ *
2965
+ * See also {@link stampEarnSetWrapperState}.
2966
+ */
2967
+ this.earnSetWrapperState = async (input) => {
2968
+ return this.request("/public/v1/submit/earn_set_wrapper_state", input);
2969
+ };
2970
+ /**
2971
+ * Produce a `SignedRequest` from `TEarnSetWrapperStateBody` by using the client's `stamp` function.
2972
+ *
2973
+ * See also {@link EarnSetWrapperState}.
2974
+ */
2975
+ this.stampEarnSetWrapperState = async (input) => {
2976
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_set_wrapper_state";
2977
+ const body = JSON.stringify(input);
2978
+ const stamp = await this.stamper.stamp(body);
2979
+ return {
2980
+ body: body,
2981
+ stamp: stamp,
2982
+ url: fullUrl,
2983
+ };
2984
+ };
2985
+ /**
2986
+ * Withdraw assets or redeem shares from an enabled yield vault.
2987
+ *
2988
+ * Sign the provided `TEarnWithdrawBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_withdraw).
2989
+ *
2990
+ * See also {@link stampEarnWithdraw}.
2991
+ */
2992
+ this.earnWithdraw = async (input) => {
2993
+ return this.request("/public/v1/submit/earn_withdraw", input);
2994
+ };
2995
+ /**
2996
+ * Produce a `SignedRequest` from `TEarnWithdrawBody` by using the client's `stamp` function.
2997
+ *
2998
+ * See also {@link EarnWithdraw}.
2999
+ */
3000
+ this.stampEarnWithdraw = async (input) => {
3001
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_withdraw";
3002
+ const body = JSON.stringify(input);
3003
+ const stamp = await this.stamper.stamp(body);
3004
+ return {
3005
+ body: body,
3006
+ stamp: stamp,
3007
+ url: fullUrl,
3008
+ };
3009
+ };
2285
3010
  /**
2286
3011
  * Authenticate a user via email.
2287
3012
  *
@@ -2357,6 +3082,31 @@ class TurnkeyClient {
2357
3082
  url: fullUrl,
2358
3083
  };
2359
3084
  };
3085
+ /**
3086
+ * Execute a quoted swap through the activity pipeline and Turnkey broadcasting.
3087
+ *
3088
+ * Sign the provided `TExecuteSwapBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/execute_swap).
3089
+ *
3090
+ * See also {@link stampExecuteSwap}.
3091
+ */
3092
+ this.executeSwap = async (input) => {
3093
+ return this.request("/public/v1/submit/execute_swap", input);
3094
+ };
3095
+ /**
3096
+ * Produce a `SignedRequest` from `TExecuteSwapBody` by using the client's `stamp` function.
3097
+ *
3098
+ * See also {@link ExecuteSwap}.
3099
+ */
3100
+ this.stampExecuteSwap = async (input) => {
3101
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/execute_swap";
3102
+ const body = JSON.stringify(input);
3103
+ const stamp = await this.stamper.stamp(body);
3104
+ return {
3105
+ body: body,
3106
+ stamp: stamp,
3107
+ url: fullUrl,
3108
+ };
3109
+ };
2360
3110
  /**
2361
3111
  * Export a private key.
2362
3112
  *
@@ -2532,6 +3282,31 @@ class TurnkeyClient {
2532
3282
  url: fullUrl,
2533
3283
  };
2534
3284
  };
3285
+ /**
3286
+ * Initialize secret imports by generating Ingress Encryption Target Keys.
3287
+ *
3288
+ * Sign the provided `TInitImportSecretsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_secrets).
3289
+ *
3290
+ * See also {@link stampInitImportSecrets}.
3291
+ */
3292
+ this.initImportSecrets = async (input) => {
3293
+ return this.request("/public/v1/submit/init_import_secrets", input);
3294
+ };
3295
+ /**
3296
+ * Produce a `SignedRequest` from `TInitImportSecretsBody` by using the client's `stamp` function.
3297
+ *
3298
+ * See also {@link InitImportSecrets}.
3299
+ */
3300
+ this.stampInitImportSecrets = async (input) => {
3301
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_secrets";
3302
+ const body = JSON.stringify(input);
3303
+ const stamp = await this.stamper.stamp(body);
3304
+ return {
3305
+ body: body,
3306
+ stamp: stamp,
3307
+ url: fullUrl,
3308
+ };
3309
+ };
2535
3310
  /**
2536
3311
  * Initialize a new wallet import.
2537
3312
  *
@@ -2782,6 +3557,31 @@ class TurnkeyClient {
2782
3557
  url: fullUrl,
2783
3558
  };
2784
3559
  };
3560
+ /**
3561
+ * Re-encrypt a hosted TVC quorum key share for a deployment.
3562
+ *
3563
+ * Sign the provided `TReEncryptTvcQuorumKeyShareBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/re_encrypt_tvc_quorum_key_share).
3564
+ *
3565
+ * See also {@link stampReEncryptTvcQuorumKeyShare}.
3566
+ */
3567
+ this.reEncryptTvcQuorumKeyShare = async (input) => {
3568
+ return this.request("/public/v1/submit/re_encrypt_tvc_quorum_key_share", input);
3569
+ };
3570
+ /**
3571
+ * Produce a `SignedRequest` from `TReEncryptTvcQuorumKeyShareBody` by using the client's `stamp` function.
3572
+ *
3573
+ * See also {@link ReEncryptTvcQuorumKeyShare}.
3574
+ */
3575
+ this.stampReEncryptTvcQuorumKeyShare = async (input) => {
3576
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/re_encrypt_tvc_quorum_key_share";
3577
+ const body = JSON.stringify(input);
3578
+ const stamp = await this.stamper.stamp(body);
3579
+ return {
3580
+ body: body,
3581
+ stamp: stamp,
3582
+ url: fullUrl,
3583
+ };
3584
+ };
2785
3585
  /**
2786
3586
  * Complete the process of recovering a user by adding an authenticator.
2787
3587
  *
@@ -3058,7 +3858,7 @@ class TurnkeyClient {
3058
3858
  };
3059
3859
  };
3060
3860
  /**
3061
- * Submit a transaction intent describing an SVM transaction you would like to broadcast.
3861
+ * Submit a transaction intent describing an SVM transaction you would like to broadcast. Supports single- and multi-signer intents via activity type versioning.
3062
3862
  *
3063
3863
  * Sign the provided `TSolSendTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sol_send_transaction).
3064
3864
  *
@@ -3232,6 +4032,31 @@ class TurnkeyClient {
3232
4032
  url: fullUrl,
3233
4033
  };
3234
4034
  };
4035
+ /**
4036
+ * Update an MFA policy for a user.
4037
+ *
4038
+ * Sign the provided `TUpdateMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_mfa_policy).
4039
+ *
4040
+ * See also {@link stampUpdateMfaPolicy}.
4041
+ */
4042
+ this.updateMfaPolicy = async (input) => {
4043
+ return this.request("/public/v1/submit/update_mfa_policy", input);
4044
+ };
4045
+ /**
4046
+ * Produce a `SignedRequest` from `TUpdateMfaPolicyBody` by using the client's `stamp` function.
4047
+ *
4048
+ * See also {@link UpdateMfaPolicy}.
4049
+ */
4050
+ this.stampUpdateMfaPolicy = async (input) => {
4051
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/update_mfa_policy";
4052
+ const body = JSON.stringify(input);
4053
+ const stamp = await this.stamper.stamp(body);
4054
+ return {
4055
+ body: body,
4056
+ stamp: stamp,
4057
+ url: fullUrl,
4058
+ };
4059
+ };
3235
4060
  /**
3236
4061
  * Update an OAuth 2.0 provider credential
3237
4062
  *
@@ -3532,6 +4357,31 @@ class TurnkeyClient {
3532
4357
  url: fullUrl,
3533
4358
  };
3534
4359
  };
4360
+ /**
4361
+ * Enable or disable swap configuration for an organization.
4362
+ *
4363
+ * Sign the provided `TUpsertSwapConfigBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/upsert_swap_config).
4364
+ *
4365
+ * See also {@link stampUpsertSwapConfig}.
4366
+ */
4367
+ this.upsertSwapConfig = async (input) => {
4368
+ return this.request("/public/v1/submit/upsert_swap_config", input);
4369
+ };
4370
+ /**
4371
+ * Produce a `SignedRequest` from `TUpsertSwapConfigBody` by using the client's `stamp` function.
4372
+ *
4373
+ * See also {@link UpsertSwapConfig}.
4374
+ */
4375
+ this.stampUpsertSwapConfig = async (input) => {
4376
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/upsert_swap_config";
4377
+ const body = JSON.stringify(input);
4378
+ const stamp = await this.stamper.stamp(body);
4379
+ return {
4380
+ body: body,
4381
+ stamp: stamp,
4382
+ url: fullUrl,
4383
+ };
4384
+ };
3535
4385
  /**
3536
4386
  * Verify a generic OTP.
3537
4387
  *