@turnkey/sdk-types 1.3.0 → 1.5.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.
@@ -490,7 +490,7 @@ export type v1ActivityResponse = {
490
490
  activity: v1Activity;
491
491
  };
492
492
  export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
493
- export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES";
493
+ export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES" | "ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME" | "ACTIVITY_TYPE_ETH_UNDELEGATE_7702" | "ACTIVITY_TYPE_EXECUTE_SWAP_V2" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE" | "ACTIVITY_TYPE_IMPORT_SECRETS" | "ACTIVITY_TYPE_EXPORT_SECRETS";
494
494
  export type v1ApiKey = {
495
495
  /** A User credential that can be used to authenticate to Turnkey. */
496
496
  credential: externaldatav1Credential;
@@ -565,6 +565,8 @@ export type v1AssetMetadata = {
565
565
  logoUrl?: string;
566
566
  /** The asset name */
567
567
  name?: string;
568
+ /** Whether this asset is on Turnkey's stablecoin list (used for stablepair swap fee pricing). */
569
+ stable?: boolean;
568
570
  };
569
571
  export type v1AuthenticationMethod = {
570
572
  /** The type of authenticator (e.g., AUTHENTICATION_TYPE_EMAIL, AUTHENTICATION_TYPE_SESSION) required for this MFA step. */
@@ -653,6 +655,15 @@ export type v1ClaimEarnFeesResult = {
653
655
  claimRequestId: string;
654
656
  };
655
657
  export type v1ClaimSwapFeesIntent = {};
658
+ export type v1ClaimSwapFeesRequest = {
659
+ type: "ACTIVITY_TYPE_CLAIM_SWAP_FEES";
660
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
661
+ timestampMs: string;
662
+ /** Unique identifier for a given Organization. */
663
+ organizationId: string;
664
+ parameters: v1ClaimSwapFeesIntent;
665
+ generateAppProofs?: boolean;
666
+ };
656
667
  export type v1ClaimSwapFeesResult = {
657
668
  /** Relay claim request ID submitted through the permit endpoint. */
658
669
  requestId: string;
@@ -909,6 +920,8 @@ export type v1CreatePolicyIntentV3 = {
909
920
  consensus?: string;
910
921
  /** Notes for a Policy. */
911
922
  notes: string;
923
+ /** The time expression that triggers the Effect */
924
+ time?: string;
912
925
  };
913
926
  export type v1CreatePolicyRequest = {
914
927
  type: "ACTIVITY_TYPE_CREATE_POLICY_V3";
@@ -1252,6 +1265,31 @@ export type v1CreateSubOrganizationResultV8 = {
1252
1265
  wallet?: v1WalletResult;
1253
1266
  rootUserIds?: string[];
1254
1267
  };
1268
+ export type v1CreateSwapQuoteIntent = {
1269
+ /** Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
1270
+ signWith: string;
1271
+ /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
1272
+ inputToken: string;
1273
+ /** CAIP-19 asset ID for the output asset. */
1274
+ outputToken: string;
1275
+ /** Base-unit amount of the input asset. */
1276
+ inputAmount: string;
1277
+ /** Provider-neutral maximum allowed slippage in basis points. Turnkey converts this value to each provider's request format. When omitted, each provider applies its default slippage behavior. */
1278
+ slippageBps?: string;
1279
+ };
1280
+ export type v1CreateSwapQuoteRequest = {
1281
+ type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
1282
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1283
+ timestampMs: string;
1284
+ /** Unique identifier for a given Organization. */
1285
+ organizationId: string;
1286
+ parameters: v1CreateSwapQuoteIntent;
1287
+ generateAppProofs?: boolean;
1288
+ };
1289
+ export type v1CreateSwapQuoteResult = {
1290
+ /** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap_v2 to bind execution. */
1291
+ quotes: v1SwapQuote[];
1292
+ };
1255
1293
  export type v1CreateTvcAppIntent = {
1256
1294
  /** The name of the new TVC application */
1257
1295
  name: string;
@@ -1287,6 +1325,12 @@ export type v1CreateTvcAppResult = {
1287
1325
  manifestSetOperatorIds: string[];
1288
1326
  /** The required number of approvals for the manifest set */
1289
1327
  manifestSetThreshold: number;
1328
+ /** The unique identifier for the TVC share set */
1329
+ shareSetId: string;
1330
+ /** The unique identifiers of the share set operators */
1331
+ shareSetOperatorIds: string[];
1332
+ /** The required number of approvals for the share set */
1333
+ shareSetThreshold: number;
1290
1334
  };
1291
1335
  export type v1CreateTvcDeploymentIntent = {
1292
1336
  /** The unique identifier of the to-be-deployed TVC application */
@@ -1899,7 +1943,7 @@ export type v1EarnDeployWrapperIntent = {
1899
1943
  vaultAddress: string;
1900
1944
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
1901
1945
  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. */
1946
+ /** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
1903
1947
  clientFeeBps: string;
1904
1948
  /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
1905
1949
  clientFeeWallet: string;
@@ -1955,15 +1999,15 @@ export type v1EarnEnabledVault = {
1955
1999
  provider?: v1EarnProvider;
1956
2000
  /** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
1957
2001
  caip19?: string;
1958
- /** Gross annual percentage yield, expressed as a decimal fraction (before Turnkey and client fees). */
2002
+ /** Gross annual percentage yield, expressed as a decimal fraction (before fees). */
1959
2003
  apyPct?: string;
1960
2004
  /** Total deposited through this wrapper (wrapper TVL), in raw on-chain units of the underlying asset. */
1961
2005
  totalDeposited?: string;
1962
2006
  /** Normalized total-deposited values for display only (usd + crypto). Do not do arithmetic with these; use total_deposited instead. */
1963
2007
  display?: v1EarnValueDisplay;
1964
- /** Annual percentage yield net of the Turnkey and client performance fees, expressed as a decimal fraction. */
2008
+ /** Annual percentage yield net of fees, expressed as a decimal fraction. */
1965
2009
  netApyPct?: string;
1966
- /** Client performance fee taken on yield, in basis points. Currently org-wide; moving to a per-vault setting. */
2010
+ /** Client fee taken on yield, in basis points. */
1967
2011
  clientFeeBps?: string;
1968
2012
  /** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
1969
2013
  depositsDisabled?: boolean;
@@ -1971,10 +2015,12 @@ export type v1EarnEnabledVault = {
1971
2015
  name?: string;
1972
2016
  /** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
1973
2017
  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. */
2018
+ /** 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. */
1975
2019
  claimableClientFee?: string;
1976
2020
  /** 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
2021
  claimableClientFeeDisplay?: v1EarnValueDisplay;
2022
+ /** The wallet address that receives the client's fee payouts on-chain. Unset when a sub-org queries. */
2023
+ clientFeeWallet?: string;
1978
2024
  };
1979
2025
  export type v1EarnPosition = {
1980
2026
  /** Address of the underlying yield vault. */
@@ -2228,6 +2274,8 @@ export type v1EmailEventDetails = {
2228
2274
  deliveryProcessingTimeMillis?: string;
2229
2275
  /** Delay type for DeliveryDelay events */
2230
2276
  deliveryDelayType?: string;
2277
+ /** Feedback type for Complaint events */
2278
+ complaintFeedbackType?: string;
2231
2279
  };
2232
2280
  export type v1EnableAuthProxyIntent = {};
2233
2281
  export type v1EnableAuthProxyResult = {
@@ -2299,7 +2347,7 @@ export type v1EthSendTransactionIntentV2 = {
2299
2347
  maxPriorityFeePerGas?: string;
2300
2348
  /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
2301
2349
  deadline?: string;
2302
- /** The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
2350
+ /** 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. */
2303
2351
  gasStationNonce?: string;
2304
2352
  /** 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. */
2305
2353
  calls: v1EthCallParams[];
@@ -2345,6 +2393,33 @@ export type v1EthTransactionHistoryItem = {
2345
2393
  /** Turnkey-specific metadata for transactions originated by Turnkey. */
2346
2394
  turnkey?: v1TransactionHistoryTurnkey;
2347
2395
  };
2396
+ export type v1EthUndelegate7702Intent = {
2397
+ /** A wallet or private key address to undelegate. This does not support private key IDs. */
2398
+ from: string;
2399
+ /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2400
+ 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";
2401
+ /** Outer transaction nonce. Omit to auto-fetch. */
2402
+ nonce?: string;
2403
+ /** Maximum amount of gas for the undelegation transaction. Omit to use the fixed undelegation gas limit. */
2404
+ gasLimit?: string;
2405
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
2406
+ maxFeePerGas?: string;
2407
+ /** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
2408
+ maxPriorityFeePerGas?: string;
2409
+ };
2410
+ export type v1EthUndelegate7702Request = {
2411
+ type: "ACTIVITY_TYPE_ETH_UNDELEGATE_7702";
2412
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2413
+ timestampMs: string;
2414
+ /** Unique identifier for a given Organization. */
2415
+ organizationId: string;
2416
+ parameters: v1EthUndelegate7702Intent;
2417
+ generateAppProofs?: boolean;
2418
+ };
2419
+ export type v1EthUndelegate7702Result = {
2420
+ /** The send_transaction_status ID associated with the undelegation transaction submission */
2421
+ sendTransactionStatusId: string;
2422
+ };
2348
2423
  export type v1ExecuteSwapIntent = {
2349
2424
  /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
2350
2425
  inputToken: string;
@@ -2358,14 +2433,45 @@ export type v1ExecuteSwapIntent = {
2358
2433
  sponsor?: boolean;
2359
2434
  /** Maximum allowed slippage in basis points. */
2360
2435
  slippage?: string;
2361
- /** Swap provider to execute with, as returned by get_swap_quote. When omitted, execution uses the default provider. */
2436
+ /** Swap provider to execute with, as returned by create_swap_quote. When omitted, execution uses the default provider. */
2362
2437
  provider?: string;
2363
2438
  /** 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
2439
  minOutputAmount: string;
2365
2440
  };
2441
+ export type v1ExecuteSwapIntentV2 = {
2442
+ /** 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. */
2443
+ quoteId: string;
2444
+ /** CAIP-19 asset ID for the input asset. */
2445
+ inputToken: string;
2446
+ /** Exact base-unit amount of the input asset committed by the quote. */
2447
+ inputAmount: string;
2448
+ /** CAIP-19 asset ID for the output asset. */
2449
+ outputToken: string;
2450
+ /** Exact quoted base-unit output amount committed by the quote. */
2451
+ quotedOutputAmount: string;
2452
+ /** Exact minimum base-unit output committed by the quote. */
2453
+ minOutputAmount: string;
2454
+ /** Whether the quoted transaction is sponsored. */
2455
+ sponsor: boolean;
2456
+ /** 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. */
2457
+ evmNonce?: string;
2458
+ /** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
2459
+ recentBlockhash?: string;
2460
+ /** Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
2461
+ gasStationNonce?: string;
2462
+ };
2463
+ export type v1ExecuteSwapRequest = {
2464
+ type: "ACTIVITY_TYPE_EXECUTE_SWAP_V2";
2465
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2466
+ timestampMs: string;
2467
+ /** Unique identifier for a given Organization. */
2468
+ organizationId: string;
2469
+ parameters: v1ExecuteSwapIntentV2;
2470
+ generateAppProofs?: boolean;
2471
+ };
2366
2472
  export type v1ExecuteSwapResult = {
2367
- /** The send_transaction_status ID associated with the swap transaction submission */
2368
- sendTransactionStatusId: string;
2473
+ /** Identifier to poll swap status via GetSwapStatus. */
2474
+ swapRequestId: string;
2369
2475
  /** Swap provider used to build the transaction. */
2370
2476
  provider?: string;
2371
2477
  /** Quote identifier used for execution, if any. */
@@ -2392,6 +2498,30 @@ export type v1ExportPrivateKeyResult = {
2392
2498
  /** Export bundle containing a private key encrypted to the client's target public key. */
2393
2499
  exportBundle: string;
2394
2500
  };
2501
+ export type v1ExportSecretParams = {
2502
+ /** Unique identifier for the secret to export. */
2503
+ secretId: string;
2504
+ /** Client-side public key generated by the user, to which the exported secret will be encrypted. */
2505
+ targetPublicKey: string;
2506
+ /** Transport encryption suite used for the exported secret. */
2507
+ encryptionSuite: v1TransportEncryptionSuite;
2508
+ };
2509
+ export type v1ExportSecretsIntent = {
2510
+ /** A list of secrets to export. */
2511
+ secrets: v1ExportSecretParams[];
2512
+ };
2513
+ export type v1ExportSecretsRequest = {
2514
+ type: "ACTIVITY_TYPE_EXPORT_SECRETS";
2515
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2516
+ timestampMs: string;
2517
+ /** Unique identifier for a given Organization. */
2518
+ organizationId: string;
2519
+ parameters: v1ExportSecretsIntent;
2520
+ };
2521
+ export type v1ExportSecretsResult = {
2522
+ /** Encryption suite specific payload containing each secret ciphertext, in the order the params were specified. For enclave encrypt v1 each entry is a JSON-encoded ServerSendMsg. */
2523
+ secretPayloads: string[];
2524
+ };
2395
2525
  export type v1ExportWalletAccountIntent = {
2396
2526
  /** Address to identify Wallet Account. */
2397
2527
  address: string;
@@ -2551,6 +2681,20 @@ export type v1GetBootProofRequest = {
2551
2681
  /** Hex encoded ephemeral public key. */
2552
2682
  ephemeralKey: string;
2553
2683
  };
2684
+ export type v1GetClaimEarnFeesStatusRequest = {
2685
+ /** Unique identifier for a given Organization. */
2686
+ organizationId: string;
2687
+ /** The claim_request_id returned by ClaimEarnFees. */
2688
+ claimRequestId: string;
2689
+ };
2690
+ export type v1GetClaimEarnFeesStatusResponse = {
2691
+ /** Status of the fee claim. */
2692
+ status: "PENDING" | "COMPLETED" | "FAILED";
2693
+ /** Transaction hash of the fee claim, once available. */
2694
+ claimTxHash?: string;
2695
+ /** Reason the fee claim transaction failed, when status is FAILED. */
2696
+ error?: string;
2697
+ };
2554
2698
  export type v1GetEarnDeployStatusRequest = {
2555
2699
  /** Unique identifier for a given Organization. */
2556
2700
  organizationId: string;
@@ -2617,7 +2761,7 @@ export type v1GetIpAllowlistResponse = {
2617
2761
  export type v1GetLatestBootProofRequest = {
2618
2762
  /** Unique identifier for a given Organization. */
2619
2763
  organizationId: string;
2620
- /** Name of enclave app. */
2764
+ /** Unique identifier (UUID) of the enclave app. */
2621
2765
  appName: string;
2622
2766
  };
2623
2767
  export type v1GetMfaPoliciesRequest = {
@@ -2824,6 +2968,38 @@ export type v1GetSubOrgIdsResponse = {
2824
2968
  /** List of unique identifiers for the matching sub-organizations. */
2825
2969
  organizationIds: string[];
2826
2970
  };
2971
+ export type v1GetSwapStatusRequest = {
2972
+ /** Unique identifier for a given Organization. */
2973
+ organizationId: string;
2974
+ /** The swap_request_id returned by ExecuteSwap. */
2975
+ swapRequestId: string;
2976
+ };
2977
+ export type v1GetSwapStatusResponse = {
2978
+ /** Normalized swap status. One of PENDING, COMPLETED, FAILED. */
2979
+ status: string;
2980
+ /** SAME_CHAIN or CROSS_CHAIN. */
2981
+ swapKind: string;
2982
+ /** Swap provider that executed the swap. */
2983
+ provider: string;
2984
+ /** CAIP-19 asset ID for the input asset. */
2985
+ inputToken: string;
2986
+ /** CAIP-19 asset ID for the output asset. */
2987
+ outputToken: string;
2988
+ /** Base-unit amount of the input asset. */
2989
+ inputAmount: string;
2990
+ /** Final included origin-chain transaction hash, when known. */
2991
+ originTxHash?: string;
2992
+ /** Provider-reported destination-chain transaction hashes; cross-chain COMPLETED only. */
2993
+ destinationTxHashes?: string[];
2994
+ /** Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
2995
+ outputAmount?: string;
2996
+ /** Funds returned by the provider after a successful origin transfer and failed cross-chain fill. Omitted for origin transaction failures and same-chain swaps. */
2997
+ refund?: v1SwapRefund;
2998
+ /** Timestamp of the last swap status change, as millisecond epoch string. */
2999
+ updatedAt: string;
3000
+ /** Normalized failure details, present whenever status is FAILED. */
3001
+ error?: v1SwapError;
3002
+ };
2827
3003
  export type v1GetTvcAppDeploymentsRequest = {
2828
3004
  /** Unique identifier for a given organization. */
2829
3005
  organizationId: string;
@@ -2876,6 +3052,16 @@ export type v1GetTvcDeploymentResponse = {
2876
3052
  /** Details about a single TVC Deployment */
2877
3053
  tvcDeployment: v1TvcDeployment;
2878
3054
  };
3055
+ export type v1GetTvcQosVersionsRequest = {
3056
+ /** Unique identifier for a given Organization. */
3057
+ organizationId: string;
3058
+ };
3059
+ export type v1GetTvcQosVersionsResponse = {
3060
+ /** QOS versions supported for new TVC deployments. */
3061
+ availableVersions: string[];
3062
+ /** Latest recommended QOS version for new TVC deployments. */
3063
+ latestVersion: string;
3064
+ };
2879
3065
  export type v1GetUserRequest = {
2880
3066
  /** Unique identifier for a given organization. */
2881
3067
  organizationId: string;
@@ -2942,7 +3128,7 @@ export type v1GetWalletAddressBalancesRequest = {
2942
3128
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
2943
3129
  address: string;
2944
3130
  /** 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. */
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";
3131
+ 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";
2946
3132
  };
2947
3133
  export type v1GetWalletAddressBalancesResponse = {
2948
3134
  /** List of asset balances */
@@ -3008,6 +3194,34 @@ export type v1ImportPrivateKeyResult = {
3008
3194
  /** A list of addresses. */
3009
3195
  addresses: immutableactivityv1Address[];
3010
3196
  };
3197
+ export type v1ImportSecretParams = {
3198
+ /** Optional human-readable name for the secret. Names must be unique within an organization when provided. */
3199
+ name?: string;
3200
+ /** Encryption suite specific payload containing the secret ciphertext. For enclave encrypt v1 this is a JSON-encoded ClientSendMsg. */
3201
+ secretPayload: string;
3202
+ /** Targeted transport encryption public key, as returned by InitImportSecrets. */
3203
+ targetPublicKey: string;
3204
+ /** Transport encryption suite used for the ingress secret. */
3205
+ encryptionSuite: v1TransportEncryptionSuite;
3206
+ /** Policy-visible, static properties to permanently bind to the secret. */
3207
+ staticProperties?: v1KeyValue[];
3208
+ };
3209
+ export type v1ImportSecretsIntent = {
3210
+ /** A list of secrets to import. */
3211
+ secrets: v1ImportSecretParams[];
3212
+ };
3213
+ export type v1ImportSecretsRequest = {
3214
+ type: "ACTIVITY_TYPE_IMPORT_SECRETS";
3215
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3216
+ timestampMs: string;
3217
+ /** Unique identifier for a given Organization. */
3218
+ organizationId: string;
3219
+ parameters: v1ImportSecretsIntent;
3220
+ };
3221
+ export type v1ImportSecretsResult = {
3222
+ /** Unique identifier for each imported secret, in the order the params were specified. */
3223
+ secretIds: string[];
3224
+ };
3011
3225
  export type v1ImportWalletIntent = {
3012
3226
  /** The ID of the User importing a Wallet. */
3013
3227
  userId: string;
@@ -3489,6 +3703,12 @@ export type v1Intent = {
3489
3703
  claimSwapFeesIntent?: v1ClaimSwapFeesIntent;
3490
3704
  earnSetWrapperStateIntent?: v1EarnSetWrapperStateIntent;
3491
3705
  claimEarnFeesIntent?: v1ClaimEarnFeesIntent;
3706
+ updateWalletAccountNameIntent?: v1UpdateWalletAccountNameIntent;
3707
+ ethUndelegate7702Intent?: v1EthUndelegate7702Intent;
3708
+ executeSwapIntentV2?: v1ExecuteSwapIntentV2;
3709
+ createSwapQuoteIntent?: v1CreateSwapQuoteIntent;
3710
+ importSecretsIntent?: v1ImportSecretsIntent;
3711
+ exportSecretsIntent?: v1ExportSecretsIntent;
3492
3712
  };
3493
3713
  export type v1InvitationParams = {
3494
3714
  /** The name of the intended Invitation recipient. */
@@ -3528,6 +3748,10 @@ export type v1IpAllowlistRule = {
3528
3748
  /** Creation timestamp as millisecond epoch string. */
3529
3749
  createdAt?: string;
3530
3750
  };
3751
+ export type v1KeyValue = {
3752
+ key?: string;
3753
+ value?: string;
3754
+ };
3531
3755
  export type v1ListEarnEnabledVaultsRequest = {
3532
3756
  /** Unique identifier for a given Organization. */
3533
3757
  organizationId: string;
@@ -3561,8 +3785,10 @@ export type v1ListEarnVaultsRequest = {
3561
3785
  paginationOptions?: v1Pagination;
3562
3786
  };
3563
3787
  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. */
3788
+ /** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass page_info.end_cursor as the pagination after cursor. */
3565
3789
  vaults?: v1EarnVault[];
3790
+ /** 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. */
3791
+ pageInfo?: v1PageInfo;
3566
3792
  };
3567
3793
  export type v1ListEmailEventsRequest = {
3568
3794
  /** Unique identifier for a given organization */
@@ -3586,13 +3812,12 @@ export type v1ListEthTransactionHistoryRequest = {
3586
3812
  /** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
3587
3813
  caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
3588
3814
  /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
3589
- paginationOptions?: v1TransactionHistoryPaginationOptions;
3815
+ paginationOptions?: v1Pagination;
3590
3816
  };
3591
3817
  export type v1ListEthTransactionHistoryResponse = {
3592
3818
  /** EVM transactions for the requested address, ordered by most recent first. */
3593
3819
  transactions: v1EthTransactionHistoryItem[];
3594
- /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
3595
- paginationCursors: v1TransactionHistoryPaginationCursors;
3820
+ pageInfo?: v1PageInfo;
3596
3821
  };
3597
3822
  export type v1ListFiatOnRampCredentialsRequest = {
3598
3823
  /** Unique identifier for a given Organization. */
@@ -3616,6 +3841,16 @@ export type v1ListPrivateKeyTagsResponse = {
3616
3841
  /** A list of private key tags. */
3617
3842
  privateKeyTags: datav1Tag[];
3618
3843
  };
3844
+ export type v1ListSecretsRequest = {
3845
+ /** Unique identifier for the organization or sub-organization whose secrets are listed. */
3846
+ organizationId: string;
3847
+ /** Parameters used for cursor-based pagination. */
3848
+ paginationOptions?: v1Pagination;
3849
+ };
3850
+ export type v1ListSecretsResponse = {
3851
+ /** Metadata for each secret in the organization, ordered by most recently created first. */
3852
+ secrets: v1SecretMetadata[];
3853
+ };
3619
3854
  export type v1ListSolTransactionHistoryRequest = {
3620
3855
  /** Unique identifier for a given organization. */
3621
3856
  organizationId: string;
@@ -3624,19 +3859,18 @@ export type v1ListSolTransactionHistoryRequest = {
3624
3859
  /** Solana CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
3625
3860
  caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
3626
3861
  /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
3627
- paginationOptions?: v1TransactionHistoryPaginationOptions;
3862
+ paginationOptions?: v1Pagination;
3628
3863
  };
3629
3864
  export type v1ListSolTransactionHistoryResponse = {
3630
3865
  /** Solana transactions for the requested address, ordered by most recent first. */
3631
3866
  transactions: v1SolTransactionHistoryItem[];
3632
- /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
3633
- paginationCursors: v1TransactionHistoryPaginationCursors;
3867
+ pageInfo?: v1PageInfo;
3634
3868
  };
3635
3869
  export type v1ListSupportedAssetsRequest = {
3636
3870
  /** Unique identifier for a given organization. */
3637
3871
  organizationId: string;
3638
3872
  /** 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. */
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";
3873
+ 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";
3640
3874
  };
3641
3875
  export type v1ListSupportedAssetsResponse = {
3642
3876
  /** List of asset metadata */
@@ -3881,7 +4115,13 @@ export type v1OtpLoginResult = {
3881
4115
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
3882
4116
  session: string;
3883
4117
  };
3884
- export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS";
4118
+ export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS" | "OUTCOME_TIME_INACTIVE";
4119
+ export type v1PageInfo = {
4120
+ hasNextPage?: boolean;
4121
+ hasPreviousPage?: boolean;
4122
+ startCursor?: string;
4123
+ endCursor?: string;
4124
+ };
3885
4125
  export type v1Pagination = {
3886
4126
  /** A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
3887
4127
  limit?: string;
@@ -3906,6 +4146,8 @@ export type v1Policy = {
3906
4146
  consensus: string;
3907
4147
  /** A condition expression that evalutes to true or false. */
3908
4148
  condition: string;
4149
+ /** A time expression that evalutes to true or false. */
4150
+ time?: string;
3909
4151
  };
3910
4152
  export type v1PostTvcQuorumKeyShareIntent = {
3911
4153
  /** Unique identifier of the TVC deployment receiving quorum key share */
@@ -4210,6 +4452,11 @@ export type v1Result = {
4210
4452
  claimSwapFeesResult?: v1ClaimSwapFeesResult;
4211
4453
  earnSetWrapperStateResult?: v1EarnSetWrapperStateResult;
4212
4454
  claimEarnFeesResult?: v1ClaimEarnFeesResult;
4455
+ updateWalletAccountNameResult?: v1UpdateWalletAccountNameResult;
4456
+ ethUndelegate7702Result?: v1EthUndelegate7702Result;
4457
+ createSwapQuoteResult?: v1CreateSwapQuoteResult;
4458
+ importSecretsResult?: v1ImportSecretsResult;
4459
+ exportSecretsResult?: v1ExportSecretsResult;
4213
4460
  };
4214
4461
  export type v1RevertChainEntry = {
4215
4462
  /** The contract address where the revert occurred. */
@@ -4287,6 +4534,16 @@ export type v1RootUserParamsV5 = {
4287
4534
  /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
4288
4535
  oauthProviders: v1OauthProviderParamsV2[];
4289
4536
  };
4537
+ export type v1SecretMetadata = {
4538
+ /** Unique identifier for the secret. */
4539
+ secretId: string;
4540
+ /** Optional human-readable name for the secret. */
4541
+ name?: string;
4542
+ /** Policy visible static properties bound to the secret at creation time. */
4543
+ staticProperties: v1KeyValue[];
4544
+ /** Unix timestamp in milliseconds for when the secret was created. */
4545
+ createdAtUnixMs: string;
4546
+ };
4290
4547
  export type v1Selector = {
4291
4548
  subject?: string;
4292
4549
  operator?: v1Operator;
@@ -4774,6 +5031,42 @@ export type v1StampLoginResult = {
4774
5031
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
4775
5032
  session: string;
4776
5033
  };
5034
+ export type v1SwapError = {
5035
+ /** Stable machine-readable failure reason. One of ORIGIN_TRANSACTION_FAILED or PROVIDER_FILL_FAILED. */
5036
+ reason: string;
5037
+ /** Human-readable description of the swap failure. */
5038
+ message: string;
5039
+ /** Origin-chain transaction failure details, present when reason is ORIGIN_TRANSACTION_FAILED and details are available. */
5040
+ originTxError?: v1TxError;
5041
+ /** Optional detail from the swap provider about why the fill did not complete, when available. */
5042
+ providerReason?: string;
5043
+ };
5044
+ export type v1SwapQuote = {
5045
+ /** Identifier for this provider quote. Pass this value to execute_swap_v2 to bind execution to this exact quote. The signer is derived from the quote; clients do not resupply sign_with on execute. */
5046
+ quoteId: string;
5047
+ /** Swap provider that produced this quote. */
5048
+ provider: string;
5049
+ /** Estimated base-unit amount of the output asset. */
5050
+ outputAmount: string;
5051
+ /** Minimum acceptable base-unit amount of the output asset after slippage. */
5052
+ minOutputAmount: string;
5053
+ /** Quote expiration as a millisecond epoch string. */
5054
+ expiresAt: string;
5055
+ /** Effective total slippage tolerance in basis points for this quote, taken from the provider response when present. When the request omits input slippage_bps, the provider may calculate this value. */
5056
+ slippageBps?: string;
5057
+ /** Client fee in basis points applied for this pair. Informational only; already reflected in output_amount and min_output_amount. */
5058
+ clientFeeBps: string;
5059
+ /** Provider-estimated completion time in seconds, when available. */
5060
+ estimatedTimeSeconds?: string;
5061
+ };
5062
+ export type v1SwapRefund = {
5063
+ /** CAIP-19 asset returned by the swap provider after a failed cross-chain fill. */
5064
+ asset: string;
5065
+ /** Base-unit amount returned by the swap provider. */
5066
+ amount: string;
5067
+ /** Transaction that delivered the provider refund, when applicable. */
5068
+ txHash?: string;
5069
+ };
4777
5070
  export type v1TagType = "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
4778
5071
  export type v1TokenUsage = {
4779
5072
  /** Type of token usage */
@@ -4814,20 +5107,6 @@ export type v1TransactionHistoryFee = {
4814
5107
  /** The CAIP-19 asset identifier. */
4815
5108
  caip19: string;
4816
5109
  };
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
5110
  export type v1TransactionHistoryTransfer = {
4832
5111
  /** Transfer direction relative to the queried address. */
4833
5112
  direction: "IN" | "OUT";
@@ -5176,6 +5455,8 @@ export type v1UpdatePolicyIntentV2 = {
5176
5455
  policyConsensus?: string;
5177
5456
  /** Accompanying notes for a Policy (optional). */
5178
5457
  policyNotes?: string;
5458
+ /** The time expression that triggers the Effect (optional). */
5459
+ time?: string;
5179
5460
  };
5180
5461
  export type v1UpdatePolicyRequest = {
5181
5462
  type: "ACTIVITY_TYPE_UPDATE_POLICY_V2";
@@ -5356,6 +5637,16 @@ export type v1UpdateUserTagResult = {
5356
5637
  /** Unique identifier for a given User Tag. */
5357
5638
  userTagId: string;
5358
5639
  };
5640
+ export type v1UpdateWalletAccountNameIntent = {
5641
+ /** Unique identifier for a given Wallet Account. */
5642
+ walletAccountId: string;
5643
+ /** Human-readable name for this Wallet Account. */
5644
+ name: string;
5645
+ };
5646
+ export type v1UpdateWalletAccountNameResult = {
5647
+ /** Unique identifier for a given Wallet Account. */
5648
+ walletAccountId: string;
5649
+ };
5359
5650
  export type v1UpdateWalletIntent = {
5360
5651
  /** Unique identifier for a given Wallet. */
5361
5652
  walletId: string;
@@ -5420,10 +5711,18 @@ export type v1UpsertSwapConfigIntent = {
5420
5711
  feeReceiverWalletAddress?: string;
5421
5712
  /** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
5422
5713
  feeBps?: string;
5423
- provider?: string;
5424
- /** Optional override applied when both swap assets are stablecoins; falls back to fee_bps when unset. */
5714
+ /** 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. */
5425
5715
  stableFeeBps?: string;
5426
5716
  };
5717
+ export type v1UpsertSwapConfigRequest = {
5718
+ type: "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG";
5719
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
5720
+ timestampMs: string;
5721
+ /** Unique identifier for a given Organization. */
5722
+ organizationId: string;
5723
+ parameters: v1UpsertSwapConfigIntent;
5724
+ generateAppProofs?: boolean;
5725
+ };
5427
5726
  export type v1UpsertSwapConfigResult = {
5428
5727
  feeReceiverWalletAddress?: string;
5429
5728
  feeBps?: string;
@@ -5600,6 +5899,8 @@ export type v1WalletAccount = {
5600
5899
  walletDetails?: v1Wallet;
5601
5900
  /** Human-readable name for this Wallet Account, unique within the organization. */
5602
5901
  name?: string;
5902
+ /** The CAIP-2 namespace shared by the chains supported by this account (for example, 'eip155' or 'solana'). */
5903
+ caip2Prefix?: string;
5603
5904
  };
5604
5905
  export type v1WalletKitSettingsParams = {
5605
5906
  /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
@@ -5724,6 +6025,22 @@ export type TGetBootProofBody = {
5724
6025
  export type TGetBootProofInput = {
5725
6026
  body: TGetBootProofBody;
5726
6027
  };
6028
+ export type TGetClaimEarnFeesStatusResponse = {
6029
+ /** Status of the fee claim. */
6030
+ status: "PENDING" | "COMPLETED" | "FAILED";
6031
+ /** Transaction hash of the fee claim, once available. */
6032
+ claimTxHash?: string;
6033
+ /** Reason the fee claim transaction failed, when status is FAILED. */
6034
+ error?: string;
6035
+ };
6036
+ export type TGetClaimEarnFeesStatusBody = {
6037
+ organizationId?: string;
6038
+ /** The claim_request_id returned by ClaimEarnFees. */
6039
+ claimRequestId: string;
6040
+ };
6041
+ export type TGetClaimEarnFeesStatusInput = {
6042
+ body: TGetClaimEarnFeesStatusBody;
6043
+ };
5727
6044
  export type TGetEarnDeployStatusResponse = {
5728
6045
  /** Status of the wrapper deployment. */
5729
6046
  status: "PENDING" | "COMPLETED" | "FAILED";
@@ -5802,7 +6119,7 @@ export type TGetLatestBootProofResponse = {
5802
6119
  };
5803
6120
  export type TGetLatestBootProofBody = {
5804
6121
  organizationId?: string;
5805
- /** Name of enclave app. */
6122
+ /** Unique identifier (UUID) of the enclave app. */
5806
6123
  appName: string;
5807
6124
  };
5808
6125
  export type TGetLatestBootProofInput = {
@@ -6004,6 +6321,40 @@ export type TGetSmartContractInterfaceBody = {
6004
6321
  export type TGetSmartContractInterfaceInput = {
6005
6322
  body: TGetSmartContractInterfaceBody;
6006
6323
  };
6324
+ export type TGetSwapStatusResponse = {
6325
+ /** Normalized swap status. One of PENDING, COMPLETED, FAILED. */
6326
+ status: string;
6327
+ /** SAME_CHAIN or CROSS_CHAIN. */
6328
+ swapKind: string;
6329
+ /** Swap provider that executed the swap. */
6330
+ provider: string;
6331
+ /** CAIP-19 asset ID for the input asset. */
6332
+ inputToken: string;
6333
+ /** CAIP-19 asset ID for the output asset. */
6334
+ outputToken: string;
6335
+ /** Base-unit amount of the input asset. */
6336
+ inputAmount: string;
6337
+ /** Final included origin-chain transaction hash, when known. */
6338
+ originTxHash?: string;
6339
+ /** Provider-reported destination-chain transaction hashes; cross-chain COMPLETED only. */
6340
+ destinationTxHashes?: string[];
6341
+ /** Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
6342
+ outputAmount?: string;
6343
+ /** Funds returned by the provider after a successful origin transfer and failed cross-chain fill. Omitted for origin transaction failures and same-chain swaps. */
6344
+ refund?: v1SwapRefund;
6345
+ /** Timestamp of the last swap status change, as millisecond epoch string. */
6346
+ updatedAt: string;
6347
+ /** Normalized failure details, present whenever status is FAILED. */
6348
+ error?: v1SwapError;
6349
+ };
6350
+ export type TGetSwapStatusBody = {
6351
+ organizationId?: string;
6352
+ /** The swap_request_id returned by ExecuteSwap. */
6353
+ swapRequestId: string;
6354
+ };
6355
+ export type TGetSwapStatusInput = {
6356
+ body: TGetSwapStatusBody;
6357
+ };
6007
6358
  export type TGetTvcAppResponse = {
6008
6359
  /** Details about a single TVC App */
6009
6360
  tvcApp: v1TvcApp;
@@ -6044,6 +6395,18 @@ export type TGetTvcDeploymentDebugLogsBody = {
6044
6395
  export type TGetTvcDeploymentDebugLogsInput = {
6045
6396
  body: TGetTvcDeploymentDebugLogsBody;
6046
6397
  };
6398
+ export type TGetTvcQosVersionsResponse = {
6399
+ /** QOS versions supported for new TVC deployments. */
6400
+ availableVersions: string[];
6401
+ /** Latest recommended QOS version for new TVC deployments. */
6402
+ latestVersion: string;
6403
+ };
6404
+ export type TGetTvcQosVersionsBody = {
6405
+ organizationId?: string;
6406
+ };
6407
+ export type TGetTvcQosVersionsInput = {
6408
+ body: TGetTvcQosVersionsBody;
6409
+ };
6047
6410
  export type TGetUserResponse = {
6048
6411
  /** Web and/or API user within your organization. */
6049
6412
  user: v1User;
@@ -6093,7 +6456,7 @@ export type TGetWalletAddressBalancesBody = {
6093
6456
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
6094
6457
  address: string;
6095
6458
  /** 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. */
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";
6459
+ 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";
6097
6460
  };
6098
6461
  export type TGetWalletAddressBalancesInput = {
6099
6462
  body: TGetWalletAddressBalancesBody;
@@ -6152,8 +6515,10 @@ export type TListEarnPositionsInput = {
6152
6515
  body: TListEarnPositionsBody;
6153
6516
  };
6154
6517
  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. */
6518
+ /** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass page_info.end_cursor as the pagination after cursor. */
6156
6519
  vaults?: v1EarnVault[];
6520
+ /** 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. */
6521
+ pageInfo?: v1PageInfo;
6157
6522
  };
6158
6523
  export type TListEarnVaultsBody = {
6159
6524
  organizationId?: string;
@@ -6186,8 +6551,7 @@ export type TListEmailEventsInput = {
6186
6551
  export type TListEthTransactionHistoryResponse = {
6187
6552
  /** EVM transactions for the requested address, ordered by most recent first. */
6188
6553
  transactions: v1EthTransactionHistoryItem[];
6189
- /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
6190
- paginationCursors: v1TransactionHistoryPaginationCursors;
6554
+ pageInfo?: v1PageInfo;
6191
6555
  };
6192
6556
  export type TListEthTransactionHistoryBody = {
6193
6557
  organizationId?: string;
@@ -6196,7 +6560,7 @@ export type TListEthTransactionHistoryBody = {
6196
6560
  /** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
6197
6561
  caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
6198
6562
  /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
6199
- paginationOptions?: v1TransactionHistoryPaginationOptions;
6563
+ paginationOptions?: v1Pagination;
6200
6564
  };
6201
6565
  export type TListEthTransactionHistoryInput = {
6202
6566
  body: TListEthTransactionHistoryBody;
@@ -6249,6 +6613,18 @@ export type TGetPrivateKeysBody = {
6249
6613
  export type TGetPrivateKeysInput = {
6250
6614
  body: TGetPrivateKeysBody;
6251
6615
  };
6616
+ export type TListSecretsResponse = {
6617
+ /** Metadata for each secret in the organization, ordered by most recently created first. */
6618
+ secrets: v1SecretMetadata[];
6619
+ };
6620
+ export type TListSecretsBody = {
6621
+ organizationId?: string;
6622
+ /** Parameters used for cursor-based pagination. */
6623
+ paginationOptions?: v1Pagination;
6624
+ };
6625
+ export type TListSecretsInput = {
6626
+ body: TListSecretsBody;
6627
+ };
6252
6628
  export type TGetSmartContractInterfacesResponse = {
6253
6629
  /** A list of smart contract interfaces. */
6254
6630
  smartContractInterfaces: externaldatav1SmartContractInterface[];
@@ -6262,8 +6638,7 @@ export type TGetSmartContractInterfacesInput = {
6262
6638
  export type TListSolTransactionHistoryResponse = {
6263
6639
  /** Solana transactions for the requested address, ordered by most recent first. */
6264
6640
  transactions: v1SolTransactionHistoryItem[];
6265
- /** Opaque pagination cursors for fetching adjacent transaction-history pages. */
6266
- paginationCursors: v1TransactionHistoryPaginationCursors;
6641
+ pageInfo?: v1PageInfo;
6267
6642
  };
6268
6643
  export type TListSolTransactionHistoryBody = {
6269
6644
  organizationId?: string;
@@ -6272,7 +6647,7 @@ export type TListSolTransactionHistoryBody = {
6272
6647
  /** Solana CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
6273
6648
  caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
6274
6649
  /** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
6275
- paginationOptions?: v1TransactionHistoryPaginationOptions;
6650
+ paginationOptions?: v1Pagination;
6276
6651
  };
6277
6652
  export type TListSolTransactionHistoryInput = {
6278
6653
  body: TListSolTransactionHistoryBody;
@@ -6300,7 +6675,7 @@ export type TListSupportedAssetsResponse = {
6300
6675
  export type TListSupportedAssetsBody = {
6301
6676
  organizationId?: string;
6302
6677
  /** 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. */
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";
6678
+ 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";
6304
6679
  };
6305
6680
  export type TListSupportedAssetsInput = {
6306
6681
  body: TListSupportedAssetsBody;
@@ -6456,6 +6831,19 @@ export type TClaimEarnFeesBody = {
6456
6831
  export type TClaimEarnFeesInput = {
6457
6832
  body: TClaimEarnFeesBody;
6458
6833
  };
6834
+ export type TClaimSwapFeesResponse = {
6835
+ activity: v1Activity;
6836
+ /** Relay claim request ID submitted through the permit endpoint. */
6837
+ requestId: string;
6838
+ };
6839
+ export type TClaimSwapFeesBody = {
6840
+ timestampMs?: string;
6841
+ organizationId?: string;
6842
+ generateAppProofs?: boolean;
6843
+ };
6844
+ export type TClaimSwapFeesInput = {
6845
+ body: TClaimSwapFeesBody;
6846
+ };
6459
6847
  export type TCreateApiKeysResponse = {
6460
6848
  activity: v1Activity;
6461
6849
  /** A list of API Key IDs. */
@@ -6623,6 +7011,8 @@ export type TCreatePolicyBody = {
6623
7011
  consensus?: string;
6624
7012
  /** Notes for a Policy. */
6625
7013
  notes: string;
7014
+ /** The time expression that triggers the Effect */
7015
+ time?: string;
6626
7016
  generateAppProofs?: boolean;
6627
7017
  };
6628
7018
  export type TCreatePolicyInput = {
@@ -6794,6 +7184,29 @@ export type TCreateSubOrganizationBody = {
6794
7184
  export type TCreateSubOrganizationInput = {
6795
7185
  body: TCreateSubOrganizationBody;
6796
7186
  };
7187
+ export type TCreateSwapQuoteResponse = {
7188
+ activity: v1Activity;
7189
+ /** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap_v2 to bind execution. */
7190
+ quotes: v1SwapQuote[];
7191
+ };
7192
+ export type TCreateSwapQuoteBody = {
7193
+ timestampMs?: string;
7194
+ organizationId?: string;
7195
+ /** Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
7196
+ signWith: string;
7197
+ /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
7198
+ inputToken: string;
7199
+ /** CAIP-19 asset ID for the output asset. */
7200
+ outputToken: string;
7201
+ /** Base-unit amount of the input asset. */
7202
+ inputAmount: string;
7203
+ /** Provider-neutral maximum allowed slippage in basis points. Turnkey converts this value to each provider's request format. When omitted, each provider applies its default slippage behavior. */
7204
+ slippageBps?: string;
7205
+ generateAppProofs?: boolean;
7206
+ };
7207
+ export type TCreateSwapQuoteInput = {
7208
+ body: TCreateSwapQuoteBody;
7209
+ };
6797
7210
  export type TCreateTvcAppResponse = {
6798
7211
  activity: v1Activity;
6799
7212
  /** The unique identifier for the TVC application */
@@ -6804,6 +7217,12 @@ export type TCreateTvcAppResponse = {
6804
7217
  manifestSetOperatorIds: string[];
6805
7218
  /** The required number of approvals for the manifest set */
6806
7219
  manifestSetThreshold: number;
7220
+ /** The unique identifier for the TVC share set */
7221
+ shareSetId: string;
7222
+ /** The unique identifiers of the share set operators */
7223
+ shareSetOperatorIds: string[];
7224
+ /** The required number of approvals for the share set */
7225
+ shareSetThreshold: number;
6807
7226
  };
6808
7227
  export type TCreateTvcAppBody = {
6809
7228
  timestampMs?: string;
@@ -7312,7 +7731,7 @@ export type TEarnDeployWrapperBody = {
7312
7731
  vaultAddress: string;
7313
7732
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
7314
7733
  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. */
7734
+ /** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
7316
7735
  clientFeeBps: string;
7317
7736
  /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
7318
7737
  clientFeeWallet: string;
@@ -7419,6 +7838,68 @@ export type TEmailAuthBody = {
7419
7838
  export type TEmailAuthInput = {
7420
7839
  body: TEmailAuthBody;
7421
7840
  };
7841
+ export type TEthUndelegate7702Response = {
7842
+ activity: v1Activity;
7843
+ /** The send_transaction_status ID associated with the undelegation transaction submission */
7844
+ sendTransactionStatusId: string;
7845
+ };
7846
+ export type TEthUndelegate7702Body = {
7847
+ timestampMs?: string;
7848
+ organizationId?: string;
7849
+ /** A wallet or private key address to undelegate. This does not support private key IDs. */
7850
+ from: string;
7851
+ /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
7852
+ 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";
7853
+ /** Outer transaction nonce. Omit to auto-fetch. */
7854
+ nonce?: string;
7855
+ /** Maximum amount of gas for the undelegation transaction. Omit to use the fixed undelegation gas limit. */
7856
+ gasLimit?: string;
7857
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
7858
+ maxFeePerGas?: string;
7859
+ /** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
7860
+ maxPriorityFeePerGas?: string;
7861
+ generateAppProofs?: boolean;
7862
+ };
7863
+ export type TEthUndelegate7702Input = {
7864
+ body: TEthUndelegate7702Body;
7865
+ };
7866
+ export type TExecuteSwapResponse = {
7867
+ activity: v1Activity;
7868
+ /** Identifier to poll swap status via GetSwapStatus. */
7869
+ swapRequestId: string;
7870
+ /** Swap provider used to build the transaction. */
7871
+ provider?: string;
7872
+ /** Quote identifier used for execution, if any. */
7873
+ quoteId?: string;
7874
+ };
7875
+ export type TExecuteSwapBody = {
7876
+ timestampMs?: string;
7877
+ organizationId?: string;
7878
+ /** Quote identifier returned by create_swap_quote. Execution is bound to this quote; the signer is derived from the quote and must not be resupplied. */
7879
+ quoteId: string;
7880
+ /** CAIP-19 asset ID for the input asset. */
7881
+ inputToken: string;
7882
+ /** Exact base-unit amount of the input asset committed by the quote. */
7883
+ inputAmount: string;
7884
+ /** CAIP-19 asset ID for the output asset. */
7885
+ outputToken: string;
7886
+ /** Exact quoted base-unit output amount committed by the quote. */
7887
+ quotedOutputAmount: string;
7888
+ /** Exact minimum base-unit output committed by the quote. */
7889
+ minOutputAmount: string;
7890
+ /** Whether the quoted transaction is sponsored. */
7891
+ sponsor: boolean;
7892
+ /** Exact EVM sender (EOA account) nonce. Valid only for a non-sponsored EVM swap. Honored for already-delegated (Type-2) batch swaps and single-call swaps; ignored for not-yet-delegated EIP-7702 (Type-4) batches where the outer nonce is derived from the authorization. Prefer gas_station_nonce for batch replay protection and use the nonces endpoint to fetch it. Omit to auto-fetch. */
7893
+ evmNonce?: string;
7894
+ /** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
7895
+ recentBlockhash?: string;
7896
+ /** Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
7897
+ gasStationNonce?: string;
7898
+ generateAppProofs?: boolean;
7899
+ };
7900
+ export type TExecuteSwapInput = {
7901
+ body: TExecuteSwapBody;
7902
+ };
7422
7903
  export type TExportPrivateKeyResponse = {
7423
7904
  activity: v1Activity;
7424
7905
  /** Unique identifier for a given Private Key. */
@@ -7438,6 +7919,20 @@ export type TExportPrivateKeyBody = {
7438
7919
  export type TExportPrivateKeyInput = {
7439
7920
  body: TExportPrivateKeyBody;
7440
7921
  };
7922
+ export type TExportSecretsResponse = {
7923
+ activity: v1Activity;
7924
+ /** Encryption suite specific payload containing each secret ciphertext, in the order the params were specified. For enclave encrypt v1 each entry is a JSON-encoded ServerSendMsg. */
7925
+ secretPayloads: string[];
7926
+ };
7927
+ export type TExportSecretsBody = {
7928
+ timestampMs?: string;
7929
+ organizationId?: string;
7930
+ /** A list of secrets to export. */
7931
+ secrets: v1ExportSecretParams[];
7932
+ };
7933
+ export type TExportSecretsInput = {
7934
+ body: TExportSecretsBody;
7935
+ };
7441
7936
  export type TExportWalletResponse = {
7442
7937
  activity: v1Activity;
7443
7938
  /** Unique identifier for a given Wallet. */
@@ -7503,6 +7998,20 @@ export type TImportPrivateKeyBody = {
7503
7998
  export type TImportPrivateKeyInput = {
7504
7999
  body: TImportPrivateKeyBody;
7505
8000
  };
8001
+ export type TImportSecretsResponse = {
8002
+ activity: v1Activity;
8003
+ /** Unique identifier for each imported secret, in the order the params were specified. */
8004
+ secretIds: string[];
8005
+ };
8006
+ export type TImportSecretsBody = {
8007
+ timestampMs?: string;
8008
+ organizationId?: string;
8009
+ /** A list of secrets to import. */
8010
+ secrets: v1ImportSecretParams[];
8011
+ };
8012
+ export type TImportSecretsInput = {
8013
+ body: TImportSecretsBody;
8014
+ };
7506
8015
  export type TImportWalletResponse = {
7507
8016
  activity: v1Activity;
7508
8017
  /** Unique identifier for a Wallet. */
@@ -8213,6 +8722,8 @@ export type TUpdatePolicyBody = {
8213
8722
  policyConsensus?: string;
8214
8723
  /** Accompanying notes for a Policy (optional). */
8215
8724
  policyNotes?: string;
8725
+ /** The time expression that triggers the Effect (optional). */
8726
+ time?: string;
8216
8727
  generateAppProofs?: boolean;
8217
8728
  };
8218
8729
  export type TUpdatePolicyInput = {
@@ -8393,6 +8904,25 @@ export type TUpdateWebhookEndpointBody = {
8393
8904
  export type TUpdateWebhookEndpointInput = {
8394
8905
  body: TUpdateWebhookEndpointBody;
8395
8906
  };
8907
+ export type TUpsertSwapConfigResponse = {
8908
+ activity: v1Activity;
8909
+ feeReceiverWalletAddress?: string;
8910
+ feeBps?: string;
8911
+ stableFeeBps?: string;
8912
+ };
8913
+ export type TUpsertSwapConfigBody = {
8914
+ timestampMs?: string;
8915
+ organizationId?: string;
8916
+ feeReceiverWalletAddress?: string;
8917
+ /** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
8918
+ feeBps?: string;
8919
+ /** 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. */
8920
+ stableFeeBps?: string;
8921
+ generateAppProofs?: boolean;
8922
+ };
8923
+ export type TUpsertSwapConfigInput = {
8924
+ body: TUpsertSwapConfigBody;
8925
+ };
8396
8926
  export type TVerifyOtpResponse = {
8397
8927
  activity: v1Activity;
8398
8928
  /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
@@ -8476,7 +9006,7 @@ export type TEthSendTransactionV2Body = {
8476
9006
  maxPriorityFeePerGas?: string;
8477
9007
  /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
8478
9008
  deadline?: string;
8479
- /** The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
9009
+ /** 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. */
8480
9010
  gasStationNonce?: string;
8481
9011
  /** 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. */
8482
9012
  calls: v1EthCallParams[];