@turnkey/http 4.1.1 → 5.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 +34 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +407 -2
  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 +677 -2
  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 +677 -2
  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 +58506 -7998
  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 +650 -2
  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 +597 -3
  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 +1455 -21
  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 +4 -4
@@ -3,6 +3,116 @@
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
+ });
6
116
  /**
7
117
  * Get activity
8
118
  *
@@ -223,6 +333,72 @@ const signGetLatestBootProof = (input, options) => base.signedRequest({
223
333
  body: input.body,
224
334
  options,
225
335
  });
336
+ /**
337
+ * Get MFA policies
338
+ *
339
+ * Get all MFA policies for a user.
340
+ *
341
+ * `POST /public/v1/query/get_mfa_policies`
342
+ */
343
+ const getMfaPolicies = (input) => base.request({
344
+ uri: "/public/v1/query/get_mfa_policies",
345
+ method: "POST",
346
+ body: input.body,
347
+ });
348
+ /**
349
+ * Request a WebAuthn assertion and return a signed `GetMfaPolicies` request, ready to be POSTed to Turnkey.
350
+ *
351
+ * See {@link GetMfaPolicies}
352
+ */
353
+ const signGetMfaPolicies = (input, options) => base.signedRequest({
354
+ uri: "/public/v1/query/get_mfa_policies",
355
+ body: input.body,
356
+ options,
357
+ });
358
+ /**
359
+ * Get MFA policy
360
+ *
361
+ * Get a single MFA policy for a user.
362
+ *
363
+ * `POST /public/v1/query/get_mfa_policy`
364
+ */
365
+ const getMfaPolicy = (input) => base.request({
366
+ uri: "/public/v1/query/get_mfa_policy",
367
+ method: "POST",
368
+ body: input.body,
369
+ });
370
+ /**
371
+ * Request a WebAuthn assertion and return a signed `GetMfaPolicy` request, ready to be POSTed to Turnkey.
372
+ *
373
+ * See {@link GetMfaPolicy}
374
+ */
375
+ const signGetMfaPolicy = (input, options) => base.signedRequest({
376
+ uri: "/public/v1/query/get_mfa_policy",
377
+ body: input.body,
378
+ options,
379
+ });
380
+ /**
381
+ * Get MFA status
382
+ *
383
+ * Get the MFA status of an activity for a specific user or all voting users.
384
+ *
385
+ * `POST /public/v1/query/get_mfa_status`
386
+ */
387
+ const getMfaStatus = (input) => base.request({
388
+ uri: "/public/v1/query/get_mfa_status",
389
+ method: "POST",
390
+ body: input.body,
391
+ });
392
+ /**
393
+ * Request a WebAuthn assertion and return a signed `GetMfaStatus` request, ready to be POSTed to Turnkey.
394
+ *
395
+ * See {@link GetMfaStatus}
396
+ */
397
+ const signGetMfaStatus = (input, options) => base.signedRequest({
398
+ uri: "/public/v1/query/get_mfa_status",
399
+ body: input.body,
400
+ options,
401
+ });
226
402
  /**
227
403
  * Get nonces
228
404
  *
@@ -443,6 +619,50 @@ const signGetSendTransactionStatus = (input, options) => base.signedRequest({
443
619
  body: input.body,
444
620
  options,
445
621
  });
622
+ /**
623
+ * Get session profile
624
+ *
625
+ * Get a single session profile for an organization.
626
+ *
627
+ * `POST /public/v1/query/get_session_profile`
628
+ */
629
+ const getSessionProfile = (input) => base.request({
630
+ uri: "/public/v1/query/get_session_profile",
631
+ method: "POST",
632
+ body: input.body,
633
+ });
634
+ /**
635
+ * Request a WebAuthn assertion and return a signed `GetSessionProfile` request, ready to be POSTed to Turnkey.
636
+ *
637
+ * See {@link GetSessionProfile}
638
+ */
639
+ const signGetSessionProfile = (input, options) => base.signedRequest({
640
+ uri: "/public/v1/query/get_session_profile",
641
+ body: input.body,
642
+ options,
643
+ });
644
+ /**
645
+ * Get session profiles
646
+ *
647
+ * Get all session profiles for an organization.
648
+ *
649
+ * `POST /public/v1/query/get_session_profiles`
650
+ */
651
+ const getSessionProfiles = (input) => base.request({
652
+ uri: "/public/v1/query/get_session_profiles",
653
+ method: "POST",
654
+ body: input.body,
655
+ });
656
+ /**
657
+ * Request a WebAuthn assertion and return a signed `GetSessionProfiles` request, ready to be POSTed to Turnkey.
658
+ *
659
+ * See {@link GetSessionProfiles}
660
+ */
661
+ const signGetSessionProfiles = (input, options) => base.signedRequest({
662
+ uri: "/public/v1/query/get_session_profiles",
663
+ body: input.body,
664
+ options,
665
+ });
446
666
  /**
447
667
  * Get smart contract interface
448
668
  *
@@ -465,6 +685,50 @@ const signGetSmartContractInterface = (input, options) => base.signedRequest({
465
685
  body: input.body,
466
686
  options,
467
687
  });
688
+ /**
689
+ * Get swap quote
690
+ *
691
+ * Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
692
+ *
693
+ * `POST /public/v1/query/get_swap_quote`
694
+ */
695
+ const getSwapQuote = (input) => base.request({
696
+ uri: "/public/v1/query/get_swap_quote",
697
+ method: "POST",
698
+ body: input.body,
699
+ });
700
+ /**
701
+ * Request a WebAuthn assertion and return a signed `GetSwapQuote` request, ready to be POSTed to Turnkey.
702
+ *
703
+ * See {@link GetSwapQuote}
704
+ */
705
+ const signGetSwapQuote = (input, options) => base.signedRequest({
706
+ uri: "/public/v1/query/get_swap_quote",
707
+ body: input.body,
708
+ options,
709
+ });
710
+ /**
711
+ * Get swap status
712
+ *
713
+ * Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps.
714
+ *
715
+ * `POST /public/v1/query/get_swap_status`
716
+ */
717
+ const getSwapStatus = (input) => base.request({
718
+ uri: "/public/v1/query/get_swap_status",
719
+ method: "POST",
720
+ body: input.body,
721
+ });
722
+ /**
723
+ * Request a WebAuthn assertion and return a signed `GetSwapStatus` request, ready to be POSTed to Turnkey.
724
+ *
725
+ * See {@link GetSwapStatus}
726
+ */
727
+ const signGetSwapStatus = (input, options) => base.signedRequest({
728
+ uri: "/public/v1/query/get_swap_status",
729
+ body: input.body,
730
+ options,
731
+ });
468
732
  /**
469
733
  * Get TVC App
470
734
  *
@@ -509,6 +773,28 @@ const signGetTvcDeployment = (input, options) => base.signedRequest({
509
773
  body: input.body,
510
774
  options,
511
775
  });
776
+ /**
777
+ * Get TVC Deployment debug logs
778
+ *
779
+ * 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.
780
+ *
781
+ * `POST /public/v1/query/get_tvc_deployment_debug_logs`
782
+ */
783
+ const getTvcDeploymentDebugLogs = (input) => base.request({
784
+ uri: "/public/v1/query/get_tvc_deployment_debug_logs",
785
+ method: "POST",
786
+ body: input.body,
787
+ });
788
+ /**
789
+ * Request a WebAuthn assertion and return a signed `GetTvcDeploymentDebugLogs` request, ready to be POSTed to Turnkey.
790
+ *
791
+ * See {@link GetTvcDeploymentDebugLogs}
792
+ */
793
+ const signGetTvcDeploymentDebugLogs = (input, options) => base.signedRequest({
794
+ uri: "/public/v1/query/get_tvc_deployment_debug_logs",
795
+ body: input.body,
796
+ options,
797
+ });
512
798
  /**
513
799
  * Get TVC Deployment's Provisioning Details
514
800
  *
@@ -600,7 +886,7 @@ const signGetWalletAccount = (input, options) => base.signedRequest({
600
886
  /**
601
887
  * Get balances
602
888
  *
603
- * 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.
889
+ * Get balances of supported assets for an address on the specified network. Only non-zero balances are returned.
604
890
  *
605
891
  * `POST /public/v1/query/get_wallet_address_balances`
606
892
  */
