@turnkey/http 5.0.0 → 6.1.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.
@@ -7,47 +7,22 @@ class TurnkeyClient {
7
7
  constructor(config, stamper) {
8
8
  this.name = "TurnkeyClient";
9
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.
10
+ * Get details about an activity.
36
11
  *
37
- * Sign the provided `TEarnEnabledVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_enabled_vaults).
12
+ * Sign the provided `TGetActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_activity).
38
13
  *
39
- * See also {@link stampEarnEnabledVaults}.
14
+ * See also {@link stampGetActivity}.
40
15
  */
41
- this.earnEnabledVaults = async (input) => {
42
- return this.request("/public/v1/query/earn_enabled_vaults", input);
16
+ this.getActivity = async (input) => {
17
+ return this.request("/public/v1/query/get_activity", input);
43
18
  };
44
19
  /**
45
- * Produce a `SignedRequest` from `TEarnEnabledVaultsBody` by using the client's `stamp` function.
20
+ * Produce a `SignedRequest` from `TGetActivityBody` by using the client's `stamp` function.
46
21
  *
47
- * See also {@link EarnEnabledVaults}.
22
+ * See also {@link GetActivity}.
48
23
  */
49
- this.stampEarnEnabledVaults = async (input) => {
50
- const fullUrl = this.config.baseUrl + "/public/v1/query/earn_enabled_vaults";
24
+ this.stampGetActivity = async (input) => {
25
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_activity";
51
26
  const body = JSON.stringify(input);
52
27
  const stamp = await this.stamper.stamp(body);
53
28
  return {
@@ -57,22 +32,22 @@ class TurnkeyClient {
57
32
  };
58
33
  };
59
34
  /**
60
- * Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
35
+ * Get details about an API key.
61
36
  *
62
- * Sign the provided `TEarnPositionsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_positions).
37
+ * Sign the provided `TGetApiKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_api_key).
63
38
  *
64
- * See also {@link stampEarnPositions}.
39
+ * See also {@link stampGetApiKey}.
65
40
  */
66
- this.earnPositions = async (input) => {
67
- return this.request("/public/v1/query/earn_positions", input);
41
+ this.getApiKey = async (input) => {
42
+ return this.request("/public/v1/query/get_api_key", input);
68
43
  };
69
44
  /**
70
- * Produce a `SignedRequest` from `TEarnPositionsBody` by using the client's `stamp` function.
45
+ * Produce a `SignedRequest` from `TGetApiKeyBody` by using the client's `stamp` function.
71
46
  *
72
- * See also {@link EarnPositions}.
47
+ * See also {@link GetApiKey}.
73
48
  */
74
- this.stampEarnPositions = async (input) => {
75
- const fullUrl = this.config.baseUrl + "/public/v1/query/earn_positions";
49
+ this.stampGetApiKey = async (input) => {
50
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_api_key";
76
51
  const body = JSON.stringify(input);
77
52
  const stamp = await this.stamper.stamp(body);
78
53
  return {
@@ -82,22 +57,22 @@ class TurnkeyClient {
82
57
  };
83
58
  };
84
59
  /**
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.
60
+ * Get details about API keys for a user.
86
61
  *
87
- * Sign the provided `TEarnVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_vaults).
62
+ * Sign the provided `TGetApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_api_keys).
88
63
  *
89
- * See also {@link stampEarnVaults}.
64
+ * See also {@link stampGetApiKeys}.
90
65
  */
91
- this.earnVaults = async (input) => {
92
- return this.request("/public/v1/query/earn_vaults", input);
66
+ this.getApiKeys = async (input) => {
67
+ return this.request("/public/v1/query/get_api_keys", input);
93
68
  };
94
69
  /**
95
- * Produce a `SignedRequest` from `TEarnVaultsBody` by using the client's `stamp` function.
70
+ * Produce a `SignedRequest` from `TGetApiKeysBody` by using the client's `stamp` function.
96
71
  *
97
- * See also {@link EarnVaults}.
72
+ * See also {@link GetApiKeys}.
98
73
  */
99
- this.stampEarnVaults = async (input) => {
100
- const fullUrl = this.config.baseUrl + "/public/v1/query/earn_vaults";
74
+ this.stampGetApiKeys = async (input) => {
75
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_api_keys";
101
76
  const body = JSON.stringify(input);
102
77
  const stamp = await this.stamper.stamp(body);
103
78
  return {
@@ -107,22 +82,22 @@ class TurnkeyClient {
107
82
  };
108
83
  };
109
84
  /**
110
- * Poll the status of a withdrawal by its withdraw_request_id.
85
+ * Get live runtime status for a TVC App from the cluster.
111
86
  *
112
- * Sign the provided `TEarnWithdrawStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_withdraw_status).
87
+ * Sign the provided `TGetAppStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_app_status).
113
88
  *
114
- * See also {@link stampEarnWithdrawStatus}.
89
+ * See also {@link stampGetAppStatus}.
115
90
  */
116
- this.earnWithdrawStatus = async (input) => {
117
- return this.request("/public/v1/query/earn_withdraw_status", input);
91
+ this.getAppStatus = async (input) => {
92
+ return this.request("/public/v1/query/get_app_status", input);
118
93
  };
119
94
  /**
120
- * Produce a `SignedRequest` from `TEarnWithdrawStatusBody` by using the client's `stamp` function.
95
+ * Produce a `SignedRequest` from `TGetAppStatusBody` by using the client's `stamp` function.
121
96
  *
122
- * See also {@link EarnWithdrawStatus}.
97
+ * See also {@link GetAppStatus}.
123
98
  */
124
- this.stampEarnWithdrawStatus = async (input) => {
125
- const fullUrl = this.config.baseUrl + "/public/v1/query/earn_withdraw_status";
99
+ this.stampGetAppStatus = async (input) => {
100
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_app_status";
126
101
  const body = JSON.stringify(input);
127
102
  const stamp = await this.stamper.stamp(body);
128
103
  return {
@@ -132,22 +107,22 @@ class TurnkeyClient {
132
107
  };
133
108
  };
134
109
  /**
135
- * Get details about an activity.
110
+ * Get details about an authenticator.
136
111
  *
137
- * Sign the provided `TGetActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_activity).
112
+ * Sign the provided `TGetAuthenticatorBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticator).
138
113
  *
139
- * See also {@link stampGetActivity}.
114
+ * See also {@link stampGetAuthenticator}.
140
115
  */
141
- this.getActivity = async (input) => {
142
- return this.request("/public/v1/query/get_activity", input);
116
+ this.getAuthenticator = async (input) => {
117
+ return this.request("/public/v1/query/get_authenticator", input);
143
118
  };
144
119
  /**
145
- * Produce a `SignedRequest` from `TGetActivityBody` by using the client's `stamp` function.
120
+ * Produce a `SignedRequest` from `TGetAuthenticatorBody` by using the client's `stamp` function.
146
121
  *
147
- * See also {@link GetActivity}.
122
+ * See also {@link GetAuthenticator}.
148
123
  */
149
- this.stampGetActivity = async (input) => {
150
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_activity";
124
+ this.stampGetAuthenticator = async (input) => {
125
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticator";
151
126
  const body = JSON.stringify(input);
152
127
  const stamp = await this.stamper.stamp(body);
153
128
  return {
@@ -157,22 +132,22 @@ class TurnkeyClient {
157
132
  };
158
133
  };
159
134
  /**
160
- * Get details about an API key.
135
+ * Get details about authenticators for a user.
161
136
  *
162
- * Sign the provided `TGetApiKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_api_key).
137
+ * Sign the provided `TGetAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticators).
163
138
  *
164
- * See also {@link stampGetApiKey}.
139
+ * See also {@link stampGetAuthenticators}.
165
140
  */
166
- this.getApiKey = async (input) => {
167
- return this.request("/public/v1/query/get_api_key", input);
141
+ this.getAuthenticators = async (input) => {
142
+ return this.request("/public/v1/query/get_authenticators", input);
168
143
  };
169
144
  /**
170
- * Produce a `SignedRequest` from `TGetApiKeyBody` by using the client's `stamp` function.
145
+ * Produce a `SignedRequest` from `TGetAuthenticatorsBody` by using the client's `stamp` function.
171
146
  *
172
- * See also {@link GetApiKey}.
147
+ * See also {@link GetAuthenticators}.
173
148
  */
174
- this.stampGetApiKey = async (input) => {
175
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_api_key";
149
+ this.stampGetAuthenticators = async (input) => {
150
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticators";
176
151
  const body = JSON.stringify(input);
177
152
  const stamp = await this.stamper.stamp(body);
178
153
  return {
@@ -182,22 +157,22 @@ class TurnkeyClient {
182
157
  };
183
158
  };
184
159
  /**
185
- * Get details about API keys for a user.
160
+ * Get the boot proof for a given ephemeral key.
186
161
  *
187
- * Sign the provided `TGetApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_api_keys).
162
+ * Sign the provided `TGetBootProofBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_boot_proof).
188
163
  *
189
- * See also {@link stampGetApiKeys}.
164
+ * See also {@link stampGetBootProof}.
190
165
  */
191
- this.getApiKeys = async (input) => {
192
- return this.request("/public/v1/query/get_api_keys", input);
166
+ this.getBootProof = async (input) => {
167
+ return this.request("/public/v1/query/get_boot_proof", input);
193
168
  };
194
169
  /**
195
- * Produce a `SignedRequest` from `TGetApiKeysBody` by using the client's `stamp` function.
170
+ * Produce a `SignedRequest` from `TGetBootProofBody` by using the client's `stamp` function.
196
171
  *
197
- * See also {@link GetApiKeys}.
172
+ * See also {@link GetBootProof}.
198
173
  */
199
- this.stampGetApiKeys = async (input) => {
200
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_api_keys";
174
+ this.stampGetBootProof = async (input) => {
175
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_boot_proof";
201
176
  const body = JSON.stringify(input);
202
177
  const stamp = await this.stamper.stamp(body);
203
178
  return {
@@ -207,22 +182,22 @@ class TurnkeyClient {
207
182
  };
208
183
  };
209
184
  /**
210
- * Get live runtime status for a TVC App from the cluster.
185
+ * Poll the status of a fee claim by its claim_request_id.
211
186
  *
212
- * Sign the provided `TGetAppStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_app_status).
187
+ * Sign the provided `TGetClaimEarnFeesStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_claim_earn_fees_status).
213
188
  *
214
- * See also {@link stampGetAppStatus}.
189
+ * See also {@link stampGetClaimEarnFeesStatus}.
215
190
  */
216
- this.getAppStatus = async (input) => {
217
- return this.request("/public/v1/query/get_app_status", input);
191
+ this.getClaimEarnFeesStatus = async (input) => {
192
+ return this.request("/public/v1/query/get_claim_earn_fees_status", input);
218
193
  };
219
194
  /**
220
- * Produce a `SignedRequest` from `TGetAppStatusBody` by using the client's `stamp` function.
195
+ * Produce a `SignedRequest` from `TGetClaimEarnFeesStatusBody` by using the client's `stamp` function.
221
196
  *
222
- * See also {@link GetAppStatus}.
197
+ * See also {@link GetClaimEarnFeesStatus}.
223
198
  */
224
- this.stampGetAppStatus = async (input) => {
225
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_app_status";
199
+ this.stampGetClaimEarnFeesStatus = async (input) => {
200
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_claim_earn_fees_status";
226
201
  const body = JSON.stringify(input);
227
202
  const stamp = await this.stamper.stamp(body);
228
203
  return {
@@ -232,22 +207,22 @@ class TurnkeyClient {
232
207
  };
233
208
  };
234
209
  /**
235
- * Get details about an authenticator.
210
+ * Poll the status of a wrapper deployment by its deploy_request_id.
236
211
  *
237
- * Sign the provided `TGetAuthenticatorBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticator).
212
+ * Sign the provided `TGetEarnDeployStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_deploy_status).
238
213
  *
239
- * See also {@link stampGetAuthenticator}.
214
+ * See also {@link stampGetEarnDeployStatus}.
240
215
  */
241
- this.getAuthenticator = async (input) => {
242
- return this.request("/public/v1/query/get_authenticator", input);
216
+ this.getEarnDeployStatus = async (input) => {
217
+ return this.request("/public/v1/query/get_earn_deploy_status", input);
243
218
  };
244
219
  /**
245
- * Produce a `SignedRequest` from `TGetAuthenticatorBody` by using the client's `stamp` function.
220
+ * Produce a `SignedRequest` from `TGetEarnDeployStatusBody` by using the client's `stamp` function.
246
221
  *
247
- * See also {@link GetAuthenticator}.
222
+ * See also {@link GetEarnDeployStatus}.
248
223
  */
249
- this.stampGetAuthenticator = async (input) => {
250
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticator";
224
+ this.stampGetEarnDeployStatus = async (input) => {
225
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_earn_deploy_status";
251
226
  const body = JSON.stringify(input);
252
227
  const stamp = await this.stamper.stamp(body);
253
228
  return {
@@ -257,22 +232,22 @@ class TurnkeyClient {
257
232
  };
258
233
  };
259
234
  /**
260
- * Get details about authenticators for a user.
235
+ * Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
261
236
  *
262
- * Sign the provided `TGetAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticators).
237
+ * Sign the provided `TGetEarnDepositStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_deposit_status).
263
238
  *
264
- * See also {@link stampGetAuthenticators}.
239
+ * See also {@link stampGetEarnDepositStatus}.
265
240
  */
266
- this.getAuthenticators = async (input) => {
267
- return this.request("/public/v1/query/get_authenticators", input);
241
+ this.getEarnDepositStatus = async (input) => {
242
+ return this.request("/public/v1/query/get_earn_deposit_status", input);
268
243
  };
269
244
  /**
270
- * Produce a `SignedRequest` from `TGetAuthenticatorsBody` by using the client's `stamp` function.
245
+ * Produce a `SignedRequest` from `TGetEarnDepositStatusBody` by using the client's `stamp` function.
271
246
  *
272
- * See also {@link GetAuthenticators}.
247
+ * See also {@link GetEarnDepositStatus}.
273
248
  */
274
- this.stampGetAuthenticators = async (input) => {
275
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticators";
249
+ this.stampGetEarnDepositStatus = async (input) => {
250
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_earn_deposit_status";
276
251
  const body = JSON.stringify(input);
277
252
  const stamp = await this.stamper.stamp(body);
278
253
  return {
@@ -282,22 +257,22 @@ class TurnkeyClient {
282
257
  };
283
258
  };
284
259
  /**
285
- * Get the boot proof for a given ephemeral key.
260
+ * Poll the status of a withdrawal by its withdraw_request_id.
286
261
  *
287
- * Sign the provided `TGetBootProofBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_boot_proof).
262
+ * Sign the provided `TGetEarnWithdrawStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_withdraw_status).
288
263
  *
289
- * See also {@link stampGetBootProof}.
264
+ * See also {@link stampGetEarnWithdrawStatus}.
290
265
  */
291
- this.getBootProof = async (input) => {
292
- return this.request("/public/v1/query/get_boot_proof", input);
266
+ this.getEarnWithdrawStatus = async (input) => {
267
+ return this.request("/public/v1/query/get_earn_withdraw_status", input);
293
268
  };
294
269
  /**
295
- * Produce a `SignedRequest` from `TGetBootProofBody` by using the client's `stamp` function.
270
+ * Produce a `SignedRequest` from `TGetEarnWithdrawStatusBody` by using the client's `stamp` function.
296
271
  *
297
- * See also {@link GetBootProof}.
272
+ * See also {@link GetEarnWithdrawStatus}.
298
273
  */
299
- this.stampGetBootProof = async (input) => {
300
- const fullUrl = this.config.baseUrl + "/public/v1/query/get_boot_proof";
274
+ this.stampGetEarnWithdrawStatus = async (input) => {
275
+ const fullUrl = this.config.baseUrl + "/public/v1/query/get_earn_withdraw_status";
301
276
  const body = JSON.stringify(input);
302
277
  const stamp = await this.stamper.stamp(body);
303
278
  return {
@@ -782,32 +757,7 @@ class TurnkeyClient {
782
757
  };
783
758
  };
784
759
  /**
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.
760
+ * Poll the status of a swap by its swap_request_id. Covers same-chain and cross-chain swaps.
811
761
  *
812
762
  * Sign the provided `TGetSwapStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_status).
813
763
  *
@@ -1082,6 +1032,81 @@ class TurnkeyClient {
1082
1032
  url: fullUrl,
1083
1033
  };
1084
1034
  };
1035
+ /**
1036
+ * Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
1037
+ *
1038
+ * Sign the provided `TListEarnEnabledVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_enabled_vaults).
1039
+ *
1040
+ * See also {@link stampListEarnEnabledVaults}.
1041
+ */
1042
+ this.listEarnEnabledVaults = async (input) => {
1043
+ return this.request("/public/v1/query/list_earn_enabled_vaults", input);
1044
+ };
1045
+ /**
1046
+ * Produce a `SignedRequest` from `TListEarnEnabledVaultsBody` by using the client's `stamp` function.
1047
+ *
1048
+ * See also {@link ListEarnEnabledVaults}.
1049
+ */
1050
+ this.stampListEarnEnabledVaults = async (input) => {
1051
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_earn_enabled_vaults";
1052
+ const body = JSON.stringify(input);
1053
+ const stamp = await this.stamper.stamp(body);
1054
+ return {
1055
+ body: body,
1056
+ stamp: stamp,
1057
+ url: fullUrl,
1058
+ };
1059
+ };
1060
+ /**
1061
+ * Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
1062
+ *
1063
+ * Sign the provided `TListEarnPositionsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_positions).
1064
+ *
1065
+ * See also {@link stampListEarnPositions}.
1066
+ */
1067
+ this.listEarnPositions = async (input) => {
1068
+ return this.request("/public/v1/query/list_earn_positions", input);
1069
+ };
1070
+ /**
1071
+ * Produce a `SignedRequest` from `TListEarnPositionsBody` by using the client's `stamp` function.
1072
+ *
1073
+ * See also {@link ListEarnPositions}.
1074
+ */
1075
+ this.stampListEarnPositions = async (input) => {
1076
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_earn_positions";
1077
+ const body = JSON.stringify(input);
1078
+ const stamp = await this.stamper.stamp(body);
1079
+ return {
1080
+ body: body,
1081
+ stamp: stamp,
1082
+ url: fullUrl,
1083
+ };
1084
+ };
1085
+ /**
1086
+ * Get the catalog of all wrappable yield vaults across supported chains, enriched with live TVL and APY. Annotates which vaults the organization has already enabled.
1087
+ *
1088
+ * Sign the provided `TListEarnVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_vaults).
1089
+ *
1090
+ * See also {@link stampListEarnVaults}.
1091
+ */
1092
+ this.listEarnVaults = async (input) => {
1093
+ return this.request("/public/v1/query/list_earn_vaults", input);
1094
+ };
1095
+ /**
1096
+ * Produce a `SignedRequest` from `TListEarnVaultsBody` by using the client's `stamp` function.
1097
+ *
1098
+ * See also {@link ListEarnVaults}.
1099
+ */
1100
+ this.stampListEarnVaults = async (input) => {
1101
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_earn_vaults";
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
+ };
1085
1110
  /**
1086
1111
  * List email events for the organization.
1087
1112
  *
@@ -1107,6 +1132,31 @@ class TurnkeyClient {
1107
1132
  url: fullUrl,
1108
1133
  };
1109
1134
  };
1135
+ /**
1136
+ * List Ethereum transaction history for a wallet address on the specified network.
1137
+ *
1138
+ * Sign the provided `TListEthTransactionHistoryBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_eth_transaction_history).
1139
+ *
1140
+ * See also {@link stampListEthTransactionHistory}.
1141
+ */
1142
+ this.listEthTransactionHistory = async (input) => {
1143
+ return this.request("/public/v1/query/list_eth_transaction_history", input);
1144
+ };
1145
+ /**
1146
+ * Produce a `SignedRequest` from `TListEthTransactionHistoryBody` by using the client's `stamp` function.
1147
+ *
1148
+ * See also {@link ListEthTransactionHistory}.
1149
+ */
1150
+ this.stampListEthTransactionHistory = async (input) => {
1151
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_eth_transaction_history";
1152
+ const body = JSON.stringify(input);
1153
+ const stamp = await this.stamper.stamp(body);
1154
+ return {
1155
+ body: body,
1156
+ stamp: stamp,
1157
+ url: fullUrl,
1158
+ };
1159
+ };
1110
1160
  /**
1111
1161
  * List all fiat on ramp provider credentials within an organization.
1112
1162
  *
@@ -1257,6 +1307,31 @@ class TurnkeyClient {
1257
1307
  url: fullUrl,
1258
1308
  };
1259
1309
  };
1310
+ /**
1311
+ * List Solana transaction history for a wallet address on the specified network.
1312
+ *
1313
+ * Sign the provided `TListSolTransactionHistoryBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_sol_transaction_history).
1314
+ *
1315
+ * See also {@link stampListSolTransactionHistory}.
1316
+ */
1317
+ this.listSolTransactionHistory = async (input) => {
1318
+ return this.request("/public/v1/query/list_sol_transaction_history", input);
1319
+ };
1320
+ /**
1321
+ * Produce a `SignedRequest` from `TListSolTransactionHistoryBody` by using the client's `stamp` function.
1322
+ *
1323
+ * See also {@link ListSolTransactionHistory}.
1324
+ */
1325
+ this.stampListSolTransactionHistory = async (input) => {
1326
+ const fullUrl = this.config.baseUrl + "/public/v1/query/list_sol_transaction_history";
1327
+ const body = JSON.stringify(input);
1328
+ const stamp = await this.stamper.stamp(body);
1329
+ return {
1330
+ body: body,
1331
+ stamp: stamp,
1332
+ url: fullUrl,
1333
+ };
1334
+ };
1260
1335
  /**
1261
1336
  * Get all suborg IDs associated given a parent org ID and an optional filter.
1262
1337
  *
@@ -1582,6 +1657,56 @@ class TurnkeyClient {
1582
1657
  url: fullUrl,
1583
1658
  };
1584
1659
  };
1660
+ /**
1661
+ * Claim earn fees through the activity pipeline.
1662
+ *
1663
+ * Sign the provided `TClaimEarnFeesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/claim_earn_fees).
1664
+ *
1665
+ * See also {@link stampClaimEarnFees}.
1666
+ */
1667
+ this.claimEarnFees = async (input) => {
1668
+ return this.request("/public/v1/submit/claim_earn_fees", input);
1669
+ };
1670
+ /**
1671
+ * Produce a `SignedRequest` from `TClaimEarnFeesBody` by using the client's `stamp` function.
1672
+ *
1673
+ * See also {@link ClaimEarnFees}.
1674
+ */
1675
+ this.stampClaimEarnFees = async (input) => {
1676
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/claim_earn_fees";
1677
+ const body = JSON.stringify(input);
1678
+ const stamp = await this.stamper.stamp(body);
1679
+ return {
1680
+ body: body,
1681
+ stamp: stamp,
1682
+ url: fullUrl,
1683
+ };
1684
+ };
1685
+ /**
1686
+ * Claim swap fees through the activity pipeline.
1687
+ *
1688
+ * Sign the provided `TClaimSwapFeesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/claim_swap_fees).
1689
+ *
1690
+ * See also {@link stampClaimSwapFees}.
1691
+ */
1692
+ this.claimSwapFees = async (input) => {
1693
+ return this.request("/public/v1/submit/claim_swap_fees", input);
1694
+ };
1695
+ /**
1696
+ * Produce a `SignedRequest` from `TClaimSwapFeesBody` by using the client's `stamp` function.
1697
+ *
1698
+ * See also {@link ClaimSwapFees}.
1699
+ */
1700
+ this.stampClaimSwapFees = async (input) => {
1701
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/claim_swap_fees";
1702
+ const body = JSON.stringify(input);
1703
+ const stamp = await this.stamper.stamp(body);
1704
+ return {
1705
+ body: body,
1706
+ stamp: stamp,
1707
+ url: fullUrl,
1708
+ };
1709
+ };
1585
1710
  /**
1586
1711
  * Add API keys to an existing user.
1587
1712
  *
@@ -1983,7 +2108,7 @@ class TurnkeyClient {
1983
2108
  };
1984
2109
  };
1985
2110
  /**
1986
- * Create a new sub-organization.
2111
+ * Create a new sub-organization. Each root user must have at least one valid credential: an API key, an authenticator, an OAuth provider, or an email or phone number with a login method enabled on the sub-organization (email, email OTP, or SMS).
1987
2112
  *
1988
2113
  * Sign the provided `TCreateSubOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_sub_organization).
1989
2114
  *
@@ -2007,6 +2132,31 @@ class TurnkeyClient {
2007
2132
  url: fullUrl,
2008
2133
  };
2009
2134
  };
2135
+ /**
2136
+ * Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
2137
+ *
2138
+ * Sign the provided `TCreateSwapQuoteBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_swap_quote).
2139
+ *
2140
+ * See also {@link stampCreateSwapQuote}.
2141
+ */
2142
+ this.createSwapQuote = async (input) => {
2143
+ return this.request("/public/v1/submit/create_swap_quote", input);
2144
+ };
2145
+ /**
2146
+ * Produce a `SignedRequest` from `TCreateSwapQuoteBody` by using the client's `stamp` function.
2147
+ *
2148
+ * See also {@link CreateSwapQuote}.
2149
+ */
2150
+ this.stampCreateSwapQuote = async (input) => {
2151
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/create_swap_quote";
2152
+ const body = JSON.stringify(input);
2153
+ const stamp = await this.stamper.stamp(body);
2154
+ return {
2155
+ body: body,
2156
+ stamp: stamp,
2157
+ url: fullUrl,
2158
+ };
2159
+ };
2010
2160
  /**
2011
2161
  * Create a new TVC application
2012
2162
  *
@@ -2158,7 +2308,7 @@ class TurnkeyClient {
2158
2308
  };
2159
2309
  };
2160
2310
  /**
2161
- * Create users in an existing organization.
2311
+ * Create users in an existing organization. Each user must have at least one valid credential: an API key, an authenticator, an OAuth provider, or an email or phone number with a login method enabled on the organization (email, email OTP, or SMS).
2162
2312
  *
2163
2313
  * Sign the provided `TCreateUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_users).
2164
2314
  *
@@ -2807,6 +2957,31 @@ class TurnkeyClient {
2807
2957
  url: fullUrl,
2808
2958
  };
2809
2959
  };
2960
+ /**
2961
+ * Enable or disable deposits to a deployed Earn wrapper. Withdrawals are always allowed.
2962
+ *
2963
+ * Sign the provided `TEarnSetWrapperStateBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_set_wrapper_state).
2964
+ *
2965
+ * See also {@link stampEarnSetWrapperState}.
2966
+ */
2967
+ this.earnSetWrapperState = async (input) => {
2968
+ return this.request("/public/v1/submit/earn_set_wrapper_state", input);
2969
+ };
2970
+ /**
2971
+ * Produce a `SignedRequest` from `TEarnSetWrapperStateBody` by using the client's `stamp` function.
2972
+ *
2973
+ * See also {@link EarnSetWrapperState}.
2974
+ */
2975
+ this.stampEarnSetWrapperState = async (input) => {
2976
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/earn_set_wrapper_state";
2977
+ const body = JSON.stringify(input);
2978
+ const stamp = await this.stamper.stamp(body);
2979
+ return {
2980
+ body: body,
2981
+ stamp: stamp,
2982
+ url: fullUrl,
2983
+ };
2984
+ };
2810
2985
  /**
2811
2986
  * Withdraw assets or redeem shares from an enabled yield vault.
2812
2987
  *
@@ -2908,7 +3083,32 @@ class TurnkeyClient {
2908
3083
  };
2909
3084
  };
2910
3085
  /**
2911
- * Execute a quoted swap through the activity pipeline and Turnkey broadcasting.
3086
+ * Submit an EIP-7702 undelegation transaction.
3087
+ *
3088
+ * Sign the provided `TEthUndelegate7702Body` with the client's `stamp` function, and submit the request (POST /public/v1/submit/eth_undelegate_7702).
3089
+ *
3090
+ * See also {@link stampEthUndelegate7702}.
3091
+ */
3092
+ this.ethUndelegate7702 = async (input) => {
3093
+ return this.request("/public/v1/submit/eth_undelegate_7702", input);
3094
+ };
3095
+ /**
3096
+ * Produce a `SignedRequest` from `TEthUndelegate7702Body` by using the client's `stamp` function.
3097
+ *
3098
+ * See also {@link EthUndelegate7702}.
3099
+ */
3100
+ this.stampEthUndelegate7702 = async (input) => {
3101
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/eth_undelegate_7702";
3102
+ const body = JSON.stringify(input);
3103
+ const stamp = await this.stamper.stamp(body);
3104
+ return {
3105
+ body: body,
3106
+ stamp: stamp,
3107
+ url: fullUrl,
3108
+ };
3109
+ };
3110
+ /**
3111
+ * Execute the exact provider quote identified by quote_id through the activity pipeline and Turnkey broadcasting. Requests must use ACTIVITY_TYPE_EXECUTE_SWAP_V2.
2912
3112
  *
2913
3113
  * Sign the provided `TExecuteSwapBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/execute_swap).
2914
3114
  *
@@ -3107,6 +3307,31 @@ class TurnkeyClient {
3107
3307
  url: fullUrl,
3108
3308
  };
3109
3309
  };
3310
+ /**
3311
+ * Initialize secret imports by generating Ingress Encryption Target Keys.
3312
+ *
3313
+ * Sign the provided `TInitImportSecretsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_secrets).
3314
+ *
3315
+ * See also {@link stampInitImportSecrets}.
3316
+ */
3317
+ this.initImportSecrets = async (input) => {
3318
+ return this.request("/public/v1/submit/init_import_secrets", input);
3319
+ };
3320
+ /**
3321
+ * Produce a `SignedRequest` from `TInitImportSecretsBody` by using the client's `stamp` function.
3322
+ *
3323
+ * See also {@link InitImportSecrets}.
3324
+ */
3325
+ this.stampInitImportSecrets = async (input) => {
3326
+ const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_secrets";
3327
+ const body = JSON.stringify(input);
3328
+ const stamp = await this.stamper.stamp(body);
3329
+ return {
3330
+ body: body,
3331
+ stamp: stamp,
3332
+ url: fullUrl,
3333
+ };
3334
+ };
3110
3335
  /**
3111
3336
  * Initialize a new wallet import.
3112
3337
  *
@@ -3658,7 +3883,7 @@ class TurnkeyClient {
3658
3883
  };
3659
3884
  };
3660
3885
  /**
3661
- * Submit a transaction intent describing an SVM transaction you would like to broadcast.
3886
+ * Submit a transaction intent describing an SVM transaction you would like to broadcast. Supports single- and multi-signer intents via activity type versioning.
3662
3887
  *
3663
3888
  * Sign the provided `TSolSendTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sol_send_transaction).
3664
3889
  *
@@ -4157,31 +4382,6 @@ class TurnkeyClient {
4157
4382
  url: fullUrl,
4158
4383
  };
4159
4384
  };
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
4385
  /**
4186
4386
  * Enable or disable swap configuration for an organization.
4187
4387
  *