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