@turnkey/http 4.1.0 → 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 (25) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +1 -1
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +407 -2
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +677 -2
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +677 -2
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +58506 -7998
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +650 -2
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +597 -3
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +1455 -21
  16. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  17. package/dist/async.d.ts.map +1 -1
  18. package/dist/async.js +24 -0
  19. package/dist/async.js.map +1 -1
  20. package/dist/async.mjs +24 -0
  21. package/dist/async.mjs.map +1 -1
  22. package/dist/version.d.ts +1 -1
  23. package/dist/version.js +1 -1
  24. package/dist/version.mjs +1 -1
  25. package/package.json +4 -4
@@ -1,6 +1,116 @@
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
+ });
4
114
  /**
5
115
  * Get activity
6
116
  *
@@ -221,6 +331,72 @@ const signGetLatestBootProof = (input, options) => signedRequest({
221
331
  body: input.body,
222
332
  options,
223
333
  });
334
+ /**
335
+ * Get MFA policies
336
+ *
337
+ * Get all MFA policies for a user.
338
+ *
339
+ * `POST /public/v1/query/get_mfa_policies`
340
+ */
341
+ const getMfaPolicies = (input) => request({
342
+ uri: "/public/v1/query/get_mfa_policies",
343
+ method: "POST",
344
+ body: input.body,
345
+ });
346
+ /**
347
+ * Request a WebAuthn assertion and return a signed `GetMfaPolicies` request, ready to be POSTed to Turnkey.
348
+ *
349
+ * See {@link GetMfaPolicies}
350
+ */
351
+ const signGetMfaPolicies = (input, options) => signedRequest({
352
+ uri: "/public/v1/query/get_mfa_policies",
353
+ body: input.body,
354
+ options,
355
+ });
356
+ /**
357
+ * Get MFA policy
358
+ *
359
+ * Get a single MFA policy for a user.
360
+ *
361
+ * `POST /public/v1/query/get_mfa_policy`
362
+ */
363
+ const getMfaPolicy = (input) => request({
364
+ uri: "/public/v1/query/get_mfa_policy",
365
+ method: "POST",
366
+ body: input.body,
367
+ });
368
+ /**
369
+ * Request a WebAuthn assertion and return a signed `GetMfaPolicy` request, ready to be POSTed to Turnkey.
370
+ *
371
+ * See {@link GetMfaPolicy}
372
+ */
373
+ const signGetMfaPolicy = (input, options) => signedRequest({
374
+ uri: "/public/v1/query/get_mfa_policy",
375
+ body: input.body,
376
+ options,
377
+ });
378
+ /**
379
+ * Get MFA status
380
+ *
381
+ * Get the MFA status of an activity for a specific user or all voting users.
382
+ *
383
+ * `POST /public/v1/query/get_mfa_status`
384
+ */
385
+ const getMfaStatus = (input) => request({
386
+ uri: "/public/v1/query/get_mfa_status",
387
+ method: "POST",
388
+ body: input.body,
389
+ });
390
+ /**
391
+ * Request a WebAuthn assertion and return a signed `GetMfaStatus` request, ready to be POSTed to Turnkey.
392
+ *
393
+ * See {@link GetMfaStatus}
394
+ */
395
+ const signGetMfaStatus = (input, options) => signedRequest({
396
+ uri: "/public/v1/query/get_mfa_status",
397
+ body: input.body,
398
+ options,
399
+ });
224
400
  /**
225
401
  * Get nonces
226
402
  *
@@ -441,6 +617,50 @@ const signGetSendTransactionStatus = (input, options) => signedRequest({
441
617
  body: input.body,
442
618
  options,
443
619
  });
620
+ /**
621
+ * Get session profile
622
+ *
623
+ * Get a single session profile for an organization.
624
+ *
625
+ * `POST /public/v1/query/get_session_profile`
626
+ */
627
+ const getSessionProfile = (input) => request({
628
+ uri: "/public/v1/query/get_session_profile",
629
+ method: "POST",
630
+ body: input.body,
631
+ });
632
+ /**
633
+ * Request a WebAuthn assertion and return a signed `GetSessionProfile` request, ready to be POSTed to Turnkey.
634
+ *
635
+ * See {@link GetSessionProfile}
636
+ */
637
+ const signGetSessionProfile = (input, options) => signedRequest({
638
+ uri: "/public/v1/query/get_session_profile",
639
+ body: input.body,
640
+ options,
641
+ });
642
+ /**
643
+ * Get session profiles
644
+ *
645
+ * Get all session profiles for an organization.
646
+ *
647
+ * `POST /public/v1/query/get_session_profiles`
648
+ */
649
+ const getSessionProfiles = (input) => request({
650
+ uri: "/public/v1/query/get_session_profiles",
651
+ method: "POST",
652
+ body: input.body,
653
+ });
654
+ /**
655
+ * Request a WebAuthn assertion and return a signed `GetSessionProfiles` request, ready to be POSTed to Turnkey.
656
+ *
657
+ * See {@link GetSessionProfiles}
658
+ */
659
+ const signGetSessionProfiles = (input, options) => signedRequest({
660
+ uri: "/public/v1/query/get_session_profiles",
661
+ body: input.body,
662
+ options,
663
+ });
444
664
  /**
445
665
  * Get smart contract interface
446
666
  *
@@ -463,6 +683,50 @@ const signGetSmartContractInterface = (input, options) => signedRequest({
463
683
  body: input.body,
464
684
  options,
465
685
  });
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
+ /**
709
+ * Get swap status
710
+ *
711
+ * Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps.
712
+ *
713
+ * `POST /public/v1/query/get_swap_status`
714
+ */
715
+ const getSwapStatus = (input) => request({
716
+ uri: "/public/v1/query/get_swap_status",
717
+ method: "POST",
718
+ body: input.body,
719
+ });
720
+ /**
721
+ * Request a WebAuthn assertion and return a signed `GetSwapStatus` request, ready to be POSTed to Turnkey.
722
+ *
723
+ * See {@link GetSwapStatus}
724
+ */
725
+ const signGetSwapStatus = (input, options) => signedRequest({
726
+ uri: "/public/v1/query/get_swap_status",
727
+ body: input.body,
728
+ options,
729
+ });
466
730
  /**
467
731
  * Get TVC App
468
732
  *
@@ -507,6 +771,28 @@ const signGetTvcDeployment = (input, options) => signedRequest({
507
771
  body: input.body,
508
772
  options,
509
773
  });
774
+ /**
775
+ * Get TVC Deployment debug logs
776
+ *
777
+ * 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.
778
+ *
779
+ * `POST /public/v1/query/get_tvc_deployment_debug_logs`
780
+ */
781
+ const getTvcDeploymentDebugLogs = (input) => request({
782
+ uri: "/public/v1/query/get_tvc_deployment_debug_logs",
783
+ method: "POST",
784
+ body: input.body,
785
+ });
786
+ /**
787
+ * Request a WebAuthn assertion and return a signed `GetTvcDeploymentDebugLogs` request, ready to be POSTed to Turnkey.
788
+ *
789
+ * See {@link GetTvcDeploymentDebugLogs}
790
+ */
791
+ const signGetTvcDeploymentDebugLogs = (input, options) => signedRequest({
792
+ uri: "/public/v1/query/get_tvc_deployment_debug_logs",
793
+ body: input.body,
794
+ options,
795
+ });
510
796
  /**
511
797
  * Get TVC Deployment's Provisioning Details
512
798
  *
@@ -598,7 +884,7 @@ const signGetWalletAccount = (input, options) => signedRequest({
598
884
  /**
599
885
  * Get balances
600
886
  *
601
- * 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.
887
+ * Get balances of supported assets for an address on the specified network. Only non-zero balances are returned.
602
888
  *
603
889
  * `POST /public/v1/query/get_wallet_address_balances`
604
890
  */
