@turnkey/sdk-types 1.4.0 → 1.5.1
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 +14 -0
- package/dist/__generated__/types.d.ts +239 -33
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +197 -26
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @turnkey/sdk-types
|
|
2
2
|
|
|
3
|
+
## 1.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1240](https://github.com/tkhq/sdk/pull/1240) [`e1fdcb1`](https://github.com/tkhq/sdk/commit/e1fdcb16444e6902f220612bea002a7313607900) Author [@amircheikh](https://github.com/amircheikh) - Add `ActivityStatus` enum
|
|
8
|
+
|
|
9
|
+
## 1.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#1480](https://github.com/tkhq/sdk/pull/1480) [`f191ad9`](https://github.com/tkhq/sdk/commit/f191ad98d5bd194a12045d9b0c562abccb07169a) Thanks [@moe-dev](https://github.com/moe-dev)! - Expose `createSwapQuote` (`ACTIVITY_TYPE_CREATE_SWAP_QUOTE`) and `executeSwap` (`ACTIVITY_TYPE_EXECUTE_SWAP_V2`) on the high-level SDK clients. `createSwapQuote` takes `signWith`, CAIP-19 tokens, amount, and optional `slippageBps`, and returns provider quotes. `executeSwap` is quote-bound: pass `quoteId` plus the exact quoted amounts (`quotedOutputAmount`, `minOutputAmount`, `sponsor`); the signer is derived from the quote. Poll with `getSwapStatus` using the returned `swapRequestId`.
|
|
14
|
+
|
|
15
|
+
Also align transaction-history list responses with standard pagination (`v1Pagination` / `pageInfo`) instead of the previous transaction-history-specific cursor types.
|
|
16
|
+
|
|
3
17
|
## 1.4.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -490,7 +490,7 @@ export type v1ActivityResponse = {
|
|
|
490
490
|
activity: v1Activity;
|
|
491
491
|
};
|
|
492
492
|
export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
|
|
493
|
-
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES" | "ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME" | "ACTIVITY_TYPE_ETH_UNDELEGATE_7702" | "ACTIVITY_TYPE_EXECUTE_SWAP_V2" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
|
|
493
|
+
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES" | "ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME" | "ACTIVITY_TYPE_ETH_UNDELEGATE_7702" | "ACTIVITY_TYPE_EXECUTE_SWAP_V2" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE" | "ACTIVITY_TYPE_IMPORT_SECRETS" | "ACTIVITY_TYPE_EXPORT_SECRETS";
|
|
494
494
|
export type v1ApiKey = {
|
|
495
495
|
/** A User credential that can be used to authenticate to Turnkey. */
|
|
496
496
|
credential: externaldatav1Credential;
|
|
@@ -1277,6 +1277,15 @@ export type v1CreateSwapQuoteIntent = {
|
|
|
1277
1277
|
/** Provider-neutral maximum allowed slippage in basis points. Turnkey converts this value to each provider's request format. When omitted, each provider applies its default slippage behavior. */
|
|
1278
1278
|
slippageBps?: string;
|
|
1279
1279
|
};
|
|
1280
|
+
export type v1CreateSwapQuoteRequest = {
|
|
1281
|
+
type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
|
|
1282
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1283
|
+
timestampMs: string;
|
|
1284
|
+
/** Unique identifier for a given Organization. */
|
|
1285
|
+
organizationId: string;
|
|
1286
|
+
parameters: v1CreateSwapQuoteIntent;
|
|
1287
|
+
generateAppProofs?: boolean;
|
|
1288
|
+
};
|
|
1280
1289
|
export type v1CreateSwapQuoteResult = {
|
|
1281
1290
|
/** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap_v2 to bind execution. */
|
|
1282
1291
|
quotes: v1SwapQuote[];
|
|
@@ -2451,6 +2460,15 @@ export type v1ExecuteSwapIntentV2 = {
|
|
|
2451
2460
|
/** Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
2452
2461
|
gasStationNonce?: string;
|
|
2453
2462
|
};
|
|
2463
|
+
export type v1ExecuteSwapRequest = {
|
|
2464
|
+
type: "ACTIVITY_TYPE_EXECUTE_SWAP_V2";
|
|
2465
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2466
|
+
timestampMs: string;
|
|
2467
|
+
/** Unique identifier for a given Organization. */
|
|
2468
|
+
organizationId: string;
|
|
2469
|
+
parameters: v1ExecuteSwapIntentV2;
|
|
2470
|
+
generateAppProofs?: boolean;
|
|
2471
|
+
};
|
|
2454
2472
|
export type v1ExecuteSwapResult = {
|
|
2455
2473
|
/** Identifier to poll swap status via GetSwapStatus. */
|
|
2456
2474
|
swapRequestId: string;
|
|
@@ -2480,6 +2498,30 @@ export type v1ExportPrivateKeyResult = {
|
|
|
2480
2498
|
/** Export bundle containing a private key encrypted to the client's target public key. */
|
|
2481
2499
|
exportBundle: string;
|
|
2482
2500
|
};
|
|
2501
|
+
export type v1ExportSecretParams = {
|
|
2502
|
+
/** Unique identifier for the secret to export. */
|
|
2503
|
+
secretId: string;
|
|
2504
|
+
/** Client-side public key generated by the user, to which the exported secret will be encrypted. */
|
|
2505
|
+
targetPublicKey: string;
|
|
2506
|
+
/** Transport encryption suite used for the exported secret. */
|
|
2507
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
2508
|
+
};
|
|
2509
|
+
export type v1ExportSecretsIntent = {
|
|
2510
|
+
/** A list of secrets to export. */
|
|
2511
|
+
secrets: v1ExportSecretParams[];
|
|
2512
|
+
};
|
|
2513
|
+
export type v1ExportSecretsRequest = {
|
|
2514
|
+
type: "ACTIVITY_TYPE_EXPORT_SECRETS";
|
|
2515
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2516
|
+
timestampMs: string;
|
|
2517
|
+
/** Unique identifier for a given Organization. */
|
|
2518
|
+
organizationId: string;
|
|
2519
|
+
parameters: v1ExportSecretsIntent;
|
|
2520
|
+
};
|
|
2521
|
+
export type v1ExportSecretsResult = {
|
|
2522
|
+
/** Encryption suite specific payload containing each secret ciphertext, in the order the params were specified. For enclave encrypt v1 each entry is a JSON-encoded ServerSendMsg. */
|
|
2523
|
+
secretPayloads: string[];
|
|
2524
|
+
};
|
|
2483
2525
|
export type v1ExportWalletAccountIntent = {
|
|
2484
2526
|
/** Address to identify Wallet Account. */
|
|
2485
2527
|
address: string;
|
|
@@ -2951,7 +2993,7 @@ export type v1GetSwapStatusResponse = {
|
|
|
2951
2993
|
destinationTxHashes?: string[];
|
|
2952
2994
|
/** Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
|
|
2953
2995
|
outputAmount?: string;
|
|
2954
|
-
/**
|
|
2996
|
+
/** Funds returned by the provider after a successful origin transfer and failed cross-chain fill. Omitted for origin transaction failures and same-chain swaps. */
|
|
2955
2997
|
refund?: v1SwapRefund;
|
|
2956
2998
|
/** Timestamp of the last swap status change, as millisecond epoch string. */
|
|
2957
2999
|
updatedAt: string;
|
|
@@ -3010,6 +3052,16 @@ export type v1GetTvcDeploymentResponse = {
|
|
|
3010
3052
|
/** Details about a single TVC Deployment */
|
|
3011
3053
|
tvcDeployment: v1TvcDeployment;
|
|
3012
3054
|
};
|
|
3055
|
+
export type v1GetTvcQosVersionsRequest = {
|
|
3056
|
+
/** Unique identifier for a given Organization. */
|
|
3057
|
+
organizationId: string;
|
|
3058
|
+
};
|
|
3059
|
+
export type v1GetTvcQosVersionsResponse = {
|
|
3060
|
+
/** QOS versions supported for new TVC deployments. */
|
|
3061
|
+
availableVersions: string[];
|
|
3062
|
+
/** Latest recommended QOS version for new TVC deployments. */
|
|
3063
|
+
latestVersion: string;
|
|
3064
|
+
};
|
|
3013
3065
|
export type v1GetUserRequest = {
|
|
3014
3066
|
/** Unique identifier for a given organization. */
|
|
3015
3067
|
organizationId: string;
|
|
@@ -3142,6 +3194,34 @@ export type v1ImportPrivateKeyResult = {
|
|
|
3142
3194
|
/** A list of addresses. */
|
|
3143
3195
|
addresses: immutableactivityv1Address[];
|
|
3144
3196
|
};
|
|
3197
|
+
export type v1ImportSecretParams = {
|
|
3198
|
+
/** Optional human-readable name for the secret. Names must be unique within an organization when provided. */
|
|
3199
|
+
name?: string;
|
|
3200
|
+
/** Encryption suite specific payload containing the secret ciphertext. For enclave encrypt v1 this is a JSON-encoded ClientSendMsg. */
|
|
3201
|
+
secretPayload: string;
|
|
3202
|
+
/** Targeted transport encryption public key, as returned by InitImportSecrets. */
|
|
3203
|
+
targetPublicKey: string;
|
|
3204
|
+
/** Transport encryption suite used for the ingress secret. */
|
|
3205
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
3206
|
+
/** Policy-visible, static properties to permanently bind to the secret. */
|
|
3207
|
+
staticProperties?: v1KeyValue[];
|
|
3208
|
+
};
|
|
3209
|
+
export type v1ImportSecretsIntent = {
|
|
3210
|
+
/** A list of secrets to import. */
|
|
3211
|
+
secrets: v1ImportSecretParams[];
|
|
3212
|
+
};
|
|
3213
|
+
export type v1ImportSecretsRequest = {
|
|
3214
|
+
type: "ACTIVITY_TYPE_IMPORT_SECRETS";
|
|
3215
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
3216
|
+
timestampMs: string;
|
|
3217
|
+
/** Unique identifier for a given Organization. */
|
|
3218
|
+
organizationId: string;
|
|
3219
|
+
parameters: v1ImportSecretsIntent;
|
|
3220
|
+
};
|
|
3221
|
+
export type v1ImportSecretsResult = {
|
|
3222
|
+
/** Unique identifier for each imported secret, in the order the params were specified. */
|
|
3223
|
+
secretIds: string[];
|
|
3224
|
+
};
|
|
3145
3225
|
export type v1ImportWalletIntent = {
|
|
3146
3226
|
/** The ID of the User importing a Wallet. */
|
|
3147
3227
|
userId: string;
|
|
@@ -3627,6 +3707,8 @@ export type v1Intent = {
|
|
|
3627
3707
|
ethUndelegate7702Intent?: v1EthUndelegate7702Intent;
|
|
3628
3708
|
executeSwapIntentV2?: v1ExecuteSwapIntentV2;
|
|
3629
3709
|
createSwapQuoteIntent?: v1CreateSwapQuoteIntent;
|
|
3710
|
+
importSecretsIntent?: v1ImportSecretsIntent;
|
|
3711
|
+
exportSecretsIntent?: v1ExportSecretsIntent;
|
|
3630
3712
|
};
|
|
3631
3713
|
export type v1InvitationParams = {
|
|
3632
3714
|
/** The name of the intended Invitation recipient. */
|
|
@@ -3666,6 +3748,10 @@ export type v1IpAllowlistRule = {
|
|
|
3666
3748
|
/** Creation timestamp as millisecond epoch string. */
|
|
3667
3749
|
createdAt?: string;
|
|
3668
3750
|
};
|
|
3751
|
+
export type v1KeyValue = {
|
|
3752
|
+
key?: string;
|
|
3753
|
+
value?: string;
|
|
3754
|
+
};
|
|
3669
3755
|
export type v1ListEarnEnabledVaultsRequest = {
|
|
3670
3756
|
/** Unique identifier for a given Organization. */
|
|
3671
3757
|
organizationId: string;
|
|
@@ -3726,13 +3812,12 @@ export type v1ListEthTransactionHistoryRequest = {
|
|
|
3726
3812
|
/** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
3727
3813
|
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
|
|
3728
3814
|
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
3729
|
-
paginationOptions?:
|
|
3815
|
+
paginationOptions?: v1Pagination;
|
|
3730
3816
|
};
|
|
3731
3817
|
export type v1ListEthTransactionHistoryResponse = {
|
|
3732
3818
|
/** EVM transactions for the requested address, ordered by most recent first. */
|
|
3733
3819
|
transactions: v1EthTransactionHistoryItem[];
|
|
3734
|
-
|
|
3735
|
-
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
3820
|
+
pageInfo?: v1PageInfo;
|
|
3736
3821
|
};
|
|
3737
3822
|
export type v1ListFiatOnRampCredentialsRequest = {
|
|
3738
3823
|
/** Unique identifier for a given Organization. */
|
|
@@ -3756,6 +3841,16 @@ export type v1ListPrivateKeyTagsResponse = {
|
|
|
3756
3841
|
/** A list of private key tags. */
|
|
3757
3842
|
privateKeyTags: datav1Tag[];
|
|
3758
3843
|
};
|
|
3844
|
+
export type v1ListSecretsRequest = {
|
|
3845
|
+
/** Unique identifier for the organization or sub-organization whose secrets are listed. */
|
|
3846
|
+
organizationId: string;
|
|
3847
|
+
/** Parameters used for cursor-based pagination. */
|
|
3848
|
+
paginationOptions?: v1Pagination;
|
|
3849
|
+
};
|
|
3850
|
+
export type v1ListSecretsResponse = {
|
|
3851
|
+
/** Metadata for each secret in the organization, ordered by most recently created first. */
|
|
3852
|
+
secrets: v1SecretMetadata[];
|
|
3853
|
+
};
|
|
3759
3854
|
export type v1ListSolTransactionHistoryRequest = {
|
|
3760
3855
|
/** Unique identifier for a given organization. */
|
|
3761
3856
|
organizationId: string;
|
|
@@ -3764,13 +3859,12 @@ export type v1ListSolTransactionHistoryRequest = {
|
|
|
3764
3859
|
/** Solana CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
3765
3860
|
caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
|
|
3766
3861
|
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
3767
|
-
paginationOptions?:
|
|
3862
|
+
paginationOptions?: v1Pagination;
|
|
3768
3863
|
};
|
|
3769
3864
|
export type v1ListSolTransactionHistoryResponse = {
|
|
3770
3865
|
/** Solana transactions for the requested address, ordered by most recent first. */
|
|
3771
3866
|
transactions: v1SolTransactionHistoryItem[];
|
|
3772
|
-
|
|
3773
|
-
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
3867
|
+
pageInfo?: v1PageInfo;
|
|
3774
3868
|
};
|
|
3775
3869
|
export type v1ListSupportedAssetsRequest = {
|
|
3776
3870
|
/** Unique identifier for a given organization. */
|
|
@@ -4361,6 +4455,8 @@ export type v1Result = {
|
|
|
4361
4455
|
updateWalletAccountNameResult?: v1UpdateWalletAccountNameResult;
|
|
4362
4456
|
ethUndelegate7702Result?: v1EthUndelegate7702Result;
|
|
4363
4457
|
createSwapQuoteResult?: v1CreateSwapQuoteResult;
|
|
4458
|
+
importSecretsResult?: v1ImportSecretsResult;
|
|
4459
|
+
exportSecretsResult?: v1ExportSecretsResult;
|
|
4364
4460
|
};
|
|
4365
4461
|
export type v1RevertChainEntry = {
|
|
4366
4462
|
/** The contract address where the revert occurred. */
|
|
@@ -4438,6 +4534,16 @@ export type v1RootUserParamsV5 = {
|
|
|
4438
4534
|
/** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
4439
4535
|
oauthProviders: v1OauthProviderParamsV2[];
|
|
4440
4536
|
};
|
|
4537
|
+
export type v1SecretMetadata = {
|
|
4538
|
+
/** Unique identifier for the secret. */
|
|
4539
|
+
secretId: string;
|
|
4540
|
+
/** Optional human-readable name for the secret. */
|
|
4541
|
+
name?: string;
|
|
4542
|
+
/** Policy visible static properties bound to the secret at creation time. */
|
|
4543
|
+
staticProperties: v1KeyValue[];
|
|
4544
|
+
/** Unix timestamp in milliseconds for when the secret was created. */
|
|
4545
|
+
createdAtUnixMs: string;
|
|
4546
|
+
};
|
|
4441
4547
|
export type v1Selector = {
|
|
4442
4548
|
subject?: string;
|
|
4443
4549
|
operator?: v1Operator;
|
|
@@ -4932,6 +5038,8 @@ export type v1SwapError = {
|
|
|
4932
5038
|
message: string;
|
|
4933
5039
|
/** Origin-chain transaction failure details, present when reason is ORIGIN_TRANSACTION_FAILED and details are available. */
|
|
4934
5040
|
originTxError?: v1TxError;
|
|
5041
|
+
/** Optional detail from the swap provider about why the fill did not complete, when available. */
|
|
5042
|
+
providerReason?: string;
|
|
4935
5043
|
};
|
|
4936
5044
|
export type v1SwapQuote = {
|
|
4937
5045
|
/** Identifier for this provider quote. Pass this value to execute_swap_v2 to bind execution to this exact quote. The signer is derived from the quote; clients do not resupply sign_with on execute. */
|
|
@@ -4944,7 +5052,7 @@ export type v1SwapQuote = {
|
|
|
4944
5052
|
minOutputAmount: string;
|
|
4945
5053
|
/** Quote expiration as a millisecond epoch string. */
|
|
4946
5054
|
expiresAt: string;
|
|
4947
|
-
/**
|
|
5055
|
+
/** Effective total slippage tolerance in basis points for this quote, taken from the provider response when present. When the request omits input slippage_bps, the provider may calculate this value. */
|
|
4948
5056
|
slippageBps?: string;
|
|
4949
5057
|
/** Client fee in basis points applied for this pair. Informational only; already reflected in output_amount and min_output_amount. */
|
|
4950
5058
|
clientFeeBps: string;
|
|
@@ -4952,11 +5060,11 @@ export type v1SwapQuote = {
|
|
|
4952
5060
|
estimatedTimeSeconds?: string;
|
|
4953
5061
|
};
|
|
4954
5062
|
export type v1SwapRefund = {
|
|
4955
|
-
/** CAIP-19 asset returned
|
|
5063
|
+
/** CAIP-19 asset returned by the swap provider after a failed cross-chain fill. */
|
|
4956
5064
|
asset: string;
|
|
4957
|
-
/** Base-unit amount
|
|
5065
|
+
/** Base-unit amount returned by the swap provider. */
|
|
4958
5066
|
amount: string;
|
|
4959
|
-
/** Transaction that delivered the
|
|
5067
|
+
/** Transaction that delivered the provider refund, when applicable. */
|
|
4960
5068
|
txHash?: string;
|
|
4961
5069
|
};
|
|
4962
5070
|
export type v1TagType = "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
|
|
@@ -4999,20 +5107,6 @@ export type v1TransactionHistoryFee = {
|
|
|
4999
5107
|
/** The CAIP-19 asset identifier. */
|
|
5000
5108
|
caip19: string;
|
|
5001
5109
|
};
|
|
5002
|
-
export type v1TransactionHistoryPaginationCursors = {
|
|
5003
|
-
/** Opaque base64-encoded cursor for fetching transactions immediately before the current page in the newest-first result order. Omitted when no such page exists. */
|
|
5004
|
-
before?: string;
|
|
5005
|
-
/** Opaque base64-encoded cursor for fetching transactions immediately after the current page in the newest-first result order. Omitted when no such page exists. */
|
|
5006
|
-
after?: string;
|
|
5007
|
-
};
|
|
5008
|
-
export type v1TransactionHistoryPaginationOptions = {
|
|
5009
|
-
/** Maximum number of transactions to return, between 1 and 100. Defaults to 25. */
|
|
5010
|
-
limit?: string;
|
|
5011
|
-
/** Opaque base64-encoded cursor returned by this API. Fetches transactions immediately before the cursor in the newest-first result order. Must not be constructed or modified by clients. Cannot be used with after. */
|
|
5012
|
-
before?: string;
|
|
5013
|
-
/** Opaque base64-encoded cursor returned by this API. Fetches transactions immediately after the cursor in the newest-first result order. Must not be constructed or modified by clients. Cannot be used with before. */
|
|
5014
|
-
after?: string;
|
|
5015
|
-
};
|
|
5016
5110
|
export type v1TransactionHistoryTransfer = {
|
|
5017
5111
|
/** Transfer direction relative to the queried address. */
|
|
5018
5112
|
direction: "IN" | "OUT";
|
|
@@ -5805,6 +5899,8 @@ export type v1WalletAccount = {
|
|
|
5805
5899
|
walletDetails?: v1Wallet;
|
|
5806
5900
|
/** Human-readable name for this Wallet Account, unique within the organization. */
|
|
5807
5901
|
name?: string;
|
|
5902
|
+
/** The CAIP-2 namespace shared by the chains supported by this account (for example, 'eip155' or 'solana'). */
|
|
5903
|
+
caip2Prefix?: string;
|
|
5808
5904
|
};
|
|
5809
5905
|
export type v1WalletKitSettingsParams = {
|
|
5810
5906
|
/** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
|
|
@@ -6244,7 +6340,7 @@ export type TGetSwapStatusResponse = {
|
|
|
6244
6340
|
destinationTxHashes?: string[];
|
|
6245
6341
|
/** Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
|
|
6246
6342
|
outputAmount?: string;
|
|
6247
|
-
/**
|
|
6343
|
+
/** Funds returned by the provider after a successful origin transfer and failed cross-chain fill. Omitted for origin transaction failures and same-chain swaps. */
|
|
6248
6344
|
refund?: v1SwapRefund;
|
|
6249
6345
|
/** Timestamp of the last swap status change, as millisecond epoch string. */
|
|
6250
6346
|
updatedAt: string;
|
|
@@ -6299,6 +6395,18 @@ export type TGetTvcDeploymentDebugLogsBody = {
|
|
|
6299
6395
|
export type TGetTvcDeploymentDebugLogsInput = {
|
|
6300
6396
|
body: TGetTvcDeploymentDebugLogsBody;
|
|
6301
6397
|
};
|
|
6398
|
+
export type TGetTvcQosVersionsResponse = {
|
|
6399
|
+
/** QOS versions supported for new TVC deployments. */
|
|
6400
|
+
availableVersions: string[];
|
|
6401
|
+
/** Latest recommended QOS version for new TVC deployments. */
|
|
6402
|
+
latestVersion: string;
|
|
6403
|
+
};
|
|
6404
|
+
export type TGetTvcQosVersionsBody = {
|
|
6405
|
+
organizationId?: string;
|
|
6406
|
+
};
|
|
6407
|
+
export type TGetTvcQosVersionsInput = {
|
|
6408
|
+
body: TGetTvcQosVersionsBody;
|
|
6409
|
+
};
|
|
6302
6410
|
export type TGetUserResponse = {
|
|
6303
6411
|
/** Web and/or API user within your organization. */
|
|
6304
6412
|
user: v1User;
|
|
@@ -6443,8 +6551,7 @@ export type TListEmailEventsInput = {
|
|
|
6443
6551
|
export type TListEthTransactionHistoryResponse = {
|
|
6444
6552
|
/** EVM transactions for the requested address, ordered by most recent first. */
|
|
6445
6553
|
transactions: v1EthTransactionHistoryItem[];
|
|
6446
|
-
|
|
6447
|
-
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
6554
|
+
pageInfo?: v1PageInfo;
|
|
6448
6555
|
};
|
|
6449
6556
|
export type TListEthTransactionHistoryBody = {
|
|
6450
6557
|
organizationId?: string;
|
|
@@ -6453,7 +6560,7 @@ export type TListEthTransactionHistoryBody = {
|
|
|
6453
6560
|
/** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
6454
6561
|
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
|
|
6455
6562
|
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
6456
|
-
paginationOptions?:
|
|
6563
|
+
paginationOptions?: v1Pagination;
|
|
6457
6564
|
};
|
|
6458
6565
|
export type TListEthTransactionHistoryInput = {
|
|
6459
6566
|
body: TListEthTransactionHistoryBody;
|
|
@@ -6506,6 +6613,18 @@ export type TGetPrivateKeysBody = {
|
|
|
6506
6613
|
export type TGetPrivateKeysInput = {
|
|
6507
6614
|
body: TGetPrivateKeysBody;
|
|
6508
6615
|
};
|
|
6616
|
+
export type TListSecretsResponse = {
|
|
6617
|
+
/** Metadata for each secret in the organization, ordered by most recently created first. */
|
|
6618
|
+
secrets: v1SecretMetadata[];
|
|
6619
|
+
};
|
|
6620
|
+
export type TListSecretsBody = {
|
|
6621
|
+
organizationId?: string;
|
|
6622
|
+
/** Parameters used for cursor-based pagination. */
|
|
6623
|
+
paginationOptions?: v1Pagination;
|
|
6624
|
+
};
|
|
6625
|
+
export type TListSecretsInput = {
|
|
6626
|
+
body: TListSecretsBody;
|
|
6627
|
+
};
|
|
6509
6628
|
export type TGetSmartContractInterfacesResponse = {
|
|
6510
6629
|
/** A list of smart contract interfaces. */
|
|
6511
6630
|
smartContractInterfaces: externaldatav1SmartContractInterface[];
|
|
@@ -6519,8 +6638,7 @@ export type TGetSmartContractInterfacesInput = {
|
|
|
6519
6638
|
export type TListSolTransactionHistoryResponse = {
|
|
6520
6639
|
/** Solana transactions for the requested address, ordered by most recent first. */
|
|
6521
6640
|
transactions: v1SolTransactionHistoryItem[];
|
|
6522
|
-
|
|
6523
|
-
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
6641
|
+
pageInfo?: v1PageInfo;
|
|
6524
6642
|
};
|
|
6525
6643
|
export type TListSolTransactionHistoryBody = {
|
|
6526
6644
|
organizationId?: string;
|
|
@@ -6529,7 +6647,7 @@ export type TListSolTransactionHistoryBody = {
|
|
|
6529
6647
|
/** Solana CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
6530
6648
|
caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
|
|
6531
6649
|
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
6532
|
-
paginationOptions?:
|
|
6650
|
+
paginationOptions?: v1Pagination;
|
|
6533
6651
|
};
|
|
6534
6652
|
export type TListSolTransactionHistoryInput = {
|
|
6535
6653
|
body: TListSolTransactionHistoryBody;
|
|
@@ -7066,6 +7184,29 @@ export type TCreateSubOrganizationBody = {
|
|
|
7066
7184
|
export type TCreateSubOrganizationInput = {
|
|
7067
7185
|
body: TCreateSubOrganizationBody;
|
|
7068
7186
|
};
|
|
7187
|
+
export type TCreateSwapQuoteResponse = {
|
|
7188
|
+
activity: v1Activity;
|
|
7189
|
+
/** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap_v2 to bind execution. */
|
|
7190
|
+
quotes: v1SwapQuote[];
|
|
7191
|
+
};
|
|
7192
|
+
export type TCreateSwapQuoteBody = {
|
|
7193
|
+
timestampMs?: string;
|
|
7194
|
+
organizationId?: string;
|
|
7195
|
+
/** Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
|
|
7196
|
+
signWith: string;
|
|
7197
|
+
/** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
|
|
7198
|
+
inputToken: string;
|
|
7199
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
7200
|
+
outputToken: string;
|
|
7201
|
+
/** Base-unit amount of the input asset. */
|
|
7202
|
+
inputAmount: string;
|
|
7203
|
+
/** Provider-neutral maximum allowed slippage in basis points. Turnkey converts this value to each provider's request format. When omitted, each provider applies its default slippage behavior. */
|
|
7204
|
+
slippageBps?: string;
|
|
7205
|
+
generateAppProofs?: boolean;
|
|
7206
|
+
};
|
|
7207
|
+
export type TCreateSwapQuoteInput = {
|
|
7208
|
+
body: TCreateSwapQuoteBody;
|
|
7209
|
+
};
|
|
7069
7210
|
export type TCreateTvcAppResponse = {
|
|
7070
7211
|
activity: v1Activity;
|
|
7071
7212
|
/** The unique identifier for the TVC application */
|
|
@@ -7722,6 +7863,43 @@ export type TEthUndelegate7702Body = {
|
|
|
7722
7863
|
export type TEthUndelegate7702Input = {
|
|
7723
7864
|
body: TEthUndelegate7702Body;
|
|
7724
7865
|
};
|
|
7866
|
+
export type TExecuteSwapResponse = {
|
|
7867
|
+
activity: v1Activity;
|
|
7868
|
+
/** Identifier to poll swap status via GetSwapStatus. */
|
|
7869
|
+
swapRequestId: string;
|
|
7870
|
+
/** Swap provider used to build the transaction. */
|
|
7871
|
+
provider?: string;
|
|
7872
|
+
/** Quote identifier used for execution, if any. */
|
|
7873
|
+
quoteId?: string;
|
|
7874
|
+
};
|
|
7875
|
+
export type TExecuteSwapBody = {
|
|
7876
|
+
timestampMs?: string;
|
|
7877
|
+
organizationId?: string;
|
|
7878
|
+
/** Quote identifier returned by create_swap_quote. Execution is bound to this quote; the signer is derived from the quote and must not be resupplied. */
|
|
7879
|
+
quoteId: string;
|
|
7880
|
+
/** CAIP-19 asset ID for the input asset. */
|
|
7881
|
+
inputToken: string;
|
|
7882
|
+
/** Exact base-unit amount of the input asset committed by the quote. */
|
|
7883
|
+
inputAmount: string;
|
|
7884
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
7885
|
+
outputToken: string;
|
|
7886
|
+
/** Exact quoted base-unit output amount committed by the quote. */
|
|
7887
|
+
quotedOutputAmount: string;
|
|
7888
|
+
/** Exact minimum base-unit output committed by the quote. */
|
|
7889
|
+
minOutputAmount: string;
|
|
7890
|
+
/** Whether the quoted transaction is sponsored. */
|
|
7891
|
+
sponsor: boolean;
|
|
7892
|
+
/** Exact EVM sender (EOA account) nonce. Valid only for a non-sponsored EVM swap. Honored for already-delegated (Type-2) batch swaps and single-call swaps; ignored for not-yet-delegated EIP-7702 (Type-4) batches where the outer nonce is derived from the authorization. Prefer gas_station_nonce for batch replay protection and use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
7893
|
+
evmNonce?: string;
|
|
7894
|
+
/** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
|
|
7895
|
+
recentBlockhash?: string;
|
|
7896
|
+
/** Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
7897
|
+
gasStationNonce?: string;
|
|
7898
|
+
generateAppProofs?: boolean;
|
|
7899
|
+
};
|
|
7900
|
+
export type TExecuteSwapInput = {
|
|
7901
|
+
body: TExecuteSwapBody;
|
|
7902
|
+
};
|
|
7725
7903
|
export type TExportPrivateKeyResponse = {
|
|
7726
7904
|
activity: v1Activity;
|
|
7727
7905
|
/** Unique identifier for a given Private Key. */
|
|
@@ -7741,6 +7919,20 @@ export type TExportPrivateKeyBody = {
|
|
|
7741
7919
|
export type TExportPrivateKeyInput = {
|
|
7742
7920
|
body: TExportPrivateKeyBody;
|
|
7743
7921
|
};
|
|
7922
|
+
export type TExportSecretsResponse = {
|
|
7923
|
+
activity: v1Activity;
|
|
7924
|
+
/** Encryption suite specific payload containing each secret ciphertext, in the order the params were specified. For enclave encrypt v1 each entry is a JSON-encoded ServerSendMsg. */
|
|
7925
|
+
secretPayloads: string[];
|
|
7926
|
+
};
|
|
7927
|
+
export type TExportSecretsBody = {
|
|
7928
|
+
timestampMs?: string;
|
|
7929
|
+
organizationId?: string;
|
|
7930
|
+
/** A list of secrets to export. */
|
|
7931
|
+
secrets: v1ExportSecretParams[];
|
|
7932
|
+
};
|
|
7933
|
+
export type TExportSecretsInput = {
|
|
7934
|
+
body: TExportSecretsBody;
|
|
7935
|
+
};
|
|
7744
7936
|
export type TExportWalletResponse = {
|
|
7745
7937
|
activity: v1Activity;
|
|
7746
7938
|
/** Unique identifier for a given Wallet. */
|
|
@@ -7806,6 +7998,20 @@ export type TImportPrivateKeyBody = {
|
|
|
7806
7998
|
export type TImportPrivateKeyInput = {
|
|
7807
7999
|
body: TImportPrivateKeyBody;
|
|
7808
8000
|
};
|
|
8001
|
+
export type TImportSecretsResponse = {
|
|
8002
|
+
activity: v1Activity;
|
|
8003
|
+
/** Unique identifier for each imported secret, in the order the params were specified. */
|
|
8004
|
+
secretIds: string[];
|
|
8005
|
+
};
|
|
8006
|
+
export type TImportSecretsBody = {
|
|
8007
|
+
timestampMs?: string;
|
|
8008
|
+
organizationId?: string;
|
|
8009
|
+
/** A list of secrets to import. */
|
|
8010
|
+
secrets: v1ImportSecretParams[];
|
|
8011
|
+
};
|
|
8012
|
+
export type TImportSecretsInput = {
|
|
8013
|
+
body: TImportSecretsBody;
|
|
8014
|
+
};
|
|
7809
8015
|
export type TImportWalletResponse = {
|
|
7810
8016
|
activity: v1Activity;
|
|
7811
8017
|
/** Unique identifier for a Wallet. */
|