@@ -663,6 +949,28 @@ const signGetAppProofs = (input, options) => base.signedRequest({
663
949
  body: input.body,
664
950
  options,
665
951
  });
952
+ /**
953
+ * List email events
954
+ *
955
+ * List email events for the organization.
956
+ *
957
+ * `POST /public/v1/query/list_email_events`
958
+ */
959
+ const listEmailEvents = (input) => base.request({
960
+ uri: "/public/v1/query/list_email_events",
961
+ method: "POST",
962
+ body: input.body,
963
+ });
964
+ /**
965
+ * Request a WebAuthn assertion and return a signed `ListEmailEvents` request, ready to be POSTed to Turnkey.
966
+ *
967
+ * See {@link ListEmailEvents}
968
+ */
969
+ const signListEmailEvents = (input, options) => base.signedRequest({
970
+ uri: "/public/v1/query/list_email_events",
971
+ body: input.body,
972
+ options,
973
+ });
666
974
  /**
667
975
  * List Fiat On Ramp Credentials
668
976
  *
@@ -820,7 +1128,7 @@ const signGetSubOrgIds = (input, options) => base.signedRequest({
820
1128
  /**
821
1129
  * List supported assets
822
1130
  *
823
- * List supported assets for the specified network. This feature is in beta - please contact support for access.
1131
+ * List supported assets for the specified network.
824
1132
  *
825
1133
  * `POST /public/v1/query/list_supported_assets`
826
1134
  */
@@ -1191,6 +1499,28 @@ const signCreateInvitations = (input, options) => base.signedRequest({
1191
1499
  body: input.body,
1192
1500
  options,
1193
1501
  });