@@ -661,6 +947,28 @@ const signGetAppProofs = (input, options) => signedRequest({
661
947
  body: input.body,
662
948
  options,
663
949
  });
950
+ /**
951
+ * List email events
952
+ *
953
+ * List email events for the organization.
954
+ *
955
+ * `POST /public/v1/query/list_email_events`
956
+ */
957
+ const listEmailEvents = (input) => request({
958
+ uri: "/public/v1/query/list_email_events",
959
+ method: "POST",
960
+ body: input.body,
961
+ });
962
+ /**
963
+ * Request a WebAuthn assertion and return a signed `ListEmailEvents` request, ready to be POSTed to Turnkey.
964
+ *
965
+ * See {@link ListEmailEvents}
966
+ */
967
+ const signListEmailEvents = (input, options) => signedRequest({
968
+ uri: "/public/v1/query/list_email_events",
969
+ body: input.body,
970
+ options,
971
+ });
664
972
  /**
665
973
  * List Fiat On Ramp Credentials
666
974
  *
@@ -818,7 +1126,7 @@ const signGetSubOrgIds = (input, options) => signedRequest({
818
1126
  /**
819
1127
  * List supported assets
820
1128
  *
821
- * List supported assets for the specified network. This feature is in beta - please contact support for access.
1129
+ * List supported assets for the specified network.
822
1130
  *
823
1131
  * `POST /public/v1/query/list_supported_assets`
824
1132
  */
