@turnkey/http 6.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.
@@ -123,12 +123,8 @@ export type paths = {
123
123
  /** Get details about a smart contract interface. */
124
124
  post: operations["PublicApiService_GetSmartContractInterface"];
125
125
  };
126
- "/public/v1/query/get_swap_quote": {
127
- /** Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported. */
128
- post: operations["PublicApiService_GetSwapQuote"];
129
- };
130
126
  "/public/v1/query/get_swap_status": {
131
- /** Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps. */
127
+ /** Poll the status of a swap by its swap_request_id. Covers same-chain and cross-chain swaps. */
132
128
  post: operations["PublicApiService_GetSwapStatus"];
133
129
  };
134
130
  "/public/v1/query/get_tvc_app": {
@@ -347,6 +343,10 @@ export type paths = {
347
343
  /** 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). */
348
344
  post: operations["PublicApiService_CreateSubOrganization"];
349
345
  };
346
+ "/public/v1/submit/create_swap_quote": {
347
+ /** Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported. */
348
+ post: operations["PublicApiService_CreateSwapQuote"];
349
+ };
350
350
  "/public/v1/submit/create_tvc_app": {
351
351
  /** Create a new TVC application */
352
352
  post: operations["PublicApiService_CreateTvcApp"];
@@ -495,8 +495,12 @@ export type paths = {
495
495
  /** Submit a transaction intent describing an EVM transaction you would like to broadcast. */
496
496
  post: operations["PublicApiService_EthSendTransaction"];
497
497
  };
498
+ "/public/v1/submit/eth_undelegate_7702": {
499
+ /** Submit an EIP-7702 undelegation transaction. */
500
+ post: operations["PublicApiService_EthUndelegate7702"];
501
+ };
498
502
  "/public/v1/submit/execute_swap": {
499
- /** Execute a quoted swap through the activity pipeline and Turnkey broadcasting. */
503
+ /** Execute the exact provider quote identified by quote_id through the activity pipeline and Turnkey broadcasting. Requests must use ACTIVITY_TYPE_EXECUTE_SWAP_V2. */
500
504
  post: operations["PublicApiService_ExecuteSwap"];
501
505
  };
502
506
  "/public/v1/submit/export_private_key": {
@@ -917,7 +921,7 @@ export type definitions = {
917
921
  /** @enum {string} */
918
922
  v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
919
923
  /** @enum {string} */
920
- 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";
924
+ 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";
921
925
  /** @enum {string} */
922
926
  v1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP" | "ADDRESS_FORMAT_SPARK_MAINNET" | "ADDRESS_FORMAT_SPARK_REGTEST";
923
927
  v1ApiKey: {
@@ -1026,6 +1030,8 @@ export type definitions = {
1026
1030
  logoUrl?: string;
1027
1031
  /** @description The asset name */
1028
1032
  name?: string;
1033
+ /** @description Whether this asset is on Turnkey's stablecoin list (used for stablepair swap fee pricing). */
1034
+ stable?: boolean;
1029
1035
  };
1030
1036
  v1Attestation: {
1031
1037
  /** @description The cbor encoded then base64 url encoded id of the credential. */
@@ -1438,6 +1444,8 @@ export type definitions = {
1438
1444
  consensus?: string;
1439
1445
  /** @description Notes for a Policy. */
1440
1446
  notes: string;
1447
+ /** @description The time expression that triggers the Effect */
1448
+ time?: string;
1441
1449
  };
1442
1450
  v1CreatePolicyRequest: {
1443
1451
  /** @enum {string} */
@@ -1815,6 +1823,32 @@ export type definitions = {
1815
1823
  wallet?: definitions["v1WalletResult"];
1816
1824
  rootUserIds?: string[];
1817
1825
  };
1826
+ v1CreateSwapQuoteIntent: {
1827
+ /** @description Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
1828
+ signWith: string;
1829
+ /** @description CAIP-19 asset ID for the input asset. The chain is derived from this value. */
1830
+ inputToken: string;
1831
+ /** @description CAIP-19 asset ID for the output asset. */
1832
+ outputToken: string;
1833
+ /** @description Base-unit amount of the input asset. */
1834
+ inputAmount: string;
1835
+ /** @description 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. */
1836
+ slippageBps?: string;
1837
+ };
1838
+ v1CreateSwapQuoteRequest: {
1839
+ /** @enum {string} */
1840
+ type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
1841
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1842
+ timestampMs: string;
1843
+ /** @description Unique identifier for a given Organization. */
1844
+ organizationId: string;
1845
+ parameters: definitions["v1CreateSwapQuoteIntent"];
1846
+ generateAppProofs?: boolean;
1847
+ };
1848
+ v1CreateSwapQuoteResult: {
1849
+ /** @description 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. */
1850
+ quotes: definitions["v1SwapQuote"][];
1851
+ };
1818
1852
  v1CreateTvcAppIntent: {
1819
1853
  /** @description The name of the new TVC application */
1820
1854
  name: string;
@@ -1854,6 +1888,15 @@ export type definitions = {
1854
1888
  * @description The required number of approvals for the manifest set
1855
1889
  */
1856
1890
  manifestSetThreshold: number;
1891
+ /** @description The unique identifier for the TVC share set */
1892
+ shareSetId: string;
1893
+ /** @description The unique identifiers of the share set operators */
1894
+ shareSetOperatorIds: string[];
1895
+ /**
1896
+ * Format: int64
1897
+ * @description The required number of approvals for the share set
1898
+ */
1899
+ shareSetThreshold: number;
1857
1900
  };
1858
1901
  v1CreateTvcDeploymentIntent: {
1859
1902
  /** @description The unique identifier of the to-be-deployed TVC application */
@@ -2547,7 +2590,7 @@ export type definitions = {
2547
2590
  * @enum {string}
2548
2591
  */
2549
2592
  chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
2550
- /** @description Your performance fee on gross yield, in basis points (e.g., '2000' for 20%). Your fee plus Turnkey's fee cannot exceed 50% of yield. */
2593
+ /** @description Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
2551
2594
  clientFeeBps: string;
2552
2595
  /** @description The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
2553
2596
  clientFeeWallet: string;
@@ -2608,15 +2651,15 @@ export type definitions = {
2608
2651
  provider?: definitions["v1EarnProvider"];
2609
2652
  /** @description CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
2610
2653
  caip19?: string;
2611
- /** @description Gross annual percentage yield, expressed as a decimal fraction (before Turnkey and client fees). */
2654
+ /** @description Gross annual percentage yield, expressed as a decimal fraction (before fees). */
2612
2655
  apyPct?: string;
2613
2656
  /** @description Total deposited through this wrapper (wrapper TVL), in raw on-chain units of the underlying asset. */
2614
2657
  totalDeposited?: string;
2615
2658
  /** @description Normalized total-deposited values for display only (usd + crypto). Do not do arithmetic with these; use total_deposited instead. */
2616
2659
  display?: definitions["v1EarnValueDisplay"];
2617
- /** @description Annual percentage yield net of the Turnkey and client performance fees, expressed as a decimal fraction. */
2660
+ /** @description Annual percentage yield net of fees, expressed as a decimal fraction. */
2618
2661
  netApyPct?: string;
2619
- /** @description Client performance fee taken on yield, in basis points. Currently org-wide; moving to a per-vault setting. */
2662
+ /** @description Client fee taken on yield, in basis points. */
2620
2663
  clientFeeBps?: string;
2621
2664
  /** @description When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
2622
2665
  depositsDisabled?: boolean;
@@ -2624,10 +2667,12 @@ export type definitions = {
2624
2667
  name?: string;
2625
2668
  /** @description Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
2626
2669
  curator?: string;
2627
- /** @description The client's claimable performance fee (releasable now), in raw on-chain units of the underlying asset (the caip19 asset). Turnkey's fee is excluded. Only returned to the parent org; unset when a sub-org queries. */
2670
+ /** @description The client's claimable fee (releasable now), in raw on-chain units of the underlying asset (the caip19 asset). Turnkey's fee is excluded. Only returned to the parent org; unset when a sub-org queries. */
2628
2671
  claimableClientFee?: string;
2629
2672
  /** @description Normalized claimable_client_fee for display only (usd + crypto). Do not do arithmetic with these; use claimable_client_fee. Unset when a sub-org queries. */
2630
2673
  claimableClientFeeDisplay?: definitions["v1EarnValueDisplay"];
2674
+ /** @description The wallet address that receives the client's fee payouts on-chain. Unset when a sub-org queries. */
2675
+ clientFeeWallet?: string;
2631
2676
  };
2632
2677
  v1EarnPosition: {
2633
2678
  /** @description Address of the underlying yield vault. */
@@ -2892,6 +2937,8 @@ export type definitions = {
2892
2937
  deliveryProcessingTimeMillis?: string;
2893
2938
  /** @description Delay type for DeliveryDelay events */
2894
2939
  deliveryDelayType?: string;
2940
+ /** @description Feedback type for Complaint events */
2941
+ complaintFeedbackType?: string;
2895
2942
  };
2896
2943
  v1EnableAuthProxyIntent: {
2897
2944
  [key: string]: unknown;
@@ -2984,7 +3031,7 @@ export type definitions = {
2984
3031
  maxPriorityFeePerGas?: string;
2985
3032
  /** @description Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
2986
3033
  deadline?: string;
2987
- /** @description The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
3034
+ /** @description The gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored transactions and non-sponsored multi-call batches. Omit to auto-fetch. Use the nonces endpoint for replay protection. */
2988
3035
  gasStationNonce?: string;
2989
3036
  /** @description Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
2990
3037
  calls: definitions["v1EthCallParams"][];
@@ -3034,6 +3081,37 @@ export type definitions = {
3034
3081
  /** @description Turnkey-specific metadata for transactions originated by Turnkey. */
3035
3082
  turnkey?: definitions["v1TransactionHistoryTurnkey"];
3036
3083
  };
3084
+ v1EthUndelegate7702Intent: {
3085
+ /** @description A wallet or private key address to undelegate. This does not support private key IDs. */
3086
+ from: string;
3087
+ /**
3088
+ * @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
3089
+ * @enum {string}
3090
+ */
3091
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:421614";
3092
+ /** @description Outer transaction nonce. Omit to auto-fetch. */
3093
+ nonce?: string;
3094
+ /** @description Maximum amount of gas for the undelegation transaction. Omit to use the fixed undelegation gas limit. */
3095
+ gasLimit?: string;
3096
+ /** @description Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
3097
+ maxFeePerGas?: string;
3098
+ /** @description Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
3099
+ maxPriorityFeePerGas?: string;
3100
+ };
3101
+ v1EthUndelegate7702Request: {
3102
+ /** @enum {string} */
3103
+ type: "ACTIVITY_TYPE_ETH_UNDELEGATE_7702";
3104
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3105
+ timestampMs: string;
3106
+ /** @description Unique identifier for a given Organization. */
3107
+ organizationId: string;
3108
+ parameters: definitions["v1EthUndelegate7702Intent"];
3109
+ generateAppProofs?: boolean;
3110
+ };
3111
+ v1EthUndelegate7702Result: {
3112
+ /** @description The send_transaction_status ID associated with the undelegation transaction submission */
3113
+ sendTransactionStatusId: string;
3114
+ };
3037
3115
  v1ExecuteSwapIntent: {
3038
3116
  /** @description CAIP-19 asset ID for the input asset. The chain is derived from this value. */
3039
3117
  inputToken: string;
@@ -3047,24 +3125,46 @@ export type definitions = {
3047
3125
  sponsor?: boolean;
3048
3126
  /** @description Maximum allowed slippage in basis points. */
3049
3127
  slippage?: string;
3050
- /** @description Swap provider to execute with, as returned by get_swap_quote. When omitted, execution uses the default provider. */
3128
+ /** @description Swap provider to execute with, as returned by create_swap_quote. When omitted, execution uses the default provider. */
3051
3129
  provider?: string;
3052
3130
  /** @description Minimum acceptable base-unit amount of the output asset. Execution fails if the swap provider's quoted minimum output falls below this floor at execution time. */
3053
3131
  minOutputAmount: string;
3054
3132
  };
3133
+ v1ExecuteSwapIntentV2: {
3134
+ /** @description 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. */
3135
+ quoteId: string;
3136
+ /** @description CAIP-19 asset ID for the input asset. */
3137
+ inputToken: string;
3138
+ /** @description Exact base-unit amount of the input asset committed by the quote. */
3139
+ inputAmount: string;
3140
+ /** @description CAIP-19 asset ID for the output asset. */
3141
+ outputToken: string;
3142
+ /** @description Exact quoted base-unit output amount committed by the quote. */
3143
+ quotedOutputAmount: string;
3144
+ /** @description Exact minimum base-unit output committed by the quote. */
3145
+ minOutputAmount: string;
3146
+ /** @description Whether the quoted transaction is sponsored. */
3147
+ sponsor: boolean;
3148
+ /** @description 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. */
3149
+ evmNonce?: string;
3150
+ /** @description Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
3151
+ recentBlockhash?: string;
3152
+ /** @description 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. */
3153
+ gasStationNonce?: string;
3154
+ };
3055
3155
  v1ExecuteSwapRequest: {
3056
3156
  /** @enum {string} */
3057
- type: "ACTIVITY_TYPE_EXECUTE_SWAP";
3157
+ type: "ACTIVITY_TYPE_EXECUTE_SWAP_V2";
3058
3158
  /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3059
3159
  timestampMs: string;
3060
3160
  /** @description Unique identifier for a given Organization. */
3061
3161
  organizationId: string;
3062
- parameters: definitions["v1ExecuteSwapIntent"];
3162
+ parameters: definitions["v1ExecuteSwapIntentV2"];
3063
3163
  generateAppProofs?: boolean;
3064
3164
  };
3065
3165
  v1ExecuteSwapResult: {
3066
- /** @description The send_transaction_status ID associated with the swap transaction submission */
3067
- sendTransactionStatusId: string;
3166
+ /** @description Identifier to poll swap status via GetSwapStatus. */
3167
+ swapRequestId: string;
3068
3168
  /** @description Swap provider used to build the transaction. */
3069
3169
  provider?: string;
3070
3170
  /** @description Quote identifier used for execution, if any. */
@@ -3354,7 +3454,7 @@ export type definitions = {
3354
3454
  v1GetLatestBootProofRequest: {
3355
3455
  /** @description Unique identifier for a given Organization. */
3356
3456
  organizationId: string;
3357
- /** @description Name of enclave app. */
3457
+ /** @description Unique identifier (UUID) of the enclave app. */
3358
3458
  appName: string;
3359
3459
  };
3360
3460
  v1GetMfaPoliciesRequest: {
@@ -3578,35 +3678,11 @@ export type definitions = {
3578
3678
  /** @description List of unique identifiers for the matching sub-organizations. */
3579
3679
  organizationIds: string[];
3580
3680
  };
3581
- v1GetSwapQuoteRequest: {
3582
- /** @description Unique identifier for a given Organization. */
3583
- organizationId: string;
3584
- /** @description CAIP-19 asset ID for the input asset. The chain is derived from this value. */
3585
- inputToken: string;
3586
- /** @description CAIP-19 asset ID for the output asset. */
3587
- outputToken: string;
3588
- /** @description Base-unit amount of the input asset. */
3589
- inputAmount: string;
3590
- /** @description Wallet account address used to price the executable provider quote. */
3591
- walletAccount: string;
3592
- /** @description Maximum allowed slippage in basis points. */
3593
- slippage?: string;
3594
- };
3595
- v1GetSwapQuoteResponse: {
3596
- /** @description CAIP-19 asset ID for the input asset. */
3597
- inputToken: string;
3598
- /** @description CAIP-19 asset ID for the output asset. */
3599
- outputToken: string;
3600
- /** @description Base-unit amount of the input asset. */
3601
- inputAmount: string;
3602
- /** @description One quote per available swap provider. */
3603
- quotes: definitions["v1SwapQuoteOption"][];
3604
- };
3605
3681
  v1GetSwapStatusRequest: {
3606
3682
  /** @description Unique identifier for a given Organization. */
3607
3683
  organizationId: string;
3608
- /** @description Identifier returned in the execute_swap activity result. */
3609
- sendTransactionStatusId: string;
3684
+ /** @description The swap_request_id returned by ExecuteSwap. */
3685
+ swapRequestId: string;
3610
3686
  };
3611
3687
  v1GetSwapStatusResponse: {
3612
3688
  /** @description Normalized swap status. One of PENDING, COMPLETED, FAILED. */
@@ -3614,7 +3690,7 @@ export type definitions = {
3614
3690
  /** @description SAME_CHAIN or CROSS_CHAIN. */
3615
3691
  swapKind: string;
3616
3692
  /** @description Swap provider that executed the swap. */
3617
- provider?: string;
3693
+ provider: string;
3618
3694
  /** @description CAIP-19 asset ID for the input asset. */
3619
3695
  inputToken: string;
3620
3696
  /** @description CAIP-19 asset ID for the output asset. */
@@ -3623,20 +3699,16 @@ export type definitions = {
3623
3699
  inputAmount: string;
3624
3700
  /** @description Final included origin-chain transaction hash, when known. */
3625
3701
  originTxHash?: string;
3626
- /** @description Destination-chain fill transaction hash; cross-chain COMPLETED only. */
3627
- destinationTxHash?: string;
3628
- /** @description Actual base-unit output amount on COMPLETED, when known. */
3702
+ /** @description Provider-reported destination-chain transaction hashes; cross-chain COMPLETED only. */
3703
+ destinationTxHashes?: string[];
3704
+ /** @description Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
3629
3705
  outputAmount?: string;
3630
- /** @description CAIP-19 of the asset the user holds after a FAILED swap, when recoverable. */
3631
- settledAsset?: string;
3632
- /** @description Base-unit amount of settled_asset. */
3633
- settledAmount?: string;
3634
- /** @description Transaction that delivered the settled funds, when applicable. */
3635
- settlementTxHash?: string;
3636
- /** @description Non-normative raw provider status passthrough; cross-chain only. */
3637
- providerStatus?: string;
3706
+ /** @description Asset and amount returned to the user after a failed swap, when recoverable. Present only on FAILED. */
3707
+ refund?: definitions["v1SwapRefund"];
3638
3708
  /** @description Timestamp of the last swap status change, as millisecond epoch string. */
3639
3709
  updatedAt: string;
3710
+ /** @description Normalized failure details, present whenever status is FAILED. */
3711
+ error?: definitions["v1SwapError"];
3640
3712
  };
3641
3713
  v1GetTvcAppDeploymentsRequest: {
3642
3714
  /** @description Unique identifier for a given organization. */
@@ -3783,7 +3855,7 @@ export type definitions = {
3783
3855
  * @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values.
3784
3856
  * @enum {string}
3785
3857
  */
3786
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
3858
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
3787
3859
  };
3788
3860
  v1GetWalletAddressBalancesResponse: {
3789
3861
  /** @description List of asset balances */
@@ -4375,6 +4447,10 @@ export type definitions = {
4375
4447
  claimSwapFeesIntent?: definitions["v1ClaimSwapFeesIntent"];
4376
4448
  earnSetWrapperStateIntent?: definitions["v1EarnSetWrapperStateIntent"];
4377
4449
  claimEarnFeesIntent?: definitions["v1ClaimEarnFeesIntent"];
4450
+ updateWalletAccountNameIntent?: definitions["v1UpdateWalletAccountNameIntent"];
4451
+ ethUndelegate7702Intent?: definitions["v1EthUndelegate7702Intent"];
4452
+ executeSwapIntentV2?: definitions["v1ExecuteSwapIntentV2"];
4453
+ createSwapQuoteIntent?: definitions["v1CreateSwapQuoteIntent"];
4378
4454
  };
4379
4455
  v1Invitation: {
4380
4456
  /** @description Unique identifier for a given Invitation object. */
@@ -4467,8 +4543,10 @@ export type definitions = {
4467
4543
  paginationOptions?: definitions["v1Pagination"];
4468
4544
  };
4469
4545
  v1ListEarnVaultsResponse: {
4470
- /** @description The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass the last vault_address as the pagination after cursor. */
4546
+ /** @description The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass page_info.end_cursor as the pagination after cursor. */
4471
4547
  vaults?: definitions["v1EarnVault"][];
4548
+ /** @description Pagination metadata for the returned page. Pass end_cursor as the next request's after cursor (or start_cursor as the before cursor) to page through the catalog. Cursors are opaque; do not parse them. */
4549
+ pageInfo?: definitions["v1PageInfo"];
4472
4550
  };
4473
4551
  v1ListEmailEventsRequest: {
4474
4552
  /** @description Unique identifier for a given organization */
@@ -4551,7 +4629,7 @@ export type definitions = {
4551
4629
  * @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values.
4552
4630
  * @enum {string}
4553
4631
  */
4554
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
4632
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
4555
4633
  };
4556
4634
  v1ListSupportedAssetsResponse: {
4557
4635
  /** @description List of asset metadata */
@@ -4856,7 +4934,13 @@ export type definitions = {
4856
4934
  session: string;
4857
4935
  };
4858
4936
  /** @enum {string} */
4859
- v1Outcome: "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS";
4937
+ v1Outcome: "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS" | "OUTCOME_TIME_INACTIVE";
4938
+ v1PageInfo: {
4939
+ hasNextPage?: boolean;
4940
+ hasPreviousPage?: boolean;
4941
+ startCursor?: string;
4942
+ endCursor?: string;
4943
+ };
4860
4944
  v1Pagination: {
4861
4945
  /** @description A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
4862
4946
  limit?: string;
@@ -4884,6 +4968,8 @@ export type definitions = {
4884
4968
  consensus: string;
4885
4969
  /** @description A condition expression that evalutes to true or false. */
4886
4970
  condition: string;
4971
+ /** @description A time expression that evalutes to true or false. */
4972
+ time?: string;
4887
4973
  };
4888
4974
  v1PostTvcQuorumKeyShareIntent: {
4889
4975
  /** @description Unique identifier of the TVC deployment receiving quorum key share */
@@ -5222,6 +5308,9 @@ export type definitions = {
5222
5308
  claimSwapFeesResult?: definitions["v1ClaimSwapFeesResult"];
5223
5309
  earnSetWrapperStateResult?: definitions["v1EarnSetWrapperStateResult"];
5224
5310
  claimEarnFeesResult?: definitions["v1ClaimEarnFeesResult"];
5311
+ updateWalletAccountNameResult?: definitions["v1UpdateWalletAccountNameResult"];
5312
+ ethUndelegate7702Result?: definitions["v1EthUndelegate7702Result"];
5313
+ createSwapQuoteResult?: definitions["v1CreateSwapQuoteResult"];
5225
5314
  };
5226
5315
  v1RevertChainEntry: {
5227
5316
  /** @description The contract address where the revert occurred. */
@@ -5838,15 +5927,39 @@ export type definitions = {
5838
5927
  /** @description Signed JWT containing an expiry, public key, session type, user id, and organization id */
5839
5928
  session: string;
5840
5929
  };
5841
- v1SwapQuoteOption: {
5842
- /** @description Identifier for this provider quote. */
5930
+ v1SwapError: {
5931
+ /** @description Stable machine-readable failure reason. One of ORIGIN_TRANSACTION_FAILED or PROVIDER_FILL_FAILED. */
5932
+ reason: string;
5933
+ /** @description Human-readable description of the swap failure. */
5934
+ message: string;
5935
+ /** @description Origin-chain transaction failure details, present when reason is ORIGIN_TRANSACTION_FAILED and details are available. */
5936
+ originTxError?: definitions["v1TxError"];
5937
+ };
5938
+ v1SwapQuote: {
5939
+ /** @description 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. */
5843
5940
  quoteId: string;
5844
- /** @description Swap provider that produced this quote. Pass this value to execute_swap to force a specific provider. */
5941
+ /** @description Swap provider that produced this quote. */
5845
5942
  provider: string;
5846
5943
  /** @description Estimated base-unit amount of the output asset. */
5847
5944
  outputAmount: string;
5848
5945
  /** @description Minimum acceptable base-unit amount of the output asset after slippage. */
5849
- minOutputAmount?: string;
5946
+ minOutputAmount: string;
5947
+ /** @description Quote expiration as a millisecond epoch string. */
5948
+ expiresAt: string;
5949
+ /** @description Provider-neutral maximum allowed slippage in basis points, echoed from the quote request when set. */
5950
+ slippageBps?: string;
5951
+ /** @description Client fee in basis points applied for this pair. Informational only; already reflected in output_amount and min_output_amount. */
5952
+ clientFeeBps: string;
5953
+ /** @description Provider-estimated completion time in seconds, when available. */
5954
+ estimatedTimeSeconds?: string;
5955
+ };
5956
+ v1SwapRefund: {
5957
+ /** @description CAIP-19 asset returned to the user after a failed swap. */
5958
+ asset: string;
5959
+ /** @description Base-unit amount of the refunded asset. */
5960
+ amount: string;
5961
+ /** @description Transaction that delivered the refunded funds, when applicable. */
5962
+ txHash?: string;
5850
5963
  };
5851
5964
  /** @enum {string} */
5852
5965
  v1TagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
@@ -6316,6 +6429,8 @@ export type definitions = {
6316
6429
  policyConsensus?: string;
6317
6430
  /** @description Accompanying notes for a Policy (optional). */
6318
6431
  policyNotes?: string;
6432
+ /** @description The time expression that triggers the Effect (optional). */
6433
+ time?: string;
6319
6434
  };
6320
6435
  v1UpdatePolicyRequest: {
6321
6436
  /** @enum {string} */
@@ -6512,6 +6627,16 @@ export type definitions = {
6512
6627
  /** @description Unique identifier for a given User Tag. */
6513
6628
  userTagId: string;
6514
6629
  };
6630
+ v1UpdateWalletAccountNameIntent: {
6631
+ /** @description Unique identifier for a given Wallet Account. */
6632
+ walletAccountId: string;
6633
+ /** @description Human-readable name for this Wallet Account. */
6634
+ name: string;
6635
+ };
6636
+ v1UpdateWalletAccountNameResult: {
6637
+ /** @description Unique identifier for a given Wallet Account. */
6638
+ walletAccountId: string;
6639
+ };
6515
6640
  v1UpdateWalletIntent: {
6516
6641
  /** @description Unique identifier for a given Wallet. */
6517
6642
  walletId: string;
@@ -6578,8 +6703,7 @@ export type definitions = {
6578
6703
  feeReceiverWalletAddress?: string;
6579
6704
  /** @description Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
6580
6705
  feeBps?: string;
6581
- provider?: string;
6582
- /** @description Optional override applied when both swap assets are stablecoins; falls back to fee_bps when unset. */
6706
+ /** @description Optional Enterprise-only override applied when both swap assets are stablecoins; falls back to fee_bps when unset. Non-Enterprise orgs may only set fee_bps. */
6583
6707
  stableFeeBps?: string;
6584
6708
  };
6585
6709
  v1UpsertSwapConfigRequest: {
@@ -7402,25 +7526,7 @@ export type operations = {
7402
7526
  };
7403
7527
  };
7404
7528
  };
7405
- /** Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported. */
7406
- PublicApiService_GetSwapQuote: {
7407
- parameters: {
7408
- body: {
7409
- body: definitions["v1GetSwapQuoteRequest"];
7410
- };
7411
- };
7412
- responses: {
7413
- /** A successful response. */
7414
- 200: {
7415
- schema: definitions["v1GetSwapQuoteResponse"];
7416
- };
7417
- /** An unexpected error response. */
7418
- default: {
7419
- schema: definitions["rpcStatus"];
7420
- };
7421
- };
7422
- };
7423
- /** Get the status of a swap by the send_transaction_status_id returned from execute_swap. Covers same-chain and cross-chain swaps. */
7529
+ /** Poll the status of a swap by its swap_request_id. Covers same-chain and cross-chain swaps. */
7424
7530
  PublicApiService_GetSwapStatus: {
7425
7531
  parameters: {
7426
7532
  body: {
@@ -8410,6 +8516,24 @@ export type operations = {
8410
8516
  };
8411
8517
  };
8412
8518
  };
8519
+ /** Get a swap quote. Asset chains are derived from CAIP-19 asset IDs; cross-chain quotes are supported. */
8520
+ PublicApiService_CreateSwapQuote: {
8521
+ parameters: {
8522
+ body: {
8523
+ body: definitions["v1CreateSwapQuoteRequest"];
8524
+ };
8525
+ };
8526
+ responses: {
8527
+ /** A successful response. */
8528
+ 200: {
8529
+ schema: definitions["v1ActivityResponse"];
8530
+ };
8531
+ /** An unexpected error response. */
8532
+ default: {
8533
+ schema: definitions["rpcStatus"];
8534
+ };
8535
+ };
8536
+ };
8413
8537
  /** Create a new TVC application */
8414
8538
  PublicApiService_CreateTvcApp: {
8415
8539
  parameters: {
@@ -9076,7 +9200,25 @@ export type operations = {
9076
9200
  };
9077
9201
  };
9078
9202
  };
9079
- /** Execute a quoted swap through the activity pipeline and Turnkey broadcasting. */
9203
+ /** Submit an EIP-7702 undelegation transaction. */
9204
+ PublicApiService_EthUndelegate7702: {
9205
+ parameters: {
9206
+ body: {
9207
+ body: definitions["v1EthUndelegate7702Request"];
9208
+ };
9209
+ };
9210
+ responses: {
9211
+ /** A successful response. */
9212
+ 200: {
9213
+ schema: definitions["v1ActivityResponse"];
9214
+ };
9215
+ /** An unexpected error response. */
9216
+ default: {
9217
+ schema: definitions["rpcStatus"];
9218
+ };
9219
+ };
9220
+ };
9221
+ /** Execute the exact provider quote identified by quote_id through the activity pipeline and Turnkey broadcasting. Requests must use ACTIVITY_TYPE_EXECUTE_SWAP_V2. */
9080
9222
  PublicApiService_ExecuteSwap: {
9081
9223
  parameters: {
9082
9224
  body: {