1502
+ /**
1503
+ * Create MFA policy
1504
+ *
1505
+ * Create a new MFA policy for a user.
1506
+ *
1507
+ * `POST /public/v1/submit/create_mfa_policy`
1508
+ */
1509
+ const createMfaPolicy = (input) => base.request({
1510
+ uri: "/public/v1/submit/create_mfa_policy",
1511
+ method: "POST",
1512
+ body: input.body,
1513
+ });
1514
+ /**
1515
+ * Request a WebAuthn assertion and return a signed `CreateMfaPolicy` request, ready to be POSTed to Turnkey.
1516
+ *
1517
+ * See {@link CreateMfaPolicy}
1518
+ */
1519
+ const signCreateMfaPolicy = (input, options) => base.signedRequest({
1520
+ uri: "/public/v1/submit/create_mfa_policy",
1521
+ body: input.body,
1522
+ options,
1523
+ });
1194
1524
  /**
1195
1525
  * Create an OAuth 2.0 Credential
1196
1526
  *
@@ -1367,6 +1697,28 @@ const signCreateReadWriteSession = (input, options) => base.signedRequest({
1367
1697
  body: input.body,
1368
1698
  options,
1369
1699
  });
1700
+ /**
1701
+ * Create session profile
1702
+ *
1703
+ * Create a new session profile for an organization.
1704
+ *
1705
+ * `POST /public/v1/submit/create_session_profile`
1706
+ */
1707
+ const createSessionProfile = (input) => base.request({
1708
+ uri: "/public/v1/submit/create_session_profile",
1709
+ method: "POST",
1710
+ body: input.body,
1711
+ });
1712
+ /**
1713
+ * Request a WebAuthn assertion and return a signed `CreateSessionProfile` request, ready to be POSTed to Turnkey.
1714
+ *
1715
+ * See {@link CreateSessionProfile}
1716
+ */
1717
+ const signCreateSessionProfile = (input, options) => base.signedRequest({
1718
+ uri: "/public/v1/submit/create_session_profile",
1719
+ body: input.body,
1720
+ options,
1721
+ });
1370
1722
  /**
1371
1723
  * Create smart contract interface
1372
1724
  *
@@ -1477,6 +1829,50 @@ const signCreateTvcManifestApprovals = (input, options) => base.signedRequest({
1477
1829
  body: input.body,
1478
1830
  options,
1479
1831
  });
1832
+ /**
1833
+ * Create TVC Operator
1834
+ *
1835
+ * Create a TVC Operator backed by uncompressed P-256 Turnkey wallet accounts
1836
+ *
1837
+ * `POST /public/v1/submit/create_tvc_operator`
1838
+ */
1839
+ const createTvcOperator = (input) => base.request({
1840
+ uri: "/public/v1/submit/create_tvc_operator",
1841
+ method: "POST",
1842
+ body: input.body,
1843
+ });
1844
+ /**
1845
+ * Request a WebAuthn assertion and return a signed `CreateTvcOperator` request, ready to be POSTed to Turnkey.
1846
+ *
1847
+ * See {@link CreateTvcOperator}
1848
+ */
1849
+ const signCreateTvcOperator = (input, options) => base.signedRequest({
1850
+ uri: "/public/v1/submit/create_tvc_operator",
1851
+ body: input.body,
1852
+ options,
1853
+ });
1854
+ /**
1855
+ * Create TVC Quorum Key
1856
+ *
1857
+ * Create a hosted TVC quorum key and encrypted shares.
1858
+ *
1859
+ * `POST /public/v1/submit/create_tvc_quorum_key`
1860
+ */
1861
+ const createTvcQuorumKey = (input) => base.request({
1862
+ uri: "/public/v1/submit/create_tvc_quorum_key",
1863
+ method: "POST",
1864
+ body: input.body,
1865
+ });
1866
+ /**
1867
+ * Request a WebAuthn assertion and return a signed `CreateTvcQuorumKey` request, ready to be POSTed to Turnkey.
1868
+ *
1869
+ * See {@link CreateTvcQuorumKey}
1870
+ */
1871
+ const signCreateTvcQuorumKey = (input, options) => base.signedRequest({
1872
+ uri: "/public/v1/submit/create_tvc_quorum_key",
1873
+ body: input.body,
1874
+ options,
1875
+ });
1480
1876
  /**
1481
1877
  * Create user tag
1482
1878
  *
@@ -1675,6 +2071,28 @@ const signDeleteInvitation = (input, options) => base.signedRequest({
1675
2071
  body: input.body,
1676
2072
  options,
1677
2073
  });
2074
+ /**
2075
+ * Delete MFA policy
2076
+ *
2077
+ * Delete an MFA policy for a user.
2078
+ *
2079
+ * `POST /public/v1/submit/delete_mfa_policy`
2080
+ */
2081
+ const deleteMfaPolicy = (input) => base.request({
2082
+ uri: "/public/v1/submit/delete_mfa_policy",
2083
+ method: "POST",
2084
+ body: input.body,
2085
+ });
2086
+ /**
2087
+ * Request a WebAuthn assertion and return a signed `DeleteMfaPolicy` request, ready to be POSTed to Turnkey.
2088
+ *
2089
+ * See {@link DeleteMfaPolicy}
2090
+ */
2091
+ const signDeleteMfaPolicy = (input, options) => base.signedRequest({
2092
+ uri: "/public/v1/submit/delete_mfa_policy",
2093
+ body: input.body,
2094
+ options,
2095
+ });
1678
2096
  /**
1679
2097
  * Delete an OAuth 2.0 Credential
1680
2098
  *
@@ -2005,6 +2423,72 @@ const signDeleteWebhookEndpoint = (input, options) => base.signedRequest({
2005
2423
  body: input.body,
2006
2424
  options,
2007
2425
  });
2426
+ /**
2427
+ * Deploy Earn wrapper
2428
+ *
2429
+ * Enable a yield vault for an organization by deploying its fee wrapper. Must be called before any deposits into the vault.
2430
+ *
2431
+ * `POST /public/v1/submit/earn_deploy_wrapper`
2432
+ */
2433
+ const earnDeployWrapper = (input) => base.request({
2434
+ uri: "/public/v1/submit/earn_deploy_wrapper",
2435
+ method: "POST",
2436
+ body: input.body,
2437
+ });
2438
+ /**
2439
+ * Request a WebAuthn assertion and return a signed `EarnDeployWrapper` request, ready to be POSTed to Turnkey.
2440
+ *
2441
+ * See {@link EarnDeployWrapper}
2442
+ */
2443
+ const signEarnDeployWrapper = (input, options) => base.signedRequest({
2444
+ uri: "/public/v1/submit/earn_deploy_wrapper",
2445
+ body: input.body,
2446
+ options,
2447
+ });
2448
+ /**
2449
+ * Deposit into Earn vault
2450
+ *
2451
+ * Deposit assets from a wallet into an enabled yield vault.
2452
+ *
2453
+ * `POST /public/v1/submit/earn_deposit`
2454
+ */
2455
+ const earnDeposit = (input) => base.request({
2456
+ uri: "/public/v1/submit/earn_deposit",
2457
+ method: "POST",
2458
+ body: input.body,
2459
+ });
2460
+ /**
2461
+ * Request a WebAuthn assertion and return a signed `EarnDeposit` request, ready to be POSTed to Turnkey.
2462
+ *
2463
+ * See {@link EarnDeposit}
2464
+ */
2465
+ const signEarnDeposit = (input, options) => base.signedRequest({
2466
+ uri: "/public/v1/submit/earn_deposit",
2467
+ body: input.body,
2468
+ options,
2469
+ });
2470
+ /**
2471
+ * Withdraw from Earn vault
2472
+ *
2473
+ * Withdraw assets or redeem shares from an enabled yield vault.
2474
+ *
2475
+ * `POST /public/v1/submit/earn_withdraw`
2476
+ */
2477
+ const earnWithdraw = (input) => base.request({
2478
+ uri: "/public/v1/submit/earn_withdraw",
2479
+ method: "POST",
2480
+ body: input.body,
2481
+ });
2482
+ /**
2483
+ * Request a WebAuthn assertion and return a signed `EarnWithdraw` request, ready to be POSTed to Turnkey.
2484
+ *
2485
+ * See {@link EarnWithdraw}
2486
+ */
2487
+ const signEarnWithdraw = (input, options) => base.signedRequest({
2488
+ uri: "/public/v1/submit/earn_withdraw",
2489
+ body: input.body,
2490
+ options,
2491
+ });
2008
2492
  /**
2009
2493
  * Perform email auth
2010
2494
  *
@@ -2071,6 +2555,28 @@ const signEthSendTransaction = (input, options) => base.signedRequest({
2071
2555
  body: input.body,
2072
2556
  options,
2073
2557
  });
2558
+ /**
2559
+ * Execute swap
2560
+ *
2561
+ * Execute a quoted swap through the activity pipeline and Turnkey broadcasting.
2562
+ *
2563
+ * `POST /public/v1/submit/execute_swap`
2564
+ */
2565
+ const executeSwap = (input) => base.request({
2566
+ uri: "/public/v1/submit/execute_swap",
2567
+ method: "POST",
2568
+ body: input.body,
2569
+ });
2570
+ /**
2571
+ * Request a WebAuthn assertion and return a signed `ExecuteSwap` request, ready to be POSTed to Turnkey.
2572
+ *
2573
+ * See {@link ExecuteSwap}
2574
+ */
2575
+ const signExecuteSwap = (input, options) => base.signedRequest({
2576
+ uri: "/public/v1/submit/execute_swap",
2577
+ body: input.body,
2578
+ options,
2579
+ });
2074
2580
  /**
2075
2581
  * Export private key
2076
2582
  *
@@ -2445,6 +2951,28 @@ const signPostTvcQuorumKeyShare = (input, options) => base.signedRequest({
2445
2951
  body: input.body,
2446
2952
  options,
2447
2953
  });
2954
+ /**
2955
+ * Re-encrypt TVC Quorum Key Share
2956
+ *
2957
+ * Re-encrypt a hosted TVC quorum key share for a deployment.
2958
+ *
2959
+ * `POST /public/v1/submit/re_encrypt_tvc_quorum_key_share`
2960
+ */
2961
+ const reEncryptTvcQuorumKeyShare = (input) => base.request({
2962
+ uri: "/public/v1/submit/re_encrypt_tvc_quorum_key_share",
2963
+ method: "POST",
2964
+ body: input.body,
2965
+ });
2966
+ /**
2967
+ * Request a WebAuthn assertion and return a signed `ReEncryptTvcQuorumKeyShare` request, ready to be POSTed to Turnkey.
2968
+ *
2969
+ * See {@link ReEncryptTvcQuorumKeyShare}
2970
+ */
2971
+ const signReEncryptTvcQuorumKeyShare = (input, options) => base.signedRequest({
2972
+ uri: "/public/v1/submit/re_encrypt_tvc_quorum_key_share",
2973
+ body: input.body,
2974
+ options,
2975
+ });
2448
2976
  /**
2449
2977
  * Recover a user
2450
2978
  *
@@ -2841,6 +3369,28 @@ const signUpdateFiatOnRampCredential = (input, options) => base.signedRequest({
2841
3369
  body: input.body,
2842
3370
  options,
2843
3371
  });
3372
+ /**
3373
+ * Update MFA policy
3374
+ *
3375
+ * Update an MFA policy for a user.
3376
+ *
3377
+ * `POST /public/v1/submit/update_mfa_policy`
3378
+ */
3379
+ const updateMfaPolicy = (input) => base.request({
3380
+ uri: "/public/v1/submit/update_mfa_policy",
3381
+ method: "POST",
3382
+ body: input.body,
3383
+ });
3384
+ /**
3385
+ * Request a WebAuthn assertion and return a signed `UpdateMfaPolicy` request, ready to be POSTed to Turnkey.
3386
+ *
3387
+ * See {@link UpdateMfaPolicy}
3388
+ */
3389
+ const signUpdateMfaPolicy = (input, options) => base.signedRequest({
3390
+ uri: "/public/v1/submit/update_mfa_policy",
3391
+ body: input.body,
3392
+ options,
3393
+ });
2844
3394
  /**
2845
3395
  * Update an OAuth 2.0 Credential
2846
3396
  *
@@ -3105,6 +3655,50 @@ const signUpdateWebhookEndpoint = (input, options) => base.signedRequest({
3105
3655
  body: input.body,
3106
3656
  options,
3107
3657
  });
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
+ /**
3681
+ * Upsert swap config
3682
+ *
3683
+ * Enable or disable swap configuration for an organization.
3684
+ *
3685
+ * `POST /public/v1/submit/upsert_swap_config`
3686
+ */
3687
+ const upsertSwapConfig = (input) => base.request({
3688
+ uri: "/public/v1/submit/upsert_swap_config",
3689
+ method: "POST",
3690
+ body: input.body,
3691
+ });
3692
+ /**
3693
+ * Request a WebAuthn assertion and return a signed `UpsertSwapConfig` request, ready to be POSTed to Turnkey.
3694
+ *
3695
+ * See {@link UpsertSwapConfig}
3696
+ */
3697
+ const signUpsertSwapConfig = (input, options) => base.signedRequest({
3698
+ uri: "/public/v1/submit/upsert_swap_config",
3699
+ body: input.body,
3700
+ options,
3701
+ });
3108
3702
  /**
3109
3703
  * Verify generic OTP
3110
3704
  *
@@ -3193,6 +3787,7 @@ exports.createApiOnlyUsers = createApiOnlyUsers;
3193
3787
  exports.createAuthenticators = createAuthenticators;
3194
3788
  exports.createFiatOnRampCredential = createFiatOnRampCredential;
3195
3789
  exports.createInvitations = createInvitations;
3790
+ exports.createMfaPolicy = createMfaPolicy;
3196
3791
  exports.createOauth2Credential = createOauth2Credential;
3197
3792
  exports.createOauthProviders = createOauthProviders;
3198
3793
  exports.createPolicies = createPolicies;
@@ -3201,11 +3796,14 @@ exports.createPrivateKeyTag = createPrivateKeyTag;
3201
3796
  exports.createPrivateKeys = createPrivateKeys;
3202
3797
  exports.createReadOnlySession = createReadOnlySession;
3203
3798
  exports.createReadWriteSession = createReadWriteSession;
3799
+ exports.createSessionProfile = createSessionProfile;
3204
3800
  exports.createSmartContractInterface = createSmartContractInterface;
3205
3801
  exports.createSubOrganization = createSubOrganization;
3206
3802
  exports.createTvcApp = createTvcApp;
3207
3803
  exports.createTvcDeployment = createTvcDeployment;
3208
3804
  exports.createTvcManifestApprovals = createTvcManifestApprovals;
3805
+ exports.createTvcOperator = createTvcOperator;
3806
+ exports.createTvcQuorumKey = createTvcQuorumKey;
3209
3807
  exports.createUserTag = createUserTag;
3210
3808
  exports.createUsers = createUsers;
3211
3809
  exports.createWallet = createWallet;
@@ -3215,6 +3813,7 @@ exports.deleteApiKeys = deleteApiKeys;
3215
3813
  exports.deleteAuthenticators = deleteAuthenticators;
3216
3814
  exports.deleteFiatOnRampCredential = deleteFiatOnRampCredential;
3217
3815
  exports.deleteInvitation = deleteInvitation;
3816
+ exports.deleteMfaPolicy = deleteMfaPolicy;
3218
3817
  exports.deleteOauth2Credential = deleteOauth2Credential;
3219
3818
  exports.deleteOauthProviders = deleteOauthProviders;
3220
3819
  exports.deletePolicies = deletePolicies;
@@ -3230,9 +3829,18 @@ exports.deleteUsers = deleteUsers;
3230
3829
  exports.deleteWalletAccounts = deleteWalletAccounts;
3231
3830
  exports.deleteWallets = deleteWallets;
3232
3831
  exports.deleteWebhookEndpoint = deleteWebhookEndpoint;
3832
+ exports.earnDeployWrapper = earnDeployWrapper;
3833
+ exports.earnDeposit = earnDeposit;
3834
+ exports.earnDepositStatus = earnDepositStatus;
3835
+ exports.earnEnabledVaults = earnEnabledVaults;
3836
+ exports.earnPositions = earnPositions;
3837
+ exports.earnVaults = earnVaults;
3838
+ exports.earnWithdraw = earnWithdraw;
3839
+ exports.earnWithdrawStatus = earnWithdrawStatus;
3233
3840
  exports.emailAuth = emailAuth;
3234
3841
  exports.ethSendRawTransaction = ethSendRawTransaction;
3235
3842
  exports.ethSendTransaction = ethSendTransaction;
3843
+ exports.executeSwap = executeSwap;
3236
3844
  exports.exportPrivateKey = exportPrivateKey;
3237
3845
  exports.exportWallet = exportWallet;
3238
3846
  exports.exportWalletAccount = exportWalletAccount;
@@ -3248,6 +3856,9 @@ exports.getBootProof = getBootProof;
3248
3856
  exports.getGasUsage = getGasUsage;
3249
3857
  exports.getIpAllowlist = getIpAllowlist;
3250
3858
  exports.getLatestBootProof = getLatestBootProof;
3859
+ exports.getMfaPolicies = getMfaPolicies;
3860
+ exports.getMfaPolicy = getMfaPolicy;
3861
+ exports.getMfaStatus = getMfaStatus;
3251
3862
  exports.getNonces = getNonces;
3252
3863
  exports.getOauth2Credential = getOauth2Credential;
3253
3864
  exports.getOauthProviders = getOauthProviders;
@@ -3260,13 +3871,18 @@ exports.getPolicyEvaluations = getPolicyEvaluations;
3260
3871
  exports.getPrivateKey = getPrivateKey;
3261
3872
  exports.getPrivateKeys = getPrivateKeys;
3262
3873
  exports.getSendTransactionStatus = getSendTransactionStatus;
3874
+ exports.getSessionProfile = getSessionProfile;
3875
+ exports.getSessionProfiles = getSessionProfiles;
3263
3876
  exports.getSmartContractInterface = getSmartContractInterface;
3264
3877
  exports.getSmartContractInterfaces = getSmartContractInterfaces;
3265
3878
  exports.getSubOrgIds = getSubOrgIds;
3879
+ exports.getSwapQuote = getSwapQuote;
3880
+ exports.getSwapStatus = getSwapStatus;
3266
3881
  exports.getTvcApp = getTvcApp;
3267
3882
  exports.getTvcAppDeployments = getTvcAppDeployments;
3268
3883
  exports.getTvcApps = getTvcApps;
3269
3884
  exports.getTvcDeployment = getTvcDeployment;
3885
+ exports.getTvcDeploymentDebugLogs = getTvcDeploymentDebugLogs;
3270
3886
  exports.getTvcDeploymentProvisioningDetails = getTvcDeploymentProvisioningDetails;
3271
3887
  exports.getUser = getUser;
3272
3888
  exports.getUsers = getUsers;
@@ -3285,6 +3901,7 @@ exports.initImportWallet = initImportWallet;
3285
3901
  exports.initOtp = initOtp;
3286
3902
  exports.initOtpAuth = initOtpAuth;
3287
3903
  exports.initUserEmailRecovery = initUserEmailRecovery;
3904
+ exports.listEmailEvents = listEmailEvents;
3288
3905
  exports.listFiatOnRampCredentials = listFiatOnRampCredentials;
3289
3906
  exports.listOauth2Credentials = listOauth2Credentials;
3290
3907
  exports.listPrivateKeyTags = listPrivateKeyTags;
@@ -3298,6 +3915,7 @@ exports.oauthLogin = oauthLogin;
3298
3915
  exports.otpAuth = otpAuth;
3299
3916
  exports.otpLogin = otpLogin;
3300
3917
  exports.postTvcQuorumKeyShare = postTvcQuorumKeyShare;
3918
+ exports.reEncryptTvcQuorumKeyShare = reEncryptTvcQuorumKeyShare;
3301
3919
  exports.recoverUser = recoverUser;
3302
3920
  exports.refreshFeatureFlags = refreshFeatureFlags;
3303
3921
  exports.rejectActivity = rejectActivity;
@@ -3312,6 +3930,7 @@ exports.signCreateApiOnlyUsers = signCreateApiOnlyUsers;
3312
3930
  exports.signCreateAuthenticators = signCreateAuthenticators;
3313
3931
  exports.signCreateFiatOnRampCredential = signCreateFiatOnRampCredential;
3314
3932
  exports.signCreateInvitations = signCreateInvitations;
3933
+ exports.signCreateMfaPolicy = signCreateMfaPolicy;
3315
3934
  exports.signCreateOauth2Credential = signCreateOauth2Credential;
3316
3935
  exports.signCreateOauthProviders = signCreateOauthProviders;
3317
3936
  exports.signCreatePolicies = signCreatePolicies;
@@ -3320,11 +3939,14 @@ exports.signCreatePrivateKeyTag = signCreatePrivateKeyTag;
3320
3939
  exports.signCreatePrivateKeys = signCreatePrivateKeys;
3321
3940
  exports.signCreateReadOnlySession = signCreateReadOnlySession;
3322
3941
  exports.signCreateReadWriteSession = signCreateReadWriteSession;
3942
+ exports.signCreateSessionProfile = signCreateSessionProfile;
3323
3943
  exports.signCreateSmartContractInterface = signCreateSmartContractInterface;
3324
3944
  exports.signCreateSubOrganization = signCreateSubOrganization;
3325
3945
  exports.signCreateTvcApp = signCreateTvcApp;
3326
3946
  exports.signCreateTvcDeployment = signCreateTvcDeployment;
3327
3947
  exports.signCreateTvcManifestApprovals = signCreateTvcManifestApprovals;
3948
+ exports.signCreateTvcOperator = signCreateTvcOperator;
3949
+ exports.signCreateTvcQuorumKey = signCreateTvcQuorumKey;
3328
3950
  exports.signCreateUserTag = signCreateUserTag;
3329
3951
  exports.signCreateUsers = signCreateUsers;
3330
3952
  exports.signCreateWallet = signCreateWallet;
@@ -3334,6 +3956,7 @@ exports.signDeleteApiKeys = signDeleteApiKeys;
3334
3956
  exports.signDeleteAuthenticators = signDeleteAuthenticators;
3335
3957
  exports.signDeleteFiatOnRampCredential = signDeleteFiatOnRampCredential;
3336
3958
  exports.signDeleteInvitation = signDeleteInvitation;
3959
+ exports.signDeleteMfaPolicy = signDeleteMfaPolicy;
3337
3960
  exports.signDeleteOauth2Credential = signDeleteOauth2Credential;
3338
3961
  exports.signDeleteOauthProviders = signDeleteOauthProviders;
3339
3962
  exports.signDeletePolicies = signDeletePolicies;
@@ -3349,9 +3972,18 @@ exports.signDeleteUsers = signDeleteUsers;
3349
3972
  exports.signDeleteWalletAccounts = signDeleteWalletAccounts;
3350
3973
  exports.signDeleteWallets = signDeleteWallets;
3351
3974
  exports.signDeleteWebhookEndpoint = signDeleteWebhookEndpoint;
3975
+ exports.signEarnDeployWrapper = signEarnDeployWrapper;
3976
+ exports.signEarnDeposit = signEarnDeposit;
3977
+ exports.signEarnDepositStatus = signEarnDepositStatus;
3978
+ exports.signEarnEnabledVaults = signEarnEnabledVaults;
3979
+ exports.signEarnPositions = signEarnPositions;
3980
+ exports.signEarnVaults = signEarnVaults;
3981
+ exports.signEarnWithdraw = signEarnWithdraw;
3982
+ exports.signEarnWithdrawStatus = signEarnWithdrawStatus;
3352
3983
  exports.signEmailAuth = signEmailAuth;
3353
3984
  exports.signEthSendRawTransaction = signEthSendRawTransaction;
3354
3985
  exports.signEthSendTransaction = signEthSendTransaction;
3986
+ exports.signExecuteSwap = signExecuteSwap;
3355
3987
  exports.signExportPrivateKey = signExportPrivateKey;
3356
3988
  exports.signExportWallet = signExportWallet;
3357
3989
  exports.signExportWalletAccount = signExportWalletAccount;
@@ -3367,6 +3999,9 @@ exports.signGetBootProof = signGetBootProof;
3367
3999
  exports.signGetGasUsage = signGetGasUsage;
3368
4000
  exports.signGetIpAllowlist = signGetIpAllowlist;
3369
4001
  exports.signGetLatestBootProof = signGetLatestBootProof;
4002
+ exports.signGetMfaPolicies = signGetMfaPolicies;
4003
+ exports.signGetMfaPolicy = signGetMfaPolicy;
4004
+ exports.signGetMfaStatus = signGetMfaStatus;
3370
4005
  exports.signGetNonces = signGetNonces;
3371
4006
  exports.signGetOauth2Credential = signGetOauth2Credential;
3372
4007
  exports.signGetOauthProviders = signGetOauthProviders;
@@ -3379,13 +4014,18 @@ exports.signGetPolicyEvaluations = signGetPolicyEvaluations;
3379
4014
  exports.signGetPrivateKey = signGetPrivateKey;
3380
4015
  exports.signGetPrivateKeys = signGetPrivateKeys;
3381
4016
  exports.signGetSendTransactionStatus = signGetSendTransactionStatus;
4017
+ exports.signGetSessionProfile = signGetSessionProfile;
4018
+ exports.signGetSessionProfiles = signGetSessionProfiles;
3382
4019
  exports.signGetSmartContractInterface = signGetSmartContractInterface;
3383
4020
  exports.signGetSmartContractInterfaces = signGetSmartContractInterfaces;
3384
4021
  exports.signGetSubOrgIds = signGetSubOrgIds;
4022
+ exports.signGetSwapQuote = signGetSwapQuote;
4023
+ exports.signGetSwapStatus = signGetSwapStatus;
3385
4024
  exports.signGetTvcApp = signGetTvcApp;
3386
4025
  exports.signGetTvcAppDeployments = signGetTvcAppDeployments;
3387
4026
  exports.signGetTvcApps = signGetTvcApps;
3388
4027
  exports.signGetTvcDeployment = signGetTvcDeployment;
4028
+ exports.signGetTvcDeploymentDebugLogs = signGetTvcDeploymentDebugLogs;
3389
4029
  exports.signGetTvcDeploymentProvisioningDetails = signGetTvcDeploymentProvisioningDetails;
3390
4030
  exports.signGetUser = signGetUser;
3391
4031
  exports.signGetUsers = signGetUsers;
@@ -3404,6 +4044,7 @@ exports.signInitImportWallet = signInitImportWallet;
3404
4044
  exports.signInitOtp = signInitOtp;
3405
4045
  exports.signInitOtpAuth = signInitOtpAuth;
3406
4046
  exports.signInitUserEmailRecovery = signInitUserEmailRecovery;
4047
+ exports.signListEmailEvents = signListEmailEvents;
3407
4048
  exports.signListFiatOnRampCredentials = signListFiatOnRampCredentials;
3408
4049
  exports.signListOauth2Credentials = signListOauth2Credentials;
3409
4050
  exports.signListPrivateKeyTags = signListPrivateKeyTags;
@@ -3419,6 +4060,7 @@ exports.signOtpLogin = signOtpLogin;
3419
4060
  exports.signPostTvcQuorumKeyShare = signPostTvcQuorumKeyShare;
3420
4061
  exports.signRawPayload = signRawPayload;
3421
4062
  exports.signRawPayloads = signRawPayloads;
4063
+ exports.signReEncryptTvcQuorumKeyShare = signReEncryptTvcQuorumKeyShare;
3422
4064
  exports.signRecoverUser = signRecoverUser;
3423
4065
  exports.signRefreshFeatureFlags = signRefreshFeatureFlags;
3424
4066
  exports.signRejectActivity = signRejectActivity;
@@ -3439,6 +4081,7 @@ exports.signStampLogin = signStampLogin;
3439
4081
  exports.signTestRateLimits = signTestRateLimits;
3440
4082
  exports.signTransaction = signTransaction;
3441
4083
  exports.signUpdateFiatOnRampCredential = signUpdateFiatOnRampCredential;
4084
+ exports.signUpdateMfaPolicy = signUpdateMfaPolicy;
3442
4085
  exports.signUpdateOauth2Credential = signUpdateOauth2Credential;
3443
4086
  exports.signUpdateOrganizationName = signUpdateOrganizationName;
3444
4087
  exports.signUpdatePolicy = signUpdatePolicy;
@@ -3452,6 +4095,8 @@ exports.signUpdateUserPhoneNumber = signUpdateUserPhoneNumber;
3452
4095
  exports.signUpdateUserTag = signUpdateUserTag;
3453
4096
  exports.signUpdateWallet = signUpdateWallet;
3454
4097
  exports.signUpdateWebhookEndpoint = signUpdateWebhookEndpoint;
4098
+ exports.signUpsertEarnClientFeeConfig = signUpsertEarnClientFeeConfig;
4099
+ exports.signUpsertSwapConfig = signUpsertSwapConfig;
3455
4100
  exports.signValidateTvcImage = signValidateTvcImage;
3456
4101
  exports.signVerifyOtp = signVerifyOtp;
3457
4102
  exports.solSendTransaction = solSendTransaction;
@@ -3462,6 +4107,7 @@ exports.sparkSignFrost = sparkSignFrost;
3462
4107
  exports.stampLogin = stampLogin;
3463
4108
  exports.testRateLimits = testRateLimits;
3464
4109
  exports.updateFiatOnRampCredential = updateFiatOnRampCredential;
4110
+ exports.updateMfaPolicy = updateMfaPolicy;
3465
4111
  exports.updateOauth2Credential = updateOauth2Credential;
3466
4112
  exports.updateOrganizationName = updateOrganizationName;
3467
4113
  exports.updatePolicy = updatePolicy;
@@ -3475,6 +4121,8 @@ exports.updateUserPhoneNumber = updateUserPhoneNumber;
3475
4121
  exports.updateUserTag = updateUserTag;
3476
4122
  exports.updateWallet = updateWallet;
3477
4123
  exports.updateWebhookEndpoint = updateWebhookEndpoint;
4124
+ exports.upsertEarnClientFeeConfig = upsertEarnClientFeeConfig;
4125
+ exports.upsertSwapConfig = upsertSwapConfig;
3478
4126
  exports.validateTvcImage = validateTvcImage;
3479
4127
  exports.verifyOtp = verifyOtp;
3480
4128
  //# sourceMappingURL=public_api.fetcher.js.map