@@ -1189,6 +1497,28 @@ const signCreateInvitations = (input, options) => signedRequest({
1189
1497
  body: input.body,
1190
1498
  options,
1191
1499
  });
1500
+ /**
1501
+ * Create MFA policy
1502
+ *
1503
+ * Create a new MFA policy for a user.
1504
+ *
1505
+ * `POST /public/v1/submit/create_mfa_policy`
1506
+ */
1507
+ const createMfaPolicy = (input) => request({
1508
+ uri: "/public/v1/submit/create_mfa_policy",
1509
+ method: "POST",
1510
+ body: input.body,
1511
+ });
1512
+ /**
1513
+ * Request a WebAuthn assertion and return a signed `CreateMfaPolicy` request, ready to be POSTed to Turnkey.
1514
+ *
1515
+ * See {@link CreateMfaPolicy}
1516
+ */
1517
+ const signCreateMfaPolicy = (input, options) => signedRequest({
1518
+ uri: "/public/v1/submit/create_mfa_policy",
1519
+ body: input.body,
1520
+ options,
1521
+ });
1192
1522
  /**
1193
1523
  * Create an OAuth 2.0 Credential
1194
1524
  *
@@ -1365,6 +1695,28 @@ const signCreateReadWriteSession = (input, options) => signedRequest({
1365
1695
  body: input.body,
1366
1696
  options,
1367
1697
  });
1698
+ /**
1699
+ * Create session profile
1700
+ *
1701
+ * Create a new session profile for an organization.
1702
+ *
1703
+ * `POST /public/v1/submit/create_session_profile`
1704
+ */
1705
+ const createSessionProfile = (input) => request({
1706
+ uri: "/public/v1/submit/create_session_profile",
1707
+ method: "POST",
1708
+ body: input.body,
1709
+ });
1710
+ /**
1711
+ * Request a WebAuthn assertion and return a signed `CreateSessionProfile` request, ready to be POSTed to Turnkey.
1712
+ *
1713
+ * See {@link CreateSessionProfile}
1714
+ */
1715
+ const signCreateSessionProfile = (input, options) => signedRequest({
1716
+ uri: "/public/v1/submit/create_session_profile",
1717
+ body: input.body,
1718
+ options,
1719
+ });
1368
1720
  /**
1369
1721
  * Create smart contract interface
1370
1722
  *
@@ -1475,6 +1827,50 @@ const signCreateTvcManifestApprovals = (input, options) => signedRequest({
1475
1827
  body: input.body,
1476
1828
  options,
1477
1829
  });
1830
+ /**
1831
+ * Create TVC Operator
1832
+ *
1833
+ * Create a TVC Operator backed by uncompressed P-256 Turnkey wallet accounts
1834
+ *
1835
+ * `POST /public/v1/submit/create_tvc_operator`
1836
+ */
1837
+ const createTvcOperator = (input) => request({
1838
+ uri: "/public/v1/submit/create_tvc_operator",
1839
+ method: "POST",
1840
+ body: input.body,
1841
+ });
1842
+ /**
1843
+ * Request a WebAuthn assertion and return a signed `CreateTvcOperator` request, ready to be POSTed to Turnkey.
1844
+ *
1845
+ * See {@link CreateTvcOperator}
1846
+ */
1847
+ const signCreateTvcOperator = (input, options) => signedRequest({
1848
+ uri: "/public/v1/submit/create_tvc_operator",
1849
+ body: input.body,
1850
+ options,
1851
+ });
1852
+ /**
1853
+ * Create TVC Quorum Key
1854
+ *
1855
+ * Create a hosted TVC quorum key and encrypted shares.
1856
+ *
1857
+ * `POST /public/v1/submit/create_tvc_quorum_key`
1858
+ */
1859
+ const createTvcQuorumKey = (input) => request({
1860
+ uri: "/public/v1/submit/create_tvc_quorum_key",
1861
+ method: "POST",
1862
+ body: input.body,
1863
+ });
1864
+ /**
1865
+ * Request a WebAuthn assertion and return a signed `CreateTvcQuorumKey` request, ready to be POSTed to Turnkey.
1866
+ *
1867
+ * See {@link CreateTvcQuorumKey}
1868
+ */
1869
+ const signCreateTvcQuorumKey = (input, options) => signedRequest({
1870
+ uri: "/public/v1/submit/create_tvc_quorum_key",
1871
+ body: input.body,
1872
+ options,
1873
+ });
1478
1874
  /**
1479
1875
  * Create user tag
1480
1876
  *
@@ -1673,6 +2069,28 @@ const signDeleteInvitation = (input, options) => signedRequest({
1673
2069
  body: input.body,
1674
2070
  options,
1675
2071
  });
2072
+ /**
2073
+ * Delete MFA policy
2074
+ *
2075
+ * Delete an MFA policy for a user.
2076
+ *
2077
+ * `POST /public/v1/submit/delete_mfa_policy`
2078
+ */
2079
+ const deleteMfaPolicy = (input) => request({
2080
+ uri: "/public/v1/submit/delete_mfa_policy",
2081
+ method: "POST",
2082
+ body: input.body,
2083
+ });
2084
+ /**
2085
+ * Request a WebAuthn assertion and return a signed `DeleteMfaPolicy` request, ready to be POSTed to Turnkey.
2086
+ *
2087
+ * See {@link DeleteMfaPolicy}
2088
+ */
2089
+ const signDeleteMfaPolicy = (input, options) => signedRequest({
2090
+ uri: "/public/v1/submit/delete_mfa_policy",
2091
+ body: input.body,
2092
+ options,
2093
+ });
1676
2094
  /**
1677
2095
  * Delete an OAuth 2.0 Credential
1678
2096
  *
@@ -2003,6 +2421,72 @@ const signDeleteWebhookEndpoint = (input, options) => signedRequest({
2003
2421
  body: input.body,
2004
2422
  options,
2005
2423
  });
2424
+ /**
2425
+ * Deploy Earn wrapper
2426
+ *
2427
+ * Enable a yield vault for an organization by deploying its fee wrapper. Must be called before any deposits into the vault.
2428
+ *
2429
+ * `POST /public/v1/submit/earn_deploy_wrapper`
2430
+ */
2431
+ const earnDeployWrapper = (input) => request({
2432
+ uri: "/public/v1/submit/earn_deploy_wrapper",
2433
+ method: "POST",
2434
+ body: input.body,
2435
+ });
2436
+ /**
2437
+ * Request a WebAuthn assertion and return a signed `EarnDeployWrapper` request, ready to be POSTed to Turnkey.
2438
+ *
2439
+ * See {@link EarnDeployWrapper}
2440
+ */
2441
+ const signEarnDeployWrapper = (input, options) => signedRequest({
2442
+ uri: "/public/v1/submit/earn_deploy_wrapper",
2443
+ body: input.body,
2444
+ options,
2445
+ });
2446
+ /**
2447
+ * Deposit into Earn vault
2448
+ *
2449
+ * Deposit assets from a wallet into an enabled yield vault.
2450
+ *
2451
+ * `POST /public/v1/submit/earn_deposit`
2452
+ */
2453
+ const earnDeposit = (input) => request({
2454
+ uri: "/public/v1/submit/earn_deposit",
2455
+ method: "POST",
2456
+ body: input.body,
2457
+ });
2458
+ /**
2459
+ * Request a WebAuthn assertion and return a signed `EarnDeposit` request, ready to be POSTed to Turnkey.
2460
+ *
2461
+ * See {@link EarnDeposit}
2462
+ */
2463
+ const signEarnDeposit = (input, options) => signedRequest({
2464
+ uri: "/public/v1/submit/earn_deposit",
2465
+ body: input.body,
2466
+ options,
2467
+ });
2468
+ /**
2469
+ * Withdraw from Earn vault
2470
+ *
2471
+ * Withdraw assets or redeem shares from an enabled yield vault.
2472
+ *
2473
+ * `POST /public/v1/submit/earn_withdraw`
2474
+ */
2475
+ const earnWithdraw = (input) => request({
2476
+ uri: "/public/v1/submit/earn_withdraw",
2477
+ method: "POST",
2478
+ body: input.body,
2479
+ });
2480
+ /**
2481
+ * Request a WebAuthn assertion and return a signed `EarnWithdraw` request, ready to be POSTed to Turnkey.
2482
+ *
2483
+ * See {@link EarnWithdraw}
2484
+ */
2485
+ const signEarnWithdraw = (input, options) => signedRequest({
2486
+ uri: "/public/v1/submit/earn_withdraw",
2487
+ body: input.body,
2488
+ options,
2489
+ });
2006
2490
  /**
2007
2491
  * Perform email auth
2008
2492
  *
@@ -2069,6 +2553,28 @@ const signEthSendTransaction = (input, options) => signedRequest({
2069
2553
  body: input.body,
2070
2554
  options,
2071
2555
  });
2556
+ /**
2557
+ * Execute swap
2558
+ *
2559
+ * Execute a quoted swap through the activity pipeline and Turnkey broadcasting.
2560
+ *
2561
+ * `POST /public/v1/submit/execute_swap`
2562
+ */
2563
+ const executeSwap = (input) => request({
2564
+ uri: "/public/v1/submit/execute_swap",
2565
+ method: "POST",
2566
+ body: input.body,
2567
+ });
2568
+ /**
2569
+ * Request a WebAuthn assertion and return a signed `ExecuteSwap` request, ready to be POSTed to Turnkey.
2570
+ *
2571
+ * See {@link ExecuteSwap}
2572
+ */
2573
+ const signExecuteSwap = (input, options) => signedRequest({
2574
+ uri: "/public/v1/submit/execute_swap",
2575
+ body: input.body,
2576
+ options,
2577
+ });
2072
2578
  /**
2073
2579
  * Export private key
2074
2580
  *
@@ -2443,6 +2949,28 @@ const signPostTvcQuorumKeyShare = (input, options) => signedRequest({
2443
2949
  body: input.body,
2444
2950
  options,
2445
2951
  });
2952
+ /**
2953
+ * Re-encrypt TVC Quorum Key Share
2954
+ *
2955
+ * Re-encrypt a hosted TVC quorum key share for a deployment.
2956
+ *
2957
+ * `POST /public/v1/submit/re_encrypt_tvc_quorum_key_share`
2958
+ */
2959
+ const reEncryptTvcQuorumKeyShare = (input) => request({
2960
+ uri: "/public/v1/submit/re_encrypt_tvc_quorum_key_share",
2961
+ method: "POST",
2962
+ body: input.body,
2963
+ });
2964
+ /**
2965
+ * Request a WebAuthn assertion and return a signed `ReEncryptTvcQuorumKeyShare` request, ready to be POSTed to Turnkey.
2966
+ *
2967
+ * See {@link ReEncryptTvcQuorumKeyShare}
2968
+ */
2969
+ const signReEncryptTvcQuorumKeyShare = (input, options) => signedRequest({
2970
+ uri: "/public/v1/submit/re_encrypt_tvc_quorum_key_share",
2971
+ body: input.body,
2972
+ options,
2973
+ });
2446
2974
  /**
2447
2975
  * Recover a user
2448
2976
  *
@@ -2839,6 +3367,28 @@ const signUpdateFiatOnRampCredential = (input, options) => signedRequest({
2839
3367
  body: input.body,
2840
3368
  options,
2841
3369
  });
3370
+ /**
3371
+ * Update MFA policy
3372
+ *
3373
+ * Update an MFA policy for a user.
3374
+ *
3375
+ * `POST /public/v1/submit/update_mfa_policy`
3376
+ */
3377
+ const updateMfaPolicy = (input) => request({
3378
+ uri: "/public/v1/submit/update_mfa_policy",
3379
+ method: "POST",
3380
+ body: input.body,
3381
+ });
3382
+ /**
3383
+ * Request a WebAuthn assertion and return a signed `UpdateMfaPolicy` request, ready to be POSTed to Turnkey.
3384
+ *
3385
+ * See {@link UpdateMfaPolicy}
3386
+ */
3387
+ const signUpdateMfaPolicy = (input, options) => signedRequest({
3388
+ uri: "/public/v1/submit/update_mfa_policy",
3389
+ body: input.body,
3390
+ options,
3391
+ });
2842
3392
  /**
2843
3393
  * Update an OAuth 2.0 Credential
2844
3394
  *
@@ -3103,6 +3653,50 @@ const signUpdateWebhookEndpoint = (input, options) => signedRequest({
3103
3653
  body: input.body,
3104
3654
  options,
3105
3655
  });
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
+ /**
3679
+ * Upsert swap config
3680
+ *
3681
+ * Enable or disable swap configuration for an organization.
3682
+ *
3683
+ * `POST /public/v1/submit/upsert_swap_config`
3684
+ */
3685
+ const upsertSwapConfig = (input) => request({
3686
+ uri: "/public/v1/submit/upsert_swap_config",
3687
+ method: "POST",
3688
+ body: input.body,
3689
+ });
3690
+ /**
3691
+ * Request a WebAuthn assertion and return a signed `UpsertSwapConfig` request, ready to be POSTed to Turnkey.
3692
+ *
3693
+ * See {@link UpsertSwapConfig}
3694
+ */
3695
+ const signUpsertSwapConfig = (input, options) => signedRequest({
3696
+ uri: "/public/v1/submit/upsert_swap_config",
3697
+ body: input.body,
3698
+ options,
3699
+ });
3106
3700
  /**
3107
3701
  * Verify generic OTP
3108
3702
  *
@@ -3185,5 +3779,5 @@ const signTestRateLimits = (input, options) => signedRequest({
3185
3779
  options,
3186
3780
  });
3187
3781
 
3188
- export { approveActivity, createApiKeys, createApiOnlyUsers, createAuthenticators, createFiatOnRampCredential, createInvitations, createOauth2Credential, createOauthProviders, createPolicies, createPolicy, createPrivateKeyTag, createPrivateKeys, createReadOnlySession, createReadWriteSession, createSmartContractInterface, createSubOrganization, createTvcApp, createTvcDeployment, createTvcManifestApprovals, createUserTag, createUsers, createWallet, createWalletAccounts, createWebhookEndpoint, deleteApiKeys, deleteAuthenticators, deleteFiatOnRampCredential, deleteInvitation, deleteOauth2Credential, deleteOauthProviders, deletePolicies, deletePolicy, deletePrivateKeyTags, deletePrivateKeys, deleteSmartContractInterface, deleteSubOrganization, deleteTvcAppAndDeployments, deleteTvcDeployment, deleteUserTags, deleteUsers, deleteWalletAccounts, deleteWallets, deleteWebhookEndpoint, emailAuth, ethSendRawTransaction, ethSendTransaction, exportPrivateKey, exportWallet, exportWalletAccount, getActivities, getActivity, getApiKey, getApiKeys, getAppProofs, getAppStatus, getAuthenticator, getAuthenticators, getBootProof, getGasUsage, getIpAllowlist, getLatestBootProof, getNonces, getOauth2Credential, getOauthProviders, getOnRampTransactionStatus, getOrganization, getOrganizationConfigs, getPolicies, getPolicy, getPolicyEvaluations, getPrivateKey, getPrivateKeys, getSendTransactionStatus, getSmartContractInterface, getSmartContractInterfaces, getSubOrgIds, getTvcApp, getTvcAppDeployments, getTvcApps, getTvcDeployment, getTvcDeploymentProvisioningDetails, getUser, getUsers, getVerifiedSubOrgIds, getWallet, getWalletAccount, getWalletAccounts, getWalletAddressBalances, getWallets, getWhoami, importPrivateKey, importWallet, initFiatOnRamp, initImportPrivateKey, initImportWallet, initOtp, initOtpAuth, initUserEmailRecovery, listFiatOnRampCredentials, listOauth2Credentials, listPrivateKeyTags, listSupportedAssets, listUserTags, listWebhookEndpoints, nOOPCodegenAnchor, oauth, oauth2Authenticate, oauthLogin, otpAuth, otpLogin, postTvcQuorumKeyShare, recoverUser, refreshFeatureFlags, rejectActivity, removeIpAllowlist, removeOrganizationFeature, restoreTvcDeployment, setIpAllowlist, setOrganizationFeature, signApproveActivity, signCreateApiKeys, signCreateApiOnlyUsers, signCreateAuthenticators, signCreateFiatOnRampCredential, signCreateInvitations, signCreateOauth2Credential, signCreateOauthProviders, signCreatePolicies, signCreatePolicy, signCreatePrivateKeyTag, signCreatePrivateKeys, signCreateReadOnlySession, signCreateReadWriteSession, signCreateSmartContractInterface, signCreateSubOrganization, signCreateTvcApp, signCreateTvcDeployment, signCreateTvcManifestApprovals, signCreateUserTag, signCreateUsers, signCreateWallet, signCreateWalletAccounts, signCreateWebhookEndpoint, signDeleteApiKeys, signDeleteAuthenticators, signDeleteFiatOnRampCredential, signDeleteInvitation, signDeleteOauth2Credential, signDeleteOauthProviders, signDeletePolicies, signDeletePolicy, signDeletePrivateKeyTags, signDeletePrivateKeys, signDeleteSmartContractInterface, signDeleteSubOrganization, signDeleteTvcAppAndDeployments, signDeleteTvcDeployment, signDeleteUserTags, signDeleteUsers, signDeleteWalletAccounts, signDeleteWallets, signDeleteWebhookEndpoint, signEmailAuth, signEthSendRawTransaction, signEthSendTransaction, signExportPrivateKey, signExportWallet, signExportWalletAccount, signGetActivities, signGetActivity, signGetApiKey, signGetApiKeys, signGetAppProofs, signGetAppStatus, signGetAuthenticator, signGetAuthenticators, signGetBootProof, signGetGasUsage, signGetIpAllowlist, signGetLatestBootProof, signGetNonces, signGetOauth2Credential, signGetOauthProviders, signGetOnRampTransactionStatus, signGetOrganization, signGetOrganizationConfigs, signGetPolicies, signGetPolicy, signGetPolicyEvaluations, signGetPrivateKey, signGetPrivateKeys, signGetSendTransactionStatus, signGetSmartContractInterface, signGetSmartContractInterfaces, signGetSubOrgIds, signGetTvcApp, signGetTvcAppDeployments, signGetTvcApps, signGetTvcDeployment, signGetTvcDeploymentProvisioningDetails, signGetUser, signGetUsers, signGetVerifiedSubOrgIds, signGetWallet, signGetWalletAccount, signGetWalletAccounts, signGetWalletAddressBalances, signGetWallets, signGetWhoami, signImportPrivateKey, signImportWallet, signInitFiatOnRamp, signInitImportPrivateKey, signInitImportWallet, signInitOtp, signInitOtpAuth, signInitUserEmailRecovery, signListFiatOnRampCredentials, signListOauth2Credentials, signListPrivateKeyTags, signListSupportedAssets, signListUserTags, signListWebhookEndpoints, signNOOPCodegenAnchor, signOauth, signOauth2Authenticate, signOauthLogin, signOtpAuth, signOtpLogin, signPostTvcQuorumKeyShare, signRawPayload, signRawPayloads, signRecoverUser, signRefreshFeatureFlags, signRejectActivity, signRemoveIpAllowlist, signRemoveOrganizationFeature, signRestoreTvcDeployment, signSetIpAllowlist, signSetOrganizationFeature, signSignRawPayload, signSignRawPayloads, signSignTransaction, signSolSendTransaction, signSparkClaimTransfer, signSparkPrepareLightningReceive, signSparkPrepareTransfer, signSparkSignFrost, signStampLogin, signTestRateLimits, signTransaction, signUpdateFiatOnRampCredential, signUpdateOauth2Credential, signUpdateOrganizationName, signUpdatePolicy, signUpdatePrivateKeyTag, signUpdateRootQuorum, signUpdateTvcAppLiveDeployment, signUpdateUser, signUpdateUserEmail, signUpdateUserName, signUpdateUserPhoneNumber, signUpdateUserTag, signUpdateWallet, signUpdateWebhookEndpoint, signValidateTvcImage, signVerifyOtp, solSendTransaction, sparkClaimTransfer, sparkPrepareLightningReceive, sparkPrepareTransfer, sparkSignFrost, stampLogin, testRateLimits, updateFiatOnRampCredential, updateOauth2Credential, updateOrganizationName, updatePolicy, updatePrivateKeyTag, updateRootQuorum, updateTvcAppLiveDeployment, updateUser, updateUserEmail, updateUserName, updateUserPhoneNumber, updateUserTag, updateWallet, updateWebhookEndpoint, validateTvcImage, verifyOtp };
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, earnDepositStatus, earnEnabledVaults, earnPositions, earnVaults, earnWithdraw, earnWithdrawStatus, emailAuth, ethSendRawTransaction, ethSendTransaction, executeSwap, exportPrivateKey, exportWallet, exportWalletAccount, getActivities, getActivity, getApiKey, getApiKeys, getAppProofs, getAppStatus, getAuthenticator, getAuthenticators, getBootProof, getGasUsage, getIpAllowlist, getLatestBootProof, getMfaPolicies, getMfaPolicy, getMfaStatus, getNonces, getOauth2Credential, getOauthProviders, getOnRampTransactionStatus, getOrganization, getOrganizationConfigs, getPolicies, getPolicy, getPolicyEvaluations, getPrivateKey, getPrivateKeys, getSendTransactionStatus, getSessionProfile, getSessionProfiles, getSmartContractInterface, getSmartContractInterfaces, getSubOrgIds, getSwapQuote, getSwapStatus, getTvcApp, getTvcAppDeployments, getTvcApps, getTvcDeployment, getTvcDeploymentDebugLogs, getTvcDeploymentProvisioningDetails, getUser, getUsers, getVerifiedSubOrgIds, getWallet, getWalletAccount, getWalletAccounts, getWalletAddressBalances, getWallets, getWhoami, importPrivateKey, importWallet, initFiatOnRamp, initImportPrivateKey, initImportWallet, initOtp, initOtpAuth, initUserEmailRecovery, listEmailEvents, listFiatOnRampCredentials, listOauth2Credentials, listPrivateKeyTags, listSupportedAssets, listUserTags, listWebhookEndpoints, nOOPCodegenAnchor, oauth, oauth2Authenticate, oauthLogin, otpAuth, otpLogin, postTvcQuorumKeyShare, reEncryptTvcQuorumKeyShare, recoverUser, refreshFeatureFlags, rejectActivity, removeIpAllowlist, removeOrganizationFeature, restoreTvcDeployment, setIpAllowlist, setOrganizationFeature, signApproveActivity, signCreateApiKeys, signCreateApiOnlyUsers, signCreateAuthenticators, signCreateFiatOnRampCredential, signCreateInvitations, signCreateMfaPolicy, signCreateOauth2Credential, signCreateOauthProviders, signCreatePolicies, signCreatePolicy, signCreatePrivateKeyTag, signCreatePrivateKeys, signCreateReadOnlySession, signCreateReadWriteSession, signCreateSessionProfile, signCreateSmartContractInterface, signCreateSubOrganization, 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, signEarnDepositStatus, signEarnEnabledVaults, signEarnPositions, signEarnVaults, signEarnWithdraw, signEarnWithdrawStatus, signEmailAuth, signEthSendRawTransaction, signEthSendTransaction, signExecuteSwap, signExportPrivateKey, signExportWallet, signExportWalletAccount, signGetActivities, signGetActivity, signGetApiKey, signGetApiKeys, signGetAppProofs, signGetAppStatus, signGetAuthenticator, signGetAuthenticators, signGetBootProof, signGetGasUsage, signGetIpAllowlist, signGetLatestBootProof, signGetMfaPolicies, signGetMfaPolicy, signGetMfaStatus, signGetNonces, signGetOauth2Credential, signGetOauthProviders, signGetOnRampTransactionStatus, signGetOrganization, signGetOrganizationConfigs, signGetPolicies, signGetPolicy, signGetPolicyEvaluations, signGetPrivateKey, signGetPrivateKeys, signGetSendTransactionStatus, signGetSessionProfile, signGetSessionProfiles, signGetSmartContractInterface, signGetSmartContractInterfaces, signGetSubOrgIds, signGetSwapQuote, signGetSwapStatus, signGetTvcApp, signGetTvcAppDeployments, signGetTvcApps, signGetTvcDeployment, signGetTvcDeploymentDebugLogs, signGetTvcDeploymentProvisioningDetails, signGetUser, signGetUsers, signGetVerifiedSubOrgIds, signGetWallet, signGetWalletAccount, signGetWalletAccounts, signGetWalletAddressBalances, signGetWallets, signGetWhoami, signImportPrivateKey, signImportWallet, signInitFiatOnRamp, signInitImportPrivateKey, signInitImportWallet, signInitOtp, signInitOtpAuth, signInitUserEmailRecovery, signListEmailEvents, signListFiatOnRampCredentials, signListOauth2Credentials, signListPrivateKeyTags, 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, signUpsertEarnClientFeeConfig, 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, upsertEarnClientFeeConfig, upsertSwapConfig, validateTvcImage, verifyOtp };
3189
3783
  //# sourceMappingURL=public_api.fetcher.mjs.map