@turnkey/sdk-types 1.2.0 → 1.3.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.
@@ -74,6 +74,11 @@ export type v1GetAccountRequest = {
74
74
  export type v1GetAccountResponse = {
75
75
  organizationId?: string;
76
76
  };
77
+ export type v1GetWalletKitClientParamsRequest = {};
78
+ export type v1GetWalletKitClientParamsResponse = {
79
+ /** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
80
+ turnstileSiteKey?: string;
81
+ };
77
82
  export type v1GetWalletKitConfigRequest = {};
78
83
  export type v1GetWalletKitConfigResponse = {
79
84
  /** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
@@ -485,7 +490,7 @@ export type v1ActivityResponse = {
485
490
  activity: v1Activity;
486
491
  };
487
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";
488
- 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_UPSERT_EARN_CLIENT_FEE_CONFIG" | "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";
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";
489
494
  export type v1ApiKey = {
490
495
  /** A User credential that can be used to authenticate to Turnkey. */
491
496
  credential: externaldatav1Credential;
@@ -630,6 +635,28 @@ export type v1BootProof = {
630
635
  export type v1BootProofResponse = {
631
636
  bootProof: v1BootProof;
632
637
  };
638
+ export type v1ClaimEarnFeesIntent = {
639
+ /** Address of the deployed Earn wrapper to claim fees for. Must be one of the org's deployed wrappers. */
640
+ wrapperAddress: string;
641
+ };
642
+ export type v1ClaimEarnFeesRequest = {
643
+ type: "ACTIVITY_TYPE_CLAIM_EARN_FEES";
644
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
645
+ timestampMs: string;
646
+ /** Unique identifier for a given Organization. */
647
+ organizationId: string;
648
+ parameters: v1ClaimEarnFeesIntent;
649
+ generateAppProofs?: boolean;
650
+ };
651
+ export type v1ClaimEarnFeesResult = {
652
+ /** Identifier to poll claim status and tx hash via GetClaimEarnFeesStatus. */
653
+ claimRequestId: string;
654
+ };
655
+ export type v1ClaimSwapFeesIntent = {};
656
+ export type v1ClaimSwapFeesResult = {
657
+ /** Relay claim request ID submitted through the permit endpoint. */
658
+ requestId: string;
659
+ };
633
660
  export type v1Config = {
634
661
  features?: v1Feature[];
635
662
  quorum?: externaldatav1Quorum;
@@ -1286,6 +1313,8 @@ export type v1CreateTvcDeploymentIntent = {
1286
1313
  healthCheckPort: number;
1287
1314
  /** Port to use for public ingress. */
1288
1315
  publicIngressPort: number;
1316
+ /** Optional desired replica count for this deployment. */
1317
+ replicas?: number;
1289
1318
  };
1290
1319
  export type v1CreateTvcDeploymentRequest = {
1291
1320
  type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
@@ -1866,22 +1895,35 @@ export type v1DisablePrivateKeyResult = {
1866
1895
  privateKeyId: string;
1867
1896
  };
1868
1897
  export type v1EarnDeployWrapperIntent = {
1869
- /** Address of the underlying yield vault to wrap (from the EarnVaults catalog). */
1898
+ /** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
1870
1899
  vaultAddress: string;
1871
1900
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
1872
1901
  chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
1902
+ /** 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. */
1903
+ clientFeeBps: string;
1904
+ /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
1905
+ clientFeeWallet: string;
1906
+ };
1907
+ export type v1EarnDeployWrapperRequest = {
1908
+ type: "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER";
1909
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1910
+ timestampMs: string;
1911
+ /** Unique identifier for a given Organization. */
1912
+ organizationId: string;
1913
+ parameters: v1EarnDeployWrapperIntent;
1914
+ generateAppProofs?: boolean;
1873
1915
  };
1874
1916
  export type v1EarnDeployWrapperResult = {
1875
1917
  /** Address of the deployed fee wrapper (the deposit target). */
1876
1918
  wrapperAddress: string;
1877
1919
  /** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
1878
1920
  splitterAddress: string;
1879
- /** Transaction hash of the wrapper deployment. */
1880
- deployTxHash: string;
1921
+ /** Identifier to poll deploy status. */
1922
+ deployRequestId: string;
1881
1923
  };
1882
1924
  export type v1EarnDepositIntent = {
1883
- /** Address of the underlying yield vault to deposit into. The org must have an enabled wrapper for this vault. */
1884
- vaultAddress: string;
1925
+ /** Address of the deployed Earn wrapper to deposit into, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
1926
+ wrapperAddress: string;
1885
1927
  /** A Wallet account address or Private Key address to deposit from and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
1886
1928
  signWith: string;
1887
1929
  /** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
@@ -1891,39 +1933,155 @@ export type v1EarnDepositIntent = {
1891
1933
  /** Whether to sponsor this transaction via Gas Station. */
1892
1934
  sponsor?: boolean;
1893
1935
  };
1936
+ export type v1EarnDepositRequest = {
1937
+ type: "ACTIVITY_TYPE_EARN_DEPOSIT";
1938
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1939
+ timestampMs: string;
1940
+ /** Unique identifier for a given Organization. */
1941
+ organizationId: string;
1942
+ parameters: v1EarnDepositIntent;
1943
+ generateAppProofs?: boolean;
1944
+ };
1894
1945
  export type v1EarnDepositResult = {
1895
- /** Transaction hash of the deposit. */
1896
- depositTxHash: string;
1897
- /** Number of wrapper shares minted to the depositor, in raw on-chain units. */
1898
- sharesMinted: string;
1899
- /** Address of the fee wrapper the deposit was routed to. */
1900
- wrapperAddress: string;
1901
- /** Identifier to poll deposit status via EarnDepositStatus (for the async/sponsored path). */
1946
+ /** Identifier to poll deposit status and tx hash via GetEarnDepositStatus. */
1902
1947
  depositRequestId: string;
1903
1948
  };
1949
+ export type v1EarnEnabledVault = {
1950
+ /** Address of the underlying yield vault. */
1951
+ vaultAddress?: string;
1952
+ /** Address of the deployed fee wrapper (the deposit target). */
1953
+ wrapperAddress?: string;
1954
+ /** Yield provider for the vault. */
1955
+ provider?: v1EarnProvider;
1956
+ /** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
1957
+ caip19?: string;
1958
+ /** Gross annual percentage yield, expressed as a decimal fraction (before Turnkey and client fees). */
1959
+ apyPct?: string;
1960
+ /** Total deposited through this wrapper (wrapper TVL), in raw on-chain units of the underlying asset. */
1961
+ totalDeposited?: string;
1962
+ /** Normalized total-deposited values for display only (usd + crypto). Do not do arithmetic with these; use total_deposited instead. */
1963
+ display?: v1EarnValueDisplay;
1964
+ /** Annual percentage yield net of the Turnkey and client performance fees, expressed as a decimal fraction. */
1965
+ netApyPct?: string;
1966
+ /** Client performance fee taken on yield, in basis points. Currently org-wide; moving to a per-vault setting. */
1967
+ clientFeeBps?: string;
1968
+ /** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
1969
+ depositsDisabled?: boolean;
1970
+ /** Human-readable vault name from the provider (e.g. 'Steakhouse Prime USDC' for Morpho; the reserve symbol for Aave). */
1971
+ name?: string;
1972
+ /** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
1973
+ curator?: string;
1974
+ /** 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. */
1975
+ claimableClientFee?: string;
1976
+ /** 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. */
1977
+ claimableClientFeeDisplay?: v1EarnValueDisplay;
1978
+ };
1979
+ export type v1EarnPosition = {
1980
+ /** Address of the underlying yield vault. */
1981
+ vaultAddress?: string;
1982
+ /** Address of the fee wrapper holding the position. */
1983
+ wrapperAddress?: string;
1984
+ /** Yield provider for the vault. */
1985
+ provider?: v1EarnProvider;
1986
+ /** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
1987
+ caip19?: string;
1988
+ /** Current value of the position in the underlying asset, in raw on-chain units (already net of the wrapper fee). */
1989
+ currentValue?: string;
1990
+ /** Lifetime total deposited into this position, in raw on-chain units. */
1991
+ totalDeposited?: string;
1992
+ /** Lifetime total withdrawn from this position, in raw on-chain units. */
1993
+ totalWithdrawn?: string;
1994
+ /** USD + crypto renderings for display only. Do not do arithmetic with these. */
1995
+ display?: v1EarnPositionDisplay;
1996
+ /** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
1997
+ depositsDisabled?: boolean;
1998
+ };
1999
+ export type v1EarnPositionDisplay = {
2000
+ /** Current value in USD, for display only. */
2001
+ currentValueUsd?: string;
2002
+ /** Total deposited in USD, for display only. */
2003
+ totalDepositedUsd?: string;
2004
+ /** Total withdrawn in USD, for display only. */
2005
+ totalWithdrawnUsd?: string;
2006
+ /** Current value in the asset's own units, for display only. */
2007
+ currentValueCrypto?: string;
2008
+ /** Total deposited in the asset's own units, for display only. */
2009
+ totalDepositedCrypto?: string;
2010
+ /** Total withdrawn in the asset's own units, for display only. */
2011
+ totalWithdrawnCrypto?: string;
2012
+ };
2013
+ export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE";
2014
+ export type v1EarnSetWrapperStateIntent = {
2015
+ /** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
2016
+ wrapperAddress: string;
2017
+ /** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Set to false to re-enable deposits. */
2018
+ depositsDisabled: boolean;
2019
+ };
2020
+ export type v1EarnSetWrapperStateRequest = {
2021
+ type: "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE";
2022
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2023
+ timestampMs: string;
2024
+ /** Unique identifier for a given Organization. */
2025
+ organizationId: string;
2026
+ parameters: v1EarnSetWrapperStateIntent;
2027
+ generateAppProofs?: boolean;
2028
+ };
2029
+ export type v1EarnSetWrapperStateResult = {
2030
+ /** Address of the updated Earn wrapper. */
2031
+ wrapperAddress: string;
2032
+ /** The wrapper's deposit state after this activity. */
2033
+ depositsDisabled: boolean;
2034
+ };
2035
+ export type v1EarnValueDisplay = {
2036
+ /** USD value, for display only. */
2037
+ usd?: string;
2038
+ /** Normalized amount in the asset's own units, for display only. */
2039
+ crypto?: string;
2040
+ };
2041
+ export type v1EarnVault = {
2042
+ /** Address of the underlying yield vault. */
2043
+ vaultAddress?: string;
2044
+ /** Yield provider for the vault. */
2045
+ provider?: v1EarnProvider;
2046
+ /** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
2047
+ caip19?: string;
2048
+ /** Total value locked in the vault, in raw on-chain units of the underlying asset. The catalog is sorted by the USD value of this. */
2049
+ tvl?: string;
2050
+ /** Current annual percentage yield, expressed as a decimal fraction (e.g., '0.0812' for 8.12%). */
2051
+ apyPct?: string;
2052
+ /** Whether the organization has enabled this vault. */
2053
+ enabled?: boolean;
2054
+ /** Normalized TVL values for display purposes only (usd + crypto). Do not do arithmetic with these; use tvl instead. */
2055
+ display?: v1EarnValueDisplay;
2056
+ /** Human-readable vault name from the provider (e.g. 'Steakhouse Prime USDC' for Morpho; the reserve symbol for Aave). */
2057
+ name?: string;
2058
+ /** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
2059
+ curator?: string;
2060
+ };
1904
2061
  export type v1EarnWithdrawIntent = {
1905
- /** Address of the underlying yield vault to withdraw from. The org must have an enabled wrapper for this vault. */
1906
- vaultAddress: string;
2062
+ /** Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
2063
+ wrapperAddress: string;
1907
2064
  /** A Wallet account address or Private Key address to withdraw to and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
1908
2065
  signWith: string;
1909
2066
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
1910
2067
  chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
1911
2068
  /** Whether to sponsor this transaction via Gas Station. */
1912
2069
  sponsor?: boolean;
1913
- /** Whether amount_value is denominated in shares or assets. 'SHARES' redeems wrapper shares (calls redeem()); 'ASSETS' withdraws underlying assets (calls withdraw(), enabling yield-only claims). */
1914
- amountType: "SHARES" | "ASSETS";
1915
- /** The amount to withdraw, in raw on-chain units, interpreted according to amount_type. */
2070
+ /** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
1916
2071
  amountValue: string;
1917
2072
  };
2073
+ export type v1EarnWithdrawRequest = {
2074
+ type: "ACTIVITY_TYPE_EARN_WITHDRAW";
2075
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2076
+ timestampMs: string;
2077
+ /** Unique identifier for a given Organization. */
2078
+ organizationId: string;
2079
+ parameters: v1EarnWithdrawIntent;
2080
+ generateAppProofs?: boolean;
2081
+ };
1918
2082
  export type v1EarnWithdrawResult = {
1919
- /** Transaction hash of the withdrawal. */
1920
- withdrawTxHash: string;
1921
- /** Identifier to poll withdrawal status via EarnWithdrawStatus. */
2083
+ /** Identifier to poll withdrawal status and tx hash via GetEarnWithdrawStatus. */
1922
2084
  withdrawRequestId: string;
1923
- /** Amount of the underlying asset received, in raw on-chain units. */
1924
- assetsReceived: string;
1925
- /** Number of wrapper shares burned, in raw on-chain units. */
1926
- sharesBurned: string;
1927
2085
  };
1928
2086
  export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
1929
2087
  export type v1EmailAuthCustomizationParams = {
@@ -2092,7 +2250,7 @@ export type v1EthSendRawTransactionIntent = {
2092
2250
  /** The raw, signed transaction to be sent. */
2093
2251
  signedTransaction: string;
2094
2252
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2095
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
2253
+ 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";
2096
2254
  };
2097
2255
  export type v1EthSendRawTransactionResult = {
2098
2256
  /** The transaction hash of the sent transaction */
@@ -2104,7 +2262,7 @@ export type v1EthSendTransactionIntent = {
2104
2262
  /** Whether to sponsor this transaction via Gas Station. */
2105
2263
  sponsor?: boolean;
2106
2264
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2107
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
2265
+ 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";
2108
2266
  /** Recipient address as a hex string with 0x prefix. */
2109
2267
  to: string;
2110
2268
  /** Amount of native asset to send in wei. */
@@ -2128,7 +2286,7 @@ export type v1EthSendTransactionIntentV2 = {
2128
2286
  /** A wallet or private key address to sign with. This does not support private key IDs. */
2129
2287
  from: string;
2130
2288
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2131
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
2289
+ 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";
2132
2290
  /** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
2133
2291
  sponsor?: boolean;
2134
2292
  /** Outer transaction nonce. Omit to auto-fetch. */
@@ -2167,6 +2325,26 @@ export type v1EthSendTransactionStatus = {
2167
2325
  /** The Ethereum transaction hash, if available. */
2168
2326
  txHash?: string;
2169
2327
  };
2328
+ export type v1EthTransactionHistoryItem = {
2329
+ /** EVM transaction hash. */
2330
+ transactionHash: string;
2331
+ /** Block metadata for the transaction. */
2332
+ block: v1TransactionHistoryBlock;
2333
+ /** Transaction confirmation status. */
2334
+ status: "CONFIRMED" | "FINALIZED";
2335
+ /** Origin of the transaction. Examples include TURNKEY. */
2336
+ origin: string;
2337
+ /** EVM sender address for the transaction. */
2338
+ from: string;
2339
+ /** EVM transaction destination address, such as the called contract or EVM tx.to. Omitted for contract-creation transactions with no destination. Recipients and payers of value transfers are reflected in transfers[].counterparty. */
2340
+ to?: string;
2341
+ /** Transaction fee information. */
2342
+ fee: v1TransactionHistoryFee;
2343
+ /** Asset transfers associated with the transaction. */
2344
+ transfers: v1TransactionHistoryTransfer[];
2345
+ /** Turnkey-specific metadata for transactions originated by Turnkey. */
2346
+ turnkey?: v1TransactionHistoryTurnkey;
2347
+ };
2170
2348
  export type v1ExecuteSwapIntent = {
2171
2349
  /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
2172
2350
  inputToken: string;
@@ -2182,6 +2360,8 @@ export type v1ExecuteSwapIntent = {
2182
2360
  slippage?: string;
2183
2361
  /** Swap provider to execute with, as returned by get_swap_quote. When omitted, execution uses the default provider. */
2184
2362
  provider?: string;
2363
+ /** 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. */
2364
+ minOutputAmount: string;
2185
2365
  };
2186
2366
  export type v1ExecuteSwapResult = {
2187
2367
  /** The send_transaction_status ID associated with the swap transaction submission */
@@ -2371,6 +2551,48 @@ export type v1GetBootProofRequest = {
2371
2551
  /** Hex encoded ephemeral public key. */
2372
2552
  ephemeralKey: string;
2373
2553
  };
2554
+ export type v1GetEarnDeployStatusRequest = {
2555
+ /** Unique identifier for a given Organization. */
2556
+ organizationId: string;
2557
+ /** The deploy_request_id returned by EarnDeployWrapper. */
2558
+ deployRequestId: string;
2559
+ };
2560
+ export type v1GetEarnDeployStatusResponse = {
2561
+ /** Status of the wrapper deployment. */
2562
+ status: "PENDING" | "COMPLETED" | "FAILED";
2563
+ /** Transaction hash of the deployment, once available. */
2564
+ deployTxHash?: string;
2565
+ /** Reason the deployment transaction failed, when status is FAILED. */
2566
+ error?: string;
2567
+ };
2568
+ export type v1GetEarnDepositStatusRequest = {
2569
+ /** Unique identifier for a given Organization. */
2570
+ organizationId: string;
2571
+ /** The deposit_request_id returned by EarnDeposit. */
2572
+ depositRequestId: string;
2573
+ };
2574
+ export type v1GetEarnDepositStatusResponse = {
2575
+ /** Status of the deposit. */
2576
+ status: "PENDING" | "COMPLETED" | "FAILED";
2577
+ /** Transaction hash of the deposit, once available. */
2578
+ depositTxHash?: string;
2579
+ /** Reason the deposit transaction failed, when status is FAILED. */
2580
+ error?: string;
2581
+ };
2582
+ export type v1GetEarnWithdrawStatusRequest = {
2583
+ /** Unique identifier for a given Organization. */
2584
+ organizationId: string;
2585
+ /** The withdraw_request_id returned by EarnWithdraw. */
2586
+ withdrawRequestId: string;
2587
+ };
2588
+ export type v1GetEarnWithdrawStatusResponse = {
2589
+ /** Status of the withdrawal. */
2590
+ status: "PENDING" | "COMPLETED" | "FAILED";
2591
+ /** Transaction hash of the withdrawal, once available. */
2592
+ withdrawTxHash?: string;
2593
+ /** Reason the withdrawal transaction failed, when status is FAILED. */
2594
+ error?: string;
2595
+ };
2374
2596
  export type v1GetGasUsageRequest = {
2375
2597
  /** Unique identifier for a given Organization. */
2376
2598
  organizationId: string;
@@ -2438,7 +2660,7 @@ export type v1GetNoncesRequest = {
2438
2660
  /** The Ethereum address to query nonces for. */
2439
2661
  address: string;
2440
2662
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2441
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
2663
+ 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";
2442
2664
  /** Whether to fetch the standard on-chain nonce. */
2443
2665
  nonce?: boolean;
2444
2666
  /** Whether to fetch the gas station nonce used for sponsored transactions. */
@@ -2720,7 +2942,7 @@ export type v1GetWalletAddressBalancesRequest = {
2720
2942
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
2721
2943
  address: string;
2722
2944
  /** 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. */
2723
- 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" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2945
+ 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";
2724
2946
  };
2725
2947
  export type v1GetWalletAddressBalancesResponse = {
2726
2948
  /** List of asset balances */
@@ -2869,6 +3091,16 @@ export type v1InitImportPrivateKeyResult = {
2869
3091
  /** Import bundle containing a public key and signature to use for importing client data. */
2870
3092
  importBundle: string;
2871
3093
  };
3094
+ export type v1InitImportSecretsIntent = {
3095
+ /** Transport encryption suite used for ingress secrets. */
3096
+ encryptionSuite: v1TransportEncryptionSuite;
3097
+ /** The number of secrets the user intends to import. */
3098
+ numSecrets: number;
3099
+ };
3100
+ export type v1InitImportSecretsResult = {
3101
+ /** Enclave ingress target keys along with metadata specific to the encryption suite. For enclave encrypt v1 this will be ServerTargetMsgV1. */
3102
+ enclaveTargetMessages: string[];
3103
+ };
2872
3104
  export type v1InitImportWalletIntent = {
2873
3105
  /** The ID of the User importing a Wallet. */
2874
3106
  userId: string;
@@ -3247,12 +3479,16 @@ export type v1Intent = {
3247
3479
  earnDeployWrapperIntent?: v1EarnDeployWrapperIntent;
3248
3480
  earnDepositIntent?: v1EarnDepositIntent;
3249
3481
  earnWithdrawIntent?: v1EarnWithdrawIntent;
3250
- upsertEarnClientFeeConfigIntent?: v1UpsertEarnClientFeeConfigIntent;
3251
3482
  executeSwapIntent?: v1ExecuteSwapIntent;
3252
3483
  upsertSwapConfigIntent?: v1UpsertSwapConfigIntent;
3253
3484
  createTvcOperatorIntent?: v1CreateTvcOperatorIntent;
3254
3485
  createTvcQuorumKeyIntent?: v1CreateTvcQuorumKeyIntent;
3255
3486
  reEncryptTvcQuorumKeyShareIntent?: v1ReEncryptTvcQuorumKeyShareIntent;
3487
+ initImportSecretsIntent?: v1InitImportSecretsIntent;
3488
+ solSendTransactionIntentV2?: v1SolSendTransactionIntentV2;
3489
+ claimSwapFeesIntent?: v1ClaimSwapFeesIntent;
3490
+ earnSetWrapperStateIntent?: v1EarnSetWrapperStateIntent;
3491
+ claimEarnFeesIntent?: v1ClaimEarnFeesIntent;
3256
3492
  };
3257
3493
  export type v1InvitationParams = {
3258
3494
  /** The name of the intended Invitation recipient. */
@@ -3292,6 +3528,42 @@ export type v1IpAllowlistRule = {
3292
3528
  /** Creation timestamp as millisecond epoch string. */
3293
3529
  createdAt?: string;
3294
3530
  };
3531
+ export type v1ListEarnEnabledVaultsRequest = {
3532
+ /** Unique identifier for a given Organization. */
3533
+ organizationId: string;
3534
+ /** Optional filter: only return enabled vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
3535
+ provider?: v1EarnProvider;
3536
+ /** Optional filter: only return enabled vaults whose underlying asset matches this CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...'). The chain is taken from the CAIP-19 identifier. */
3537
+ caip19?: string;
3538
+ };
3539
+ export type v1ListEarnEnabledVaultsResponse = {
3540
+ /** The organization's deployed wrappers. */
3541
+ enabledVaults?: v1EarnEnabledVault[];
3542
+ };
3543
+ export type v1ListEarnPositionsRequest = {
3544
+ /** Unique identifier for a given Organization. */
3545
+ organizationId: string;
3546
+ /** The wallet address to return positions for. */
3547
+ walletAddress: string;
3548
+ };
3549
+ export type v1ListEarnPositionsResponse = {
3550
+ /** The wallet's active Earn positions. */
3551
+ positions?: v1EarnPosition[];
3552
+ };
3553
+ export type v1ListEarnVaultsRequest = {
3554
+ /** Unique identifier for a given Organization. Annotates which vaults the organization has already enabled. */
3555
+ organizationId: string;
3556
+ /** Optional filter: only return vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
3557
+ provider?: v1EarnProvider;
3558
+ /** CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...') to return vaults for. Only vaults whose underlying asset matches are returned; the chain is taken from the CAIP-19 identifier. */
3559
+ caip19: string;
3560
+ /** Pagination over the TVL-sorted catalog. before/after cursors are a vault_address from a prior page. */
3561
+ paginationOptions?: v1Pagination;
3562
+ };
3563
+ export type v1ListEarnVaultsResponse = {
3564
+ /** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass the last vault_address as the pagination after cursor. */
3565
+ vaults?: v1EarnVault[];
3566
+ };
3295
3567
  export type v1ListEmailEventsRequest = {
3296
3568
  /** Unique identifier for a given organization */
3297
3569
  organizationId: string;
@@ -3306,6 +3578,22 @@ export type v1ListEmailEventsResponse = {
3306
3578
  /** Email events matching the requested filters, ordered by most recent event first. */
3307
3579
  emailEvents: v1EmailEvent[];
3308
3580
  };
3581
+ export type v1ListEthTransactionHistoryRequest = {
3582
+ /** Unique identifier for a given organization. */
3583
+ organizationId: string;
3584
+ /** Address corresponding to a wallet account. Private key addresses are not supported. */
3585
+ address: string;
3586
+ /** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
3587
+ 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";
3588
+ /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
3589
+ paginationOptions?: v1TransactionHistoryPaginationOptions;
3590
+ };
3591
+ export type v1ListEthTransactionHistoryResponse = {
3592
+ /** EVM transactions for the requested address, ordered by most recent first. */
3593
+ transactions: v1EthTransactionHistoryItem[];
3594
+ /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
3595
+ paginationCursors: v1TransactionHistoryPaginationCursors;
3596
+ };
3309
3597
  export type v1ListFiatOnRampCredentialsRequest = {
3310
3598
  /** Unique identifier for a given Organization. */
3311
3599
  organizationId: string;
@@ -3328,11 +3616,27 @@ export type v1ListPrivateKeyTagsResponse = {
3328
3616
  /** A list of private key tags. */
3329
3617
  privateKeyTags: datav1Tag[];
3330
3618
  };
3619
+ export type v1ListSolTransactionHistoryRequest = {
3620
+ /** Unique identifier for a given organization. */
3621
+ organizationId: string;
3622
+ /** Address corresponding to a wallet account. Private key addresses are not supported. */
3623
+ address: string;
3624
+ /** 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. */
3625
+ caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
3626
+ /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
3627
+ paginationOptions?: v1TransactionHistoryPaginationOptions;
3628
+ };
3629
+ export type v1ListSolTransactionHistoryResponse = {
3630
+ /** Solana transactions for the requested address, ordered by most recent first. */
3631
+ transactions: v1SolTransactionHistoryItem[];
3632
+ /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
3633
+ paginationCursors: v1TransactionHistoryPaginationCursors;
3634
+ };
3331
3635
  export type v1ListSupportedAssetsRequest = {
3332
3636
  /** Unique identifier for a given organization. */
3333
3637
  organizationId: string;
3334
3638
  /** 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. */
3335
- 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" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
3639
+ 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";
3336
3640
  };
3337
3641
  export type v1ListSupportedAssetsResponse = {
3338
3642
  /** List of asset metadata */
@@ -3896,12 +4200,16 @@ export type v1Result = {
3896
4200
  earnDeployWrapperResult?: v1EarnDeployWrapperResult;
3897
4201
  earnDepositResult?: v1EarnDepositResult;
3898
4202
  earnWithdrawResult?: v1EarnWithdrawResult;
3899
- upsertEarnClientFeeConfigResult?: v1UpsertEarnClientFeeConfigResult;
3900
4203
  executeSwapResult?: v1ExecuteSwapResult;
3901
4204
  upsertSwapConfigResult?: v1UpsertSwapConfigResult;
3902
4205
  createTvcOperatorResult?: v1CreateTvcOperatorResult;
3903
4206
  createTvcQuorumKeyResult?: v1CreateTvcQuorumKeyResult;
3904
4207
  reEncryptTvcQuorumKeyShareResult?: v1ReEncryptTvcQuorumKeyShareResult;
4208
+ initImportSecretsResult?: v1InitImportSecretsResult;
4209
+ solSendTransactionResultV2?: v1SolSendTransactionResultV2;
4210
+ claimSwapFeesResult?: v1ClaimSwapFeesResult;
4211
+ earnSetWrapperStateResult?: v1EarnSetWrapperStateResult;
4212
+ claimEarnFeesResult?: v1ClaimEarnFeesResult;
3905
4213
  };
3906
4214
  export type v1RevertChainEntry = {
3907
4215
  /** The contract address where the revert occurred. */
@@ -4163,19 +4471,61 @@ export type v1SolSendTransactionIntent = {
4163
4471
  /** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
4164
4472
  recentBlockhash?: string;
4165
4473
  };
4474
+ export type v1SolSendTransactionIntentV2 = {
4475
+ /** Hex-encoded serialized unsigned Solana transaction (full wire format with zeroed signature placeholders) */
4476
+ unsignedTransaction: string;
4477
+ /** Ordered Solana signer addresses Turnkey signs with. Between 1 and 16 signers. For sponsored transactions this must list every required signer of the transaction in transaction order. */
4478
+ signWiths: string[];
4479
+ /** Whether to sponsor this transaction via Gas Station. */
4480
+ sponsor?: boolean;
4481
+ /** 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. */
4482
+ caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
4483
+ /** User-provided blockhash for replay protection / deadline control. If provided, it is used as-is, including for sponsored transactions (the transaction is only broadcastable while the blockhash is current). If omitted and sponsor=true, a fresh blockhash is fetched during execution. */
4484
+ recentBlockhash?: string;
4485
+ };
4166
4486
  export type v1SolSendTransactionRequest = {
4167
- type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION";
4487
+ type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2";
4168
4488
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4169
4489
  timestampMs: string;
4170
4490
  /** Unique identifier for a given Organization. */
4171
4491
  organizationId: string;
4172
- parameters: v1SolSendTransactionIntent;
4492
+ parameters: v1SolSendTransactionIntentV2;
4173
4493
  generateAppProofs?: boolean;
4174
4494
  };
4175
4495
  export type v1SolSendTransactionResult = {
4176
4496
  /** The send_transaction_status ID associated with the transaction submission */
4177
4497
  sendTransactionStatusId: string;
4178
4498
  };
4499
+ export type v1SolSendTransactionResultV2 = {
4500
+ /** The send_transaction_status ID associated with the transaction submission */
4501
+ sendTransactionStatusId: string;
4502
+ };
4503
+ export type v1SolTransactionHistoryItem = {
4504
+ /** Solana transaction signature. */
4505
+ signature: string;
4506
+ /** Block metadata for the transaction. */
4507
+ block: v1TransactionHistoryBlock;
4508
+ /** Transaction confirmation status. */
4509
+ status: "CONFIRMED" | "FINALIZED";
4510
+ /** Origin of the transaction. Examples include TURNKEY. */
4511
+ origin: string;
4512
+ /** Address that paid the Solana transaction fee. This is the first signer in the transaction message. */
4513
+ feePayer: string;
4514
+ /** Addresses that signed the Solana transaction, in message order. */
4515
+ signers: v1SolTransactionHistorySigner[];
4516
+ /** Transaction fee information. */
4517
+ fee: v1TransactionHistoryFee;
4518
+ /** Asset transfers associated with the transaction. */
4519
+ transfers: v1TransactionHistoryTransfer[];
4520
+ /** Turnkey-specific metadata for transactions originated by Turnkey. */
4521
+ turnkey?: v1TransactionHistoryTurnkey;
4522
+ };
4523
+ export type v1SolTransactionHistorySigner = {
4524
+ /** Address of the Solana transaction signer. */
4525
+ address: string;
4526
+ /** Whether the signer account was writable in the Solana transaction message. */
4527
+ writable: boolean;
4528
+ };
4179
4529
  export type v1SolanaConfig = {
4180
4530
  /** Whether Solana rent prefunding is enabled for the organization. When omitted, the existing rent-prefund state is left unchanged. */
4181
4531
  rentPrefundEnabled?: boolean;
@@ -4434,7 +4784,72 @@ export type v1TokenUsage = {
4434
4784
  login?: v1LoginUsage;
4435
4785
  signupV2?: v1SignupUsageV2;
4436
4786
  };
4787
+ export type v1TransactionHistoryAsset = {
4788
+ /** The CAIP-19 asset identifier. */
4789
+ caip19: string;
4790
+ /** The asset symbol. */
4791
+ symbol: string;
4792
+ /** The asset name. */
4793
+ name: string;
4794
+ /** The number of decimals this asset uses. */
4795
+ decimals: number;
4796
+ };
4797
+ export type v1TransactionHistoryBlock = {
4798
+ /** Block number containing the transaction. */
4799
+ number: string;
4800
+ /** Block hash containing the transaction. */
4801
+ hash: string;
4802
+ /** Block timestamp in RFC 3339 format. */
4803
+ timestamp: string;
4804
+ };
4805
+ export type v1TransactionHistoryDisplay = {
4806
+ /** Normalized crypto value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
4807
+ crypto?: string;
4808
+ /** USD value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
4809
+ usd?: string;
4810
+ };
4811
+ export type v1TransactionHistoryFee = {
4812
+ /** Fee amount in atomic units. */
4813
+ amount: string;
4814
+ /** The CAIP-19 asset identifier. */
4815
+ caip19: string;
4816
+ };
4817
+ export type v1TransactionHistoryPaginationCursors = {
4818
+ /** Opaque base64-encoded cursor for fetching transactions immediately before the current page in the newest-first result order. Omitted when no such page exists. */
4819
+ before?: string;
4820
+ /** Opaque base64-encoded cursor for fetching transactions immediately after the current page in the newest-first result order. Omitted when no such page exists. */
4821
+ after?: string;
4822
+ };
4823
+ export type v1TransactionHistoryPaginationOptions = {
4824
+ /** Maximum number of transactions to return, between 1 and 100. Defaults to 25. */
4825
+ limit?: string;
4826
+ /** 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. */
4827
+ before?: string;
4828
+ /** 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. */
4829
+ after?: string;
4830
+ };
4831
+ export type v1TransactionHistoryTransfer = {
4832
+ /** Transfer direction relative to the queried address. */
4833
+ direction: "IN" | "OUT";
4834
+ /** Asset metadata for the transfer. Omitted when the asset cannot be determined. */
4835
+ asset?: v1TransactionHistoryAsset;
4836
+ /** Transfer amount in atomic units. */
4837
+ amount: string;
4838
+ /** Counterparty address for the transfer. */
4839
+ counterparty: string;
4840
+ /** Normalized transfer values for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. Use the amount field instead. */
4841
+ display?: v1TransactionHistoryDisplay;
4842
+ };
4843
+ export type v1TransactionHistoryTurnkey = {
4844
+ /** Whether the transaction fee was sponsored by Turnkey. */
4845
+ sponsored: boolean;
4846
+ /** Fingerprint of the Turnkey activity that submitted the transaction. */
4847
+ activityFingerprint?: string;
4848
+ /** Timestamp when Turnkey submitted the transaction, in RFC 3339 format. */
4849
+ submittedAt?: string;
4850
+ };
4437
4851
  export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
4852
+ export type v1TransportEncryptionSuite = "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1";
4438
4853
  export type v1TvcApp = {
4439
4854
  /** Unique Identifier for this TVC App. */
4440
4855
  id: string;
@@ -4630,6 +5045,8 @@ export type v1UpdateAuthProxyConfigIntent = {
4630
5045
  verificationTokenRequiredForGetAccountPii?: boolean;
4631
5046
  /** Whitelisted OAuth client IDs for social account linking. When a user authenticates via a social provider with an email matching an existing account, the accounts will be linked if the client ID is in this list and the issuer is considered a trusted provider. */
4632
5047
  socialLinkingClientIds?: string[];
5048
+ /** Whether captcha verification is required on sign up & otp init. */
5049
+ captchaEnabled?: boolean;
4633
5050
  };
4634
5051
  export type v1UpdateAuthProxyConfigResult = {
4635
5052
  /** Unique identifier for a given User. (representing the turnkey signer user id) */
@@ -4983,16 +5400,6 @@ export type v1UpdateWebhookEndpointResult = {
4983
5400
  /** The updated webhook endpoint data. */
4984
5401
  webhookEndpoint: v1WebhookEndpointData;
4985
5402
  };
4986
- export type v1UpsertEarnClientFeeConfigIntent = {
4987
- /** 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. */
4988
- clientFeeBps: string;
4989
- /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
4990
- clientFeeWallet: string;
4991
- };
4992
- export type v1UpsertEarnClientFeeConfigResult = {
4993
- /** Transaction hash of the fee configuration update. */
4994
- feeUpdateTxHash: string;
4995
- };
4996
5403
  export type v1UpsertGasUsageConfigIntent = {
4997
5404
  /** Gas sponsorship USD limit for the billing organization window. */
4998
5405
  orgWindowLimitUsd: string;
@@ -5011,12 +5418,16 @@ export type v1UpsertGasUsageConfigResult = {
5011
5418
  };
5012
5419
  export type v1UpsertSwapConfigIntent = {
5013
5420
  feeReceiverWalletAddress?: string;
5421
+ /** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
5014
5422
  feeBps?: string;
5015
5423
  provider?: string;
5424
+ /** Optional override applied when both swap assets are stablecoins; falls back to fee_bps when unset. */
5425
+ stableFeeBps?: string;
5016
5426
  };
5017
5427
  export type v1UpsertSwapConfigResult = {
5018
5428
  feeReceiverWalletAddress?: string;
5019
5429
  feeBps?: string;
5430
+ stableFeeBps?: string;
5020
5431
  };
5021
5432
  export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
5022
5433
  export type v1User = {
@@ -5313,6 +5724,54 @@ export type TGetBootProofBody = {
5313
5724
  export type TGetBootProofInput = {
5314
5725
  body: TGetBootProofBody;
5315
5726
  };
5727
+ export type TGetEarnDeployStatusResponse = {
5728
+ /** Status of the wrapper deployment. */
5729
+ status: "PENDING" | "COMPLETED" | "FAILED";
5730
+ /** Transaction hash of the deployment, once available. */
5731
+ deployTxHash?: string;
5732
+ /** Reason the deployment transaction failed, when status is FAILED. */
5733
+ error?: string;
5734
+ };
5735
+ export type TGetEarnDeployStatusBody = {
5736
+ organizationId?: string;
5737
+ /** The deploy_request_id returned by EarnDeployWrapper. */
5738
+ deployRequestId: string;
5739
+ };
5740
+ export type TGetEarnDeployStatusInput = {
5741
+ body: TGetEarnDeployStatusBody;
5742
+ };
5743
+ export type TGetEarnDepositStatusResponse = {
5744
+ /** Status of the deposit. */
5745
+ status: "PENDING" | "COMPLETED" | "FAILED";
5746
+ /** Transaction hash of the deposit, once available. */
5747
+ depositTxHash?: string;
5748
+ /** Reason the deposit transaction failed, when status is FAILED. */
5749
+ error?: string;
5750
+ };
5751
+ export type TGetEarnDepositStatusBody = {
5752
+ organizationId?: string;
5753
+ /** The deposit_request_id returned by EarnDeposit. */
5754
+ depositRequestId: string;
5755
+ };
5756
+ export type TGetEarnDepositStatusInput = {
5757
+ body: TGetEarnDepositStatusBody;
5758
+ };
5759
+ export type TGetEarnWithdrawStatusResponse = {
5760
+ /** Status of the withdrawal. */
5761
+ status: "PENDING" | "COMPLETED" | "FAILED";
5762
+ /** Transaction hash of the withdrawal, once available. */
5763
+ withdrawTxHash?: string;
5764
+ /** Reason the withdrawal transaction failed, when status is FAILED. */
5765
+ error?: string;
5766
+ };
5767
+ export type TGetEarnWithdrawStatusBody = {
5768
+ organizationId?: string;
5769
+ /** The withdraw_request_id returned by EarnWithdraw. */
5770
+ withdrawRequestId: string;
5771
+ };
5772
+ export type TGetEarnWithdrawStatusInput = {
5773
+ body: TGetEarnWithdrawStatusBody;
5774
+ };
5316
5775
  export type TGetGasUsageResponse = {
5317
5776
  /** The window duration (in minutes) for the organization or sub-organization. */
5318
5777
  windowDurationMinutes: number;
@@ -5400,7 +5859,7 @@ export type TGetNoncesBody = {
5400
5859
  /** The Ethereum address to query nonces for. */
5401
5860
  address: string;
5402
5861
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
5403
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
5862
+ 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";
5404
5863
  /** Whether to fetch the standard on-chain nonce. */
5405
5864
  nonce?: boolean;
5406
5865
  /** Whether to fetch the gas station nonce used for sponsored transactions. */
@@ -5634,7 +6093,7 @@ export type TGetWalletAddressBalancesBody = {
5634
6093
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
5635
6094
  address: string;
5636
6095
  /** 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. */
5637
- 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" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
6096
+ 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";
5638
6097
  };
5639
6098
  export type TGetWalletAddressBalancesInput = {
5640
6099
  body: TGetWalletAddressBalancesBody;
@@ -5666,6 +6125,48 @@ export type TGetAppProofsBody = {
5666
6125
  export type TGetAppProofsInput = {
5667
6126
  body: TGetAppProofsBody;
5668
6127
  };
6128
+ export type TListEarnEnabledVaultsResponse = {
6129
+ /** The organization's deployed wrappers. */
6130
+ enabledVaults?: v1EarnEnabledVault[];
6131
+ };
6132
+ export type TListEarnEnabledVaultsBody = {
6133
+ organizationId?: string;
6134
+ /** Optional filter: only return enabled vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
6135
+ provider?: v1EarnProvider;
6136
+ /** Optional filter: only return enabled vaults whose underlying asset matches this CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...'). The chain is taken from the CAIP-19 identifier. */
6137
+ caip19?: string;
6138
+ };
6139
+ export type TListEarnEnabledVaultsInput = {
6140
+ body: TListEarnEnabledVaultsBody;
6141
+ };
6142
+ export type TListEarnPositionsResponse = {
6143
+ /** The wallet's active Earn positions. */
6144
+ positions?: v1EarnPosition[];
6145
+ };
6146
+ export type TListEarnPositionsBody = {
6147
+ organizationId?: string;
6148
+ /** The wallet address to return positions for. */
6149
+ walletAddress: string;
6150
+ };
6151
+ export type TListEarnPositionsInput = {
6152
+ body: TListEarnPositionsBody;
6153
+ };
6154
+ export type TListEarnVaultsResponse = {
6155
+ /** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass the last vault_address as the pagination after cursor. */
6156
+ vaults?: v1EarnVault[];
6157
+ };
6158
+ export type TListEarnVaultsBody = {
6159
+ organizationId?: string;
6160
+ /** Optional filter: only return vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
6161
+ provider?: v1EarnProvider;
6162
+ /** CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...') to return vaults for. Only vaults whose underlying asset matches are returned; the chain is taken from the CAIP-19 identifier. */
6163
+ caip19: string;
6164
+ /** Pagination over the TVL-sorted catalog. before/after cursors are a vault_address from a prior page. */
6165
+ paginationOptions?: v1Pagination;
6166
+ };
6167
+ export type TListEarnVaultsInput = {
6168
+ body: TListEarnVaultsBody;
6169
+ };
5669
6170
  export type TListEmailEventsResponse = {
5670
6171
  /** Email events matching the requested filters, ordered by most recent event first. */
5671
6172
  emailEvents: v1EmailEvent[];
@@ -5682,6 +6183,24 @@ export type TListEmailEventsBody = {
5682
6183
  export type TListEmailEventsInput = {
5683
6184
  body: TListEmailEventsBody;
5684
6185
  };
6186
+ export type TListEthTransactionHistoryResponse = {
6187
+ /** EVM transactions for the requested address, ordered by most recent first. */
6188
+ transactions: v1EthTransactionHistoryItem[];
6189
+ /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
6190
+ paginationCursors: v1TransactionHistoryPaginationCursors;
6191
+ };
6192
+ export type TListEthTransactionHistoryBody = {
6193
+ organizationId?: string;
6194
+ /** Address corresponding to a wallet account. Private key addresses are not supported. */
6195
+ address: string;
6196
+ /** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
6197
+ 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";
6198
+ /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
6199
+ paginationOptions?: v1TransactionHistoryPaginationOptions;
6200
+ };
6201
+ export type TListEthTransactionHistoryInput = {
6202
+ body: TListEthTransactionHistoryBody;
6203
+ };
5685
6204
  export type TListFiatOnRampCredentialsResponse = {
5686
6205
  fiatOnRampCredentials: v1FiatOnRampCredential[];
5687
6206
  };
@@ -5740,6 +6259,24 @@ export type TGetSmartContractInterfacesBody = {
5740
6259
  export type TGetSmartContractInterfacesInput = {
5741
6260
  body: TGetSmartContractInterfacesBody;
5742
6261
  };
6262
+ export type TListSolTransactionHistoryResponse = {
6263
+ /** Solana transactions for the requested address, ordered by most recent first. */
6264
+ transactions: v1SolTransactionHistoryItem[];
6265
+ /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
6266
+ paginationCursors: v1TransactionHistoryPaginationCursors;
6267
+ };
6268
+ export type TListSolTransactionHistoryBody = {
6269
+ organizationId?: string;
6270
+ /** Address corresponding to a wallet account. Private key addresses are not supported. */
6271
+ address: string;
6272
+ /** 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. */
6273
+ caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
6274
+ /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
6275
+ paginationOptions?: v1TransactionHistoryPaginationOptions;
6276
+ };
6277
+ export type TListSolTransactionHistoryInput = {
6278
+ body: TListSolTransactionHistoryBody;
6279
+ };
5743
6280
  export type TGetSubOrgIdsResponse = {
5744
6281
  /** List of unique identifiers for the matching sub-organizations. */
5745
6282
  organizationIds: string[];
@@ -5763,7 +6300,7 @@ export type TListSupportedAssetsResponse = {
5763
6300
  export type TListSupportedAssetsBody = {
5764
6301
  organizationId?: string;
5765
6302
  /** 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. */
5766
- 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" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
6303
+ 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";
5767
6304
  };
5768
6305
  export type TListSupportedAssetsInput = {
5769
6306
  body: TListSupportedAssetsBody;
@@ -5904,6 +6441,21 @@ export type TApproveActivityBody = {
5904
6441
  export type TApproveActivityInput = {
5905
6442
  body: TApproveActivityBody;
5906
6443
  };
6444
+ export type TClaimEarnFeesResponse = {
6445
+ activity: v1Activity;
6446
+ /** Identifier to poll claim status and tx hash via GetClaimEarnFeesStatus. */
6447
+ claimRequestId: string;
6448
+ };
6449
+ export type TClaimEarnFeesBody = {
6450
+ timestampMs?: string;
6451
+ organizationId?: string;
6452
+ /** Address of the deployed Earn wrapper to claim fees for. Must be one of the org's deployed wrappers. */
6453
+ wrapperAddress: string;
6454
+ generateAppProofs?: boolean;
6455
+ };
6456
+ export type TClaimEarnFeesInput = {
6457
+ body: TClaimEarnFeesBody;
6458
+ };
5907
6459
  export type TCreateApiKeysResponse = {
5908
6460
  activity: v1Activity;
5909
6461
  /** A list of API Key IDs. */
@@ -6310,6 +6862,8 @@ export type TCreateTvcDeploymentBody = {
6310
6862
  healthCheckPort: number;
6311
6863
  /** Port to use for public ingress. */
6312
6864
  publicIngressPort: number;
6865
+ /** Optional desired replica count for this deployment. */
6866
+ replicas?: number;
6313
6867
  };
6314
6868
  export type TCreateTvcDeploymentInput = {
6315
6869
  body: TCreateTvcDeploymentBody;
@@ -6742,6 +7296,96 @@ export type TDeleteWebhookEndpointBody = {
6742
7296
  export type TDeleteWebhookEndpointInput = {
6743
7297
  body: TDeleteWebhookEndpointBody;
6744
7298
  };
7299
+ export type TEarnDeployWrapperResponse = {
7300
+ activity: v1Activity;
7301
+ /** Address of the deployed fee wrapper (the deposit target). */
7302
+ wrapperAddress: string;
7303
+ /** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
7304
+ splitterAddress: string;
7305
+ /** Identifier to poll deploy status. */
7306
+ deployRequestId: string;
7307
+ };
7308
+ export type TEarnDeployWrapperBody = {
7309
+ timestampMs?: string;
7310
+ organizationId?: string;
7311
+ /** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
7312
+ vaultAddress: string;
7313
+ /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
7314
+ chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
7315
+ /** 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. */
7316
+ clientFeeBps: string;
7317
+ /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
7318
+ clientFeeWallet: string;
7319
+ generateAppProofs?: boolean;
7320
+ };
7321
+ export type TEarnDeployWrapperInput = {
7322
+ body: TEarnDeployWrapperBody;
7323
+ };
7324
+ export type TEarnDepositResponse = {
7325
+ activity: v1Activity;
7326
+ /** Identifier to poll deposit status and tx hash via GetEarnDepositStatus. */
7327
+ depositRequestId: string;
7328
+ };
7329
+ export type TEarnDepositBody = {
7330
+ timestampMs?: string;
7331
+ organizationId?: string;
7332
+ /** Address of the deployed Earn wrapper to deposit into, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
7333
+ wrapperAddress: string;
7334
+ /** A Wallet account address or Private Key address to deposit from and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
7335
+ signWith: string;
7336
+ /** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
7337
+ assets: string;
7338
+ /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
7339
+ chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
7340
+ /** Whether to sponsor this transaction via Gas Station. */
7341
+ sponsor?: boolean;
7342
+ generateAppProofs?: boolean;
7343
+ };
7344
+ export type TEarnDepositInput = {
7345
+ body: TEarnDepositBody;
7346
+ };
7347
+ export type TEarnSetWrapperStateResponse = {
7348
+ activity: v1Activity;
7349
+ /** Address of the updated Earn wrapper. */
7350
+ wrapperAddress: string;
7351
+ /** The wrapper's deposit state after this activity. */
7352
+ depositsDisabled: boolean;
7353
+ };
7354
+ export type TEarnSetWrapperStateBody = {
7355
+ timestampMs?: string;
7356
+ organizationId?: string;
7357
+ /** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
7358
+ wrapperAddress: string;
7359
+ /** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Set to false to re-enable deposits. */
7360
+ depositsDisabled: boolean;
7361
+ generateAppProofs?: boolean;
7362
+ };
7363
+ export type TEarnSetWrapperStateInput = {
7364
+ body: TEarnSetWrapperStateBody;
7365
+ };
7366
+ export type TEarnWithdrawResponse = {
7367
+ activity: v1Activity;
7368
+ /** Identifier to poll withdrawal status and tx hash via GetEarnWithdrawStatus. */
7369
+ withdrawRequestId: string;
7370
+ };
7371
+ export type TEarnWithdrawBody = {
7372
+ timestampMs?: string;
7373
+ organizationId?: string;
7374
+ /** Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
7375
+ wrapperAddress: string;
7376
+ /** A Wallet account address or Private Key address to withdraw to and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
7377
+ signWith: string;
7378
+ /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
7379
+ chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
7380
+ /** Whether to sponsor this transaction via Gas Station. */
7381
+ sponsor?: boolean;
7382
+ /** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
7383
+ amountValue: string;
7384
+ generateAppProofs?: boolean;
7385
+ };
7386
+ export type TEarnWithdrawInput = {
7387
+ body: TEarnWithdrawBody;
7388
+ };
6745
7389
  export type TEmailAuthResponse = {
6746
7390
  activity: v1Activity;
6747
7391
  /** Unique identifier for the authenticating User. */
@@ -7367,29 +8011,6 @@ export type TSignTransactionBody = {
7367
8011
  export type TSignTransactionInput = {
7368
8012
  body: TSignTransactionBody;
7369
8013
  };
7370
- export type TSolSendTransactionResponse = {
7371
- activity: v1Activity;
7372
- /** The send_transaction_status ID associated with the transaction submission */
7373
- sendTransactionStatusId: string;
7374
- };
7375
- export type TSolSendTransactionBody = {
7376
- timestampMs?: string;
7377
- organizationId?: string;
7378
- /** Base64-encoded serialized unsigned Solana transaction */
7379
- unsignedTransaction: string;
7380
- /** A wallet or private key address to sign with. This does not support private key IDs. */
7381
- signWith: string;
7382
- /** Whether to sponsor this transaction via Gas Station. */
7383
- sponsor?: boolean;
7384
- /** 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. */
7385
- caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
7386
- /** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
7387
- recentBlockhash?: string;
7388
- generateAppProofs?: boolean;
7389
- };
7390
- export type TSolSendTransactionInput = {
7391
- body: TSolSendTransactionBody;
7392
- };
7393
8014
  export type TSparkClaimTransferResponse = {
7394
8015
  activity: v1Activity;
7395
8016
  /** Per-operator ECIES-encrypted packages. */
@@ -7807,7 +8428,7 @@ export type TEthSendTransactionBody = {
7807
8428
  /** Whether to sponsor this transaction via Gas Station. */
7808
8429
  sponsor?: boolean;
7809
8430
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
7810
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
8431
+ 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";
7811
8432
  /** Recipient address as a hex string with 0x prefix. */
7812
8433
  to: string;
7813
8434
  /** Amount of native asset to send in wei. */
@@ -7842,7 +8463,7 @@ export type TEthSendTransactionV2Body = {
7842
8463
  /** A wallet or private key address to sign with. This does not support private key IDs. */
7843
8464
  from: string;
7844
8465
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
7845
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
8466
+ 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";
7846
8467
  /** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
7847
8468
  sponsor?: boolean;
7848
8469
  /** Outer transaction nonce. Omit to auto-fetch. */
@@ -7864,6 +8485,52 @@ export type TEthSendTransactionV2Body = {
7864
8485
  export type TEthSendTransactionV2Input = {
7865
8486
  body: TEthSendTransactionV2Body;
7866
8487
  };
8488
+ export type TSolSendTransactionResponse = {
8489
+ activity: v1Activity;
8490
+ /** The send_transaction_status ID associated with the transaction submission */
8491
+ sendTransactionStatusId: string;
8492
+ };
8493
+ export type TSolSendTransactionBody = {
8494
+ timestampMs?: string;
8495
+ organizationId?: string;
8496
+ /** Base64-encoded serialized unsigned Solana transaction */
8497
+ unsignedTransaction: string;
8498
+ /** A wallet or private key address to sign with. This does not support private key IDs. */
8499
+ signWith: string;
8500
+ /** Whether to sponsor this transaction via Gas Station. */
8501
+ sponsor?: boolean;
8502
+ /** 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. */
8503
+ caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
8504
+ /** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
8505
+ recentBlockhash?: string;
8506
+ generateAppProofs?: boolean;
8507
+ };
8508
+ export type TSolSendTransactionInput = {
8509
+ body: TSolSendTransactionBody;
8510
+ };
8511
+ export type TSolSendTransactionV2Response = {
8512
+ activity: v1Activity;
8513
+ /** The send_transaction_status ID associated with the transaction submission */
8514
+ sendTransactionStatusId: string;
8515
+ };
8516
+ export type TSolSendTransactionV2Body = {
8517
+ timestampMs?: string;
8518
+ organizationId?: string;
8519
+ /** Hex-encoded serialized unsigned Solana transaction (full wire format with zeroed signature placeholders) */
8520
+ unsignedTransaction: string;
8521
+ /** Ordered Solana signer addresses Turnkey signs with. Between 1 and 16 signers. For sponsored transactions this must list every required signer of the transaction in transaction order. */
8522
+ signWiths: string[];
8523
+ /** Whether to sponsor this transaction via Gas Station. */
8524
+ sponsor?: boolean;
8525
+ /** 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. */
8526
+ caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
8527
+ /** User-provided blockhash for replay protection / deadline control. If provided, it is used as-is, including for sponsored transactions (the transaction is only broadcastable while the blockhash is current). If omitted and sponsor=true, a fresh blockhash is fetched during execution. */
8528
+ recentBlockhash?: string;
8529
+ generateAppProofs?: boolean;
8530
+ };
8531
+ export type TSolSendTransactionV2Input = {
8532
+ body: TSolSendTransactionV2Body;
8533
+ };
7867
8534
  export type ProxyTGetAccountResponse = {
7868
8535
  organizationId?: string;
7869
8536
  };
@@ -8076,6 +8743,14 @@ export type ProxyTSignupV2Body = {
8076
8743
  export type ProxyTSignupV2Input = {
8077
8744
  body: ProxyTSignupV2Body;
8078
8745
  };
8746
+ export type ProxyTGetWalletKitClientParamsResponse = {
8747
+ /** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
8748
+ turnstileSiteKey?: string;
8749
+ };
8750
+ export type ProxyTGetWalletKitClientParamsBody = {};
8751
+ export type ProxyTGetWalletKitClientParamsInput = {
8752
+ body: ProxyTGetWalletKitClientParamsBody;
8753
+ };
8079
8754
  export type ProxyTGetWalletKitConfigResponse = {
8080
8755
  /** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
8081
8756
  enabledProviders: string[];