@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @turnkey/http
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1475](https://github.com/tkhq/sdk/pull/1475) [`4a20057`](https://github.com/tkhq/sdk/commit/4a20057b37d6081c0c38c0a4840affcd16140d47) Thanks [@moe-dev](https://github.com/moe-dev)! - Sync generated API clients and types with the latest public API swagger.
8
+
9
+ ### New query endpoints
10
+ - `getClaimEarnFeesStatus` (`POST /public/v1/query/get_claim_earn_fees_status`) — poll Earn fee-claim status by the `claimRequestId` returned from `ClaimEarnFees`. Response status is `PENDING` | `COMPLETED` | `FAILED`, with optional `claimTxHash` / `error`.
11
+ - `getSwapStatus` (`POST /public/v1/query/get_swap_status`) — poll swap status by the `swapRequestId` returned from `ExecuteSwap`. Covers same-chain and cross-chain swaps, and returns provider, input/output tokens and amounts, origin/destination tx hashes, optional refund info on failure, and normalized error details.
12
+
13
+ ### New submit endpoints / activities
14
+ - `claimSwapFees` (`POST /public/v1/submit/claim_swap_fees`, `ACTIVITY_TYPE_CLAIM_SWAP_FEES`) — claim swap fees through the activity pipeline; result includes a Relay `requestId`.
15
+ - `ethUndelegate7702` (`POST /public/v1/submit/eth_undelegate_7702`, `ACTIVITY_TYPE_ETH_UNDELEGATE_7702`) — submit an EIP-7702 undelegation for a wallet/private-key address on a supported CAIP-2 chain. Optional nonce / gas / fee fields; result returns a `sendTransactionStatusId` for polling.
16
+ - `upsertSwapConfig` (`POST /public/v1/submit/upsert_swap_config`, `ACTIVITY_TYPE_UPSERT_SWAP_CONFIG`) — enable or update org swap config (`feeReceiverWalletAddress`, `feeBps`, and Enterprise-only `stableFeeBps` for stablecoin pairs).
17
+ - `createSwapQuote` (`ACTIVITY_TYPE_CREATE_SWAP_QUOTE`) — request provider quotes for a swap (`signWith`, CAIP-19 `inputToken` / `outputToken`, `inputAmount`, optional `slippageBps`). Returns one or more `v1SwapQuote` values; pass `quoteId` into execute-swap v2.
18
+
19
+ ### Related activity / type updates
20
+ - `ACTIVITY_TYPE_EXECUTE_SWAP_V2` / `v1ExecuteSwapIntentV2` — quote-bound swap execution. Takes `quoteId` plus the exact quoted amounts (`inputAmount`, `quotedOutputAmount`, `minOutputAmount`, `sponsor`), with optional `evmNonce` / `recentBlockhash` / `gasStationNonce`. Signer is derived from the quote and must not be resupplied. Result still exposes `swapRequestId` for `getSwapStatus`.
21
+ - `ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME` / `v1UpdateWalletAccountNameIntent` — rename a wallet account by `walletAccountId`.
22
+ - Supporting swap types: `v1SwapQuote`, `v1SwapError`, `v1SwapRefund`.
23
+ - CAIP-2 enums used by transaction intents (including undelegation) now include `eip155:143`.
24
+
25
+ These surfaces are generated into `@turnkey/http`, `@turnkey/sdk-types`, `@turnkey/sdk-browser`, `@turnkey/sdk-server`, and `@turnkey/core`.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies []:
30
+ - @turnkey/api-key-stamper@0.6.10
31
+
32
+ ## 6.0.0
33
+
34
+ ### Major Changes
35
+
36
+ - [#1448](https://github.com/tkhq/sdk/pull/1448) [`de5e169`](https://github.com/tkhq/sdk/commit/de5e1692ab79c18d898326e76777fa7ea54df812) Thanks [@Bijan-Massoumi](https://github.com/Bijan-Massoumi)! - Add Solana send-transaction v2 support for transactions requiring multiple Turnkey signers.
37
+
38
+ `solSendTransaction()` now uses `ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2`. The v2 intent accepts an ordered `signWiths` array for transactions requiring multiple Turnkey signers, and its full unsigned transaction wire format is hex-encoded.
39
+
40
+ **Before:**
41
+
42
+ ```ts
43
+ await client.solSendTransaction({
44
+ unsignedTransaction: unsignedTransactionBase64,
45
+ signWith: signerAddress,
46
+ caip2,
47
+ sponsor,
48
+ });
49
+ ```
50
+
51
+ **After:**
52
+
53
+ ```ts
54
+ await client.solSendTransaction({
55
+ unsignedTransaction: unsignedTransactionHex,
56
+ signWiths: [signerAddress],
57
+ caip2,
58
+ sponsor,
59
+ });
60
+ ```
61
+
62
+ ### Minor Changes
63
+
64
+ - [#1452](https://github.com/tkhq/sdk/pull/1452) [`b447497`](https://github.com/tkhq/sdk/commit/b447497e965b0b1df02d2294e87f89cedb761719) Author [@ericvelazquez](https://github.com/ericvelazquez) - Add Turnkey Earn APIs (early access) to the high-level SDK clients: `earnVaults`, `earnEnabledVaults`, `earnPositions`, `earnDeposit`, `earnDepositStatus`, `earnWithdraw`, `earnWithdrawStatus`, `earnDeployWrapper`, and `earnDeployStatus`.
65
+
66
+ The Earn read endpoints live under `/query/` but aren't named `get`/`list`/`test`/`validate`, so each package's codegen pins `/query/earn_*` to query methods by path. `@turnkey/http` gains the previously-missing `earnDeployStatus` so its generated Earn surface matches the other packages.
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies []:
71
+ - @turnkey/api-key-stamper@0.6.9
72
+
3
73
  ## 5.0.0
4
74
 
5
75
  ### Major Changes
@@ -1,9 +1,4 @@
1
1
  import { THttpConfig, TSignedRequest, TStamper } from "../../../../../base";
2
- import type { TEarnDepositStatusBody, TEarnDepositStatusResponse } from "./public_api.fetcher";
3
- import type { TEarnEnabledVaultsBody, TEarnEnabledVaultsResponse } from "./public_api.fetcher";
4
- import type { TEarnPositionsBody, TEarnPositionsResponse } from "./public_api.fetcher";
5
- import type { TEarnVaultsBody, TEarnVaultsResponse } from "./public_api.fetcher";
6
- import type { TEarnWithdrawStatusBody, TEarnWithdrawStatusResponse } from "./public_api.fetcher";
7
2
  import type { TGetActivityBody, TGetActivityResponse } from "./public_api.fetcher";
8
3
  import type { TGetApiKeyBody, TGetApiKeyResponse } from "./public_api.fetcher";
9
4
  import type { TGetApiKeysBody, TGetApiKeysResponse } from "./public_api.fetcher";
@@ -11,6 +6,10 @@ import type { TGetAppStatusBody, TGetAppStatusResponse } from "./public_api.fetc
11
6
  import type { TGetAuthenticatorBody, TGetAuthenticatorResponse } from "./public_api.fetcher";
12
7
  import type { TGetAuthenticatorsBody, TGetAuthenticatorsResponse } from "./public_api.fetcher";
13
8
  import type { TGetBootProofBody, TGetBootProofResponse } from "./public_api.fetcher";
9
+ import type { TGetClaimEarnFeesStatusBody, TGetClaimEarnFeesStatusResponse } from "./public_api.fetcher";
10
+ import type { TGetEarnDeployStatusBody, TGetEarnDeployStatusResponse } from "./public_api.fetcher";
11
+ import type { TGetEarnDepositStatusBody, TGetEarnDepositStatusResponse } from "./public_api.fetcher";
12
+ import type { TGetEarnWithdrawStatusBody, TGetEarnWithdrawStatusResponse } from "./public_api.fetcher";
14
13
  import type { TGetGasUsageBody, TGetGasUsageResponse } from "./public_api.fetcher";
15
14
  import type { TGetIpAllowlistBody, TGetIpAllowlistResponse } from "./public_api.fetcher";
16
15
  import type { TGetLatestBootProofBody, TGetLatestBootProofResponse } from "./public_api.fetcher";
@@ -30,7 +29,6 @@ import type { TGetSendTransactionStatusBody, TGetSendTransactionStatusResponse }
30
29
  import type { TGetSessionProfileBody, TGetSessionProfileResponse } from "./public_api.fetcher";
31
30
  import type { TGetSessionProfilesBody, TGetSessionProfilesResponse } from "./public_api.fetcher";
32
31
  import type { TGetSmartContractInterfaceBody, TGetSmartContractInterfaceResponse } from "./public_api.fetcher";
33
- import type { TGetSwapQuoteBody, TGetSwapQuoteResponse } from "./public_api.fetcher";
34
32
  import type { TGetSwapStatusBody, TGetSwapStatusResponse } from "./public_api.fetcher";
35
33
  import type { TGetTvcAppBody, TGetTvcAppResponse } from "./public_api.fetcher";
36
34
  import type { TGetTvcDeploymentBody, TGetTvcDeploymentResponse } from "./public_api.fetcher";
@@ -42,13 +40,18 @@ import type { TGetWalletAccountBody, TGetWalletAccountResponse } from "./public_
42
40
  import type { TGetWalletAddressBalancesBody, TGetWalletAddressBalancesResponse } from "./public_api.fetcher";
43
41
  import type { TGetActivitiesBody, TGetActivitiesResponse } from "./public_api.fetcher";
44
42
  import type { TGetAppProofsBody, TGetAppProofsResponse } from "./public_api.fetcher";
43
+ import type { TListEarnEnabledVaultsBody, TListEarnEnabledVaultsResponse } from "./public_api.fetcher";
44
+ import type { TListEarnPositionsBody, TListEarnPositionsResponse } from "./public_api.fetcher";
45
+ import type { TListEarnVaultsBody, TListEarnVaultsResponse } from "./public_api.fetcher";
45
46
  import type { TListEmailEventsBody, TListEmailEventsResponse } from "./public_api.fetcher";
47
+ import type { TListEthTransactionHistoryBody, TListEthTransactionHistoryResponse } from "./public_api.fetcher";
46
48
  import type { TListFiatOnRampCredentialsBody, TListFiatOnRampCredentialsResponse } from "./public_api.fetcher";
47
49
  import type { TListOauth2CredentialsBody, TListOauth2CredentialsResponse } from "./public_api.fetcher";
48
50
  import type { TGetPoliciesBody, TGetPoliciesResponse } from "./public_api.fetcher";
49
51
  import type { TListPrivateKeyTagsBody, TListPrivateKeyTagsResponse } from "./public_api.fetcher";
50
52
  import type { TGetPrivateKeysBody, TGetPrivateKeysResponse } from "./public_api.fetcher";
51
53
  import type { TGetSmartContractInterfacesBody, TGetSmartContractInterfacesResponse } from "./public_api.fetcher";
54
+ import type { TListSolTransactionHistoryBody, TListSolTransactionHistoryResponse } from "./public_api.fetcher";
52
55
  import type { TGetSubOrgIdsBody, TGetSubOrgIdsResponse } from "./public_api.fetcher";
53
56
  import type { TListSupportedAssetsBody, TListSupportedAssetsResponse } from "./public_api.fetcher";
54
57
  import type { TGetTvcAppDeploymentsBody, TGetTvcAppDeploymentsResponse } from "./public_api.fetcher";
@@ -62,6 +65,8 @@ import type { TListWebhookEndpointsBody, TListWebhookEndpointsResponse } from ".
62
65
  import type { TValidateTvcImageBody, TValidateTvcImageResponse } from "./public_api.fetcher";
63
66
  import type { TGetWhoamiBody, TGetWhoamiResponse } from "./public_api.fetcher";
64
67
  import type { TApproveActivityBody, TApproveActivityResponse } from "./public_api.fetcher";
68
+ import type { TClaimEarnFeesBody, TClaimEarnFeesResponse } from "./public_api.fetcher";
69
+ import type { TClaimSwapFeesBody, TClaimSwapFeesResponse } from "./public_api.fetcher";
65
70
  import type { TCreateApiKeysBody, TCreateApiKeysResponse } from "./public_api.fetcher";
66
71
  import type { TCreateApiOnlyUsersBody, TCreateApiOnlyUsersResponse } from "./public_api.fetcher";
67
72
  import type { TCreateAuthenticatorsBody, TCreateAuthenticatorsResponse } from "./public_api.fetcher";
@@ -79,6 +84,7 @@ import type { TCreateReadWriteSessionBody, TCreateReadWriteSessionResponse } fro
79
84
  import type { TCreateSessionProfileBody, TCreateSessionProfileResponse } from "./public_api.fetcher";
80
85
  import type { TCreateSmartContractInterfaceBody, TCreateSmartContractInterfaceResponse } from "./public_api.fetcher";
81
86
  import type { TCreateSubOrganizationBody, TCreateSubOrganizationResponse } from "./public_api.fetcher";
87
+ import type { TCreateSwapQuoteBody, TCreateSwapQuoteResponse } from "./public_api.fetcher";
82
88
  import type { TCreateTvcAppBody, TCreateTvcAppResponse } from "./public_api.fetcher";
83
89
  import type { TCreateTvcDeploymentBody, TCreateTvcDeploymentResponse } from "./public_api.fetcher";
84
90
  import type { TCreateTvcManifestApprovalsBody, TCreateTvcManifestApprovalsResponse } from "./public_api.fetcher";
@@ -111,10 +117,12 @@ import type { TDeleteWalletsBody, TDeleteWalletsResponse } from "./public_api.fe
111
117
  import type { TDeleteWebhookEndpointBody, TDeleteWebhookEndpointResponse } from "./public_api.fetcher";
112
118
  import type { TEarnDeployWrapperBody, TEarnDeployWrapperResponse } from "./public_api.fetcher";
113
119
  import type { TEarnDepositBody, TEarnDepositResponse } from "./public_api.fetcher";
120
+ import type { TEarnSetWrapperStateBody, TEarnSetWrapperStateResponse } from "./public_api.fetcher";
114
121
  import type { TEarnWithdrawBody, TEarnWithdrawResponse } from "./public_api.fetcher";
115
122
  import type { TEmailAuthBody, TEmailAuthResponse } from "./public_api.fetcher";
116
123
  import type { TEthSendRawTransactionBody, TEthSendRawTransactionResponse } from "./public_api.fetcher";
117
124
  import type { TEthSendTransactionBody, TEthSendTransactionResponse } from "./public_api.fetcher";
125
+ import type { TEthUndelegate7702Body, TEthUndelegate7702Response } from "./public_api.fetcher";
118
126
  import type { TExecuteSwapBody, TExecuteSwapResponse } from "./public_api.fetcher";
119
127
  import type { TExportPrivateKeyBody, TExportPrivateKeyResponse } from "./public_api.fetcher";
120
128
  import type { TExportWalletBody, TExportWalletResponse } from "./public_api.fetcher";
@@ -123,6 +131,7 @@ import type { TImportPrivateKeyBody, TImportPrivateKeyResponse } from "./public_
123
131
  import type { TImportWalletBody, TImportWalletResponse } from "./public_api.fetcher";
124
132
  import type { TInitFiatOnRampBody, TInitFiatOnRampResponse } from "./public_api.fetcher";
125
133
  import type { TInitImportPrivateKeyBody, TInitImportPrivateKeyResponse } from "./public_api.fetcher";
134
+ import type { TInitImportSecretsBody, TInitImportSecretsResponse } from "./public_api.fetcher";
126
135
  import type { TInitImportWalletBody, TInitImportWalletResponse } from "./public_api.fetcher";
127
136
  import type { TInitOtpBody, TInitOtpResponse } from "./public_api.fetcher";
128
137
  import type { TInitOtpAuthBody, TInitOtpAuthResponse } from "./public_api.fetcher";
@@ -165,7 +174,6 @@ import type { TUpdateUserPhoneNumberBody, TUpdateUserPhoneNumberResponse } from
165
174
  import type { TUpdateUserTagBody, TUpdateUserTagResponse } from "./public_api.fetcher";
166
175
  import type { TUpdateWalletBody, TUpdateWalletResponse } from "./public_api.fetcher";
167
176
  import type { TUpdateWebhookEndpointBody, TUpdateWebhookEndpointResponse } from "./public_api.fetcher";
168
- import type { TUpsertEarnClientFeeConfigBody, TUpsertEarnClientFeeConfigResponse } from "./public_api.fetcher";
169
177
  import type { TUpsertSwapConfigBody, TUpsertSwapConfigResponse } from "./public_api.fetcher";
170
178
  import type { TVerifyOtpBody, TVerifyOtpResponse } from "./public_api.fetcher";
171
179
  import type { TRefreshFeatureFlagsBody, TRefreshFeatureFlagsResponse } from "./public_api.fetcher";
@@ -176,76 +184,6 @@ export declare class TurnkeyClient {
176
184
  name: string;
177
185
  constructor(config: THttpConfig, stamper: TStamper);
178
186
  request<TBodyType, TResponseType>(url: string, body: TBodyType): Promise<TResponseType>;
179
- /**
180
- * Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
181
- *
182
- * Sign the provided `TEarnDepositStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_deposit_status).
183
- *
184
- * See also {@link stampEarnDepositStatus}.
185
- */
186
- earnDepositStatus: (input: TEarnDepositStatusBody) => Promise<TEarnDepositStatusResponse>;
187
- /**
188
- * Produce a `SignedRequest` from `TEarnDepositStatusBody` by using the client's `stamp` function.
189
- *
190
- * See also {@link EarnDepositStatus}.
191
- */
192
- stampEarnDepositStatus: (input: TEarnDepositStatusBody) => Promise<TSignedRequest>;
193
- /**
194
- * Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
195
- *
196
- * Sign the provided `TEarnEnabledVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_enabled_vaults).
197
- *
198
- * See also {@link stampEarnEnabledVaults}.
199
- */
200
- earnEnabledVaults: (input: TEarnEnabledVaultsBody) => Promise<TEarnEnabledVaultsResponse>;
201
- /**
202
- * Produce a `SignedRequest` from `TEarnEnabledVaultsBody` by using the client's `stamp` function.
203
- *
204
- * See also {@link EarnEnabledVaults}.
205
- */
206
- stampEarnEnabledVaults: (input: TEarnEnabledVaultsBody) => Promise<TSignedRequest>;
207
- /**
208
- * Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
209
- *
210
- * Sign the provided `TEarnPositionsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_positions).
211
- *
212
- * See also {@link stampEarnPositions}.
213
- */
214
- earnPositions: (input: TEarnPositionsBody) => Promise<TEarnPositionsResponse>;
215
- /**
216
- * Produce a `SignedRequest` from `TEarnPositionsBody` by using the client's `stamp` function.
217
- *
218
- * See also {@link EarnPositions}.
219
- */
220
- stampEarnPositions: (input: TEarnPositionsBody) => Promise<TSignedRequest>;
221
- /**
222
- * 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.
223
- *
224
- * Sign the provided `TEarnVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_vaults).
225
- *
226
- * See also {@link stampEarnVaults}.
227
- */
228
- earnVaults: (input: TEarnVaultsBody) => Promise<TEarnVaultsResponse>;
229
- /**
230
- * Produce a `SignedRequest` from `TEarnVaultsBody` by using the client's `stamp` function.
231
- *
232
- * See also {@link EarnVaults}.
233
- */
234
- stampEarnVaults: (input: TEarnVaultsBody) => Promise<TSignedRequest>;
235
- /**
236
- * Poll the status of a withdrawal by its withdraw_request_id.
237
- *
238
- * Sign the provided `TEarnWithdrawStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/earn_withdraw_status).
239
- *
240
- * See also {@link stampEarnWithdrawStatus}.
241
- */
242
- earnWithdrawStatus: (input: TEarnWithdrawStatusBody) => Promise<TEarnWithdrawStatusResponse>;
243
- /**
244
- * Produce a `SignedRequest` from `TEarnWithdrawStatusBody` by using the client's `stamp` function.
245
- *
246
- * See also {@link EarnWithdrawStatus}.
247
- */
248
- stampEarnWithdrawStatus: (input: TEarnWithdrawStatusBody) => Promise<TSignedRequest>;
249
187
  /**
250
188
  * Get details about an activity.
251
189
  *
@@ -344,6 +282,62 @@ export declare class TurnkeyClient {
344
282
  * See also {@link GetBootProof}.
345
283
  */
346
284
  stampGetBootProof: (input: TGetBootProofBody) => Promise<TSignedRequest>;
285
+ /**
286
+ * Poll the status of a fee claim by its claim_request_id.
287
+ *
288
+ * Sign the provided `TGetClaimEarnFeesStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_claim_earn_fees_status).
289
+ *
290
+ * See also {@link stampGetClaimEarnFeesStatus}.
291
+ */
292
+ getClaimEarnFeesStatus: (input: TGetClaimEarnFeesStatusBody) => Promise<TGetClaimEarnFeesStatusResponse>;
293
+ /**
294
+ * Produce a `SignedRequest` from `TGetClaimEarnFeesStatusBody` by using the client's `stamp` function.
295
+ *
296
+ * See also {@link GetClaimEarnFeesStatus}.
297
+ */
298
+ stampGetClaimEarnFeesStatus: (input: TGetClaimEarnFeesStatusBody) => Promise<TSignedRequest>;
299
+ /**
300
+ * Poll the status of a wrapper deployment by its deploy_request_id.
301
+ *
302
+ * Sign the provided `TGetEarnDeployStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_deploy_status).
303
+ *
304
+ * See also {@link stampGetEarnDeployStatus}.
305
+ */
306
+ getEarnDeployStatus: (input: TGetEarnDeployStatusBody) => Promise<TGetEarnDeployStatusResponse>;
307
+ /**
308
+ * Produce a `SignedRequest` from `TGetEarnDeployStatusBody` by using the client's `stamp` function.
309
+ *
310
+ * See also {@link GetEarnDeployStatus}.
311
+ */
312
+ stampGetEarnDeployStatus: (input: TGetEarnDeployStatusBody) => Promise<TSignedRequest>;
313
+ /**
314
+ * Poll the status of a deposit by its deposit_request_id (for the async/sponsored deposit path).
315
+ *
316
+ * Sign the provided `TGetEarnDepositStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_deposit_status).
317
+ *
318
+ * See also {@link stampGetEarnDepositStatus}.
319
+ */
320
+ getEarnDepositStatus: (input: TGetEarnDepositStatusBody) => Promise<TGetEarnDepositStatusResponse>;
321
+ /**
322
+ * Produce a `SignedRequest` from `TGetEarnDepositStatusBody` by using the client's `stamp` function.
323
+ *
324
+ * See also {@link GetEarnDepositStatus}.
325
+ */
326
+ stampGetEarnDepositStatus: (input: TGetEarnDepositStatusBody) => Promise<TSignedRequest>;
327
+ /**
328
+ * Poll the status of a withdrawal by its withdraw_request_id.
329
+ *
330
+ * Sign the provided `TGetEarnWithdrawStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_earn_withdraw_status).
331
+ *
332
+ * See also {@link stampGetEarnWithdrawStatus}.
333
+ */
334
+ getEarnWithdrawStatus: (input: TGetEarnWithdrawStatusBody) => Promise<TGetEarnWithdrawStatusResponse>;
335
+ /**
336
+ * Produce a `SignedRequest` from `TGetEarnWithdrawStatusBody` by using the client's `stamp` function.
337
+ *
338
+ * See also {@link GetEarnWithdrawStatus}.
339
+ */
340
+ stampGetEarnWithdrawStatus: (input: TGetEarnWithdrawStatusBody) => Promise<TSignedRequest>;
347
341
  /**
348
342
  * Get gas usage and gas limits for either the parent organization or a sub-organization.
349
343
  *
@@ -611,21 +605,7 @@ export declare class TurnkeyClient {
611
605
  */
612
606
  stampGetSmartContractInterface: (input: TGetSmartContractInterfaceBody) => Promise<TSignedRequest>;
613
607
  /**
614
- * Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
615
- *
616
- * Sign the provided `TGetSwapQuoteBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_quote).
617
- *
618
- * See also {@link stampGetSwapQuote}.
619
- */
620
- getSwapQuote: (input: TGetSwapQuoteBody) => Promise<TGetSwapQuoteResponse>;
621
- /**
622
- * Produce a `SignedRequest` from `TGetSwapQuoteBody` by using the client's `stamp` function.
623
- *
624
- * See also {@link GetSwapQuote}.
625
- */
626
- stampGetSwapQuote: (input: TGetSwapQuoteBody) => Promise<TSignedRequest>;
627
- /**
628
- * Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps.
608
+ * Poll the status of a swap by its swap_request_id. Covers same-chain and cross-chain swaps.
629
609
  *
630
610
  * Sign the provided `TGetSwapStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_swap_status).
631
611
  *
@@ -778,6 +758,48 @@ export declare class TurnkeyClient {
778
758
  * See also {@link GetAppProofs}.
779
759
  */
780
760
  stampGetAppProofs: (input: TGetAppProofsBody) => Promise<TSignedRequest>;
761
+ /**
762
+ * Get the organization's deployed wrappers with on-chain total deposited and live APY. The management view, distinct from per-wallet positions.
763
+ *
764
+ * Sign the provided `TListEarnEnabledVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_enabled_vaults).
765
+ *
766
+ * See also {@link stampListEarnEnabledVaults}.
767
+ */
768
+ listEarnEnabledVaults: (input: TListEarnEnabledVaultsBody) => Promise<TListEarnEnabledVaultsResponse>;
769
+ /**
770
+ * Produce a `SignedRequest` from `TListEarnEnabledVaultsBody` by using the client's `stamp` function.
771
+ *
772
+ * See also {@link ListEarnEnabledVaults}.
773
+ */
774
+ stampListEarnEnabledVaults: (input: TListEarnEnabledVaultsBody) => Promise<TSignedRequest>;
775
+ /**
776
+ * Get the active Earn positions for a specific wallet, including current value, cost basis, yield, and projected fees.
777
+ *
778
+ * Sign the provided `TListEarnPositionsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_positions).
779
+ *
780
+ * See also {@link stampListEarnPositions}.
781
+ */
782
+ listEarnPositions: (input: TListEarnPositionsBody) => Promise<TListEarnPositionsResponse>;
783
+ /**
784
+ * Produce a `SignedRequest` from `TListEarnPositionsBody` by using the client's `stamp` function.
785
+ *
786
+ * See also {@link ListEarnPositions}.
787
+ */
788
+ stampListEarnPositions: (input: TListEarnPositionsBody) => Promise<TSignedRequest>;
789
+ /**
790
+ * 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.
791
+ *
792
+ * Sign the provided `TListEarnVaultsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_earn_vaults).
793
+ *
794
+ * See also {@link stampListEarnVaults}.
795
+ */
796
+ listEarnVaults: (input: TListEarnVaultsBody) => Promise<TListEarnVaultsResponse>;
797
+ /**
798
+ * Produce a `SignedRequest` from `TListEarnVaultsBody` by using the client's `stamp` function.
799
+ *
800
+ * See also {@link ListEarnVaults}.
801
+ */
802
+ stampListEarnVaults: (input: TListEarnVaultsBody) => Promise<TSignedRequest>;
781
803
  /**
782
804
  * List email events for the organization.
783
805
  *
@@ -792,6 +814,20 @@ export declare class TurnkeyClient {
792
814
  * See also {@link ListEmailEvents}.
793
815
  */
794
816
  stampListEmailEvents: (input: TListEmailEventsBody) => Promise<TSignedRequest>;
817
+ /**
818
+ * List Ethereum transaction history for a wallet address on the specified network.
819
+ *
820
+ * Sign the provided `TListEthTransactionHistoryBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_eth_transaction_history).
821
+ *
822
+ * See also {@link stampListEthTransactionHistory}.
823
+ */
824
+ listEthTransactionHistory: (input: TListEthTransactionHistoryBody) => Promise<TListEthTransactionHistoryResponse>;
825
+ /**
826
+ * Produce a `SignedRequest` from `TListEthTransactionHistoryBody` by using the client's `stamp` function.
827
+ *
828
+ * See also {@link ListEthTransactionHistory}.
829
+ */
830
+ stampListEthTransactionHistory: (input: TListEthTransactionHistoryBody) => Promise<TSignedRequest>;
795
831
  /**
796
832
  * List all fiat on ramp provider credentials within an organization.
797
833
  *
@@ -876,6 +912,20 @@ export declare class TurnkeyClient {
876
912
  * See also {@link GetSmartContractInterfaces}.
877
913
  */
878
914
  stampGetSmartContractInterfaces: (input: TGetSmartContractInterfacesBody) => Promise<TSignedRequest>;
915
+ /**
916
+ * List Solana transaction history for a wallet address on the specified network.
917
+ *
918
+ * Sign the provided `TListSolTransactionHistoryBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_sol_transaction_history).
919
+ *
920
+ * See also {@link stampListSolTransactionHistory}.
921
+ */
922
+ listSolTransactionHistory: (input: TListSolTransactionHistoryBody) => Promise<TListSolTransactionHistoryResponse>;
923
+ /**
924
+ * Produce a `SignedRequest` from `TListSolTransactionHistoryBody` by using the client's `stamp` function.
925
+ *
926
+ * See also {@link ListSolTransactionHistory}.
927
+ */
928
+ stampListSolTransactionHistory: (input: TListSolTransactionHistoryBody) => Promise<TSignedRequest>;
879
929
  /**
880
930
  * Get all suborg IDs associated given a parent org ID and an optional filter.
881
931
  *
@@ -1058,6 +1108,34 @@ export declare class TurnkeyClient {
1058
1108
  * See also {@link ApproveActivity}.
1059
1109
  */
1060
1110
  stampApproveActivity: (input: TApproveActivityBody) => Promise<TSignedRequest>;
1111
+ /**
1112
+ * Claim earn fees through the activity pipeline.
1113
+ *
1114
+ * Sign the provided `TClaimEarnFeesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/claim_earn_fees).
1115
+ *
1116
+ * See also {@link stampClaimEarnFees}.
1117
+ */
1118
+ claimEarnFees: (input: TClaimEarnFeesBody) => Promise<TClaimEarnFeesResponse>;
1119
+ /**
1120
+ * Produce a `SignedRequest` from `TClaimEarnFeesBody` by using the client's `stamp` function.
1121
+ *
1122
+ * See also {@link ClaimEarnFees}.
1123
+ */
1124
+ stampClaimEarnFees: (input: TClaimEarnFeesBody) => Promise<TSignedRequest>;
1125
+ /**
1126
+ * Claim swap fees through the activity pipeline.
1127
+ *
1128
+ * Sign the provided `TClaimSwapFeesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/claim_swap_fees).
1129
+ *
1130
+ * See also {@link stampClaimSwapFees}.
1131
+ */
1132
+ claimSwapFees: (input: TClaimSwapFeesBody) => Promise<TClaimSwapFeesResponse>;
1133
+ /**
1134
+ * Produce a `SignedRequest` from `TClaimSwapFeesBody` by using the client's `stamp` function.
1135
+ *
1136
+ * See also {@link ClaimSwapFees}.
1137
+ */
1138
+ stampClaimSwapFees: (input: TClaimSwapFeesBody) => Promise<TSignedRequest>;
1061
1139
  /**
1062
1140
  * Add API keys to an existing user.
1063
1141
  *
@@ -1283,7 +1361,7 @@ export declare class TurnkeyClient {
1283
1361
  */
1284
1362
  stampCreateSmartContractInterface: (input: TCreateSmartContractInterfaceBody) => Promise<TSignedRequest>;
1285
1363
  /**
1286
- * Create a new sub-organization.
1364
+ * 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).
1287
1365
  *
1288
1366
  * Sign the provided `TCreateSubOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_sub_organization).
1289
1367
  *
@@ -1296,6 +1374,20 @@ export declare class TurnkeyClient {
1296
1374
  * See also {@link CreateSubOrganization}.
1297
1375
  */
1298
1376
  stampCreateSubOrganization: (input: TCreateSubOrganizationBody) => Promise<TSignedRequest>;
1377
+ /**
1378
+ * Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported.
1379
+ *
1380
+ * Sign the provided `TCreateSwapQuoteBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_swap_quote).
1381
+ *
1382
+ * See also {@link stampCreateSwapQuote}.
1383
+ */
1384
+ createSwapQuote: (input: TCreateSwapQuoteBody) => Promise<TCreateSwapQuoteResponse>;
1385
+ /**
1386
+ * Produce a `SignedRequest` from `TCreateSwapQuoteBody` by using the client's `stamp` function.
1387
+ *
1388
+ * See also {@link CreateSwapQuote}.
1389
+ */
1390
+ stampCreateSwapQuote: (input: TCreateSwapQuoteBody) => Promise<TSignedRequest>;
1299
1391
  /**
1300
1392
  * Create a new TVC application
1301
1393
  *
@@ -1381,7 +1473,7 @@ export declare class TurnkeyClient {
1381
1473
  */
1382
1474
  stampCreateUserTag: (input: TCreateUserTagBody) => Promise<TSignedRequest>;
1383
1475
  /**
1384
- * Create users in an existing organization.
1476
+ * 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).
1385
1477
  *
1386
1478
  * Sign the provided `TCreateUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_users).
1387
1479
  *
@@ -1744,6 +1836,20 @@ export declare class TurnkeyClient {
1744
1836
  * See also {@link EarnDeposit}.
1745
1837
  */
1746
1838
  stampEarnDeposit: (input: TEarnDepositBody) => Promise<TSignedRequest>;
1839
+ /**
1840
+ * Enable or disable deposits to a deployed Earn wrapper. Withdrawals are always allowed.
1841
+ *
1842
+ * Sign the provided `TEarnSetWrapperStateBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/earn_set_wrapper_state).
1843
+ *
1844
+ * See also {@link stampEarnSetWrapperState}.
1845
+ */
1846
+ earnSetWrapperState: (input: TEarnSetWrapperStateBody) => Promise<TEarnSetWrapperStateResponse>;
1847
+ /**
1848
+ * Produce a `SignedRequest` from `TEarnSetWrapperStateBody` by using the client's `stamp` function.
1849
+ *
1850
+ * See also {@link EarnSetWrapperState}.
1851
+ */
1852
+ stampEarnSetWrapperState: (input: TEarnSetWrapperStateBody) => Promise<TSignedRequest>;
1747
1853
  /**
1748
1854
  * Withdraw assets or redeem shares from an enabled yield vault.
1749
1855
  *
@@ -1801,7 +1907,21 @@ export declare class TurnkeyClient {
1801
1907
  */
1802
1908
  stampEthSendTransaction: (input: TEthSendTransactionBody) => Promise<TSignedRequest>;
1803
1909
  /**
1804
- * Execute a quoted swap through the activity pipeline and Turnkey broadcasting.
1910
+ * Submit an EIP-7702 undelegation transaction.
1911
+ *
1912
+ * Sign the provided `TEthUndelegate7702Body` with the client's `stamp` function, and submit the request (POST /public/v1/submit/eth_undelegate_7702).
1913
+ *
1914
+ * See also {@link stampEthUndelegate7702}.
1915
+ */
1916
+ ethUndelegate7702: (input: TEthUndelegate7702Body) => Promise<TEthUndelegate7702Response>;
1917
+ /**
1918
+ * Produce a `SignedRequest` from `TEthUndelegate7702Body` by using the client's `stamp` function.
1919
+ *
1920
+ * See also {@link EthUndelegate7702}.
1921
+ */
1922
+ stampEthUndelegate7702: (input: TEthUndelegate7702Body) => Promise<TSignedRequest>;
1923
+ /**
1924
+ * Execute the exact provider quote identified by quote_id through the activity pipeline and Turnkey broadcasting. Requests must use ACTIVITY_TYPE_EXECUTE_SWAP_V2.
1805
1925
  *
1806
1926
  * Sign the provided `TExecuteSwapBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/execute_swap).
1807
1927
  *
@@ -1912,6 +2032,20 @@ export declare class TurnkeyClient {
1912
2032
  * See also {@link InitImportPrivateKey}.
1913
2033
  */
1914
2034
  stampInitImportPrivateKey: (input: TInitImportPrivateKeyBody) => Promise<TSignedRequest>;
2035
+ /**
2036
+ * Initialize secret imports by generating Ingress Encryption Target Keys.
2037
+ *
2038
+ * Sign the provided `TInitImportSecretsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_secrets).
2039
+ *
2040
+ * See also {@link stampInitImportSecrets}.
2041
+ */
2042
+ initImportSecrets: (input: TInitImportSecretsBody) => Promise<TInitImportSecretsResponse>;
2043
+ /**
2044
+ * Produce a `SignedRequest` from `TInitImportSecretsBody` by using the client's `stamp` function.
2045
+ *
2046
+ * See also {@link InitImportSecrets}.
2047
+ */
2048
+ stampInitImportSecrets: (input: TInitImportSecretsBody) => Promise<TSignedRequest>;
1915
2049
  /**
1916
2050
  * Initialize a new wallet import.
1917
2051
  *
@@ -2221,7 +2355,7 @@ export declare class TurnkeyClient {
2221
2355
  */
2222
2356
  stampSignTransaction: (input: TSignTransactionBody) => Promise<TSignedRequest>;
2223
2357
  /**
2224
- * Submit a transaction intent describing an SVM transaction you would like to broadcast.
2358
+ * Submit a transaction intent describing an SVM transaction you would like to broadcast. Supports single- and multi-signer intents via activity type versioning.
2225
2359
  *
2226
2360
  * Sign the provided `TSolSendTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sol_send_transaction).
2227
2361
  *
@@ -2500,20 +2634,6 @@ export declare class TurnkeyClient {
2500
2634
  * See also {@link UpdateWebhookEndpoint}.
2501
2635
  */
2502
2636
  stampUpdateWebhookEndpoint: (input: TUpdateWebhookEndpointBody) => Promise<TSignedRequest>;
2503
- /**
2504
- * Set the client's Earn fee rate and payout wallet for the organization.
2505
- *
2506
- * Sign the provided `TUpsertEarnClientFeeConfigBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/upsert_earn_client_fee_config).
2507
- *
2508
- * See also {@link stampUpsertEarnClientFeeConfig}.
2509
- */
2510
- upsertEarnClientFeeConfig: (input: TUpsertEarnClientFeeConfigBody) => Promise<TUpsertEarnClientFeeConfigResponse>;
2511
- /**
2512
- * Produce a `SignedRequest` from `TUpsertEarnClientFeeConfigBody` by using the client's `stamp` function.
2513
- *
2514
- * See also {@link UpsertEarnClientFeeConfig}.
2515
- */
2516
- stampUpsertEarnClientFeeConfig: (input: TUpsertEarnClientFeeConfigBody) => Promise<TSignedRequest>;
2517
2637
  /**
2518
2638
  * Enable or disable swap configuration for an organization.
2519
2639
  *