@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
@@ -6,6 +6,131 @@ import { fetch } from '../../../../../universal.mjs';
6
6
  class TurnkeyClient {
7
7
  constructor(config, stamper) {
8
8
  this.name = "TurnkeyClient";
9
+ /**
10
+ * Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
11
+ *
12
+ * Sign the provided `TEarnDepositStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_deposit_status).
13
+ *
14
+ * See also {@link stampEarnDepositStatus}.
15
+ */
16
+ this.earnDepositStatus = async (input) => {
17
+ return this.request("/public/v1/query/earn_deposit_status", input);
18
+ };
19
+ /**
20
+ * Produce a `SignedRequest` from `TEarnDepositStatusBody` by using the client's `stamp` function.
21
+ *
22
+ * See also {@link EarnDepositStatus}.
23
+ */
24
+ this.stampEarnDepositStatus = async (input) => {
25
+ const fullUrl = this.config.baseUrl + "/public/v1/query/earn_deposit_status";
26
+ const body = JSON.stringify(input);
27
+ const stamp = await this.stamper.stamp(body);
28
+ return {
29
+ body: body,
30
+ stamp: stamp,
31
+ url: fullUrl,
32
+ };
33
+ };
34
+ /**
35
+ * Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
36
+ *
37
+ * Sign the provided `TEarnEnabledVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_enabled_vaults).
38
+ *
39
+ * See also {@link stampEarnEnabledVaults}.
40
+ */
41
+ this.earnEnabledVaults = async (input) => {
42
+ return this.request("/public/v1/query/earn_enabled_vaults", input);
43
+ };
44
+ /**
45
+ * Produce a `SignedRequest` from `TEarnEnabledVaultsBody` by using the client's `stamp` function.
46
+ *
47
+ * See also {@link EarnEnabledVaults}.
48
+ */
49
+ this.stampEarnEnabledVaults = async (input) => {
50
+ const fullUrl = this.config.baseUrl + "/public/v1/query/earn_enabled_vaults";
51
+ const body = JSON.stringify(input);
52
+ const stamp = await this.stamper.stamp(body);
53
+ return {
54
+ body: body,
55
+ stamp: stamp,
56
+ url: fullUrl,
57
+ };
58
+ };
59
+ /**
60
+ * Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
61
+ *
62
+ * Sign the provided `TEarnPositionsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_positions).
63
+ *
64
+ * See also {@link stampEarnPositions}.
65
+ */
66
+ this.earnPositions = async (input) => {
67
+ return this.request("/public/v1/query/earn_positions", input);
68
+ };
69
+ /**
70
+ * Produce a `SignedRequest` from `TEarnPositionsBody` by using the client's `stamp` function.
71
+ *
72
+ * See also {@link EarnPositions}.
73
+ */
74
+ this.stampEarnPositions = async (input) => {
75
+ const fullUrl = this.config.baseUrl + "/public/v1/query/earn_positions";
76
+ const body = JSON.stringify(input);
77
+ const stamp = await this.stamper.stamp(body);
78
+ return {
79
+ body: body,
80
+ stamp: stamp,
81
+ url: fullUrl,
82
+ };
83
+ };
84
+ /**
85
+ * 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.
86
+ *
87
+ * Sign the provided `TEarnVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_vaults).
88
+ *
89
+ * See also {@link stampEarnVaults}.
90
+ */
91
+ this.earnVaults = async (input) => {
92
+ return this.request("/public/v1/query/earn_vaults", input);
93
+ };
94
+ /**
95
+ * Produce a `SignedRequest` from `TEarnVaultsBody` by using the client's `stamp` function.
96
+ *
97
+ * See also {@link EarnVaults}.
98
+ */
99
+ this.stampEarnVaults = async (input) => {
100
+ const fullUrl = this.config.baseUrl + "/public/v1/query/earn_vaults";
101
+ const body = JSON.stringify(input);
102
+ const stamp = await this.stamper.stamp(body);
103
+ return {
104
+ body: body,
105
+ stamp: stamp,
106
+ url: fullUrl,
107
+ };
108
+ };
109
+ /**
110
+ * Poll the status of a withdrawal by its withdraw_request_id.
111
+ *
112
+ * Sign the provided `TEarnWithdrawStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_withdraw_status).
113
+ *
114
+ * See also {@link stampEarnWithdrawStatus}.
115
+ */
116
+ this.earnWithdrawStatus = async (input) => {
117
+ return this.request("/public/v1/query/earn_withdraw_status", input);
118
+ };
119
+ /**
120
+ * Produce a `SignedRequest` from `TEarnWithdrawStatusBody` by using the client's `stamp` function.
121
+ *
122
+ * See also {@link EarnWithdrawStatus}.
123
+ */
124
+ this.stampEarnWithdrawStatus = async (input) => {
125
+ const fullUrl = this.config.baseUrl + "/public/v1/query/earn_withdraw_status";
126
+ const body = JSON.stringify(input);
127
+ const stamp = await this.stamper.stamp(body);
128
+ return {
129
+ body: body,
130
+ stamp: stamp,
131
+ url: fullUrl,
132
+ };
133
+ };
9
134
  /**
10
135
  * Get details about an activity.
11
136
  *
@@ -256,6 +381,81 @@ class TurnkeyClient {
256
381
  url: fullUrl,
257
382
  };
258
383
  };
384
+ /**
385
+ * Get all MFA policies for a user.
386
+ *
387
+ * Sign the provided `TGetMfaPoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_mfa_policies).
388
+ *
389
+ * See also {@link stampGetMfaPolicies}.
390
+ */
391
+ this.getMfaPolicies = async (input) => {
392
+ return this.request("/public/v1/query/get_mfa_policies", input);
393
+ };
394
+ /**
395
+ * Produce a `SignedRequest` from `TGetMfaPoliciesBody` by using the client's `stamp` function.
396
+ *
397
+ * See also {@link GetMfaPolicies}.
398
+ */
399
+ this.stampGetMfaPolicies = async (input) => {
400
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_mfa_policies";
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 a single MFA policy for a user.
411
+ *
412
+ * Sign the provided `TGetMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_mfa_policy).
413
+ *
414
+ * See also {@link stampGetMfaPolicy}.
415
+ */
416
+ this.getMfaPolicy = async (input) => {
417
+ return this.request("/public/v1/query/get_mfa_policy", input);
418
+ };
419
+ /**
420
+ * Produce a `SignedRequest` from `TGetMfaPolicyBody` by using the client's `stamp` function.
421
+ *
422
+ * See also {@link GetMfaPolicy}.
423
+ */
424
+ this.stampGetMfaPolicy = async (input) => {
425
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_mfa_policy";
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
+ };
434
+ /**
435
+ * Get the MFA status of an activity for a specific user or all voting users.
436
+ *
437
+ * Sign the provided `TGetMfaStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_mfa_status).
438
+ *
439
+ * See also {@link stampGetMfaStatus}.
440
+ */
441
+ this.getMfaStatus = async (input) => {
442
+ return this.request("/public/v1/query/get_mfa_status", input);
443
+ };
444
+ /**
445
+ * Produce a `SignedRequest` from `TGetMfaStatusBody` by using the client's `stamp` function.
446
+ *
447
+ * See also {@link GetMfaStatus}.
448
+ */
449
+ this.stampGetMfaStatus = async (input) => {
450
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_mfa_status";
451
+ const body = JSON.stringify(input);
452
+ const stamp = await this.stamper.stamp(body);
453
+ return {
454
+ body: body,
455
+ stamp: stamp,
456
+ url: fullUrl,
457
+ };
458
+ };
259
459
  /**
260
460
  * 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
461
  *
@@ -506,6 +706,56 @@ class TurnkeyClient {
506
706
  url: fullUrl,
507
707
  };
508
708
  };
709
+ /**
710
+ * Get a single session profile for an organization.
711
+ *
712
+ * Sign the provided `TGetSessionProfileBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_session_profile).
713
+ *
714
+ * See also {@link stampGetSessionProfile}.
715
+ */
716
+ this.getSessionProfile = async (input) => {
717
+ return this.request("/public/v1/query/get_session_profile", input);
718
+ };
719
+ /**
720
+ * Produce a `SignedRequest` from `TGetSessionProfileBody` by using the client's `stamp` function.
721
+ *
722
+ * See also {@link GetSessionProfile}.
723
+ */
724
+ this.stampGetSessionProfile = async (input) => {
725
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_session_profile";
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
+ };
734
+ /**
735
+ * Get all session profiles for an organization.
736
+ *
737
+ * Sign the provided `TGetSessionProfilesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_session_profiles).
738
+ *
739
+ * See also {@link stampGetSessionProfiles}.
740
+ */
741
+ this.getSessionProfiles = async (input) => {
742
+ return this.request("/public/v1/query/get_session_profiles", input);
743
+ };
744
+ /**
745
+ * Produce a `SignedRequest` from `TGetSessionProfilesBody` by using the client's `stamp` function.
746
+ *
747
+ * See also {@link GetSessionProfiles}.
748
+ */
749
+ this.stampGetSessionProfiles = async (input) => {
750
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_session_profiles";
751
+ const body = JSON.stringify(input);
752
+ const stamp = await this.stamper.stamp(body);
753
+ return {
754
+ body: body,
755
+ stamp: stamp,
756
+ url: fullUrl,
757
+ };
758
+ };
509
759
  /**
510
760
  * Get details about a smart contract interface.
511
761
  *
@@ -531,6 +781,56 @@ class TurnkeyClient {
531
781
  url: fullUrl,
532
782
  };
533
783
  };
784
+ /**
785
+ * Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
786
+ *
787
+ * Sign the provided `TGetSwapQuoteBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_quote).
788
+ *
789
+ * See also {@link stampGetSwapQuote}.
790
+ */
791
+ this.getSwapQuote = async (input) => {
792
+ return this.request("/public/v1/query/get_swap_quote", input);
793
+ };
794
+ /**
795
+ * Produce a `SignedRequest` from `TGetSwapQuoteBody` by using the client's `stamp` function.
796
+ *
797
+ * See also {@link GetSwapQuote}.
798
+ */
799
+ this.stampGetSwapQuote = async (input) => {
800
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_swap_quote";
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
+ };
809
+ /**
810
+ * Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps.
811
+ *
812
+ * Sign the provided `TGetSwapStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_status).
813
+ *
814
+ * See also {@link stampGetSwapStatus}.
815
+ */
816
+ this.getSwapStatus = async (input) => {
817
+ return this.request("/public/v1/query/get_swap_status", input);
818
+ };
819
+ /**
820
+ * Produce a `SignedRequest` from `TGetSwapStatusBody` by using the client's `stamp` function.
821
+ *
822
+ * See also {@link GetSwapStatus}.
823
+ */
824
+ this.stampGetSwapStatus = async (input) => {
825
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_swap_status";
826
+ const body = JSON.stringify(input);
827
+ const stamp = await this.stamper.stamp(body);
828
+ return {
829
+ body: body,
830
+ stamp: stamp,
831
+ url: fullUrl,
832
+ };
833
+ };
534
834
  /**
535
835
  * Get details about a single TVC App
536
836
  *
@@ -581,6 +881,31 @@ class TurnkeyClient {
581
881
  url: fullUrl,
582
882
  };
583
883
  };
884
+ /**
885
+ * 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.
886
+ *
887
+ * Sign the provided `TGetTvcDeploymentDebugLogsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_deployment_debug_logs).
888
+ *
889
+ * See also {@link stampGetTvcDeploymentDebugLogs}.
890
+ */
891
+ this.getTvcDeploymentDebugLogs = async (input) => {
892
+ return this.request("/public/v1/query/get_tvc_deployment_debug_logs", input);
893
+ };
894
+ /**
895
+ * Produce a `SignedRequest` from `TGetTvcDeploymentDebugLogsBody` by using the client's `stamp` function.
896
+ *
897
+ * See also {@link GetTvcDeploymentDebugLogs}.
898
+ */
899
+ this.stampGetTvcDeploymentDebugLogs = async (input) => {
900
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_tvc_deployment_debug_logs";
901
+ const body = JSON.stringify(input);
902
+ const stamp = await this.stamper.stamp(body);
903
+ return {
904
+ body: body,
905
+ stamp: stamp,
906
+ url: fullUrl,
907
+ };
908
+ };
584
909
  /**
585
910
  * Get the attestation document and manifest envelope of the provisioning enclave for a TVC deployment
586
911
  *
@@ -683,7 +1008,7 @@ class TurnkeyClient {
683
1008
  };
684
1009
  };
685
1010
  /**
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.
1011
+ * Get balances of supported assets for an address on the specified network. Only non-zero balances are returned.
687
1012
  *
688
1013
  * Sign the provided `TGetWalletAddressBalancesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet_address_balances).
689
1014
  *
@@ -757,6 +1082,31 @@ class TurnkeyClient {
757
1082
  url: fullUrl,
758
1083
  };
759
1084
  };
1085
+ /**
1086
+ * List email events for the organization.
1087
+ *
1088
+ * Sign the provided `TListEmailEventsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_email_events).
1089
+ *
1090
+ * See also {@link stampListEmailEvents}.
1091
+ */
1092
+ this.listEmailEvents = async (input) => {
1093
+ return this.request("/public/v1/query/list_email_events", input);
1094
+ };
1095
+ /**
1096
+ * Produce a `SignedRequest` from `TListEmailEventsBody` by using the client's `stamp` function.
1097
+ *
1098
+ * See also {@link ListEmailEvents}.
1099
+ */
1100
+ this.stampListEmailEvents = async (input) => {
1101
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_email_events";
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
+ };
760
1110
  /**
761
1111
  * List all fiat on ramp provider credentials within an organization.
762
1112
  *
@@ -933,7 +1283,7 @@ class TurnkeyClient {
933
1283
  };
934
1284
  };
935
1285
  /**
936
- * List supported assets for the specified network. This feature is in beta - please contact support for access.
1286
+ * List supported assets for the specified network.
937
1287
  *
938
1288
  * Sign the provided `TListSupportedAssetsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_supported_assets).
939
1289
  *
@@ -1357,6 +1707,31 @@ class TurnkeyClient {
1357
1707
  url: fullUrl,
1358
1708
  };
1359
1709
  };
1710
+ /**
1711
+ * Create a new MFA policy for a user.
1712
+ *
1713
+ * Sign the provided `TCreateMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_mfa_policy).
1714
+ *
1715
+ * See also {@link stampCreateMfaPolicy}.
1716
+ */
1717
+ this.createMfaPolicy = async (input) => {
1718
+ return this.request("/public/v1/submit/create_mfa_policy", input);
1719
+ };
1720
+ /**
1721
+ * Produce a `SignedRequest` from `TCreateMfaPolicyBody` by using the client's `stamp` function.
1722
+ *
1723
+ * See also {@link CreateMfaPolicy}.
1724
+ */
1725
+ this.stampCreateMfaPolicy = async (input) => {
1726
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_mfa_policy";
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
+ };
1360
1735
  /**
1361
1736
  * Enable authentication for end users with an OAuth 2.0 provider
1362
1737
  *
@@ -1557,6 +1932,31 @@ class TurnkeyClient {
1557
1932
  url: fullUrl,
1558
1933
  };
1559
1934
  };
1935
+ /**
1936
+ * Create a new session profile for an organization.
1937
+ *
1938
+ * Sign the provided `TCreateSessionProfileBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_session_profile).
1939
+ *
1940
+ * See also {@link stampCreateSessionProfile}.
1941
+ */
1942
+ this.createSessionProfile = async (input) => {
1943
+ return this.request("/public/v1/submit/create_session_profile", input);
1944
+ };
1945
+ /**
1946
+ * Produce a `SignedRequest` from `TCreateSessionProfileBody` by using the client's `stamp` function.
1947
+ *
1948
+ * See also {@link CreateSessionProfile}.
1949
+ */
1950
+ this.stampCreateSessionProfile = async (input) => {
1951
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_session_profile";
1952
+ const body = JSON.stringify(input);
1953
+ const stamp = await this.stamper.stamp(body);
1954
+ return {
1955
+ body: body,
1956
+ stamp: stamp,
1957
+ url: fullUrl,
1958
+ };
1959
+ };
1560
1960
  /**
1561
1961
  * Create an ABI/IDL in JSON.
1562
1962
  *
@@ -1682,6 +2082,56 @@ class TurnkeyClient {
1682
2082
  url: fullUrl,
1683
2083
  };
1684
2084
  };
2085
+ /**
2086
+ * Create a TVC Operator backed by uncompressed P-256 Turnkey wallet accounts
2087
+ *
2088
+ * Sign the provided `TCreateTvcOperatorBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_operator).
2089
+ *
2090
+ * See also {@link stampCreateTvcOperator}.
2091
+ */
2092
+ this.createTvcOperator = async (input) => {
2093
+ return this.request("/public/v1/submit/create_tvc_operator", input);
2094
+ };
2095
+ /**
2096
+ * Produce a `SignedRequest` from `TCreateTvcOperatorBody` by using the client's `stamp` function.
2097
+ *
2098
+ * See also {@link CreateTvcOperator}.
2099
+ */
2100
+ this.stampCreateTvcOperator = async (input) => {
2101
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_operator";
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
+ };
2110
+ /**
2111
+ * Create a hosted TVC quorum key and encrypted shares.
2112
+ *
2113
+ * Sign the provided `TCreateTvcQuorumKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_quorum_key).
2114
+ *
2115
+ * See also {@link stampCreateTvcQuorumKey}.
2116
+ */
2117
+ this.createTvcQuorumKey = async (input) => {
2118
+ return this.request("/public/v1/submit/create_tvc_quorum_key", input);
2119
+ };
2120
+ /**
2121
+ * Produce a `SignedRequest` from `TCreateTvcQuorumKeyBody` by using the client's `stamp` function.
2122
+ *
2123
+ * See also {@link CreateTvcQuorumKey}.
2124
+ */
2125
+ this.stampCreateTvcQuorumKey = async (input) => {
2126
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_quorum_key";
2127
+ const body = JSON.stringify(input);
2128
+ const stamp = await this.stamper.stamp(body);
2129
+ return {
2130
+ body: body,
2131
+ stamp: stamp,
2132
+ url: fullUrl,
2133
+ };
2134
+ };
1685
2135
  /**
1686
2136
  * Create a user tag and add it to users.
1687
2137
  *
@@ -1907,6 +2357,31 @@ class TurnkeyClient {
1907
2357
  url: fullUrl,
1908
2358
  };
1909
2359
  };
2360
+ /**
2361
+ * Delete an MFA policy for a user.
2362
+ *
2363
+ * Sign the provided `TDeleteMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_mfa_policy).
2364
+ *
2365
+ * See also {@link stampDeleteMfaPolicy}.
2366
+ */
2367
+ this.deleteMfaPolicy = async (input) => {
2368
+ return this.request("/public/v1/submit/delete_mfa_policy", input);
2369
+ };
2370
+ /**
2371
+ * Produce a `SignedRequest` from `TDeleteMfaPolicyBody` by using the client's `stamp` function.
2372
+ *
2373
+ * See also {@link DeleteMfaPolicy}.
2374
+ */
2375
+ this.stampDeleteMfaPolicy = async (input) => {
2376
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_mfa_policy";
2377
+ const body = JSON.stringify(input);
2378
+ const stamp = await this.stamper.stamp(body);
2379
+ return {
2380
+ body: body,
2381
+ stamp: stamp,
2382
+ url: fullUrl,
2383
+ };
2384
+ };
1910
2385
  /**
1911
2386
  * Disable authentication for end users with an OAuth 2.0 provider
1912
2387
  *
@@ -2282,6 +2757,81 @@ class TurnkeyClient {
2282
2757
  url: fullUrl,
2283
2758
  };
2284
2759
  };
2760
+ /**
2761
+ * Enable a yield vault for an organization by deploying its fee wrapper. Must be called before any deposits into the vault.
2762
+ *
2763
+ * Sign the provided `TEarnDeployWrapperBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_deploy_wrapper).
2764
+ *
2765
+ * See also {@link stampEarnDeployWrapper}.
2766
+ */
2767
+ this.earnDeployWrapper = async (input) => {
2768
+ return this.request("/public/v1/submit/earn_deploy_wrapper", input);
2769
+ };
2770
+ /**
2771
+ * Produce a `SignedRequest` from `TEarnDeployWrapperBody` by using the client's `stamp` function.
2772
+ *
2773
+ * See also {@link EarnDeployWrapper}.
2774
+ */
2775
+ this.stampEarnDeployWrapper = async (input) => {
2776
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_deploy_wrapper";
2777
+ const body = JSON.stringify(input);
2778
+ const stamp = await this.stamper.stamp(body);
2779
+ return {
2780
+ body: body,
2781
+ stamp: stamp,
2782
+ url: fullUrl,
2783
+ };
2784
+ };
2785
+ /**
2786
+ * Deposit assets from a wallet into an enabled yield vault.
2787
+ *
2788
+ * Sign the provided `TEarnDepositBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_deposit).
2789
+ *
2790
+ * See also {@link stampEarnDeposit}.
2791
+ */
2792
+ this.earnDeposit = async (input) => {
2793
+ return this.request("/public/v1/submit/earn_deposit", input);
2794
+ };
2795
+ /**
2796
+ * Produce a `SignedRequest` from `TEarnDepositBody` by using the client's `stamp` function.
2797
+ *
2798
+ * See also {@link EarnDeposit}.
2799
+ */
2800
+ this.stampEarnDeposit = async (input) => {
2801
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_deposit";
2802
+ const body = JSON.stringify(input);
2803
+ const stamp = await this.stamper.stamp(body);
2804
+ return {
2805
+ body: body,
2806
+ stamp: stamp,
2807
+ url: fullUrl,
2808
+ };
2809
+ };
2810
+ /**
2811
+ * Withdraw assets or redeem shares from an enabled yield vault.
2812
+ *
2813
+ * Sign the provided `TEarnWithdrawBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_withdraw).
2814
+ *
2815
+ * See also {@link stampEarnWithdraw}.
2816
+ */
2817
+ this.earnWithdraw = async (input) => {
2818
+ return this.request("/public/v1/submit/earn_withdraw", input);
2819
+ };
2820
+ /**
2821
+ * Produce a `SignedRequest` from `TEarnWithdrawBody` by using the client's `stamp` function.
2822
+ *
2823
+ * See also {@link EarnWithdraw}.
2824
+ */
2825
+ this.stampEarnWithdraw = async (input) => {
2826
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_withdraw";
2827
+ const body = JSON.stringify(input);
2828
+ const stamp = await this.stamper.stamp(body);
2829
+ return {
2830
+ body: body,
2831
+ stamp: stamp,
2832
+ url: fullUrl,
2833
+ };
2834
+ };
2285
2835
  /**
2286
2836
  * Authenticate a user via email.
2287
2837
  *
@@ -2357,6 +2907,31 @@ class TurnkeyClient {
2357
2907
  url: fullUrl,
2358
2908
  };
2359
2909
  };
2910
+ /**
2911
+ * Execute a quoted swap through the activity pipeline and Turnkey broadcasting.
2912
+ *
2913
+ * Sign the provided `TExecuteSwapBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/execute_swap).
2914
+ *
2915
+ * See also {@link stampExecuteSwap}.
2916
+ */
2917
+ this.executeSwap = async (input) => {
2918
+ return this.request("/public/v1/submit/execute_swap", input);
2919
+ };
2920
+ /**
2921
+ * Produce a `SignedRequest` from `TExecuteSwapBody` by using the client's `stamp` function.
2922
+ *
2923
+ * See also {@link ExecuteSwap}.
2924
+ */
2925
+ this.stampExecuteSwap = async (input) => {
2926
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/execute_swap";
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
+ };
2360
2935
  /**
2361
2936
  * Export a private key.
2362
2937
  *
@@ -2782,6 +3357,31 @@ class TurnkeyClient {
2782
3357
  url: fullUrl,
2783
3358
  };
2784
3359
  };
3360
+ /**
3361
+ * Re-encrypt a hosted TVC quorum key share for a deployment.
3362
+ *
3363
+ * Sign the provided `TReEncryptTvcQuorumKeyShareBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/re_encrypt_tvc_quorum_key_share).
3364
+ *
3365
+ * See also {@link stampReEncryptTvcQuorumKeyShare}.
3366
+ */
3367
+ this.reEncryptTvcQuorumKeyShare = async (input) => {
3368
+ return this.request("/public/v1/submit/re_encrypt_tvc_quorum_key_share", input);
3369
+ };
3370
+ /**
3371
+ * Produce a `SignedRequest` from `TReEncryptTvcQuorumKeyShareBody` by using the client's `stamp` function.
3372
+ *
3373
+ * See also {@link ReEncryptTvcQuorumKeyShare}.
3374
+ */
3375
+ this.stampReEncryptTvcQuorumKeyShare = async (input) => {
3376
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/re_encrypt_tvc_quorum_key_share";
3377
+ const body = JSON.stringify(input);
3378
+ const stamp = await this.stamper.stamp(body);
3379
+ return {
3380
+ body: body,
3381
+ stamp: stamp,
3382
+ url: fullUrl,
3383
+ };
3384
+ };
2785
3385
  /**
2786
3386
  * Complete the process of recovering a user by adding an authenticator.
2787
3387
  *
@@ -3232,6 +3832,31 @@ class TurnkeyClient {
3232
3832
  url: fullUrl,
3233
3833
  };
3234
3834
  };
3835
+ /**
3836
+ * Update an MFA policy for a user.
3837
+ *
3838
+ * Sign the provided `TUpdateMfaPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_mfa_policy).
3839
+ *
3840
+ * See also {@link stampUpdateMfaPolicy}.
3841
+ */
3842
+ this.updateMfaPolicy = async (input) => {
3843
+ return this.request("/public/v1/submit/update_mfa_policy", input);
3844
+ };
3845
+ /**
3846
+ * Produce a `SignedRequest` from `TUpdateMfaPolicyBody` by using the client's `stamp` function.
3847
+ *
3848
+ * See also {@link UpdateMfaPolicy}.
3849
+ */
3850
+ this.stampUpdateMfaPolicy = async (input) => {
3851
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/update_mfa_policy";
3852
+ const body = JSON.stringify(input);
3853
+ const stamp = await this.stamper.stamp(body);
3854
+ return {
3855
+ body: body,
3856
+ stamp: stamp,
3857
+ url: fullUrl,
3858
+ };
3859
+ };
3235
3860
  /**
3236
3861
  * Update an OAuth 2.0 provider credential
3237
3862
  *
@@ -3532,6 +4157,56 @@ class TurnkeyClient {
3532
4157
  url: fullUrl,
3533
4158
  };
3534
4159
  };
4160
+ /**
4161
+ * Set the client's Earn fee rate and payout wallet for the organization.
4162
+ *
4163
+ * Sign the provided `TUpsertEarnClientFeeConfigBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/upsert_earn_client_fee_config).
4164
+ *
4165
+ * See also {@link stampUpsertEarnClientFeeConfig}.
4166
+ */
4167
+ this.upsertEarnClientFeeConfig = async (input) => {
4168
+ return this.request("/public/v1/submit/upsert_earn_client_fee_config", input);
4169
+ };
4170
+ /**
4171
+ * Produce a `SignedRequest` from `TUpsertEarnClientFeeConfigBody` by using the client's `stamp` function.
4172
+ *
4173
+ * See also {@link UpsertEarnClientFeeConfig}.
4174
+ */
4175
+ this.stampUpsertEarnClientFeeConfig = async (input) => {
4176
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/upsert_earn_client_fee_config";
4177
+ const body = JSON.stringify(input);
4178
+ const stamp = await this.stamper.stamp(body);
4179
+ return {
4180
+ body: body,
4181
+ stamp: stamp,
4182
+ url: fullUrl,
4183
+ };
4184
+ };
4185
+ /**
4186
+ * Enable or disable swap configuration for an organization.
4187
+ *
4188
+ * Sign the provided `TUpsertSwapConfigBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/upsert_swap_config).
4189
+ *
4190
+ * See also {@link stampUpsertSwapConfig}.
4191
+ */
4192
+ this.upsertSwapConfig = async (input) => {
4193
+ return this.request("/public/v1/submit/upsert_swap_config", input);
4194
+ };
4195
+ /**
4196
+ * Produce a `SignedRequest` from `TUpsertSwapConfigBody` by using the client's `stamp` function.
4197
+ *
4198
+ * See also {@link UpsertSwapConfig}.
4199
+ */
4200
+ this.stampUpsertSwapConfig = async (input) => {
4201
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/upsert_swap_config";
4202
+ const body = JSON.stringify(input);
4203
+ const stamp = await this.stamper.stamp(body);
4204
+ return {
4205
+ body: body,
4206
+ stamp: stamp,
4207
+ url: fullUrl,
4208
+ };
4209
+ };
3535
4210
  /**
3536
4211
  * Verify a generic OTP.
3537
4212
  *