@turnkey/sdk-types 1.10.0 → 1.12.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.
@@ -48,7 +48,7 @@ export type v1AuthenticatorParamsV2 = {
48
48
  /** The attestation that proves custody of the authenticator and provides metadata about it. */
49
49
  attestation: v1Attestation;
50
50
  };
51
- export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
51
+ export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID" | "AUTHENTICATOR_TRANSPORT_SMART_CARD";
52
52
  export type v1ClientSignature = {
53
53
  /** The public component of a cryptographic key pair used to create the signature. */
54
54
  publicKey: string;
@@ -62,7 +62,7 @@ export type v1ClientSignature = {
62
62
  export type v1ClientSignatureScheme = "CLIENT_SIGNATURE_SCHEME_API_P256";
63
63
  export type v1Curve = "CURVE_SECP256K1" | "CURVE_ED25519" | "CURVE_P256";
64
64
  export type v1GetAccountRequest = {
65
- /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN' or 'PUBLIC_KEY' */
65
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'PUBLIC_KEY', or 'WALLET_AUTH_TOKEN' */
66
66
  filterType: string;
67
67
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
68
68
  filterValue: string;
@@ -70,9 +70,13 @@ export type v1GetAccountRequest = {
70
70
  verificationToken?: string;
71
71
  /** OIDC token to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. Needed for social linking when verification_token is not available. */
72
72
  oidcToken?: string;
73
+ /** Whether to include requires_social_linking in the response. Only applies when filter_type is 'OIDC_TOKEN'. */
74
+ includeRequiresSocialLinking?: boolean;
73
75
  };
74
76
  export type v1GetAccountResponse = {
75
77
  organizationId?: string;
78
+ /** True when the organization was matched by verified email and the OIDC token is not yet a registered identity on it. */
79
+ requiresSocialLinking?: boolean;
76
80
  };
77
81
  export type v1GetWalletKitClientParamsRequest = {};
78
82
  export type v1GetWalletKitClientParamsResponse = {
@@ -264,6 +268,35 @@ export type v1SignupV2Response = {
264
268
  /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
265
269
  appProofs?: v1AppProof[];
266
270
  };
271
+ export type v1SignupV3Request = {
272
+ userEmail?: string;
273
+ userPhoneNumber?: string;
274
+ userTag?: string;
275
+ userName?: string;
276
+ organizationName?: string;
277
+ verificationToken?: string;
278
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
279
+ apiKeys: v1ApiKeyParamsV2[];
280
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
281
+ authenticators: v1AuthenticatorParamsV2[];
282
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
283
+ oauthProviders: v1OauthProviderParamsV2[];
284
+ /** The wallet to create for the sub-organization */
285
+ wallet?: v1WalletParams;
286
+ /** Optional signature proving authorization for this signup. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
287
+ clientSignature?: v1ClientSignature;
288
+ /** A list of wallet authenticators. This field, if not needed, should be an empty array in your request body. */
289
+ walletAuthenticators: v1WalletAuthenticatorParams[];
290
+ };
291
+ export type v1SignupV3Response = {
292
+ organizationId: string;
293
+ /** Wallet created for the sub-organization, if provided in the request */
294
+ wallet?: v1WalletResult;
295
+ /** Root user ID created for this sub-organization */
296
+ userId: string;
297
+ /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
298
+ appProofs?: v1AppProof[];
299
+ };
267
300
  export type v1VerifyOtpRequest = {
268
301
  type: "ACTIVITY_TYPE_VERIFY_OTP_V2";
269
302
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
@@ -287,6 +320,19 @@ export type v1VerifyOtpV2Response = {
287
320
  /** Verification Token containing a unique id, expiry, verification type, contact signed by Turnkey's enclaves. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
288
321
  verificationToken: string;
289
322
  };
323
+ export type v1VerifyWalletAuthenticatorRequest = {
324
+ type: "ACTIVITY_TYPE_VERIFY_WALLET_AUTHENTICATOR";
325
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
326
+ timestampMs: string;
327
+ /** Unique identifier for a given Organization. */
328
+ organizationId: string;
329
+ parameters: v1VerifyWalletAuthenticatorIntent;
330
+ generateAppProofs?: boolean;
331
+ };
332
+ export type v1VerifyWalletAuthenticatorResponse = {
333
+ /** Enclave-signed JWT binding the wallet, the wallet public key, and the ephemeral P-256 session key. */
334
+ verificationToken: string;
335
+ };
290
336
  export type v1WalletAccountParams = {
291
337
  /** Cryptographic curve used to generate a wallet Account. */
292
338
  curve: v1Curve;
@@ -299,6 +345,17 @@ export type v1WalletAccountParams = {
299
345
  /** Optional human-readable name for the account. */
300
346
  name?: string;
301
347
  };
348
+ export type v1WalletAuthenticatorParams = {
349
+ /** Network this authenticator belongs to. */
350
+ type: v1WalletAuthenticatorType;
351
+ /** Account address. Ethereum addresses are stored lowercase with a 0x prefix. Solana addresses are canonical base58. */
352
+ address: string;
353
+ /** SIWE/SIWS domain this authenticator is bound to. Host only, lowercased. */
354
+ domain: string;
355
+ /** Wallet verification JWT for this claim. Omit to attach the authenticator unverified. */
356
+ verificationToken?: string;
357
+ };
358
+ export type v1WalletAuthenticatorType = "WALLET_AUTHENTICATOR_TYPE_ETHEREUM" | "WALLET_AUTHENTICATOR_TYPE_SOLANA";
302
359
  export type v1WalletParams = {
303
360
  /** Human-readable name for a Wallet. */
304
361
  walletName: string;
@@ -510,7 +567,7 @@ export type v1ActivityResponse = {
510
567
  activity: v1Activity;
511
568
  };
512
569
  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";
513
- 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" | "ACTIVITY_TYPE_CREATE_VELOCITY_CONTROL" | "ACTIVITY_TYPE_DELETE_VELOCITY_CONTROL" | "ACTIVITY_TYPE_UPDATE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V2" | "ACTIVITY_TYPE_EXECUTE_SWAP_V3" | "ACTIVITY_TYPE_DELETE_SECRETS" | "ACTIVITY_TYPE_EARN_CLAIM_REWARDS";
570
+ 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" | "ACTIVITY_TYPE_CREATE_USAGE_CONTROL" | "ACTIVITY_TYPE_DELETE_USAGE_CONTROLS" | "ACTIVITY_TYPE_UPDATE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V2" | "ACTIVITY_TYPE_EXECUTE_SWAP_V3" | "ACTIVITY_TYPE_DELETE_SECRETS" | "ACTIVITY_TYPE_EARN_CLAIM_REWARDS" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V3" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V9" | "ACTIVITY_TYPE_VERIFY_WALLET_AUTHENTICATOR" | "ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG" | "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_SESSION" | "ACTIVITY_TYPE_CREATE_FIAT_OFF_RAMP_SESSION" | "ACTIVITY_TYPE_ENABLE_SMS_FOR_COUNTRIES" | "ACTIVITY_TYPE_DISABLE_SMS_FOR_COUNTRIES" | "ACTIVITY_TYPE_EXECUTE_SWAP_V4" | "ACTIVITY_TYPE_CREATE_WALLET_AUTHENTICATORS" | "ACTIVITY_TYPE_DELETE_WALLET_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_FIAT_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_CREATE_EXTERNAL_SIGNER_V1" | "ACTIVITY_TYPE_DELETE_EXTERNAL_SIGNER_V1" | "ACTIVITY_TYPE_MINT_JWT";
514
571
  export type v1ApiKey = {
515
572
  /** A User credential that can be used to authenticate to Turnkey. */
516
573
  credential: externaldatav1Credential;
@@ -604,7 +661,7 @@ export type v1AuthenticationMethodParams = {
604
661
  /** Optional specific authenticator ID required (e.g., UUID of a passkey authenticator). If not provided, any authenticator of the specified type can be used. */
605
662
  id?: string;
606
663
  };
607
- export type v1AuthenticationType = "AUTHENTICATION_TYPE_EMAIL_OTP" | "AUTHENTICATION_TYPE_SMS_OTP" | "AUTHENTICATION_TYPE_PASSKEY" | "AUTHENTICATION_TYPE_API_KEY" | "AUTHENTICATION_TYPE_OAUTH" | "AUTHENTICATION_TYPE_SESSION";
664
+ export type v1AuthenticationType = "AUTHENTICATION_TYPE_EMAIL_OTP" | "AUTHENTICATION_TYPE_SMS_OTP" | "AUTHENTICATION_TYPE_PASSKEY" | "AUTHENTICATION_TYPE_API_KEY" | "AUTHENTICATION_TYPE_OAUTH" | "AUTHENTICATION_TYPE_SESSION" | "AUTHENTICATION_TYPE_WALLET";
608
665
  export type v1Authenticator = {
609
666
  /** Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
610
667
  transports: v1AuthenticatorTransport[];
@@ -754,6 +811,47 @@ export type v1CreateAuthenticatorsResult = {
754
811
  /** A list of Authenticator IDs. */
755
812
  authenticatorIds: string[];
756
813
  };
814
+ export type v1CreateExternalSignerIntentV1 = {
815
+ /** Human-readable name for the external signer. Must be between 1 and 256 characters. */
816
+ name: string;
817
+ /** Hex-encoded public key of the external signer. */
818
+ publicKey: string;
819
+ };
820
+ export type v1CreateExternalSignerRequest = {
821
+ type: "ACTIVITY_TYPE_CREATE_EXTERNAL_SIGNER_V1";
822
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
823
+ timestampMs: string;
824
+ /** Unique identifier for a given Organization. */
825
+ organizationId: string;
826
+ parameters: v1CreateExternalSignerIntentV1;
827
+ };
828
+ export type v1CreateExternalSignerResultV1 = {
829
+ /** Hex-encoded public key of the created external signer. */
830
+ publicKey: string;
831
+ };
832
+ export type v1CreateFiatOffRampSessionIntent = {
833
+ /** Identifier of a saved fiat off-ramp quote. Returned by GetFiatOffRampQuotes. */
834
+ quoteId: string;
835
+ /** Wallet address for this sale. Coinbase uses it as the source address. MoonPay uses it as the refund address; the user deposits the crypto to MoonPay separately. */
836
+ walletAddress: string;
837
+ /** URL the provider redirects to after the user submits the sell. Required when the saved quote is from Coinbase. When set for MoonPay, it is included in the signed sell URL so MoonPay can append the deposit address. */
838
+ redirectUrl?: string;
839
+ };
840
+ export type v1CreateFiatOffRampSessionRequest = {
841
+ type: "ACTIVITY_TYPE_CREATE_FIAT_OFF_RAMP_SESSION";
842
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
843
+ timestampMs: string;
844
+ /** Unique identifier for a given Organization. */
845
+ organizationId: string;
846
+ parameters: v1CreateFiatOffRampSessionIntent;
847
+ generateAppProofs?: boolean;
848
+ };
849
+ export type v1CreateFiatOffRampSessionResult = {
850
+ /** URL of the fiat off-ramp session for the saved quote. */
851
+ offRampUrl: string;
852
+ /** Unique identifier used to retrieve transaction statuses for a given fiat off-ramp flow. */
853
+ offRampTransactionId: string;
854
+ };
757
855
  export type v1CreateFiatOnRampCredentialIntent = {
758
856
  /** The fiat on-ramp provider */
759
857
  onrampProvider: v1FiatOnRampProvider;
@@ -781,6 +879,50 @@ export type v1CreateFiatOnRampCredentialResult = {
781
879
  /** Unique identifier of the Fiat On-Ramp credential that was created */
782
880
  fiatOnRampCredentialId: string;
783
881
  };
882
+ export type v1CreateFiatOnRampSessionIntent = {
883
+ /** Identifier of a saved fiat on-ramp quote. Returned by GetFiatOnRampQuotes. */
884
+ quoteId: string;
885
+ /** Destination wallet address for the buy transaction. */
886
+ walletAddress: string;
887
+ };
888
+ export type v1CreateFiatOnRampSessionRequest = {
889
+ type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_SESSION";
890
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
891
+ timestampMs: string;
892
+ /** Unique identifier for a given Organization. */
893
+ organizationId: string;
894
+ parameters: v1CreateFiatOnRampSessionIntent;
895
+ generateAppProofs?: boolean;
896
+ };
897
+ export type v1CreateFiatOnRampSessionResult = {
898
+ /** URL of the fiat on-ramp session for the saved quote. */
899
+ onRampUrl: string;
900
+ /** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
901
+ onRampTransactionId: string;
902
+ };
903
+ export type v1CreateFiatRampCredentialIntent = {
904
+ /** The fiat ramp provider */
905
+ provider: v1FiatRampProvider;
906
+ /** Non-secret half of the provider credential. MoonPay: publishable key (pk_test_ or pk_live_). Coinbase: CDP API key ID */
907
+ apiKey: string;
908
+ /** Secret half of the provider credential, encrypted to our on-ramp encryption public key. MoonPay: secret key (sk_test_ or sk_live_). Coinbase: Ed25519 private key */
909
+ encryptedSecret: string;
910
+ /** If the credential is a sandbox credential */
911
+ sandboxMode?: boolean;
912
+ };
913
+ export type v1CreateFiatRampCredentialRequest = {
914
+ type: "ACTIVITY_TYPE_CREATE_FIAT_RAMP_CREDENTIAL";
915
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
916
+ timestampMs: string;
917
+ /** Unique identifier for a given Organization. */
918
+ organizationId: string;
919
+ parameters: v1CreateFiatRampCredentialIntent;
920
+ generateAppProofs?: boolean;
921
+ };
922
+ export type v1CreateFiatRampCredentialResult = {
923
+ /** Unique identifier of the fiat ramp credential that was created */
924
+ credentialId: string;
925
+ };
784
926
  export type v1CreateInvitationsIntent = {
785
927
  /** A list of Invitations. */
786
928
  invitations: v1InvitationParams[];
@@ -988,6 +1130,10 @@ export type v1CreatePrivateKeysIntent = {
988
1130
  export type v1CreatePrivateKeysIntentV2 = {
989
1131
  /** A list of Private Keys. */
990
1132
  privateKeys: v1PrivateKeyParams[];
1133
+ /** The public key of the external signer to use for creating the private keys. Only needed for external signer requests. */
1134
+ externalSignerPubkey?: string;
1135
+ /** The object ID of the wrapping key the external signer will use when creating the private keys. Only needed for external signer requests. */
1136
+ externalSignerWrappingKeyId?: string;
991
1137
  };
992
1138
  export type v1CreatePrivateKeysRequest = {
993
1139
  type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2";
@@ -1245,6 +1391,28 @@ export type v1CreateSubOrganizationIntentV8 = {
1245
1391
  /** Optional signature proving authorization for this sub-organization creation. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
1246
1392
  clientSignature?: v1ClientSignature;
1247
1393
  };
1394
+ export type v1CreateSubOrganizationIntentV9 = {
1395
+ /** Name for this sub-organization */
1396
+ subOrganizationName: string;
1397
+ /** Root users to create within this sub-organization */
1398
+ rootUsers: v1RootUserParamsV6[];
1399
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
1400
+ rootQuorumThreshold: number;
1401
+ /** The wallet to create for the sub-organization */
1402
+ wallet?: v1WalletParams;
1403
+ /** Disable email recovery for the sub-organization */
1404
+ disableEmailRecovery?: boolean;
1405
+ /** Disable email auth for the sub-organization */
1406
+ disableEmailAuth?: boolean;
1407
+ /** Disable OTP SMS auth for the sub-organization */
1408
+ disableSmsAuth?: boolean;
1409
+ /** Disable OTP email auth for the sub-organization */
1410
+ disableOtpEmailAuth?: boolean;
1411
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
1412
+ verificationToken?: string;
1413
+ /** Optional signature proving authorization for this sub-organization creation. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
1414
+ clientSignature?: v1ClientSignature;
1415
+ };
1248
1416
  export type v1CreateSubOrganizationRequest = {
1249
1417
  type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8";
1250
1418
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
@@ -1289,6 +1457,11 @@ export type v1CreateSubOrganizationResultV8 = {
1289
1457
  wallet?: v1WalletResult;
1290
1458
  rootUserIds?: string[];
1291
1459
  };
1460
+ export type v1CreateSubOrganizationResultV9 = {
1461
+ subOrganizationId: string;
1462
+ wallet?: v1WalletResult;
1463
+ rootUserIds?: string[];
1464
+ };
1292
1465
  export type v1CreateSwapQuoteIntent = {
1293
1466
  /** Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
1294
1467
  signWith: string;
@@ -1315,19 +1488,41 @@ export type v1CreateSwapQuoteIntentV2 = {
1315
1488
  /** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
1316
1489
  destinationAddress?: string;
1317
1490
  };
1491
+ export type v1CreateSwapQuoteIntentV3 = {
1492
+ /** Wallet account address used to price the executable provider quote. Private Key identifiers are not supported. */
1493
+ signWith: string;
1494
+ /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
1495
+ inputToken: string;
1496
+ /** CAIP-19 asset ID for the output asset. */
1497
+ outputToken: string;
1498
+ /** Base-unit amount of the input asset. */
1499
+ inputAmount: string;
1500
+ /** 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. */
1501
+ slippageBps?: string;
1502
+ /** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
1503
+ destinationAddress?: string;
1504
+ /** When true, Turnkey pays the execution costs for this swap and invoices them to the billing parent organization as Swap Execution. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
1505
+ feeSponsorship?: boolean;
1506
+ /** When true, requests a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
1507
+ fixedRate?: boolean;
1508
+ };
1318
1509
  export type v1CreateSwapQuoteRequest = {
1319
- type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
1510
+ type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V3";
1320
1511
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1321
1512
  timestampMs: string;
1322
1513
  /** Unique identifier for a given Organization. */
1323
1514
  organizationId: string;
1324
- parameters: v1CreateSwapQuoteIntent;
1515
+ parameters: v1CreateSwapQuoteIntentV3;
1325
1516
  generateAppProofs?: boolean;
1326
1517
  };
1327
1518
  export type v1CreateSwapQuoteResult = {
1328
1519
  /** 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. */
1329
1520
  quotes: v1SwapQuote[];
1330
1521
  };
1522
+ export type v1CreateSwapQuoteResultV2 = {
1523
+ /** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap to bind execution. */
1524
+ quotes: v1SwapQuoteV2[];
1525
+ };
1331
1526
  export type v1CreateTvcAppIntent = {
1332
1527
  /** The name of the new TVC application */
1333
1528
  name: string;
@@ -1345,6 +1540,8 @@ export type v1CreateTvcAppIntent = {
1345
1540
  enableEgress?: boolean;
1346
1541
  /** When true, this app may create deployments in debug-mode. Debug-mode deployments expose logs and emit zero'd attestation PCRs, so remote attestation cannot succeed. Cannot be changed after app creation. Setting this true means the app's quorum key is considered permanently insecure, and a new app with a fresh quorum key must be created. Default if not provided: false. */
1347
1542
  enableDebugModeDeployments?: boolean;
1543
+ /** AWS region in which to place this TVC application. Allowed values: us-east-1, ap-southeast-1. Default if not provided: us-east-1. */
1544
+ region?: string;
1348
1545
  };
1349
1546
  export type v1CreateTvcAppRequest = {
1350
1547
  type: "ACTIVITY_TYPE_CREATE_TVC_APP";
@@ -1401,6 +1598,8 @@ export type v1CreateTvcDeploymentIntent = {
1401
1598
  instanceSizeCpus?: number;
1402
1599
  /** Optional desired instance memory size in GiB. */
1403
1600
  instanceSizeRam?: number;
1601
+ /** Optional client-generated QOS manifest. */
1602
+ qosManifest?: string;
1404
1603
  };
1405
1604
  export type v1CreateTvcDeploymentRequest = {
1406
1605
  type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
@@ -1486,6 +1685,19 @@ export type v1CreateTvcQuorumKeyResult = {
1486
1685
  /** The unique identifier(s) for the generated TVC quorum key shares */
1487
1686
  shareIds: string[];
1488
1687
  };
1688
+ export type v1CreateUsageControlIntent = {
1689
+ /** Human-readable name for the Usage Control. */
1690
+ name: string;
1691
+ /** Data source for the Usage Control. */
1692
+ dataSource: v1UsageControlDataSource;
1693
+ /** Aggregation expression that the Usage Control evaluates. */
1694
+ aggregation: v1UsageControlAggregation;
1695
+ /** Identifier for the Usage Control. Policies reference it as `controls.<identifier>`. It must be unique within the Organization. */
1696
+ identifier: string;
1697
+ };
1698
+ export type v1CreateUsageControlResult = {
1699
+ usageControlId: string;
1700
+ };
1489
1701
  export type v1CreateUserTagIntent = {
1490
1702
  /** Human-readable name for a User Tag. */
1491
1703
  userTagName: string;
@@ -1536,19 +1748,6 @@ export type v1CreateUsersResult = {
1536
1748
  /** A list of User IDs. */
1537
1749
  userIds: string[];
1538
1750
  };
1539
- export type v1CreateVelocityControlIntent = {
1540
- /** Human-readable name for the Velocity Control. */
1541
- name: string;
1542
- /** Data source for the Velocity Control. */
1543
- dataSource: v1VelocityControlDataSource;
1544
- /** Aggregation expression that the Velocity Control evaluates. */
1545
- aggregation: v1VelocityControlAggregation;
1546
- /** Identifier for the Velocity Control. Policies reference it as `controls.<identifier>`. It must be unique within the Organization. */
1547
- identifier: string;
1548
- };
1549
- export type v1CreateVelocityControlResult = {
1550
- velocityControlId: string;
1551
- };
1552
1751
  export type v1CreateWalletAccountsIntent = {
1553
1752
  /** Unique identifier for a given Wallet. */
1554
1753
  walletId: string;
@@ -1570,6 +1769,25 @@ export type v1CreateWalletAccountsResult = {
1570
1769
  /** A list of derived addresses. */
1571
1770
  addresses: string[];
1572
1771
  };
1772
+ export type v1CreateWalletAuthenticatorsIntent = {
1773
+ /** The ID of the User to add wallet authenticators to. */
1774
+ userId: string;
1775
+ /** Wallet authenticators to add. Each entry is a type, address, and domain. verification_token is optional. */
1776
+ walletAuthenticators: v1WalletAuthenticatorParams[];
1777
+ };
1778
+ export type v1CreateWalletAuthenticatorsRequest = {
1779
+ type: "ACTIVITY_TYPE_CREATE_WALLET_AUTHENTICATORS";
1780
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1781
+ timestampMs: string;
1782
+ /** Unique identifier for a given Organization. */
1783
+ organizationId: string;
1784
+ parameters: v1CreateWalletAuthenticatorsIntent;
1785
+ generateAppProofs?: boolean;
1786
+ };
1787
+ export type v1CreateWalletAuthenticatorsResult = {
1788
+ /** IDs of the wallet authenticators created. */
1789
+ walletAuthenticatorIds: string[];
1790
+ };
1573
1791
  export type v1CreateWalletIntent = {
1574
1792
  /** Human-readable name for a Wallet. */
1575
1793
  walletName: string;
@@ -1664,6 +1882,22 @@ export type v1DeleteAuthenticatorsResult = {
1664
1882
  /** Unique identifier for a given Authenticator. */
1665
1883
  authenticatorIds: string[];
1666
1884
  };
1885
+ export type v1DeleteExternalSignerIntentV1 = {
1886
+ /** Hex-encoded public key of the external signer to delete. The external signer must belong to the organization. */
1887
+ publicKey: string;
1888
+ };
1889
+ export type v1DeleteExternalSignerRequest = {
1890
+ type: "ACTIVITY_TYPE_DELETE_EXTERNAL_SIGNER_V1";
1891
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1892
+ timestampMs: string;
1893
+ /** Unique identifier for a given Organization. */
1894
+ organizationId: string;
1895
+ parameters: v1DeleteExternalSignerIntentV1;
1896
+ };
1897
+ export type v1DeleteExternalSignerResultV1 = {
1898
+ /** Hex-encoded public key of the deleted external signer. */
1899
+ publicKey: string;
1900
+ };
1667
1901
  export type v1DeleteFiatOnRampCredentialIntent = {
1668
1902
  /** The ID of the fiat on-ramp credential to delete */
1669
1903
  fiatOnrampCredentialId: string;
@@ -1916,6 +2150,14 @@ export type v1DeleteTvcDeploymentResult = {
1916
2150
  /** The unique identifier of the deleted TVC deployment. */
1917
2151
  deploymentId: string;
1918
2152
  };
2153
+ export type v1DeleteUsageControlsIntent = {
2154
+ /** List of 1 to 32 unique identifiers for Usage Controls within an Organization. */
2155
+ usageControlIds: string[];
2156
+ };
2157
+ export type v1DeleteUsageControlsResult = {
2158
+ /** A list of unique identifiers for the deleted Usage Controls. */
2159
+ usageControlIds: string[];
2160
+ };
1919
2161
  export type v1DeleteUserTagsIntent = {
1920
2162
  /** A list of User Tag IDs. */
1921
2163
  userTagIds: string[];
@@ -1952,12 +2194,6 @@ export type v1DeleteUsersResult = {
1952
2194
  /** A list of User IDs. */
1953
2195
  userIds: string[];
1954
2196
  };
1955
- export type v1DeleteVelocityControlIntent = {
1956
- velocityControlId: string;
1957
- };
1958
- export type v1DeleteVelocityControlResult = {
1959
- velocityControlId: string;
1960
- };
1961
2197
  export type v1DeleteWalletAccountsIntent = {
1962
2198
  /** List of unique identifiers for wallet accounts within an organization */
1963
2199
  walletAccountIds: string[];
@@ -1977,6 +2213,25 @@ export type v1DeleteWalletAccountsResult = {
1977
2213
  /** A list of wallet account unique identifiers that were removed */
1978
2214
  walletAccountIds: string[];
1979
2215
  };
2216
+ export type v1DeleteWalletAuthenticatorsIntent = {
2217
+ /** The ID of the User to remove wallet authenticators from. */
2218
+ userId: string;
2219
+ /** IDs of the wallet authenticators to delete. */
2220
+ walletAuthenticatorIds: string[];
2221
+ };
2222
+ export type v1DeleteWalletAuthenticatorsRequest = {
2223
+ type: "ACTIVITY_TYPE_DELETE_WALLET_AUTHENTICATORS";
2224
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2225
+ timestampMs: string;
2226
+ /** Unique identifier for a given Organization. */
2227
+ organizationId: string;
2228
+ parameters: v1DeleteWalletAuthenticatorsIntent;
2229
+ generateAppProofs?: boolean;
2230
+ };
2231
+ export type v1DeleteWalletAuthenticatorsResult = {
2232
+ /** IDs of the wallet authenticators deleted. */
2233
+ walletAuthenticatorIds: string[];
2234
+ };
1980
2235
  export type v1DeleteWalletsIntent = {
1981
2236
  /** List of unique identifiers for wallets within an organization */
1982
2237
  walletIds: string[];
@@ -2023,7 +2278,7 @@ export type v1DeploymentStatus = {
2023
2278
  /** Last time this deployment was updated */
2024
2279
  lastUpdatedTime: externaldatav1Timestamp;
2025
2280
  /** Current quorum-key provisioning state for this deployment */
2026
- provisioningState?: v1ProvisioningState;
2281
+ provisioningState: v1ProvisioningState;
2027
2282
  };
2028
2283
  export type v1DisableAuthProxyIntent = {};
2029
2284
  export type v1DisableAuthProxyResult = {};
@@ -2035,11 +2290,16 @@ export type v1DisablePrivateKeyResult = {
2035
2290
  /** Unique identifier for a given Private Key. */
2036
2291
  privateKeyId: string;
2037
2292
  };
2293
+ export type v1DisableSmsForCountriesIntent = {
2294
+ /** ISO 3166-1 alpha-2 country codes to remove from the SMS allowlist, such as US or CA. Must contain between 1 and 300 codes. This activity only removes countries. */
2295
+ isoCodes: string[];
2296
+ };
2297
+ export type v1DisableSmsForCountriesResult = {};
2038
2298
  export type v1EarnClaimRewardsIntent = {
2039
2299
  /** A Turnkey-managed wallet address the rewards are attributed to. The claim transaction is signed by this wallet and the Merkl Distributor transfers every reward token to it. */
2040
2300
  signWith: string;
2041
2301
  /** CAIP-2 chain to claim rewards on (e.g. 'eip155:8453'). Rewards accrue per chain; see ListEarnRewards. */
2042
- chainCaip2: string;
2302
+ caip2: string;
2043
2303
  /** Whether to sponsor this transaction via Gas Station. */
2044
2304
  sponsor?: boolean;
2045
2305
  };
@@ -2060,7 +2320,7 @@ export type v1EarnDeployWrapperIntent = {
2060
2320
  /** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
2061
2321
  vaultAddress: string;
2062
2322
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
2063
- chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
2323
+ caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2064
2324
  /** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
2065
2325
  clientFeeBps: string;
2066
2326
  /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
@@ -2091,7 +2351,7 @@ export type v1EarnDepositIntent = {
2091
2351
  /** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
2092
2352
  assets: string;
2093
2353
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
2094
- chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
2354
+ caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2095
2355
  /** Whether to sponsor this transaction via Gas Station. */
2096
2356
  sponsor?: boolean;
2097
2357
  };
@@ -2190,7 +2450,7 @@ export type v1EarnPositionDisplay = {
2190
2450
  /** Total withdrawn in the asset's own units, for display only. */
2191
2451
  totalWithdrawnCrypto?: string;
2192
2452
  };
2193
- export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE";
2453
+ export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE" | "EARN_PROVIDER_KAMINO";
2194
2454
  export type v1EarnReward = {
2195
2455
  /** CAIP-2 chain the reward is claimable on (e.g. 'eip155:8453'). */
2196
2456
  caip2?: string;
@@ -2300,7 +2560,7 @@ export type v1EarnWithdrawIntent = {
2300
2560
  /** 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. */
2301
2561
  signWith: string;
2302
2562
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
2303
- chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
2563
+ caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2304
2564
  /** Whether to sponsor this transaction via Gas Station. */
2305
2565
  sponsor?: boolean;
2306
2566
  /** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
@@ -2472,6 +2732,11 @@ export type v1EnableAuthProxyResult = {
2472
2732
  /** A User ID with permission to initiate authentication. */
2473
2733
  userId: string;
2474
2734
  };
2735
+ export type v1EnableSmsForCountriesIntent = {
2736
+ /** ISO 3166-1 alpha-2 country codes to allow for SMS, such as US or CA. Must contain between 1 and 300 codes. This activity only adds countries. */
2737
+ isoCodes: string[];
2738
+ };
2739
+ export type v1EnableSmsForCountriesResult = {};
2475
2740
  export type v1EthCallParams = {
2476
2741
  /** Recipient address as a hex string with 0x prefix. */
2477
2742
  to: string;
@@ -2612,6 +2877,14 @@ export type v1EthUndelegate7702Result = {
2612
2877
  /** The send_transaction_status ID associated with the undelegation transaction submission */
2613
2878
  sendTransactionStatusId: string;
2614
2879
  };
2880
+ export type v1ExecuteSwapBoundQuote = {
2881
+ /** 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. */
2882
+ quoteId: string;
2883
+ /** Exact quoted base-unit output amount committed by the quote. */
2884
+ quotedOutputAmount: string;
2885
+ /** Exact minimum base-unit output committed by the quote. */
2886
+ minOutputAmount: string;
2887
+ };
2615
2888
  export type v1ExecuteSwapIntent = {
2616
2889
  /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
2617
2890
  inputToken: string;
@@ -2676,13 +2949,47 @@ export type v1ExecuteSwapIntentV3 = {
2676
2949
  /** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
2677
2950
  destinationAddress?: string;
2678
2951
  };
2952
+ export type v1ExecuteSwapIntentV4 = {
2953
+ /** CAIP-19 asset ID for the input asset. */
2954
+ inputToken: string;
2955
+ /** Exact base-unit amount of the input asset. */
2956
+ inputAmount: string;
2957
+ /** CAIP-19 asset ID for the output asset. */
2958
+ outputToken: string;
2959
+ /** Whether the swap transaction is gas sponsored. */
2960
+ sponsor: boolean;
2961
+ /** Raw public address that receives the output asset. Required for cross-protocol swaps and rejected otherwise. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
2962
+ destinationAddress?: string;
2963
+ /** 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. */
2964
+ evmNonce?: string;
2965
+ /** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
2966
+ recentBlockhash?: string;
2967
+ /** 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. */
2968
+ gasStationNonce?: string;
2969
+ /** Execute a quote returned by create_swap_quote at its exact terms. */
2970
+ boundQuote?: v1ExecuteSwapBoundQuote;
2971
+ /** Execute at the provider's price when the activity is approved, within the signed slippage and optional price floor. */
2972
+ market?: v1ExecuteSwapMarketTerms;
2973
+ };
2974
+ export type v1ExecuteSwapMarketTerms = {
2975
+ /** Wallet account address that sends the input asset. Private Key identifiers are not supported. */
2976
+ signWith: string;
2977
+ /** Maximum allowed slippage in basis points, at most 5000. When omitted, the provider chooses the slippage. The swap executes at the provider's price when the activity is approved, so the slippage and min_output_amount are its only price protection. */
2978
+ slippageBps?: string;
2979
+ /** Optional price floor in base units of the output asset. When set, the swap fails unless the provider's minimum output after slippage is at least this amount. */
2980
+ minOutputAmount?: string;
2981
+ /** When true, Turnkey pays the execution costs for this swap and invoices them to the billing parent organization as Swap Execution. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
2982
+ feeSponsorship?: boolean;
2983
+ /** When true, requests a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
2984
+ fixedRate?: boolean;
2985
+ };
2679
2986
  export type v1ExecuteSwapRequest = {
2680
- type: "ACTIVITY_TYPE_EXECUTE_SWAP_V2";
2987
+ type: "ACTIVITY_TYPE_EXECUTE_SWAP_V4";
2681
2988
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2682
2989
  timestampMs: string;
2683
2990
  /** Unique identifier for a given Organization. */
2684
2991
  organizationId: string;
2685
- parameters: v1ExecuteSwapIntentV2;
2992
+ parameters: v1ExecuteSwapIntentV4;
2686
2993
  generateAppProofs?: boolean;
2687
2994
  };
2688
2995
  export type v1ExecuteSwapResult = {
@@ -2692,6 +2999,16 @@ export type v1ExecuteSwapResult = {
2692
2999
  provider?: string;
2693
3000
  /** Quote identifier used for execution, if any. */
2694
3001
  quoteId?: string;
3002
+ /** Quoted base-unit amount of the output asset. Set by execute_swap V4. */
3003
+ outputAmount?: string;
3004
+ /** Minimum base-unit amount of the output asset after slippage. Set by execute_swap V4. */
3005
+ minOutputAmount?: string;
3006
+ /** Whether Turnkey paid the execution costs for this swap. Set by execute_swap V4. */
3007
+ feeSponsorship?: boolean;
3008
+ /** Whether this swap used a 1:1 fixed rate. Set by execute_swap V4. */
3009
+ fixedRate?: boolean;
3010
+ /** Estimated charges this swap adds to your invoice, one field per swap line item, from the executed quote. Present when fee_sponsorship or fixed_rate is true. Informational; the final amounts are settled after execution and reported by get_swap_status. Set by execute_swap V4. */
3011
+ estimatedCharges?: v1SwapCharges;
2695
3012
  };
2696
3013
  export type v1ExportPrivateKeyIntent = {
2697
3014
  /** Unique identifier for a given Private Key. */
@@ -2788,23 +3105,41 @@ export type v1Feature = {
2788
3105
  name?: v1FeatureName;
2789
3106
  value?: string;
2790
3107
  };
2791
- export type v1FeatureName = "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | "FEATURE_NAME_WEBHOOK" | "FEATURE_NAME_SMS_AUTH" | "FEATURE_NAME_OTP_EMAIL_AUTH" | "FEATURE_NAME_AUTH_PROXY" | "FEATURE_NAME_SOLANA_RENT_PREFUND_ENABLED" | "FEATURE_NAME_SWAP_CONFIG" | "FEATURE_NAME_EARN_CONFIG";
2792
- export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
3108
+ export type v1FeatureName = "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | "FEATURE_NAME_WEBHOOK" | "FEATURE_NAME_SMS_AUTH" | "FEATURE_NAME_OTP_EMAIL_AUTH" | "FEATURE_NAME_AUTH_PROXY" | "FEATURE_NAME_SOLANA_RENT_PREFUND_ENABLED" | "FEATURE_NAME_SWAP_CONFIG" | "FEATURE_NAME_EARN_CONFIG" | "FEATURE_NAME_SWAP_FEE_SPONSORSHIP" | "FEATURE_NAME_SWAP_FIXED_RATE";
3109
+ export type v1FiatOffRampQuote = {
3110
+ /** Identifier for this saved quote. */
3111
+ quoteId: string;
3112
+ /** Provider that produced this quote. */
3113
+ provider: v1FiatRampProvider;
3114
+ /** Underlying provider when provider aggregates several. */
3115
+ serviceProvider?: string;
3116
+ /** Fiat the user receives, in atomic units of fiat_currency_code. For USD, 100 dollars is "10000". */
3117
+ fiatAmount: v1FiatRampAmount;
3118
+ /** Fiat currency of fiat_amount and total_fee. */
3119
+ fiatCurrencyCode: v1FiatRampCurrency;
3120
+ /** Cryptocurrency the user would sell, in atomic units. Not locked in the session. */
3121
+ cryptoAmount: v1FiatRampAmount;
3122
+ /** CAIP-19 asset of crypto_amount. Each value is supported for both Coinbase and MoonPay sell, the same set as on-ramp. */
3123
+ caip19: "eip155:1/slip44:60" | "eip155:10/slip44:60" | "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619" | "eip155:8453/slip44:60" | "eip155:42161/slip44:60" | "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85" | "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359" | "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
3124
+ /** Payout method this quote was priced for. */
3125
+ paymentMethod: v1FiatRampPaymentMethod;
3126
+ /** Total fee in atomic units of fiat_currency_code. */
3127
+ totalFee: v1FiatRampAmount;
3128
+ /** Quote expiration as a millisecond epoch string. Empty when the provider does not send one. */
3129
+ expiresAt?: string;
3130
+ };
3131
+ export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
2793
3132
  export type v1FiatOnRampCredential = {
2794
- /** Unique identifier for a given Fiat On-Ramp Credential. */
2795
- fiatOnrampCredentialId: string;
3133
+ /** Unique identifier for a given fiat ramp credential. */
3134
+ credentialId: string;
2796
3135
  /** Unique identifier for an Organization. */
2797
3136
  organizationId: string;
2798
- /** The fiat on-ramp provider. */
2799
- onrampProvider: v1FiatOnRampProvider;
2800
- /** Project ID for the on-ramp provider. Some providers, like Coinbase, require this additional identifier. */
2801
- projectId?: string;
2802
- /** Publishable API key for the on-ramp provider. */
2803
- publishableApiKey: string;
2804
- /** Secret API key for the on-ramp provider encrypted to our on-ramp encryption public key. */
2805
- encryptedSecretApiKey: string;
2806
- /** Private API key for the on-ramp provider encrypted to our on-ramp encryption public key. Some providers, like Coinbase, require this additional key. */
2807
- encryptedPrivateApiKey?: string;
3137
+ /** The fiat ramp provider. */
3138
+ provider: v1FiatRampProvider;
3139
+ /** Non-secret half of the provider credential. MoonPay: publishable key (pk_test_ or pk_live_). Coinbase: CDP API key ID. */
3140
+ apiKey: string;
3141
+ /** Secret half of the provider credential, encrypted to our on-ramp encryption public key. MoonPay: secret key (sk_test_ or sk_live_). Coinbase: Ed25519 private key. */
3142
+ encryptedSecret: string;
2808
3143
  /** If the on-ramp credential is a sandbox credential. */
2809
3144
  sandboxMode?: boolean;
2810
3145
  createdAt: externaldatav1Timestamp;
@@ -2814,8 +3149,41 @@ export type v1FiatOnRampCryptoCurrency = "FIAT_ON_RAMP_CRYPTO_CURRENCY_BTC" | "F
2814
3149
  export type v1FiatOnRampCurrency = "FIAT_ON_RAMP_CURRENCY_AUD" | "FIAT_ON_RAMP_CURRENCY_BGN" | "FIAT_ON_RAMP_CURRENCY_BRL" | "FIAT_ON_RAMP_CURRENCY_CAD" | "FIAT_ON_RAMP_CURRENCY_CHF" | "FIAT_ON_RAMP_CURRENCY_COP" | "FIAT_ON_RAMP_CURRENCY_CZK" | "FIAT_ON_RAMP_CURRENCY_DKK" | "FIAT_ON_RAMP_CURRENCY_DOP" | "FIAT_ON_RAMP_CURRENCY_EGP" | "FIAT_ON_RAMP_CURRENCY_EUR" | "FIAT_ON_RAMP_CURRENCY_GBP" | "FIAT_ON_RAMP_CURRENCY_HKD" | "FIAT_ON_RAMP_CURRENCY_IDR" | "FIAT_ON_RAMP_CURRENCY_ILS" | "FIAT_ON_RAMP_CURRENCY_JOD" | "FIAT_ON_RAMP_CURRENCY_KES" | "FIAT_ON_RAMP_CURRENCY_KWD" | "FIAT_ON_RAMP_CURRENCY_LKR" | "FIAT_ON_RAMP_CURRENCY_MXN" | "FIAT_ON_RAMP_CURRENCY_NGN" | "FIAT_ON_RAMP_CURRENCY_NOK" | "FIAT_ON_RAMP_CURRENCY_NZD" | "FIAT_ON_RAMP_CURRENCY_OMR" | "FIAT_ON_RAMP_CURRENCY_PEN" | "FIAT_ON_RAMP_CURRENCY_PLN" | "FIAT_ON_RAMP_CURRENCY_RON" | "FIAT_ON_RAMP_CURRENCY_SEK" | "FIAT_ON_RAMP_CURRENCY_THB" | "FIAT_ON_RAMP_CURRENCY_TRY" | "FIAT_ON_RAMP_CURRENCY_TWD" | "FIAT_ON_RAMP_CURRENCY_USD" | "FIAT_ON_RAMP_CURRENCY_VND" | "FIAT_ON_RAMP_CURRENCY_ZAR";
2815
3150
  export type v1FiatOnRampPaymentMethod = "FIAT_ON_RAMP_PAYMENT_METHOD_CREDIT_DEBIT_CARD" | "FIAT_ON_RAMP_PAYMENT_METHOD_APPLE_PAY" | "FIAT_ON_RAMP_PAYMENT_METHOD_GBP_BANK_TRANSFER" | "FIAT_ON_RAMP_PAYMENT_METHOD_GBP_OPEN_BANKING_PAYMENT" | "FIAT_ON_RAMP_PAYMENT_METHOD_GOOGLE_PAY" | "FIAT_ON_RAMP_PAYMENT_METHOD_SEPA_BANK_TRANSFER" | "FIAT_ON_RAMP_PAYMENT_METHOD_PIX_INSTANT_PAYMENT" | "FIAT_ON_RAMP_PAYMENT_METHOD_PAYPAL" | "FIAT_ON_RAMP_PAYMENT_METHOD_VENMO" | "FIAT_ON_RAMP_PAYMENT_METHOD_MOONPAY_BALANCE" | "FIAT_ON_RAMP_PAYMENT_METHOD_CRYPTO_ACCOUNT" | "FIAT_ON_RAMP_PAYMENT_METHOD_FIAT_WALLET" | "FIAT_ON_RAMP_PAYMENT_METHOD_ACH_BANK_ACCOUNT";
2816
3151
  export type v1FiatOnRampProvider = "FIAT_ON_RAMP_PROVIDER_COINBASE" | "FIAT_ON_RAMP_PROVIDER_MOONPAY";
3152
+ export type v1FiatOnRampQuote = {
3153
+ /** Identifier for this saved quote. Pass this to the create on ramp session activity. */
3154
+ quoteId: string;
3155
+ /** Provider that produced this quote. */
3156
+ provider: v1FiatRampProvider;
3157
+ /** Underlying provider when provider aggregates several. */
3158
+ serviceProvider?: string;
3159
+ /** Fiat the user pays, in atomic units of fiat_currency_code. For USD, 100 dollars is "10000". */
3160
+ fiatAmount: v1FiatRampAmount;
3161
+ /** Fiat currency of fiat_amount and total_fee. */
3162
+ fiatCurrencyCode: v1FiatRampCurrency;
3163
+ /** Cryptocurrency the user would receive, in atomic units. Not locked in the session. */
3164
+ cryptoAmount: v1FiatRampAmount;
3165
+ /** CAIP-19 asset of crypto_amount. */
3166
+ caip19: "eip155:1/slip44:60" | "eip155:10/slip44:60" | "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619" | "eip155:8453/slip44:60" | "eip155:42161/slip44:60" | "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85" | "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359" | "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
3167
+ /** Payment method this quote was priced for. Bank transfers are not included. */
3168
+ paymentMethod: v1FiatRampPaymentMethod;
3169
+ /** Total fee in atomic units of fiat_currency_code. */
3170
+ totalFee: v1FiatRampAmount;
3171
+ /** Quote expiration as a millisecond epoch string. Empty when the provider does not send one. */
3172
+ expiresAt?: string;
3173
+ };
3174
+ export type v1FiatRampAmount = {
3175
+ /** Amount in atomic units. Use this to compare quotes. Do not use display. */
3176
+ amount: string;
3177
+ /** Decimal places for this amount. Asset decimals for cryptocurrency, atomic-unit decimals for fiat (2 for USD). */
3178
+ decimals: number;
3179
+ /** Decimal representation in standard currency units. */
3180
+ display: string;
3181
+ };
3182
+ export type v1FiatRampCurrency = "FIAT_RAMP_CURRENCY_AUD" | "FIAT_RAMP_CURRENCY_BGN" | "FIAT_RAMP_CURRENCY_BRL" | "FIAT_RAMP_CURRENCY_CAD" | "FIAT_RAMP_CURRENCY_CHF" | "FIAT_RAMP_CURRENCY_COP" | "FIAT_RAMP_CURRENCY_CZK" | "FIAT_RAMP_CURRENCY_DKK" | "FIAT_RAMP_CURRENCY_DOP" | "FIAT_RAMP_CURRENCY_EGP" | "FIAT_RAMP_CURRENCY_EUR" | "FIAT_RAMP_CURRENCY_GBP" | "FIAT_RAMP_CURRENCY_HKD" | "FIAT_RAMP_CURRENCY_IDR" | "FIAT_RAMP_CURRENCY_ILS" | "FIAT_RAMP_CURRENCY_JOD" | "FIAT_RAMP_CURRENCY_KES" | "FIAT_RAMP_CURRENCY_KWD" | "FIAT_RAMP_CURRENCY_LKR" | "FIAT_RAMP_CURRENCY_MXN" | "FIAT_RAMP_CURRENCY_NGN" | "FIAT_RAMP_CURRENCY_NOK" | "FIAT_RAMP_CURRENCY_NZD" | "FIAT_RAMP_CURRENCY_OMR" | "FIAT_RAMP_CURRENCY_PEN" | "FIAT_RAMP_CURRENCY_PLN" | "FIAT_RAMP_CURRENCY_RON" | "FIAT_RAMP_CURRENCY_SEK" | "FIAT_RAMP_CURRENCY_THB" | "FIAT_RAMP_CURRENCY_TRY" | "FIAT_RAMP_CURRENCY_TWD" | "FIAT_RAMP_CURRENCY_USD" | "FIAT_RAMP_CURRENCY_VND" | "FIAT_RAMP_CURRENCY_ZAR";
3183
+ export type v1FiatRampPaymentMethod = "FIAT_RAMP_PAYMENT_METHOD_CREDIT_DEBIT_CARD" | "FIAT_RAMP_PAYMENT_METHOD_APPLE_PAY" | "FIAT_RAMP_PAYMENT_METHOD_GOOGLE_PAY" | "FIAT_RAMP_PAYMENT_METHOD_PAYPAL" | "FIAT_RAMP_PAYMENT_METHOD_MOONPAY_BALANCE" | "FIAT_RAMP_PAYMENT_METHOD_FIAT_WALLET" | "FIAT_RAMP_PAYMENT_METHOD_ACH_BANK_ACCOUNT";
3184
+ export type v1FiatRampProvider = "FIAT_RAMP_PROVIDER_COINBASE" | "FIAT_RAMP_PROVIDER_MOONPAY" | "FIAT_RAMP_PROVIDER_MELD";
2817
3185
  export type v1GetActivePoliciesRequest = {
2818
- /** Unique identifier for a given organization. */
3186
+ /** Unique identifier for a given Organization. */
2819
3187
  organizationId: string;
2820
3188
  };
2821
3189
  export type v1GetActivePoliciesResponse = {
@@ -2825,7 +3193,7 @@ export type v1GetActivePoliciesResponse = {
2825
3193
  evaluatedAtMs: string;
2826
3194
  };
2827
3195
  export type v1GetActivitiesRequest = {
2828
- /** Unique identifier for a given organization. */
3196
+ /** Unique identifier for a given Organization. */
2829
3197
  organizationId: string;
2830
3198
  /** Array of activity statuses filtering which activities will be listed in the response. */
2831
3199
  filterByStatus?: v1ActivityStatus[];
@@ -2839,13 +3207,13 @@ export type v1GetActivitiesResponse = {
2839
3207
  activities: v1Activity[];
2840
3208
  };
2841
3209
  export type v1GetActivityRequest = {
2842
- /** Unique identifier for a given organization. */
3210
+ /** Unique identifier for a given Organization. */
2843
3211
  organizationId: string;
2844
3212
  /** Unique identifier for a given activity object. */
2845
3213
  activityId: string;
2846
3214
  };
2847
3215
  export type v1GetApiKeyRequest = {
2848
- /** Unique identifier for a given organization. */
3216
+ /** Unique identifier for a given Organization. */
2849
3217
  organizationId: string;
2850
3218
  /** Unique identifier for a given API key. */
2851
3219
  apiKeyId: string;
@@ -2855,7 +3223,7 @@ export type v1GetApiKeyResponse = {
2855
3223
  apiKey: v1ApiKey;
2856
3224
  };
2857
3225
  export type v1GetApiKeysRequest = {
2858
- /** Unique identifier for a given organization. */
3226
+ /** Unique identifier for a given Organization. */
2859
3227
  organizationId: string;
2860
3228
  /** Unique identifier for a given user. */
2861
3229
  userId?: string;
@@ -2884,7 +3252,7 @@ export type v1GetAppStatusResponse = {
2884
3252
  appStatus: v1AppStatus;
2885
3253
  };
2886
3254
  export type v1GetAuthenticatorRequest = {
2887
- /** Unique identifier for a given organization. */
3255
+ /** Unique identifier for a given Organization. */
2888
3256
  organizationId: string;
2889
3257
  /** Unique identifier for a given authenticator. */
2890
3258
  authenticatorId: string;
@@ -2894,7 +3262,7 @@ export type v1GetAuthenticatorResponse = {
2894
3262
  authenticator: v1Authenticator;
2895
3263
  };
2896
3264
  export type v1GetAuthenticatorsRequest = {
2897
- /** Unique identifier for a given organization. */
3265
+ /** Unique identifier for a given Organization. */
2898
3266
  organizationId: string;
2899
3267
  /** Unique identifier for a given user. */
2900
3268
  userId: string;
@@ -2979,6 +3347,46 @@ export type v1GetEarnWithdrawStatusResponse = {
2979
3347
  /** Reason the withdrawal transaction failed, when status is FAILED. */
2980
3348
  error?: string;
2981
3349
  };
3350
+ export type v1GetFiatOffRampQuotesRequest = {
3351
+ /** Unique identifier for a given Organization. */
3352
+ organizationId: string;
3353
+ /** Crypto amount the user wants to sell, in major units of the caip19 asset. For example, "0.05" for 0.05 ETH. The wallet address is not part of this query. */
3354
+ cryptoAmount: string;
3355
+ /** Fiat currency the user receives, for example USD. */
3356
+ fiatCurrencyCode: v1FiatRampCurrency;
3357
+ /** CAIP-19 asset to sell. Each value is supported for both Coinbase and MoonPay sell, the same set as on-ramp. */
3358
+ caip19: "eip155:1/slip44:60" | "eip155:10/slip44:60" | "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619" | "eip155:8453/slip44:60" | "eip155:42161/slip44:60" | "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85" | "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359" | "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
3359
+ /** ISO 3166-1 alpha-2 country code of the selling user, for example US. When omitted, the country is taken from the location of the request. */
3360
+ countryCode?: string;
3361
+ /** ISO 3166-2 subdivision code, for example NY. When omitted for a US visitor, the subdivision is taken from the location of the request. */
3362
+ countrySubdivisionCode?: string;
3363
+ /** Quote sandbox credentials when true. Defaults to false. */
3364
+ sandboxMode?: boolean;
3365
+ };
3366
+ export type v1GetFiatOffRampQuotesResponse = {
3367
+ /** One quote per provider and payment method that can serve this route. Empty when none can. */
3368
+ quotes: v1FiatOffRampQuote[];
3369
+ };
3370
+ export type v1GetFiatOnRampQuotesRequest = {
3371
+ /** Unique identifier for a given Organization. */
3372
+ organizationId: string;
3373
+ /** Fiat amount the user wants to spend, in major units of fiat_currency_code. For example, "100" for 100 USD. */
3374
+ fiatAmount: string;
3375
+ /** Fiat currency for fiat_amount, for example USD. */
3376
+ fiatCurrencyCode: v1FiatRampCurrency;
3377
+ /** CAIP-19 asset to buy. */
3378
+ caip19: "eip155:1/slip44:60" | "eip155:10/slip44:60" | "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619" | "eip155:8453/slip44:60" | "eip155:42161/slip44:60" | "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85" | "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359" | "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
3379
+ /** ISO 3166-1 alpha-2 country code of the purchasing user, for example US. When omitted, the country is taken from the location of the request. */
3380
+ countryCode?: string;
3381
+ /** ISO 3166-2 subdivision code, for example NY. When omitted for a US visitor, the subdivision is taken from the location of the request. */
3382
+ countrySubdivisionCode?: string;
3383
+ /** Quote sandbox credentials when true. Defaults to false. */
3384
+ sandboxMode?: boolean;
3385
+ };
3386
+ export type v1GetFiatOnRampQuotesResponse = {
3387
+ /** One quote per provider and payment method that can serve this route. Empty when none can. */
3388
+ quotes: v1FiatOnRampQuote[];
3389
+ };
2982
3390
  export type v1GetGasUsageRequest = {
2983
3391
  /** Unique identifier for a given Organization. */
2984
3392
  organizationId: string;
@@ -2991,8 +3399,50 @@ export type v1GetGasUsageResponse = {
2991
3399
  /** The total gas usage (in USD) of all sponsored transactions processed over the last `window_duration_minutes` */
2992
3400
  usageUsd: string;
2993
3401
  };
3402
+ export type v1GetIndicativeSwapQuoteRequest = {
3403
+ /** Unique identifier for a given Organization. */
3404
+ organizationId: string;
3405
+ /** Wallet account address that would send the input asset. It must belong to the organization. */
3406
+ signWith: string;
3407
+ /** CAIP-19 asset ID for the input asset. */
3408
+ inputToken: string;
3409
+ /** CAIP-19 asset ID for the output asset. */
3410
+ outputToken: string;
3411
+ /** Exact base-unit amount of the input asset. */
3412
+ inputAmount: string;
3413
+ /** Maximum allowed slippage in basis points, at most 5000. When omitted, the provider chooses the slippage. */
3414
+ slippageBps?: string;
3415
+ /** Raw public address that would receive the output asset. Required for cross-protocol swaps and rejected otherwise. */
3416
+ destinationAddress?: string;
3417
+ /** Preview the price with Turnkey paying the provider fees. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
3418
+ feeSponsorship?: boolean;
3419
+ /** Preview a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
3420
+ fixedRate?: boolean;
3421
+ };
3422
+ export type v1GetIndicativeSwapQuoteResponse = {
3423
+ /** Swap provider that produced this quote. */
3424
+ provider: string;
3425
+ /** Estimated base-unit amount of the output asset. */
3426
+ outputAmount: string;
3427
+ /** Minimum base-unit amount of the output asset after slippage. */
3428
+ minOutputAmount: string;
3429
+ /** Slippage tolerance in basis points the provider applied. */
3430
+ slippageBps?: string;
3431
+ /** Client app fee in basis points included in this quote. "0" when no client fee applies. */
3432
+ clientFeeBps: string;
3433
+ /** Provider's estimated time to complete the swap, in seconds. */
3434
+ estimatedTimeSeconds?: string;
3435
+ /** Whether this quote has Turnkey paying the execution costs. */
3436
+ feeSponsorship: boolean;
3437
+ /** Whether this quote uses a 1:1 fixed rate. */
3438
+ fixedRate: boolean;
3439
+ /** Deprecated: use estimated_charges.fixed_rate_adjustment_usd. Estimated fixed-rate adjustment in USD from the customer's side: positive is a cost, negative an earning. Present only for fixed-rate quotes the provider priced. */
3440
+ estimatedFixedRateAdjustmentUsd?: string;
3441
+ /** Estimated charges this swap would add to your invoice, one field per swap line item. Present when fee_sponsorship or fixed_rate is true. */
3442
+ estimatedCharges?: v1SwapCharges;
3443
+ };
2994
3444
  export type v1GetIpAllowlistRequest = {
2995
- /** Unique identifier for a given organization. */
3445
+ /** Unique identifier for a given Organization. */
2996
3446
  organizationId: string;
2997
3447
  /** If provided, return only the allowlist for this specific API key. */
2998
3448
  publicKey?: string;
@@ -3007,7 +3457,7 @@ export type v1GetLatestBootProofRequest = {
3007
3457
  appName: string;
3008
3458
  };
3009
3459
  export type v1GetMfaPoliciesRequest = {
3010
- /** Unique identifier for a given organization. */
3460
+ /** Unique identifier for a given Organization. */
3011
3461
  organizationId: string;
3012
3462
  /** Unique identifier for a given user. */
3013
3463
  userId: string;
@@ -3017,7 +3467,7 @@ export type v1GetMfaPoliciesResponse = {
3017
3467
  mfaPolicies: v1MfaPolicy[];
3018
3468
  };
3019
3469
  export type v1GetMfaPolicyRequest = {
3020
- /** Unique identifier for a given organization. */
3470
+ /** Unique identifier for a given Organization. */
3021
3471
  organizationId: string;
3022
3472
  /** Unique identifier for a given user. */
3023
3473
  userId: string;
@@ -3029,7 +3479,7 @@ export type v1GetMfaPolicyResponse = {
3029
3479
  mfaPolicy: v1MfaPolicy;
3030
3480
  };
3031
3481
  export type v1GetMfaStatusRequest = {
3032
- /** Unique identifier for a given organization. */
3482
+ /** Unique identifier for a given Organization. */
3033
3483
  organizationId: string;
3034
3484
  /** The unique identifier of the activity to get MFA status for. */
3035
3485
  activityId: string;
@@ -3068,7 +3518,7 @@ export type v1GetOauth2CredentialResponse = {
3068
3518
  oauth2Credential: v1Oauth2Credential;
3069
3519
  };
3070
3520
  export type v1GetOauthProvidersRequest = {
3071
- /** Unique identifier for a given organization. */
3521
+ /** Unique identifier for a given Organization. */
3072
3522
  organizationId: string;
3073
3523
  /** Unique identifier for a given user. */
3074
3524
  userId?: string;
@@ -3078,7 +3528,7 @@ export type v1GetOauthProvidersResponse = {
3078
3528
  oauthProviders: v1OauthProvider[];
3079
3529
  };
3080
3530
  export type v1GetOnRampTransactionStatusRequest = {
3081
- /** Unique identifier for a given organization. */
3531
+ /** Unique identifier for a given Organization. */
3082
3532
  organizationId: string;
3083
3533
  /** The unique identifier for the fiat on ramp transaction. */
3084
3534
  transactionId: string;
@@ -3090,7 +3540,7 @@ export type v1GetOnRampTransactionStatusResponse = {
3090
3540
  transactionStatus: string;
3091
3541
  };
3092
3542
  export type v1GetOrganizationConfigsRequest = {
3093
- /** Unique identifier for a given organization. */
3543
+ /** Unique identifier for a given Organization. */
3094
3544
  organizationId: string;
3095
3545
  };
3096
3546
  export type v1GetOrganizationConfigsResponse = {
@@ -3098,7 +3548,7 @@ export type v1GetOrganizationConfigsResponse = {
3098
3548
  configs: v1Config;
3099
3549
  };
3100
3550
  export type v1GetPoliciesRequest = {
3101
- /** Unique identifier for a given organization. */
3551
+ /** Unique identifier for a given Organization. */
3102
3552
  organizationId: string;
3103
3553
  };
3104
3554
  export type v1GetPoliciesResponse = {
@@ -3106,7 +3556,7 @@ export type v1GetPoliciesResponse = {
3106
3556
  policies: v1Policy[];
3107
3557
  };
3108
3558
  export type v1GetPolicyEvaluationsRequest = {
3109
- /** Unique identifier for a given organization. */
3559
+ /** Unique identifier for a given Organization. */
3110
3560
  organizationId: string;
3111
3561
  /** Unique identifier for a given activity. */
3112
3562
  activityId: string;
@@ -3115,7 +3565,7 @@ export type v1GetPolicyEvaluationsResponse = {
3115
3565
  policyEvaluations: externalactivityv1PolicyEvaluation[];
3116
3566
  };
3117
3567
  export type v1GetPolicyRequest = {
3118
- /** Unique identifier for a given organization. */
3568
+ /** Unique identifier for a given Organization. */
3119
3569
  organizationId: string;
3120
3570
  /** Unique identifier for a given policy. */
3121
3571
  policyId: string;
@@ -3125,7 +3575,7 @@ export type v1GetPolicyResponse = {
3125
3575
  policy: v1Policy;
3126
3576
  };
3127
3577
  export type v1GetPrivateKeyRequest = {
3128
- /** Unique identifier for a given organization. */
3578
+ /** Unique identifier for a given Organization. */
3129
3579
  organizationId: string;
3130
3580
  /** Unique identifier for a given private key. */
3131
3581
  privateKeyId: string;
@@ -3135,7 +3585,7 @@ export type v1GetPrivateKeyResponse = {
3135
3585
  privateKey: v1PrivateKey;
3136
3586
  };
3137
3587
  export type v1GetPrivateKeysRequest = {
3138
- /** Unique identifier for a given organization. */
3588
+ /** Unique identifier for a given Organization. */
3139
3589
  organizationId: string;
3140
3590
  };
3141
3591
  export type v1GetPrivateKeysResponse = {
@@ -3143,7 +3593,7 @@ export type v1GetPrivateKeysResponse = {
3143
3593
  privateKeys: v1PrivateKey[];
3144
3594
  };
3145
3595
  export type v1GetSendTransactionStatusRequest = {
3146
- /** Unique identifier for a given organization. */
3596
+ /** Unique identifier for a given Organization. */
3147
3597
  organizationId: string;
3148
3598
  /** The unique identifier of a send transaction request. */
3149
3599
  sendTransactionStatusId: string;
@@ -3161,7 +3611,7 @@ export type v1GetSendTransactionStatusResponse = {
3161
3611
  error?: v1TxError;
3162
3612
  };
3163
3613
  export type v1GetSessionProfileRequest = {
3164
- /** Unique identifier for a given organization. */
3614
+ /** Unique identifier for a given Organization. */
3165
3615
  organizationId: string;
3166
3616
  /** Unique identifier for a session profile. */
3167
3617
  sessionProfileId: string;
@@ -3171,7 +3621,7 @@ export type v1GetSessionProfileResponse = {
3171
3621
  sessionProfile: v1SessionProfile;
3172
3622
  };
3173
3623
  export type v1GetSessionProfilesRequest = {
3174
- /** Unique identifier for a given organization. */
3624
+ /** Unique identifier for a given Organization. */
3175
3625
  organizationId: string;
3176
3626
  };
3177
3627
  export type v1GetSessionProfilesResponse = {
@@ -3179,7 +3629,7 @@ export type v1GetSessionProfilesResponse = {
3179
3629
  sessionProfiles: v1SessionProfile[];
3180
3630
  };
3181
3631
  export type v1GetSmartContractInterfaceRequest = {
3182
- /** Unique identifier for a given organization. */
3632
+ /** Unique identifier for a given Organization. */
3183
3633
  organizationId: string;
3184
3634
  /** Unique identifier for a given smart contract interface. */
3185
3635
  smartContractInterfaceId: string;
@@ -3189,7 +3639,7 @@ export type v1GetSmartContractInterfaceResponse = {
3189
3639
  smartContractInterface: externaldatav1SmartContractInterface;
3190
3640
  };
3191
3641
  export type v1GetSmartContractInterfacesRequest = {
3192
- /** Unique identifier for a given organization. */
3642
+ /** Unique identifier for a given Organization. */
3193
3643
  organizationId: string;
3194
3644
  };
3195
3645
  export type v1GetSmartContractInterfacesResponse = {
@@ -3199,7 +3649,7 @@ export type v1GetSmartContractInterfacesResponse = {
3199
3649
  export type v1GetSubOrgIdsRequest = {
3200
3650
  /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
3201
3651
  organizationId: string;
3202
- /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'WALLET_ACCOUNT_ADDRESS' or 'PUBLIC_KEY' */
3652
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'WALLET_ACCOUNT_ADDRESS', 'WALLET_AUTH_TOKEN', or 'PUBLIC_KEY' */
3203
3653
  filterType?: string;
3204
3654
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
3205
3655
  filterValue?: string;
@@ -3210,6 +3660,14 @@ export type v1GetSubOrgIdsResponse = {
3210
3660
  /** List of unique identifiers for the matching sub-organizations. */
3211
3661
  organizationIds: string[];
3212
3662
  };
3663
+ export type v1GetSwapSponsorshipUsageRequest = {
3664
+ /** Unique identifier for a given organization. */
3665
+ organizationId: string;
3666
+ };
3667
+ export type v1GetSwapSponsorshipUsageResponse = {
3668
+ feeSponsorship: v1SwapSponsorshipFeature;
3669
+ fixedRate: v1SwapSponsorshipFeature;
3670
+ };
3213
3671
  export type v1GetSwapStatusRequest = {
3214
3672
  /** Unique identifier for a given Organization. */
3215
3673
  organizationId: string;
@@ -3243,9 +3701,11 @@ export type v1GetSwapStatusResponse = {
3243
3701
  error?: v1SwapError;
3244
3702
  /** Address that receives the output asset. */
3245
3703
  destinationAddress?: string;
3704
+ /** Final charges this swap added to your invoice, one field per swap line item. Present once a fee-sponsored or fixed-rate swap's costs are settled; a swap that failed or was refunded settles at zero. */
3705
+ charges?: v1SwapCharges;
3246
3706
  };
3247
3707
  export type v1GetTvcAppDeploymentsRequest = {
3248
- /** Unique identifier for a given organization. */
3708
+ /** Unique identifier for a given Organization. */
3249
3709
  organizationId: string;
3250
3710
  /** Unique identifier for a given TVC App. */
3251
3711
  appId: string;
@@ -3255,7 +3715,7 @@ export type v1GetTvcAppDeploymentsResponse = {
3255
3715
  tvcDeployments: v1TvcDeployment[];
3256
3716
  };
3257
3717
  export type v1GetTvcAppRequest = {
3258
- /** Unique identifier for a given organization. */
3718
+ /** Unique identifier for a given Organization. */
3259
3719
  organizationId: string;
3260
3720
  /** Unique identifier for a given TVC App. */
3261
3721
  tvcAppId: string;
@@ -3265,8 +3725,10 @@ export type v1GetTvcAppResponse = {
3265
3725
  tvcApp: v1TvcApp;
3266
3726
  };
3267
3727
  export type v1GetTvcAppsRequest = {
3268
- /** Unique identifier for a given organization. */
3728
+ /** Unique identifier for a given Organization. */
3269
3729
  organizationId: string;
3730
+ /** Filter TVC Apps by whether they have a live deployment. If omitted, all TVC Apps are returned. */
3731
+ isLive?: boolean;
3270
3732
  };
3271
3733
  export type v1GetTvcAppsResponse = {
3272
3734
  /** A list of TVC Apps. */
@@ -3298,10 +3760,10 @@ export type v1GetTvcDeploymentProvisioningDetailsResponse = {
3298
3760
  /** The manifest envelope containing the TVC deployment's manifest and signatures. Present only when a deployment is awaiting provisioning. */
3299
3761
  manifestEnvelope?: string;
3300
3762
  /** Current provisioning state. */
3301
- provisioningState?: v1ProvisioningState;
3763
+ provisioningState: v1ProvisioningState;
3302
3764
  };
3303
3765
  export type v1GetTvcDeploymentRequest = {
3304
- /** Unique identifier for a given organization. */
3766
+ /** Unique identifier for a given Organization. */
3305
3767
  organizationId: string;
3306
3768
  /** Unique identifier for a given TVC Deployment. */
3307
3769
  deploymentId: string;
@@ -3310,8 +3772,24 @@ export type v1GetTvcDeploymentResponse = {
3310
3772
  /** Details about a single TVC Deployment */
3311
3773
  tvcDeployment: v1TvcDeployment;
3312
3774
  };
3775
+ export type v1GetTvcManifestGenerationInfoRequest = {
3776
+ organizationId: string;
3777
+ appId: string;
3778
+ /** QOS version of the deployment. Defaults to the latest recommended TVC QOS version. */
3779
+ qosVersion?: string;
3780
+ };
3781
+ export type v1GetTvcManifestGenerationInfoResponse = {
3782
+ nonce: number;
3783
+ namespace: string;
3784
+ pcr0: string;
3785
+ pcr1: string;
3786
+ pcr2: string;
3787
+ pcr3: string;
3788
+ qosVersion: string;
3789
+ defaultDnsResolvers?: string[];
3790
+ };
3313
3791
  export type v1GetTvcOperatorsRequest = {
3314
- /** Unique identifier for a given organization. */
3792
+ /** Unique identifier for a given Organization. */
3315
3793
  organizationId: string;
3316
3794
  };
3317
3795
  export type v1GetTvcOperatorsResponse = {
@@ -3328,14 +3806,14 @@ export type v1GetTvcQosVersionsResponse = {
3328
3806
  latestVersion: string;
3329
3807
  };
3330
3808
  export type v1GetTvcQuorumKeysRequest = {
3331
- /** Unique identifier for a given organization. */
3809
+ /** Unique identifier for a given Organization. */
3332
3810
  organizationId: string;
3333
3811
  };
3334
3812
  export type v1GetTvcQuorumKeysResponse = {
3335
3813
  tvcQuorumKeys: v1TvcQuorumKey[];
3336
3814
  };
3337
3815
  export type v1GetUserRequest = {
3338
- /** Unique identifier for a given organization. */
3816
+ /** Unique identifier for a given Organization. */
3339
3817
  organizationId: string;
3340
3818
  /** Unique identifier for a given user. */
3341
3819
  userId: string;
@@ -3345,7 +3823,7 @@ export type v1GetUserResponse = {
3345
3823
  user: v1User;
3346
3824
  };
3347
3825
  export type v1GetUsersRequest = {
3348
- /** Unique identifier for a given organization. */
3826
+ /** Unique identifier for a given Organization. */
3349
3827
  organizationId: string;
3350
3828
  };
3351
3829
  export type v1GetUsersResponse = {
@@ -3355,7 +3833,7 @@ export type v1GetUsersResponse = {
3355
3833
  export type v1GetVerifiedSubOrgIdsRequest = {
3356
3834
  /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
3357
3835
  organizationId: string;
3358
- /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER'. */
3836
+ /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'PUBLIC_KEY', or 'WALLET_AUTH_TOKEN'. */
3359
3837
  filterType?: string;
3360
3838
  /** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
3361
3839
  filterValue?: string;
@@ -3367,7 +3845,7 @@ export type v1GetVerifiedSubOrgIdsResponse = {
3367
3845
  organizationIds: string[];
3368
3846
  };
3369
3847
  export type v1GetWalletAccountRequest = {
3370
- /** Unique identifier for a given organization. */
3848
+ /** Unique identifier for a given Organization. */
3371
3849
  organizationId: string;
3372
3850
  /** Unique identifier for a given wallet. */
3373
3851
  walletId: string;
@@ -3381,7 +3859,7 @@ export type v1GetWalletAccountResponse = {
3381
3859
  account: v1WalletAccount;
3382
3860
  };
3383
3861
  export type v1GetWalletAccountsRequest = {
3384
- /** Unique identifier for a given organization. */
3862
+ /** Unique identifier for a given Organization. */
3385
3863
  organizationId: string;
3386
3864
  /** Unique identifier for a given wallet. If not provided, all accounts for the organization will be returned. */
3387
3865
  walletId?: string;
@@ -3395,7 +3873,7 @@ export type v1GetWalletAccountsResponse = {
3395
3873
  accounts: v1WalletAccount[];
3396
3874
  };
3397
3875
  export type v1GetWalletAddressBalancesRequest = {
3398
- /** Unique identifier for a given organization. */
3876
+ /** Unique identifier for a given Organization. */
3399
3877
  organizationId: string;
3400
3878
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
3401
3879
  address: string;
@@ -3406,9 +3884,19 @@ export type v1GetWalletAddressBalancesResponse = {
3406
3884
  /** List of asset balances */
3407
3885
  balances?: v1AssetBalance[];
3408
3886
  };
3409
- export type v1GetWalletRequest = {
3887
+ export type v1GetWalletAuthenticatorsRequest = {
3410
3888
  /** Unique identifier for a given organization. */
3411
3889
  organizationId: string;
3890
+ /** Unique identifier for a given user. */
3891
+ userId: string;
3892
+ };
3893
+ export type v1GetWalletAuthenticatorsResponse = {
3894
+ /** A list of wallet authenticators. */
3895
+ walletAuthenticators: v1WalletAuthenticator[];
3896
+ };
3897
+ export type v1GetWalletRequest = {
3898
+ /** Unique identifier for a given Organization. */
3899
+ organizationId: string;
3412
3900
  /** Unique identifier for a given wallet. */
3413
3901
  walletId: string;
3414
3902
  };
@@ -3417,7 +3905,7 @@ export type v1GetWalletResponse = {
3417
3905
  wallet: v1Wallet;
3418
3906
  };
3419
3907
  export type v1GetWalletsRequest = {
3420
- /** Unique identifier for a given organization. */
3908
+ /** Unique identifier for a given Organization. */
3421
3909
  organizationId: string;
3422
3910
  };
3423
3911
  export type v1GetWalletsResponse = {
@@ -3429,7 +3917,7 @@ export type v1GetWhoamiRequest = {
3429
3917
  organizationId: string;
3430
3918
  };
3431
3919
  export type v1GetWhoamiResponse = {
3432
- /** Unique identifier for a given organization. */
3920
+ /** Unique identifier for a given Organization. */
3433
3921
  organizationId: string;
3434
3922
  /** Human-readable name for an organization. */
3435
3923
  organizationName: string;
@@ -3439,6 +3927,26 @@ export type v1GetWhoamiResponse = {
3439
3927
  username: string;
3440
3928
  };
3441
3929
  export type v1HashFunction = "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
3930
+ export type v1HttpAuthzV1Inputs = {
3931
+ /** HTTP method of the bound request. One of `GET`, `HEAD`, `POST`, `PUT`, `PATCH`, or `DELETE`. */
3932
+ method: string;
3933
+ /** Path of the bound request, starting with `/`. */
3934
+ path: string;
3935
+ /** Query of the bound request without the leading `?`, or empty for no query. */
3936
+ query?: string;
3937
+ /** Lowercase names of the bound request headers, in order. At most 32 unique names of at most 64 characters each. Cannot include `authorization` or hop-by-hop headers (`proxy-authorization`, `connection`, `keep-alive`, `proxy-connection`, `te`, `transfer-encoding`, `upgrade`). */
3938
+ headerNames?: string[];
3939
+ /** SHA-256 digest of each bound header value, as `sha-256=:<base64>:`. One entry per entry in `header_names`. */
3940
+ headerDigest?: string[];
3941
+ /** SHA-256 digest of the bound request body, as `sha-256=:<base64>:`. For a request with no body, the digest of empty content. */
3942
+ bodyDigest: string;
3943
+ /** ID of a user in the organization, as a lowercase UUID. Becomes the `sub` claim. */
3944
+ subject: string;
3945
+ /** Lifetime of the JWT in seconds, from 1 to 300. `exp` is `issued_at + time_to_live_seconds`. */
3946
+ timeToLiveSeconds: string;
3947
+ /** Unix time in seconds. Becomes the `iat` claim. */
3948
+ issuedAt: string;
3949
+ };
3442
3950
  export type v1ImportPrivateKeyIntent = {
3443
3951
  /** The ID of the User importing a Private Key. */
3444
3952
  userId: string;
@@ -3989,13 +4497,30 @@ export type v1Intent = {
3989
4497
  createSwapQuoteIntent?: v1CreateSwapQuoteIntent;
3990
4498
  importSecretsIntent?: v1ImportSecretsIntent;
3991
4499
  exportSecretsIntent?: v1ExportSecretsIntent;
3992
- createVelocityControlIntent?: v1CreateVelocityControlIntent;
3993
- deleteVelocityControlIntent?: v1DeleteVelocityControlIntent;
4500
+ createUsageControlIntent?: v1CreateUsageControlIntent;
4501
+ deleteUsageControlsIntent?: v1DeleteUsageControlsIntent;
3994
4502
  updatePaymentMethodIntent?: billingUpdatePaymentMethodIntent;
3995
4503
  createSwapQuoteIntentV2?: v1CreateSwapQuoteIntentV2;
3996
4504
  executeSwapIntentV3?: v1ExecuteSwapIntentV3;
3997
4505
  deleteSecretsIntent?: v1DeleteSecretsIntent;
3998
4506
  earnClaimRewardsIntent?: v1EarnClaimRewardsIntent;
4507
+ createSwapQuoteIntentV3?: v1CreateSwapQuoteIntentV3;
4508
+ createSubOrganizationIntentV9?: v1CreateSubOrganizationIntentV9;
4509
+ verifyWalletAuthenticatorIntent?: v1VerifyWalletAuthenticatorIntent;
4510
+ upsertSwapFeeSponsorshipLimitConfigIntent?: v1UpsertSwapFeeSponsorshipLimitConfigIntent;
4511
+ upsertSwapFixedRateLimitConfigIntent?: v1UpsertSwapFixedRateLimitConfigIntent;
4512
+ createFiatOnRampSessionIntent?: v1CreateFiatOnRampSessionIntent;
4513
+ createFiatOffRampSessionIntent?: v1CreateFiatOffRampSessionIntent;
4514
+ executeSwapIntentV4?: v1ExecuteSwapIntentV4;
4515
+ createWalletAuthenticatorsIntent?: v1CreateWalletAuthenticatorsIntent;
4516
+ deleteWalletAuthenticatorsIntent?: v1DeleteWalletAuthenticatorsIntent;
4517
+ enableSmsForCountriesIntent?: v1EnableSmsForCountriesIntent;
4518
+ disableSmsForCountriesIntent?: v1DisableSmsForCountriesIntent;
4519
+ createFiatRampCredentialIntent?: v1CreateFiatRampCredentialIntent;
4520
+ updateFiatRampCredentialIntent?: v1UpdateFiatRampCredentialIntent;
4521
+ createExternalSignerIntentV1?: v1CreateExternalSignerIntentV1;
4522
+ deleteExternalSignerIntentV1?: v1DeleteExternalSignerIntentV1;
4523
+ mintJwtIntent?: v1MintJwtIntent;
3999
4524
  };
4000
4525
  export type v1InvitationParams = {
4001
4526
  /** The name of the intended Invitation recipient. */
@@ -4035,6 +4560,7 @@ export type v1IpAllowlistRule = {
4035
4560
  /** Creation timestamp as millisecond epoch string. */
4036
4561
  createdAt?: string;
4037
4562
  };
4563
+ export type v1JwtProfile = "JWT_PROFILE_HTTP_AUTHZ_V1";
4038
4564
  export type v1KeyValue = {
4039
4565
  key?: string;
4040
4566
  value?: string;
@@ -4106,7 +4632,7 @@ export type v1ListEmailEventsResponse = {
4106
4632
  emailEvents: v1EmailEvent[];
4107
4633
  };
4108
4634
  export type v1ListEthTransactionHistoryRequest = {
4109
- /** Unique identifier for a given organization. */
4635
+ /** Unique identifier for a given Organization. */
4110
4636
  organizationId: string;
4111
4637
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
4112
4638
  address: string;
@@ -4135,7 +4661,7 @@ export type v1ListOauth2CredentialsResponse = {
4135
4661
  oauth2Credentials: v1Oauth2Credential[];
4136
4662
  };
4137
4663
  export type v1ListPrivateKeyTagsRequest = {
4138
- /** Unique identifier for a given organization. */
4664
+ /** Unique identifier for a given Organization. */
4139
4665
  organizationId: string;
4140
4666
  };
4141
4667
  export type v1ListPrivateKeyTagsResponse = {
@@ -4153,7 +4679,7 @@ export type v1ListSecretsResponse = {
4153
4679
  secrets: v1SecretMetadata[];
4154
4680
  };
4155
4681
  export type v1ListSolTransactionHistoryRequest = {
4156
- /** Unique identifier for a given organization. */
4682
+ /** Unique identifier for a given Organization. */
4157
4683
  organizationId: string;
4158
4684
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
4159
4685
  address: string;
@@ -4168,7 +4694,7 @@ export type v1ListSolTransactionHistoryResponse = {
4168
4694
  pageInfo?: v1PageInfo;
4169
4695
  };
4170
4696
  export type v1ListSupportedAssetsRequest = {
4171
- /** Unique identifier for a given organization. */
4697
+ /** Unique identifier for a given Organization. */
4172
4698
  organizationId: string;
4173
4699
  /** 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. */
4174
4700
  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" | "eip155:4663" | "eip155:46630" | "eip155:5042" | "eip155:5042002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
@@ -4178,7 +4704,7 @@ export type v1ListSupportedAssetsResponse = {
4178
4704
  assets?: v1AssetMetadata[];
4179
4705
  };
4180
4706
  export type v1ListUserTagsRequest = {
4181
- /** Unique identifier for a given organization. */
4707
+ /** Unique identifier for a given Organization. */
4182
4708
  organizationId: string;
4183
4709
  };
4184
4710
  export type v1ListUserTagsResponse = {
@@ -4230,6 +4756,28 @@ export type v1MfaStatus = {
4230
4756
  /** An ordered list of authentication requirements needed to satisfy this MFA policy. */
4231
4757
  requiredMethods: v1RequiredAuthenticationMethod[];
4232
4758
  };
4759
+ export type v1MintJwtIntent = {
4760
+ /** Profile that defines which claims the JWT binds. Must match the set `profile_inputs` case. */
4761
+ profile: v1JwtProfile;
4762
+ /** Origin of the receiving service, as `https://<lowercase host>[:port]` with no default port, path, query, or fragment. At most 256 characters. Becomes the `aud` claim. */
4763
+ audience: string;
4764
+ /** Inputs for the `turnkey.io/http-authz/v1` profile. */
4765
+ httpAuthzV1?: v1HttpAuthzV1Inputs;
4766
+ };
4767
+ export type v1MintJwtRequest = {
4768
+ type: "ACTIVITY_TYPE_MINT_JWT";
4769
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4770
+ timestampMs: string;
4771
+ /** Unique identifier for a given Organization. */
4772
+ organizationId: string;
4773
+ parameters: v1MintJwtIntent;
4774
+ };
4775
+ export type v1MintJwtResult = {
4776
+ /** Signed JWT in JWS compact serialization. */
4777
+ jwt: string;
4778
+ /** Public JWK of the key that signed the JWT. Verifiers should pin this key or fetch it from the issuer's JWKS, not trust it from this response. */
4779
+ signingKeyJwk: string;
4780
+ };
4233
4781
  export type v1MnemonicLanguage = "MNEMONIC_LANGUAGE_ENGLISH" | "MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE" | "MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE" | "MNEMONIC_LANGUAGE_CZECH" | "MNEMONIC_LANGUAGE_FRENCH" | "MNEMONIC_LANGUAGE_ITALIAN" | "MNEMONIC_LANGUAGE_JAPANESE" | "MNEMONIC_LANGUAGE_KOREAN" | "MNEMONIC_LANGUAGE_SPANISH";
4234
4782
  export type v1NOOPCodegenAnchorResponse = {
4235
4783
  stamp: v1WebAuthnStamp;
@@ -4776,11 +5324,27 @@ export type v1Result = {
4776
5324
  createSwapQuoteResult?: v1CreateSwapQuoteResult;
4777
5325
  importSecretsResult?: v1ImportSecretsResult;
4778
5326
  exportSecretsResult?: v1ExportSecretsResult;
4779
- createVelocityControlResult?: v1CreateVelocityControlResult;
4780
- deleteVelocityControlResult?: v1DeleteVelocityControlResult;
5327
+ createUsageControlResult?: v1CreateUsageControlResult;
5328
+ deleteUsageControlsResult?: v1DeleteUsageControlsResult;
4781
5329
  updatePaymentMethodResult?: billingUpdatePaymentMethodResult;
4782
5330
  deleteSecretsResult?: v1DeleteSecretsResult;
4783
5331
  earnClaimRewardsResult?: v1EarnClaimRewardsResult;
5332
+ createSwapQuoteResultV2?: v1CreateSwapQuoteResultV2;
5333
+ createSubOrganizationResultV9?: v1CreateSubOrganizationResultV9;
5334
+ verifyWalletAuthenticatorResult?: v1VerifyWalletAuthenticatorResult;
5335
+ upsertSwapFeeSponsorshipLimitConfigResult?: v1UpsertSwapFeeSponsorshipLimitConfigResult;
5336
+ upsertSwapFixedRateLimitConfigResult?: v1UpsertSwapFixedRateLimitConfigResult;
5337
+ createFiatOnRampSessionResult?: v1CreateFiatOnRampSessionResult;
5338
+ createFiatOffRampSessionResult?: v1CreateFiatOffRampSessionResult;
5339
+ createWalletAuthenticatorsResult?: v1CreateWalletAuthenticatorsResult;
5340
+ deleteWalletAuthenticatorsResult?: v1DeleteWalletAuthenticatorsResult;
5341
+ enableSmsForCountriesResult?: v1EnableSmsForCountriesResult;
5342
+ disableSmsForCountriesResult?: v1DisableSmsForCountriesResult;
5343
+ createFiatRampCredentialResult?: v1CreateFiatRampCredentialResult;
5344
+ updateFiatRampCredentialResult?: v1UpdateFiatRampCredentialResult;
5345
+ createExternalSignerResultV1?: v1CreateExternalSignerResultV1;
5346
+ deleteExternalSignerResultV1?: v1DeleteExternalSignerResultV1;
5347
+ mintJwtResult?: v1MintJwtResult;
4784
5348
  };
4785
5349
  export type v1RevertChainEntry = {
4786
5350
  /** The contract address where the revert occurred. */
@@ -4858,6 +5422,22 @@ export type v1RootUserParamsV5 = {
4858
5422
  /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
4859
5423
  oauthProviders: v1OauthProviderParamsV2[];
4860
5424
  };
5425
+ export type v1RootUserParamsV6 = {
5426
+ /** Human-readable name for a User. */
5427
+ userName: string;
5428
+ /** The user's email address. */
5429
+ userEmail?: string;
5430
+ /** The user's phone number in E.164 format e.g. +13214567890 */
5431
+ userPhoneNumber?: string;
5432
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
5433
+ apiKeys: v1ApiKeyParamsV2[];
5434
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
5435
+ authenticators: v1AuthenticatorParamsV2[];
5436
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
5437
+ oauthProviders: v1OauthProviderParamsV2[];
5438
+ /** A list of wallet authenticators. This field, if not needed, should be an empty array in your request body. */
5439
+ walletAuthenticators: v1WalletAuthenticatorParams[];
5440
+ };
4861
5441
  export type v1SecretMetadata = {
4862
5442
  /** Unique identifier for the secret. */
4863
5443
  secretId: string;
@@ -4916,7 +5496,7 @@ export type v1SetOrganizationFeatureIntent = {
4916
5496
  /** Name of the feature to set */
4917
5497
  name: v1FeatureName;
4918
5498
  /** Optional value for the feature. Will override existing values if feature is already set. */
4919
- value: string;
5499
+ value?: string;
4920
5500
  };
4921
5501
  export type v1SetOrganizationFeatureRequest = {
4922
5502
  type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE";
@@ -4950,6 +5530,8 @@ export type v1SignRawPayloadIntentV2 = {
4950
5530
  encoding: v1PayloadEncoding;
4951
5531
  /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
4952
5532
  hashFunction: v1HashFunction;
5533
+ /** The public key of the external signer to use for signing the payload. Only needed for external signer requests. */
5534
+ externalSignerPubkey?: string;
4953
5535
  };
4954
5536
  export type v1SignRawPayloadRequest = {
4955
5537
  type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2";
@@ -4961,11 +5543,11 @@ export type v1SignRawPayloadRequest = {
4961
5543
  generateAppProofs?: boolean;
4962
5544
  };
4963
5545
  export type v1SignRawPayloadResult = {
4964
- /** Component of an ECSDA signature. */
5546
+ /** Component of a cryptographic signature, meaning varies based on signing scheme. */
4965
5547
  r: string;
4966
- /** Component of an ECSDA signature. */
5548
+ /** Component of a cryptographic signature, meaning varies based on signing scheme. */
4967
5549
  s: string;
4968
- /** Component of an ECSDA signature. */
5550
+ /** Recovery ID for ECDSA signatures, "00" otherwise. */
4969
5551
  v: string;
4970
5552
  };
4971
5553
  export type v1SignRawPayloadsIntent = {
@@ -4977,6 +5559,8 @@ export type v1SignRawPayloadsIntent = {
4977
5559
  encoding: v1PayloadEncoding;
4978
5560
  /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
4979
5561
  hashFunction: v1HashFunction;
5562
+ /** The public key of the external signer to use for signing the payloads. Only needed for external signer requests. */
5563
+ externalSignerPubkey?: string;
4980
5564
  };
4981
5565
  export type v1SignRawPayloadsRequest = {
4982
5566
  type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS";
@@ -5003,6 +5587,8 @@ export type v1SignTransactionIntentV2 = {
5003
5587
  /** Raw unsigned transaction to be signed */
5004
5588
  unsignedTransaction: string;
5005
5589
  type: v1TransactionType;
5590
+ /** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
5591
+ externalSignerPubkey?: string;
5006
5592
  };
5007
5593
  export type v1SignTransactionRequest = {
5008
5594
  type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2";
@@ -5030,6 +5616,14 @@ export type v1SignupUsageV2 = {
5030
5616
  authenticators?: v1AuthenticatorParamsV2[];
5031
5617
  oauthProviders?: v1OauthProviderParamsV2[];
5032
5618
  };
5619
+ export type v1SignupUsageV3 = {
5620
+ email?: string;
5621
+ phoneNumber?: string;
5622
+ apiKeys?: v1ApiKeyParamsV2[];
5623
+ authenticators?: v1AuthenticatorParamsV2[];
5624
+ oauthProviders?: v1OauthProviderParamsV2[];
5625
+ walletAuthenticators?: v1WalletAuthenticatorParams[];
5626
+ };
5033
5627
  export type v1SimpleClientExtensionResults = {
5034
5628
  appid?: boolean;
5035
5629
  appidExclude?: boolean;
@@ -5357,6 +5951,14 @@ export type v1StampLoginResult = {
5357
5951
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
5358
5952
  session: string;
5359
5953
  };
5954
+ export type v1SwapCharges = {
5955
+ /** Swap Execution: the provider's execution costs Turnkey pays, including DEX fees and price impact, the provider's fixed cost, destination gas, and provider fees. Present when fee_sponsorship is true. */
5956
+ executionUsd?: string;
5957
+ /** Swap Turnkey Fee: Turnkey's fee for a fee-sponsored swap. Present when fee_sponsorship is true. */
5958
+ turnkeyFeeUsd?: string;
5959
+ /** Swap Fixed Rate: the difference between the 1:1 rate and the market rate. Positive is a cost billed to you; negative is an earning credited against your transaction management charges at the end of the billing period. Present when fixed_rate is true. */
5960
+ fixedRateAdjustmentUsd?: string;
5961
+ };
5360
5962
  export type v1SwapError = {
5361
5963
  /** Stable machine-readable failure reason. One of ORIGIN_TRANSACTION_FAILED or PROVIDER_FILL_FAILED. */
5362
5964
  reason: string;
@@ -5385,6 +5987,32 @@ export type v1SwapQuote = {
5385
5987
  /** Provider-estimated completion time in seconds, when available. */
5386
5988
  estimatedTimeSeconds?: string;
5387
5989
  };
5990
+ export type v1SwapQuoteV2 = {
5991
+ /** 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. */
5992
+ quoteId: string;
5993
+ /** Swap provider that produced this quote. */
5994
+ provider: string;
5995
+ /** Estimated base-unit amount of the output asset. */
5996
+ outputAmount: string;
5997
+ /** Minimum acceptable base-unit amount of the output asset after slippage. */
5998
+ minOutputAmount: string;
5999
+ /** Quote expiration as a millisecond epoch string. */
6000
+ expiresAt: string;
6001
+ /** 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. */
6002
+ slippageBps?: string;
6003
+ /** Client fee in basis points applied for this pair. Informational only; already reflected in output_amount and min_output_amount. */
6004
+ clientFeeBps: string;
6005
+ /** Provider-estimated completion time in seconds, when available. */
6006
+ estimatedTimeSeconds?: string;
6007
+ /** Whether Turnkey pays the execution costs for this quote. */
6008
+ feeSponsorship: boolean;
6009
+ /** Whether this quote uses a 1:1 fixed rate. */
6010
+ fixedRate: boolean;
6011
+ /** Deprecated: use estimated_charges.fixed_rate_adjustment_usd. Estimated USD adjustment for the fixed rate. Present only for fixed-rate quotes. Positive is a cost billed to you; negative is an earning credited against your transaction management charges at the end of the billing period. Informational; the final amount is settled after execution. */
6012
+ estimatedFixedRateAdjustmentUsd?: string;
6013
+ /** Estimated charges this swap adds to your invoice, one field per swap line item. Present when fee_sponsorship or fixed_rate is true. Informational; the final amounts are settled after execution and reported by get_swap_status. */
6014
+ estimatedCharges?: v1SwapCharges;
6015
+ };
5388
6016
  export type v1SwapRefund = {
5389
6017
  /** CAIP-19 asset returned by the swap provider after a failed cross-chain fill. */
5390
6018
  asset: string;
@@ -5393,6 +6021,26 @@ export type v1SwapRefund = {
5393
6021
  /** Transaction that delivered the provider refund, when applicable. */
5394
6022
  txHash?: string;
5395
6023
  };
6024
+ export type v1SwapSpendingWindow = {
6025
+ /** Rolling window duration in minutes. */
6026
+ windowDurationMinutes: number;
6027
+ /** The parent's window limit, or the per-child limit when queried by a sub-organization. */
6028
+ windowLimitUsd: string;
6029
+ /** Settled spending in the current window. Fixed-rate earnings offset fixed-rate costs, and usage never goes below zero. Fixed-rate usage stays zero until final fixed-rate costs are recorded. */
6030
+ usageUsd: string;
6031
+ /** Remaining spending capacity, clamped to zero. For children, also capped by remaining parent capacity. Zero when the window is disabled. This is not a reservation or a guarantee of feature eligibility. */
6032
+ remainingUsd: string;
6033
+ /** Whether the saved spending window permits new swaps. */
6034
+ enabled: boolean;
6035
+ /** Configured per-child limit. Returned only when querying the billing parent. */
6036
+ subOrgWindowLimitUsd?: string;
6037
+ };
6038
+ export type v1SwapSponsorshipFeature = {
6039
+ /** Whether the billing parent holds this feature's signed permission, which enabling its spending window grants. Quotes can use the feature only when it is permitted and its window is enabled. */
6040
+ permitted: boolean;
6041
+ /** Absent until the billing parent saves a spending window. */
6042
+ window?: v1SwapSpendingWindow;
6043
+ };
5396
6044
  export type v1TagType = "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
5397
6045
  export type v1TokenUsage = {
5398
6046
  /** Type of token usage */
@@ -5402,6 +6050,7 @@ export type v1TokenUsage = {
5402
6050
  signup?: v1SignupUsage;
5403
6051
  login?: v1LoginUsage;
5404
6052
  signupV2?: v1SignupUsageV2;
6053
+ signupV3?: v1SignupUsageV3;
5405
6054
  };
5406
6055
  export type v1TransactionHistoryAsset = {
5407
6056
  /** The CAIP-19 asset identifier. */
@@ -5474,10 +6123,12 @@ export type v1TvcApp = {
5474
6123
  updatedAt: externaldatav1Timestamp;
5475
6124
  /** The deployment currently designated to receive traffic. Null if no deployment for this app is deployed. */
5476
6125
  liveDeploymentId?: string;
5477
- /** The public domain for ingress to this TVC App (in the format "app-<ID>.turnkey.cloud"). */
6126
+ /** The public domain for ingress to this TVC App (in the format "app-<ID>.app.turnkey.cloud"). May contain multiple comma-separated hostnames. */
5478
6127
  publicDomain: string;
5479
6128
  /** Whether this app permits debug-mode deployments. Set at app creation via CreateTvcAppIntent.enable_debug_mode_deployments and never updated thereafter. Debug-mode deployments expose logs and emit zero'd attestation PCRs, so remote attestation cannot succeed. The app's quorum key is therefore considered permanently insecure once enabled — a new app with a fresh quorum key must be created to return to a secure posture. */
5480
6129
  enableDebugModeDeployments: boolean;
6130
+ /** region this TVC App is deployed in, e.g. us-east-1 or ap-southeast-1. Set at app creation. */
6131
+ region: string;
5481
6132
  };
5482
6133
  export type v1TvcContainerSpec = {
5483
6134
  /** The URL for this container image. */
@@ -5702,6 +6353,29 @@ export type v1UpdateFiatOnRampCredentialResult = {
5702
6353
  /** Unique identifier of the Fiat On-Ramp credential that was updated */
5703
6354
  fiatOnRampCredentialId: string;
5704
6355
  };
6356
+ export type v1UpdateFiatRampCredentialIntent = {
6357
+ /** The ID of the fiat ramp credential to update */
6358
+ credentialId: string;
6359
+ /** The fiat ramp provider */
6360
+ provider: v1FiatRampProvider;
6361
+ /** Non-secret half of the provider credential. MoonPay: publishable key (pk_test_ or pk_live_). Coinbase: CDP API key ID */
6362
+ apiKey: string;
6363
+ /** Secret half of the provider credential, encrypted to our on-ramp encryption public key. MoonPay: secret key (sk_test_ or sk_live_). Coinbase: Ed25519 private key */
6364
+ encryptedSecret: string;
6365
+ };
6366
+ export type v1UpdateFiatRampCredentialRequest = {
6367
+ type: "ACTIVITY_TYPE_UPDATE_FIAT_RAMP_CREDENTIAL";
6368
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
6369
+ timestampMs: string;
6370
+ /** Unique identifier for a given Organization. */
6371
+ organizationId: string;
6372
+ parameters: v1UpdateFiatRampCredentialIntent;
6373
+ generateAppProofs?: boolean;
6374
+ };
6375
+ export type v1UpdateFiatRampCredentialResult = {
6376
+ /** Unique identifier of the fiat ramp credential that was updated */
6377
+ credentialId: string;
6378
+ };
5705
6379
  export type v1UpdateMfaPolicyIntent = {
5706
6380
  /** The ID of the User to update the MFA Policy for. */
5707
6381
  userId: string;
@@ -6052,6 +6726,7 @@ export type v1UpsertGasUsageConfigResult = {
6052
6726
  gasUsageConfigId: string;
6053
6727
  };
6054
6728
  export type v1UpsertSwapConfigIntent = {
6729
+ /** Organization-owned wallet account that receives swap fees. Required when fee_bps is set. Omit together with fee_bps to clear swap fees. */
6055
6730
  feeReceiverWalletAddress?: string;
6056
6731
  /** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
6057
6732
  feeBps?: string;
@@ -6072,6 +6747,130 @@ export type v1UpsertSwapConfigResult = {
6072
6747
  feeBps?: string;
6073
6748
  stableFeeBps?: string;
6074
6749
  };
6750
+ export type v1UpsertSwapFeeSponsorshipLimitConfigIntent = {
6751
+ /** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
6752
+ orgWindowLimitUsd: string;
6753
+ /** Positive USD limit for each sub-organization, no greater than the parent limit. */
6754
+ subOrgWindowLimitUsd: string;
6755
+ /** Positive rolling window duration in minutes, at most 153722867. */
6756
+ windowDurationMinutes: string;
6757
+ /** Whether this spending window permits new swaps. True also grants the billing parent's signed permission for the feature. False turns the saved window off, keeps its limits, and removes the permission. Granting or removing the permission needs root quorum. */
6758
+ enabled: boolean;
6759
+ };
6760
+ export type v1UpsertSwapFeeSponsorshipLimitConfigRequest = {
6761
+ type: "ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG";
6762
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
6763
+ timestampMs: string;
6764
+ /** Unique identifier for a given Organization. */
6765
+ organizationId: string;
6766
+ parameters: v1UpsertSwapFeeSponsorshipLimitConfigIntent;
6767
+ };
6768
+ export type v1UpsertSwapFeeSponsorshipLimitConfigResult = {
6769
+ /** Unique identifier of the organization the limit config was saved for. */
6770
+ organizationId: string;
6771
+ };
6772
+ export type v1UpsertSwapFixedRateLimitConfigIntent = {
6773
+ /** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
6774
+ orgWindowLimitUsd: string;
6775
+ /** Positive USD limit for each sub-organization, no greater than the parent limit. */
6776
+ subOrgWindowLimitUsd: string;
6777
+ /** Positive rolling window duration in minutes, at most 153722867. */
6778
+ windowDurationMinutes: string;
6779
+ /** Whether this spending window permits new swaps. True also grants the billing parent's signed permission for the feature. False turns the saved window off, keeps its limits, and removes the permission. Granting or removing the permission needs root quorum. */
6780
+ enabled: boolean;
6781
+ };
6782
+ export type v1UpsertSwapFixedRateLimitConfigRequest = {
6783
+ type: "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG";
6784
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
6785
+ timestampMs: string;
6786
+ /** Unique identifier for a given Organization. */
6787
+ organizationId: string;
6788
+ parameters: v1UpsertSwapFixedRateLimitConfigIntent;
6789
+ };
6790
+ export type v1UpsertSwapFixedRateLimitConfigResult = {
6791
+ /** Unique identifier of the organization the limit config was saved for. */
6792
+ organizationId: string;
6793
+ };
6794
+ export type v1UsageControlAggregation = {
6795
+ /** Method that aggregates matching data points. */
6796
+ method: v1UsageControlAggregationMethod;
6797
+ /** Comparison between the aggregate and the threshold. */
6798
+ operator: v1UsageControlAggregationOperator;
6799
+ /** Non-negative base-10 decimal string with at most 46 integer digits and 32 fractional digits. */
6800
+ threshold: string;
6801
+ /** Time window for the aggregation. */
6802
+ window: v1UsageControlAggregationWindow;
6803
+ /** Scope that partitions matching data before aggregation. */
6804
+ groupBy: v1UsageControlAggregationGroupBy;
6805
+ };
6806
+ export type v1UsageControlAggregationGroupBy = {
6807
+ /** Uses one shared bucket for the Organization. */
6808
+ organization?: v1UsageControlAggregationGroupByOrganization;
6809
+ /** Uses one bucket for each User. */
6810
+ user?: v1UsageControlAggregationGroupByUser;
6811
+ /** Uses one bucket for each Wallet. */
6812
+ wallet?: v1UsageControlAggregationGroupByWallet;
6813
+ };
6814
+ export type v1UsageControlAggregationGroupByOrganization = {};
6815
+ export type v1UsageControlAggregationGroupByUser = {};
6816
+ export type v1UsageControlAggregationGroupByWallet = {};
6817
+ export type v1UsageControlAggregationMethod = "USAGE_CONTROL_AGGREGATION_METHOD_SUM" | "USAGE_CONTROL_AGGREGATION_METHOD_COUNT";
6818
+ export type v1UsageControlAggregationOperator = "USAGE_CONTROL_AGGREGATION_OPERATOR_LESS_THAN" | "USAGE_CONTROL_AGGREGATION_OPERATOR_LESS_THAN_OR_EQUAL" | "USAGE_CONTROL_AGGREGATION_OPERATOR_EQUAL" | "USAGE_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN_OR_EQUAL" | "USAGE_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN";
6819
+ export type v1UsageControlAggregationWindow = {
6820
+ /** Uses a rolling time window. */
6821
+ rolling?: v1UsageControlAggregationWindowRolling;
6822
+ /** Uses all matching data without a time limit. */
6823
+ infinite?: v1UsageControlAggregationWindowInfinite;
6824
+ };
6825
+ export type v1UsageControlAggregationWindowInfinite = {};
6826
+ export type v1UsageControlAggregationWindowRolling = {
6827
+ /** Duration of the rolling window, in seconds. */
6828
+ duration: number;
6829
+ };
6830
+ export type v1UsageControlDataSource = {
6831
+ /** Uses transfers of the listed on-chain assets as input data. */
6832
+ chainAssetTransfer?: v1UsageControlDataSourceChainAssetTransfer;
6833
+ /** Uses executed Turnkey activities as input data. */
6834
+ activityExecution?: v1UsageControlDataSourceActivityExecution;
6835
+ };
6836
+ export type v1UsageControlDataSourceActivityExecution = {
6837
+ /** Filters activity executions by type. */
6838
+ filter?: v1UsageControlDataSourceActivityExecutionFilter;
6839
+ };
6840
+ export type v1UsageControlDataSourceActivityExecutionFilter = {
6841
+ /** Activity types whose executions are included. */
6842
+ activity?: v1UsageControlDataSourceFilterActivity[];
6843
+ };
6844
+ export type v1UsageControlDataSourceChainAssetTransfer = {
6845
+ /** Assets whose transfers are included in the data source. */
6846
+ definition: v1UsageControlDataSourceChainAssetTransferDefinition[];
6847
+ /** Filters asset transfers by activity type. */
6848
+ filter?: v1UsageControlDataSourceChainAssetTransferFilter;
6849
+ /** Selects when to measure an asset transfer. */
6850
+ phase?: v1UsageControlDataSourcePhase;
6851
+ };
6852
+ export type v1UsageControlDataSourceChainAssetTransferDefinition = {
6853
+ /** CAIP-19 identifier for the asset. */
6854
+ caip19: string;
6855
+ /** Integer between 0 and 32 (inclusive) that specifies the number of decimal places for the asset. */
6856
+ decimals: number;
6857
+ };
6858
+ export type v1UsageControlDataSourceChainAssetTransferFilter = {
6859
+ /** Activity types whose asset transfers are included. */
6860
+ activity?: v1UsageControlDataSourceFilterActivity[];
6861
+ };
6862
+ export type v1UsageControlDataSourceFilterActivity = {
6863
+ /** Name of an activity type to include, such as `ACTIVITY_TYPE_SOL_SEND_TRANSACTION`. */
6864
+ activityType: string;
6865
+ };
6866
+ export type v1UsageControlDataSourcePhase = {
6867
+ /** Measures the transfer when Turnkey signs the transaction and returns it to the user. */
6868
+ signature?: v1UsageControlDataSourcePhaseSignature;
6869
+ /** Reserved for future use. Measures the transfer after the transaction lands on chain. */
6870
+ submission?: v1UsageControlDataSourcePhaseSubmission;
6871
+ };
6872
+ export type v1UsageControlDataSourcePhaseSignature = {};
6873
+ export type v1UsageControlDataSourcePhaseSubmission = {};
6075
6874
  export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
6076
6875
  export type v1User = {
6077
6876
  /** Unique identifier for a given User. */
@@ -6094,6 +6893,8 @@ export type v1User = {
6094
6893
  updatedAt: externaldatav1Timestamp;
6095
6894
  /** A list of MFA Policies that define multi-factor authentication requirements for this user. */
6096
6895
  mfaPolicies: v1MfaPolicy[];
6896
+ /** A list of wallet authenticators (externally-owned Ethereum or Solana accounts used to authenticate). If not needed, this should be an empty array. */
6897
+ walletAuthenticators: v1WalletAuthenticator[];
6097
6898
  };
6098
6899
  export type v1UserParams = {
6099
6900
  /** Human-readable name for a User. */
@@ -6164,86 +6965,6 @@ export type v1ValidateTvcImageRequest = {
6164
6965
  export type v1ValidateTvcImageResponse = {
6165
6966
  resolvedImageDigest?: string;
6166
6967
  };
6167
- export type v1VelocityControlAggregation = {
6168
- /** Method that aggregates matching data points. */
6169
- method: v1VelocityControlAggregationMethod;
6170
- /** Comparison between the aggregate and the threshold. */
6171
- operator: v1VelocityControlAggregationOperator;
6172
- /** Non-negative base-10 decimal string with at most 38 total digits and 18 fractional digits. */
6173
- threshold: string;
6174
- /** Time window for the aggregation. */
6175
- window: v1VelocityControlAggregationWindow;
6176
- /** Scope that partitions matching data before aggregation. */
6177
- groupBy: v1VelocityControlAggregationGroupBy;
6178
- };
6179
- export type v1VelocityControlAggregationGroupBy = {
6180
- /** Uses one shared bucket for the Organization. */
6181
- organization?: v1VelocityControlAggregationGroupByOrganization;
6182
- /** Uses one bucket for each User. */
6183
- user?: v1VelocityControlAggregationGroupByUser;
6184
- /** Uses one bucket for each Wallet. */
6185
- wallet?: v1VelocityControlAggregationGroupByWallet;
6186
- };
6187
- export type v1VelocityControlAggregationGroupByOrganization = {};
6188
- export type v1VelocityControlAggregationGroupByUser = {};
6189
- export type v1VelocityControlAggregationGroupByWallet = {};
6190
- export type v1VelocityControlAggregationMethod = "VELOCITY_CONTROL_AGGREGATION_METHOD_SUM" | "VELOCITY_CONTROL_AGGREGATION_METHOD_COUNT";
6191
- export type v1VelocityControlAggregationOperator = "VELOCITY_CONTROL_AGGREGATION_OPERATOR_LESS_THAN" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_LESS_THAN_OR_EQUAL" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_EQUAL" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN_OR_EQUAL" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN";
6192
- export type v1VelocityControlAggregationWindow = {
6193
- /** Uses a rolling time window. */
6194
- rolling?: v1VelocityControlAggregationWindowRolling;
6195
- /** Uses all matching data without a time limit. */
6196
- infinite?: v1VelocityControlAggregationWindowInfinite;
6197
- };
6198
- export type v1VelocityControlAggregationWindowInfinite = {};
6199
- export type v1VelocityControlAggregationWindowRolling = {
6200
- /** Duration of the rolling window, in seconds, as a base-10 integer string. */
6201
- duration: string;
6202
- };
6203
- export type v1VelocityControlDataSource = {
6204
- /** Uses transfers of the listed on-chain assets as input data. */
6205
- chainAssetTransfer?: v1VelocityControlDataSourceChainAssetTransfer;
6206
- /** Uses executed Turnkey activities as input data. */
6207
- activityExecution?: v1VelocityControlDataSourceActivityExecution;
6208
- };
6209
- export type v1VelocityControlDataSourceActivityExecution = {
6210
- /** Filters activity executions by type. */
6211
- filter?: v1VelocityControlDataSourceActivityExecutionFilter;
6212
- };
6213
- export type v1VelocityControlDataSourceActivityExecutionFilter = {
6214
- /** Activity types whose executions are included. */
6215
- activity?: v1VelocityControlDataSourceFilterActivity[];
6216
- };
6217
- export type v1VelocityControlDataSourceChainAssetTransfer = {
6218
- /** Assets whose transfers are included in the data source. */
6219
- definition: v1VelocityControlDataSourceChainAssetTransferDefinition[];
6220
- /** Filters asset transfers by activity type. */
6221
- filter?: v1VelocityControlDataSourceChainAssetTransferFilter;
6222
- /** Selects when to measure an asset transfer. */
6223
- phase?: v1VelocityControlDataSourcePhase;
6224
- };
6225
- export type v1VelocityControlDataSourceChainAssetTransferDefinition = {
6226
- /** CAIP-19 identifier for the asset. */
6227
- caip19: string;
6228
- /** Base-10 integer string from 0 through 255 that specifies the number of decimal places for the asset. */
6229
- decimals: string;
6230
- };
6231
- export type v1VelocityControlDataSourceChainAssetTransferFilter = {
6232
- /** Activity types whose asset transfers are included. */
6233
- activity?: v1VelocityControlDataSourceFilterActivity[];
6234
- };
6235
- export type v1VelocityControlDataSourceFilterActivity = {
6236
- /** Name of an activity type to include, such as `ACTIVITY_TYPE_SOL_SEND_TRANSACTION`. */
6237
- activityType: string;
6238
- };
6239
- export type v1VelocityControlDataSourcePhase = {
6240
- /** Measures the transfer when Turnkey signs the transaction and returns it to the user. */
6241
- signature?: v1VelocityControlDataSourcePhaseSignature;
6242
- /** Reserved for future use. Measures the transfer after the transaction lands on chain. */
6243
- submission?: v1VelocityControlDataSourcePhaseSubmission;
6244
- };
6245
- export type v1VelocityControlDataSourcePhaseSignature = {};
6246
- export type v1VelocityControlDataSourcePhaseSubmission = {};
6247
6968
  export type v1VerifyOtpIntent = {
6248
6969
  /** ID representing the result of an init OTP activity. */
6249
6970
  otpId: string;
@@ -6266,6 +6987,18 @@ export type v1VerifyOtpResult = {
6266
6987
  /** 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) */
6267
6988
  verificationToken: string;
6268
6989
  };
6990
+ export type v1VerifyWalletAuthenticatorIntent = {
6991
+ /** SIWE or SIWS message. Ump accepts only the Turnkey supported login template. */
6992
+ message: string;
6993
+ /** Wallet signature over the message. Ethereum: 65-byte hex personal_sign (r || s || v). Solana: 64-byte hex ed25519 signature. */
6994
+ signature: string;
6995
+ /** Wallet public key that signed the message. Ethereum: sec1 secp256k1 hex, compressed or uncompressed. Solana: 32-byte ed25519 hex. */
6996
+ publicKey: string;
6997
+ };
6998
+ export type v1VerifyWalletAuthenticatorResult = {
6999
+ /** Enclave-signed JWT binding the wallet, the wallet public key, and the ephemeral P-256 session key. */
7000
+ verificationToken: string;
7001
+ };
6269
7002
  export type v1Vote = {
6270
7003
  /** Unique identifier for a given Vote object. */
6271
7004
  id: string;
@@ -6326,6 +7059,18 @@ export type v1WalletAccount = {
6326
7059
  /** The CAIP-2 namespace shared by the chains supported by this account (for example, 'eip155' or 'solana'). */
6327
7060
  caip2Prefix?: string;
6328
7061
  };
7062
+ export type v1WalletAuthenticator = {
7063
+ /** Unique identifier for a wallet authenticator. */
7064
+ walletAuthenticatorId: string;
7065
+ /** Network this authenticator belongs to. */
7066
+ type: v1WalletAuthenticatorType;
7067
+ /** Normalized account address. */
7068
+ address: string;
7069
+ /** SIWE/SIWS domain this authenticator is bound to. */
7070
+ domain: string;
7071
+ createdAt: externaldatav1Timestamp;
7072
+ updatedAt: externaldatav1Timestamp;
7073
+ };
6329
7074
  export type v1WalletKitSettingsParams = {
6330
7075
  /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
6331
7076
  enabledSocialProviders?: string[];
@@ -6555,6 +7300,50 @@ export type TGetGasUsageBody = {
6555
7300
  export type TGetGasUsageInput = {
6556
7301
  body: TGetGasUsageBody;
6557
7302
  };
7303
+ export type TGetIndicativeSwapQuoteResponse = {
7304
+ /** Swap provider that produced this quote. */
7305
+ provider: string;
7306
+ /** Estimated base-unit amount of the output asset. */
7307
+ outputAmount: string;
7308
+ /** Minimum base-unit amount of the output asset after slippage. */
7309
+ minOutputAmount: string;
7310
+ /** Slippage tolerance in basis points the provider applied. */
7311
+ slippageBps?: string;
7312
+ /** Client app fee in basis points included in this quote. "0" when no client fee applies. */
7313
+ clientFeeBps: string;
7314
+ /** Provider's estimated time to complete the swap, in seconds. */
7315
+ estimatedTimeSeconds?: string;
7316
+ /** Whether this quote has Turnkey paying the execution costs. */
7317
+ feeSponsorship: boolean;
7318
+ /** Whether this quote uses a 1:1 fixed rate. */
7319
+ fixedRate: boolean;
7320
+ /** Deprecated: use estimated_charges.fixed_rate_adjustment_usd. Estimated fixed-rate adjustment in USD from the customer's side: positive is a cost, negative an earning. Present only for fixed-rate quotes the provider priced. */
7321
+ estimatedFixedRateAdjustmentUsd?: string;
7322
+ /** Estimated charges this swap would add to your invoice, one field per swap line item. Present when fee_sponsorship or fixed_rate is true. */
7323
+ estimatedCharges?: v1SwapCharges;
7324
+ };
7325
+ export type TGetIndicativeSwapQuoteBody = {
7326
+ organizationId?: string;
7327
+ /** Wallet account address that would send the input asset. It must belong to the organization. */
7328
+ signWith: string;
7329
+ /** CAIP-19 asset ID for the input asset. */
7330
+ inputToken: string;
7331
+ /** CAIP-19 asset ID for the output asset. */
7332
+ outputToken: string;
7333
+ /** Exact base-unit amount of the input asset. */
7334
+ inputAmount: string;
7335
+ /** Maximum allowed slippage in basis points, at most 5000. When omitted, the provider chooses the slippage. */
7336
+ slippageBps?: string;
7337
+ /** Raw public address that would receive the output asset. Required for cross-protocol swaps and rejected otherwise. */
7338
+ destinationAddress?: string;
7339
+ /** Preview the price with Turnkey paying the provider fees. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
7340
+ feeSponsorship?: boolean;
7341
+ /** Preview a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
7342
+ fixedRate?: boolean;
7343
+ };
7344
+ export type TGetIndicativeSwapQuoteInput = {
7345
+ body: TGetIndicativeSwapQuoteBody;
7346
+ };
6558
7347
  export type TGetIpAllowlistResponse = {
6559
7348
  allowlist: v1IpAllowlist;
6560
7349
  };
@@ -6773,6 +7562,16 @@ export type TGetSmartContractInterfaceBody = {
6773
7562
  export type TGetSmartContractInterfaceInput = {
6774
7563
  body: TGetSmartContractInterfaceBody;
6775
7564
  };
7565
+ export type TGetSwapSponsorshipUsageResponse = {
7566
+ feeSponsorship: v1SwapSponsorshipFeature;
7567
+ fixedRate: v1SwapSponsorshipFeature;
7568
+ };
7569
+ export type TGetSwapSponsorshipUsageBody = {
7570
+ organizationId?: string;
7571
+ };
7572
+ export type TGetSwapSponsorshipUsageInput = {
7573
+ body: TGetSwapSponsorshipUsageBody;
7574
+ };
6776
7575
  export type TGetSwapStatusResponse = {
6777
7576
  /** Normalized swap status. One of PENDING, COMPLETED, FAILED. */
6778
7577
  status: string;
@@ -6800,6 +7599,8 @@ export type TGetSwapStatusResponse = {
6800
7599
  error?: v1SwapError;
6801
7600
  /** Address that receives the output asset. */
6802
7601
  destinationAddress?: string;
7602
+ /** Final charges this swap added to your invoice, one field per swap line item. Present once a fee-sponsored or fixed-rate swap's costs are settled; a swap that failed or was refunded settles at zero. */
7603
+ charges?: v1SwapCharges;
6803
7604
  };
6804
7605
  export type TGetSwapStatusBody = {
6805
7606
  organizationId?: string;
@@ -6855,7 +7656,7 @@ export type TGetTvcDeploymentProvisioningDetailsResponse = {
6855
7656
  /** The manifest envelope containing the TVC deployment's manifest and signatures. Present only when a deployment is awaiting provisioning. */
6856
7657
  manifestEnvelope?: string;
6857
7658
  /** Current provisioning state. */
6858
- provisioningState?: v1ProvisioningState;
7659
+ provisioningState: v1ProvisioningState;
6859
7660
  };
6860
7661
  export type TGetTvcDeploymentProvisioningDetailsBody = {
6861
7662
  organizationId?: string;
@@ -6865,6 +7666,25 @@ export type TGetTvcDeploymentProvisioningDetailsBody = {
6865
7666
  export type TGetTvcDeploymentProvisioningDetailsInput = {
6866
7667
  body: TGetTvcDeploymentProvisioningDetailsBody;
6867
7668
  };
7669
+ export type TGetTvcManifestGenerationInfoResponse = {
7670
+ nonce: number;
7671
+ namespace: string;
7672
+ pcr0: string;
7673
+ pcr1: string;
7674
+ pcr2: string;
7675
+ pcr3: string;
7676
+ qosVersion: string;
7677
+ defaultDnsResolvers?: string[];
7678
+ };
7679
+ export type TGetTvcManifestGenerationInfoBody = {
7680
+ organizationId?: string;
7681
+ appId: string;
7682
+ /** QOS version of the deployment. Defaults to the latest recommended TVC QOS version. */
7683
+ qosVersion?: string;
7684
+ };
7685
+ export type TGetTvcManifestGenerationInfoInput = {
7686
+ body: TGetTvcManifestGenerationInfoBody;
7687
+ };
6868
7688
  export type TGetTvcQosVersionsResponse = {
6869
7689
  /** QOS versions supported for new TVC deployments. */
6870
7690
  availableVersions: string[];
@@ -6931,6 +7751,18 @@ export type TGetWalletAddressBalancesBody = {
6931
7751
  export type TGetWalletAddressBalancesInput = {
6932
7752
  body: TGetWalletAddressBalancesBody;
6933
7753
  };
7754
+ export type TGetWalletAuthenticatorsResponse = {
7755
+ /** A list of wallet authenticators. */
7756
+ walletAuthenticators: v1WalletAuthenticator[];
7757
+ };
7758
+ export type TGetWalletAuthenticatorsBody = {
7759
+ organizationId?: string;
7760
+ /** Unique identifier for a given user. */
7761
+ userId: string;
7762
+ };
7763
+ export type TGetWalletAuthenticatorsInput = {
7764
+ body: TGetWalletAuthenticatorsBody;
7765
+ };
6934
7766
  export type TGetActivitiesResponse = {
6935
7767
  /** A list of activities. */
6936
7768
  activities: v1Activity[];
@@ -7051,6 +7883,28 @@ export type TListEthTransactionHistoryBody = {
7051
7883
  export type TListEthTransactionHistoryInput = {
7052
7884
  body: TListEthTransactionHistoryBody;
7053
7885
  };
7886
+ export type TGetFiatOffRampQuotesResponse = {
7887
+ /** One quote per provider and payment method that can serve this route. Empty when none can. */
7888
+ quotes: v1FiatOffRampQuote[];
7889
+ };
7890
+ export type TGetFiatOffRampQuotesBody = {
7891
+ organizationId?: string;
7892
+ /** Crypto amount the user wants to sell, in major units of the caip19 asset. For example, "0.05" for 0.05 ETH. The wallet address is not part of this query. */
7893
+ cryptoAmount: string;
7894
+ /** Fiat currency the user receives, for example USD. */
7895
+ fiatCurrencyCode: v1FiatRampCurrency;
7896
+ /** CAIP-19 asset to sell. Each value is supported for both Coinbase and MoonPay sell, the same set as on-ramp. */
7897
+ caip19: "eip155:1/slip44:60" | "eip155:10/slip44:60" | "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619" | "eip155:8453/slip44:60" | "eip155:42161/slip44:60" | "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85" | "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359" | "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
7898
+ /** ISO 3166-1 alpha-2 country code of the selling user, for example US. When omitted, the country is taken from the location of the request. */
7899
+ countryCode?: string;
7900
+ /** ISO 3166-2 subdivision code, for example NY. When omitted for a US visitor, the subdivision is taken from the location of the request. */
7901
+ countrySubdivisionCode?: string;
7902
+ /** Quote sandbox credentials when true. Defaults to false. */
7903
+ sandboxMode?: boolean;
7904
+ };
7905
+ export type TGetFiatOffRampQuotesInput = {
7906
+ body: TGetFiatOffRampQuotesBody;
7907
+ };
7054
7908
  export type TListFiatOnRampCredentialsResponse = {
7055
7909
  fiatOnRampCredentials: v1FiatOnRampCredential[];
7056
7910
  };
@@ -7060,6 +7914,28 @@ export type TListFiatOnRampCredentialsBody = {
7060
7914
  export type TListFiatOnRampCredentialsInput = {
7061
7915
  body: TListFiatOnRampCredentialsBody;
7062
7916
  };
7917
+ export type TGetFiatOnRampQuotesResponse = {
7918
+ /** One quote per provider and payment method that can serve this route. Empty when none can. */
7919
+ quotes: v1FiatOnRampQuote[];
7920
+ };
7921
+ export type TGetFiatOnRampQuotesBody = {
7922
+ organizationId?: string;
7923
+ /** Fiat amount the user wants to spend, in major units of fiat_currency_code. For example, "100" for 100 USD. */
7924
+ fiatAmount: string;
7925
+ /** Fiat currency for fiat_amount, for example USD. */
7926
+ fiatCurrencyCode: v1FiatRampCurrency;
7927
+ /** CAIP-19 asset to buy. */
7928
+ caip19: "eip155:1/slip44:60" | "eip155:10/slip44:60" | "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619" | "eip155:8453/slip44:60" | "eip155:42161/slip44:60" | "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85" | "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359" | "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
7929
+ /** ISO 3166-1 alpha-2 country code of the purchasing user, for example US. When omitted, the country is taken from the location of the request. */
7930
+ countryCode?: string;
7931
+ /** ISO 3166-2 subdivision code, for example NY. When omitted for a US visitor, the subdivision is taken from the location of the request. */
7932
+ countrySubdivisionCode?: string;
7933
+ /** Quote sandbox credentials when true. Defaults to false. */
7934
+ sandboxMode?: boolean;
7935
+ };
7936
+ export type TGetFiatOnRampQuotesInput = {
7937
+ body: TGetFiatOnRampQuotesBody;
7938
+ };
7063
7939
  export type TListOauth2CredentialsResponse = {
7064
7940
  oauth2Credentials: v1Oauth2Credential[];
7065
7941
  };
@@ -7144,7 +8020,7 @@ export type TGetSubOrgIdsResponse = {
7144
8020
  };
7145
8021
  export type TGetSubOrgIdsBody = {
7146
8022
  organizationId?: string;
7147
- /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'WALLET_ACCOUNT_ADDRESS' or 'PUBLIC_KEY' */
8023
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'WALLET_ACCOUNT_ADDRESS', 'WALLET_AUTH_TOKEN', or 'PUBLIC_KEY' */
7148
8024
  filterType?: string;
7149
8025
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
7150
8026
  filterValue?: string;
@@ -7184,6 +8060,8 @@ export type TGetTvcAppsResponse = {
7184
8060
  };
7185
8061
  export type TGetTvcAppsBody = {
7186
8062
  organizationId?: string;
8063
+ /** Filter TVC Apps by whether they have a live deployment. If omitted, all TVC Apps are returned. */
8064
+ isLive?: boolean;
7187
8065
  };
7188
8066
  export type TGetTvcAppsInput = {
7189
8067
  body: TGetTvcAppsBody;
@@ -7232,7 +8110,7 @@ export type TGetVerifiedSubOrgIdsResponse = {
7232
8110
  };
7233
8111
  export type TGetVerifiedSubOrgIdsBody = {
7234
8112
  organizationId?: string;
7235
- /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER'. */
8113
+ /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'PUBLIC_KEY', or 'WALLET_AUTH_TOKEN'. */
7236
8114
  filterType?: string;
7237
8115
  /** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
7238
8116
  filterValue?: string;
@@ -7292,7 +8170,7 @@ export type TValidateTvcImageInput = {
7292
8170
  body: TValidateTvcImageBody;
7293
8171
  };
7294
8172
  export type TGetWhoamiResponse = {
7295
- /** Unique identifier for a given organization. */
8173
+ /** Unique identifier for a given Organization. */
7296
8174
  organizationId: string;
7297
8175
  /** Human-readable name for an organization. */
7298
8176
  organizationName: string;
@@ -7382,6 +8260,43 @@ export type TCreateAuthenticatorsBody = {
7382
8260
  export type TCreateAuthenticatorsInput = {
7383
8261
  body: TCreateAuthenticatorsBody;
7384
8262
  };
8263
+ export type TCreateExternalSignerResponse = {
8264
+ activity: v1Activity;
8265
+ /** Hex-encoded public key of the created external signer. */
8266
+ publicKey: string;
8267
+ };
8268
+ export type TCreateExternalSignerBody = {
8269
+ timestampMs?: string;
8270
+ organizationId?: string;
8271
+ /** Human-readable name for the external signer. Must be between 1 and 256 characters. */
8272
+ name: string;
8273
+ /** Hex-encoded public key of the external signer. */
8274
+ publicKey: string;
8275
+ };
8276
+ export type TCreateExternalSignerInput = {
8277
+ body: TCreateExternalSignerBody;
8278
+ };
8279
+ export type TCreateFiatOffRampSessionResponse = {
8280
+ activity: v1Activity;
8281
+ /** URL of the fiat off-ramp session for the saved quote. */
8282
+ offRampUrl: string;
8283
+ /** Unique identifier used to retrieve transaction statuses for a given fiat off-ramp flow. */
8284
+ offRampTransactionId: string;
8285
+ };
8286
+ export type TCreateFiatOffRampSessionBody = {
8287
+ timestampMs?: string;
8288
+ organizationId?: string;
8289
+ /** Identifier of a saved fiat off-ramp quote. Returned by GetFiatOffRampQuotes. */
8290
+ quoteId: string;
8291
+ /** Wallet address for this sale. Coinbase uses it as the source address. MoonPay uses it as the refund address; the user deposits the crypto to MoonPay separately. */
8292
+ walletAddress: string;
8293
+ /** URL the provider redirects to after the user submits the sell. Required when the saved quote is from Coinbase. When set for MoonPay, it is included in the signed sell URL so MoonPay can append the deposit address. */
8294
+ redirectUrl?: string;
8295
+ generateAppProofs?: boolean;
8296
+ };
8297
+ export type TCreateFiatOffRampSessionInput = {
8298
+ body: TCreateFiatOffRampSessionBody;
8299
+ };
7385
8300
  export type TCreateFiatOnRampCredentialResponse = {
7386
8301
  activity: v1Activity;
7387
8302
  /** Unique identifier of the Fiat On-Ramp credential that was created */
@@ -7407,6 +8322,46 @@ export type TCreateFiatOnRampCredentialBody = {
7407
8322
  export type TCreateFiatOnRampCredentialInput = {
7408
8323
  body: TCreateFiatOnRampCredentialBody;
7409
8324
  };
8325
+ export type TCreateFiatOnRampSessionResponse = {
8326
+ activity: v1Activity;
8327
+ /** URL of the fiat on-ramp session for the saved quote. */
8328
+ onRampUrl: string;
8329
+ /** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
8330
+ onRampTransactionId: string;
8331
+ };
8332
+ export type TCreateFiatOnRampSessionBody = {
8333
+ timestampMs?: string;
8334
+ organizationId?: string;
8335
+ /** Identifier of a saved fiat on-ramp quote. Returned by GetFiatOnRampQuotes. */
8336
+ quoteId: string;
8337
+ /** Destination wallet address for the buy transaction. */
8338
+ walletAddress: string;
8339
+ generateAppProofs?: boolean;
8340
+ };
8341
+ export type TCreateFiatOnRampSessionInput = {
8342
+ body: TCreateFiatOnRampSessionBody;
8343
+ };
8344
+ export type TCreateFiatRampCredentialResponse = {
8345
+ activity: v1Activity;
8346
+ /** Unique identifier of the fiat ramp credential that was created */
8347
+ credentialId: string;
8348
+ };
8349
+ export type TCreateFiatRampCredentialBody = {
8350
+ timestampMs?: string;
8351
+ organizationId?: string;
8352
+ /** The fiat ramp provider */
8353
+ provider: v1FiatRampProvider;
8354
+ /** Non-secret half of the provider credential. MoonPay: publishable key (pk_test_ or pk_live_). Coinbase: CDP API key ID */
8355
+ apiKey: string;
8356
+ /** Secret half of the provider credential, encrypted to our on-ramp encryption public key. MoonPay: secret key (sk_test_ or sk_live_). Coinbase: Ed25519 private key */
8357
+ encryptedSecret: string;
8358
+ /** If the credential is a sandbox credential */
8359
+ sandboxMode?: boolean;
8360
+ generateAppProofs?: boolean;
8361
+ };
8362
+ export type TCreateFiatRampCredentialInput = {
8363
+ body: TCreateFiatRampCredentialBody;
8364
+ };
7410
8365
  export type TCreateInvitationsResponse = {
7411
8366
  activity: v1Activity;
7412
8367
  /** A list of Invitation IDs */
@@ -7551,6 +8506,10 @@ export type TCreatePrivateKeysBody = {
7551
8506
  organizationId?: string;
7552
8507
  /** A list of Private Keys. */
7553
8508
  privateKeys: v1PrivateKeyParams[];
8509
+ /** The public key of the external signer to use for creating the private keys. Only needed for external signer requests. */
8510
+ externalSignerPubkey?: string;
8511
+ /** The object ID of the wrapping key the external signer will use when creating the private keys. Only needed for external signer requests. */
8512
+ externalSignerWrappingKeyId?: string;
7554
8513
  generateAppProofs?: boolean;
7555
8514
  };
7556
8515
  export type TCreatePrivateKeysInput = {
@@ -7690,8 +8649,8 @@ export type TCreateSubOrganizationInput = {
7690
8649
  };
7691
8650
  export type TCreateSwapQuoteResponse = {
7692
8651
  activity: v1Activity;
7693
- /** 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. */
7694
- quotes: v1SwapQuote[];
8652
+ /** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap to bind execution. */
8653
+ quotes: v1SwapQuoteV2[];
7695
8654
  };
7696
8655
  export type TCreateSwapQuoteBody = {
7697
8656
  timestampMs?: string;
@@ -7708,6 +8667,10 @@ export type TCreateSwapQuoteBody = {
7708
8667
  slippageBps?: string;
7709
8668
  /** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
7710
8669
  destinationAddress?: string;
8670
+ /** When true, Turnkey pays the execution costs for this swap and invoices them to the billing parent organization as Swap Execution. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
8671
+ feeSponsorship?: boolean;
8672
+ /** When true, requests a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
8673
+ fixedRate?: boolean;
7711
8674
  generateAppProofs?: boolean;
7712
8675
  };
7713
8676
  export type TCreateSwapQuoteInput = {
@@ -7749,6 +8712,8 @@ export type TCreateTvcAppBody = {
7749
8712
  enableEgress?: boolean;
7750
8713
  /** When true, this app may create deployments in debug-mode. Debug-mode deployments expose logs and emit zero'd attestation PCRs, so remote attestation cannot succeed. Cannot be changed after app creation. Setting this true means the app's quorum key is considered permanently insecure, and a new app with a fresh quorum key must be created. Default if not provided: false. */
7751
8714
  enableDebugModeDeployments?: boolean;
8715
+ /** AWS region in which to place this TVC application. Allowed values: us-east-1, ap-southeast-1. Default if not provided: us-east-1. */
8716
+ region?: string;
7752
8717
  };
7753
8718
  export type TCreateTvcAppInput = {
7754
8719
  body: TCreateTvcAppBody;
@@ -7793,6 +8758,8 @@ export type TCreateTvcDeploymentBody = {
7793
8758
  instanceSizeCpus?: number;
7794
8759
  /** Optional desired instance memory size in GiB. */
7795
8760
  instanceSizeRam?: number;
8761
+ /** Optional client-generated QOS manifest. */
8762
+ qosManifest?: string;
7796
8763
  };
7797
8764
  export type TCreateTvcDeploymentInput = {
7798
8765
  body: TCreateTvcDeploymentBody;
@@ -7935,6 +8902,23 @@ export type TCreateWalletAccountsBody = {
7935
8902
  export type TCreateWalletAccountsInput = {
7936
8903
  body: TCreateWalletAccountsBody;
7937
8904
  };
8905
+ export type TCreateWalletAuthenticatorsResponse = {
8906
+ activity: v1Activity;
8907
+ /** IDs of the wallet authenticators created. */
8908
+ walletAuthenticatorIds: string[];
8909
+ };
8910
+ export type TCreateWalletAuthenticatorsBody = {
8911
+ timestampMs?: string;
8912
+ organizationId?: string;
8913
+ /** The ID of the User to add wallet authenticators to. */
8914
+ userId: string;
8915
+ /** Wallet authenticators to add. Each entry is a type, address, and domain. verification_token is optional. */
8916
+ walletAuthenticators: v1WalletAuthenticatorParams[];
8917
+ generateAppProofs?: boolean;
8918
+ };
8919
+ export type TCreateWalletAuthenticatorsInput = {
8920
+ body: TCreateWalletAuthenticatorsBody;
8921
+ };
7938
8922
  export type TCreateWebhookEndpointResponse = {
7939
8923
  activity: v1Activity;
7940
8924
  /** Unique identifier of the created webhook endpoint. */
@@ -7990,6 +8974,20 @@ export type TDeleteAuthenticatorsBody = {
7990
8974
  export type TDeleteAuthenticatorsInput = {
7991
8975
  body: TDeleteAuthenticatorsBody;
7992
8976
  };
8977
+ export type TDeleteExternalSignerResponse = {
8978
+ activity: v1Activity;
8979
+ /** Hex-encoded public key of the deleted external signer. */
8980
+ publicKey: string;
8981
+ };
8982
+ export type TDeleteExternalSignerBody = {
8983
+ timestampMs?: string;
8984
+ organizationId?: string;
8985
+ /** Hex-encoded public key of the external signer to delete. The external signer must belong to the organization. */
8986
+ publicKey: string;
8987
+ };
8988
+ export type TDeleteExternalSignerInput = {
8989
+ body: TDeleteExternalSignerBody;
8990
+ };
7993
8991
  export type TDeleteFiatOnRampCredentialResponse = {
7994
8992
  activity: v1Activity;
7995
8993
  /** Unique identifier of the Fiat On-Ramp credential that was deleted */
@@ -8255,6 +9253,23 @@ export type TDeleteWalletAccountsBody = {
8255
9253
  export type TDeleteWalletAccountsInput = {
8256
9254
  body: TDeleteWalletAccountsBody;
8257
9255
  };
9256
+ export type TDeleteWalletAuthenticatorsResponse = {
9257
+ activity: v1Activity;
9258
+ /** IDs of the wallet authenticators deleted. */
9259
+ walletAuthenticatorIds: string[];
9260
+ };
9261
+ export type TDeleteWalletAuthenticatorsBody = {
9262
+ timestampMs?: string;
9263
+ organizationId?: string;
9264
+ /** The ID of the User to remove wallet authenticators from. */
9265
+ userId: string;
9266
+ /** IDs of the wallet authenticators to delete. */
9267
+ walletAuthenticatorIds: string[];
9268
+ generateAppProofs?: boolean;
9269
+ };
9270
+ export type TDeleteWalletAuthenticatorsInput = {
9271
+ body: TDeleteWalletAuthenticatorsBody;
9272
+ };
8258
9273
  export type TDeleteWalletsResponse = {
8259
9274
  activity: v1Activity;
8260
9275
  /** A list of wallet unique identifiers that were removed */
@@ -8298,7 +9313,7 @@ export type TEarnClaimRewardsBody = {
8298
9313
  /** A Turnkey-managed wallet address the rewards are attributed to. The claim transaction is signed by this wallet and the Merkl Distributor transfers every reward token to it. */
8299
9314
  signWith: string;
8300
9315
  /** CAIP-2 chain to claim rewards on (e.g. 'eip155:8453'). Rewards accrue per chain; see ListEarnRewards. */
8301
- chainCaip2: string;
9316
+ caip2: string;
8302
9317
  /** Whether to sponsor this transaction via Gas Station. */
8303
9318
  sponsor?: boolean;
8304
9319
  generateAppProofs?: boolean;
@@ -8321,7 +9336,7 @@ export type TEarnDeployWrapperBody = {
8321
9336
  /** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
8322
9337
  vaultAddress: string;
8323
9338
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
8324
- chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
9339
+ caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
8325
9340
  /** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
8326
9341
  clientFeeBps: string;
8327
9342
  /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
@@ -8346,7 +9361,7 @@ export type TEarnDepositBody = {
8346
9361
  /** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
8347
9362
  assets: string;
8348
9363
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
8349
- chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
9364
+ caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
8350
9365
  /** Whether to sponsor this transaction via Gas Station. */
8351
9366
  sponsor?: boolean;
8352
9367
  generateAppProofs?: boolean;
@@ -8386,7 +9401,7 @@ export type TEarnWithdrawBody = {
8386
9401
  /** 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. */
8387
9402
  signWith: string;
8388
9403
  /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
8389
- chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
9404
+ caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
8390
9405
  /** Whether to sponsor this transaction via Gas Station. */
8391
9406
  sponsor?: boolean;
8392
9407
  /** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
@@ -8462,32 +9477,40 @@ export type TExecuteSwapResponse = {
8462
9477
  provider?: string;
8463
9478
  /** Quote identifier used for execution, if any. */
8464
9479
  quoteId?: string;
9480
+ /** Quoted base-unit amount of the output asset. Set by execute_swap V4. */
9481
+ outputAmount?: string;
9482
+ /** Minimum base-unit amount of the output asset after slippage. Set by execute_swap V4. */
9483
+ minOutputAmount?: string;
9484
+ /** Whether Turnkey paid the execution costs for this swap. Set by execute_swap V4. */
9485
+ feeSponsorship?: boolean;
9486
+ /** Whether this swap used a 1:1 fixed rate. Set by execute_swap V4. */
9487
+ fixedRate?: boolean;
9488
+ /** Estimated charges this swap adds to your invoice, one field per swap line item, from the executed quote. Present when fee_sponsorship or fixed_rate is true. Informational; the final amounts are settled after execution and reported by get_swap_status. Set by execute_swap V4. */
9489
+ estimatedCharges?: v1SwapCharges;
8465
9490
  };
8466
9491
  export type TExecuteSwapBody = {
8467
9492
  timestampMs?: string;
8468
9493
  organizationId?: string;
8469
- /** 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. */
8470
- quoteId: string;
8471
9494
  /** CAIP-19 asset ID for the input asset. */
8472
9495
  inputToken: string;
8473
- /** Exact base-unit amount of the input asset committed by the quote. */
9496
+ /** Exact base-unit amount of the input asset. */
8474
9497
  inputAmount: string;
8475
9498
  /** CAIP-19 asset ID for the output asset. */
8476
9499
  outputToken: string;
8477
- /** Exact quoted base-unit output amount committed by the quote. */
8478
- quotedOutputAmount: string;
8479
- /** Exact minimum base-unit output committed by the quote. */
8480
- minOutputAmount: string;
8481
- /** Whether the quoted transaction is sponsored. */
9500
+ /** Whether the swap transaction is gas sponsored. */
8482
9501
  sponsor: boolean;
9502
+ /** Raw public address that receives the output asset. Required for cross-protocol swaps and rejected otherwise. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
9503
+ destinationAddress?: string;
8483
9504
  /** 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. */
8484
9505
  evmNonce?: string;
8485
9506
  /** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
8486
9507
  recentBlockhash?: string;
8487
9508
  /** 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. */
8488
9509
  gasStationNonce?: string;
8489
- /** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
8490
- destinationAddress?: string;
9510
+ /** Execute a quote returned by create_swap_quote at its exact terms. */
9511
+ boundQuote?: v1ExecuteSwapBoundQuote;
9512
+ /** Execute at the provider's price when the activity is approved, within the signed slippage and optional price floor. */
9513
+ market?: v1ExecuteSwapMarketTerms;
8491
9514
  generateAppProofs?: boolean;
8492
9515
  };
8493
9516
  export type TExecuteSwapInput = {
@@ -8816,6 +9839,26 @@ export type TInitUserEmailRecoveryBody = {
8816
9839
  export type TInitUserEmailRecoveryInput = {
8817
9840
  body: TInitUserEmailRecoveryBody;
8818
9841
  };
9842
+ export type TMintJwtResponse = {
9843
+ activity: v1Activity;
9844
+ /** Signed JWT in JWS compact serialization. */
9845
+ jwt: string;
9846
+ /** Public JWK of the key that signed the JWT. Verifiers should pin this key or fetch it from the issuer's JWKS, not trust it from this response. */
9847
+ signingKeyJwk: string;
9848
+ };
9849
+ export type TMintJwtBody = {
9850
+ timestampMs?: string;
9851
+ organizationId?: string;
9852
+ /** Profile that defines which claims the JWT binds. Must match the set `profile_inputs` case. */
9853
+ profile: v1JwtProfile;
9854
+ /** Origin of the receiving service, as `https://<lowercase host>[:port]` with no default port, path, query, or fragment. At most 256 characters. Becomes the `aud` claim. */
9855
+ audience: string;
9856
+ /** Inputs for the `turnkey.io/http-authz/v1` profile. */
9857
+ httpAuthzV1?: v1HttpAuthzV1Inputs;
9858
+ };
9859
+ export type TMintJwtInput = {
9860
+ body: TMintJwtBody;
9861
+ };
8819
9862
  export type TOauthResponse = {
8820
9863
  activity: v1Activity;
8821
9864
  /** Unique identifier for the authenticating User. */
@@ -9091,7 +10134,7 @@ export type TSetOrganizationFeatureBody = {
9091
10134
  /** Name of the feature to set */
9092
10135
  name: v1FeatureName;
9093
10136
  /** Optional value for the feature. Will override existing values if feature is already set. */
9094
- value: string;
10137
+ value?: string;
9095
10138
  generateAppProofs?: boolean;
9096
10139
  };
9097
10140
  export type TSetOrganizationFeatureInput = {
@@ -9112,11 +10155,11 @@ export type TUpdateTvcAppLiveDeploymentInput = {
9112
10155
  };
9113
10156
  export type TSignRawPayloadResponse = {
9114
10157
  activity: v1Activity;
9115
- /** Component of an ECSDA signature. */
10158
+ /** Component of a cryptographic signature, meaning varies based on signing scheme. */
9116
10159
  r: string;
9117
- /** Component of an ECSDA signature. */
10160
+ /** Component of a cryptographic signature, meaning varies based on signing scheme. */
9118
10161
  s: string;
9119
- /** Component of an ECSDA signature. */
10162
+ /** Recovery ID for ECDSA signatures, "00" otherwise. */
9120
10163
  v: string;
9121
10164
  };
9122
10165
  export type TSignRawPayloadBody = {
@@ -9130,6 +10173,8 @@ export type TSignRawPayloadBody = {
9130
10173
  encoding: v1PayloadEncoding;
9131
10174
  /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
9132
10175
  hashFunction: v1HashFunction;
10176
+ /** The public key of the external signer to use for signing the payload. Only needed for external signer requests. */
10177
+ externalSignerPubkey?: string;
9133
10178
  generateAppProofs?: boolean;
9134
10179
  };
9135
10180
  export type TSignRawPayloadInput = {
@@ -9150,6 +10195,8 @@ export type TSignRawPayloadsBody = {
9150
10195
  encoding: v1PayloadEncoding;
9151
10196
  /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
9152
10197
  hashFunction: v1HashFunction;
10198
+ /** The public key of the external signer to use for signing the payloads. Only needed for external signer requests. */
10199
+ externalSignerPubkey?: string;
9153
10200
  generateAppProofs?: boolean;
9154
10201
  };
9155
10202
  export type TSignRawPayloadsInput = {
@@ -9167,6 +10214,8 @@ export type TSignTransactionBody = {
9167
10214
  /** Raw unsigned transaction to be signed */
9168
10215
  unsignedTransaction: string;
9169
10216
  type: v1TransactionType;
10217
+ /** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
10218
+ externalSignerPubkey?: string;
9170
10219
  generateAppProofs?: boolean;
9171
10220
  };
9172
10221
  export type TSignTransactionInput = {
@@ -9290,6 +10339,27 @@ export type TUpdateFiatOnRampCredentialBody = {
9290
10339
  export type TUpdateFiatOnRampCredentialInput = {
9291
10340
  body: TUpdateFiatOnRampCredentialBody;
9292
10341
  };
10342
+ export type TUpdateFiatRampCredentialResponse = {
10343
+ activity: v1Activity;
10344
+ /** Unique identifier of the fiat ramp credential that was updated */
10345
+ credentialId: string;
10346
+ };
10347
+ export type TUpdateFiatRampCredentialBody = {
10348
+ timestampMs?: string;
10349
+ organizationId?: string;
10350
+ /** The ID of the fiat ramp credential to update */
10351
+ credentialId: string;
10352
+ /** The fiat ramp provider */
10353
+ provider: v1FiatRampProvider;
10354
+ /** Non-secret half of the provider credential. MoonPay: publishable key (pk_test_ or pk_live_). Coinbase: CDP API key ID */
10355
+ apiKey: string;
10356
+ /** Secret half of the provider credential, encrypted to our on-ramp encryption public key. MoonPay: secret key (sk_test_ or sk_live_). Coinbase: Ed25519 private key */
10357
+ encryptedSecret: string;
10358
+ generateAppProofs?: boolean;
10359
+ };
10360
+ export type TUpdateFiatRampCredentialInput = {
10361
+ body: TUpdateFiatRampCredentialBody;
10362
+ };
9293
10363
  export type TUpdateMfaPolicyResponse = {
9294
10364
  activity: v1Activity;
9295
10365
  /** Unique identifier for a given MFA Policy. */
@@ -9565,6 +10635,7 @@ export type TUpsertSwapConfigResponse = {
9565
10635
  export type TUpsertSwapConfigBody = {
9566
10636
  timestampMs?: string;
9567
10637
  organizationId?: string;
10638
+ /** Organization-owned wallet account that receives swap fees. Required when fee_bps is set. Omit together with fee_bps to clear swap fees. */
9568
10639
  feeReceiverWalletAddress?: string;
9569
10640
  /** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
9570
10641
  feeBps?: string;
@@ -9575,6 +10646,46 @@ export type TUpsertSwapConfigBody = {
9575
10646
  export type TUpsertSwapConfigInput = {
9576
10647
  body: TUpsertSwapConfigBody;
9577
10648
  };
10649
+ export type TUpsertSwapFeeSponsorshipLimitConfigResponse = {
10650
+ activity: v1Activity;
10651
+ /** Unique identifier of the organization the limit config was saved for. */
10652
+ organizationId: string;
10653
+ };
10654
+ export type TUpsertSwapFeeSponsorshipLimitConfigBody = {
10655
+ timestampMs?: string;
10656
+ organizationId?: string;
10657
+ /** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
10658
+ orgWindowLimitUsd: string;
10659
+ /** Positive USD limit for each sub-organization, no greater than the parent limit. */
10660
+ subOrgWindowLimitUsd: string;
10661
+ /** Positive rolling window duration in minutes, at most 153722867. */
10662
+ windowDurationMinutes: string;
10663
+ /** Whether this spending window permits new swaps. True also grants the billing parent's signed permission for the feature. False turns the saved window off, keeps its limits, and removes the permission. Granting or removing the permission needs root quorum. */
10664
+ enabled: boolean;
10665
+ };
10666
+ export type TUpsertSwapFeeSponsorshipLimitConfigInput = {
10667
+ body: TUpsertSwapFeeSponsorshipLimitConfigBody;
10668
+ };
10669
+ export type TUpsertSwapFixedRateLimitConfigResponse = {
10670
+ activity: v1Activity;
10671
+ /** Unique identifier of the organization the limit config was saved for. */
10672
+ organizationId: string;
10673
+ };
10674
+ export type TUpsertSwapFixedRateLimitConfigBody = {
10675
+ timestampMs?: string;
10676
+ organizationId?: string;
10677
+ /** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
10678
+ orgWindowLimitUsd: string;
10679
+ /** Positive USD limit for each sub-organization, no greater than the parent limit. */
10680
+ subOrgWindowLimitUsd: string;
10681
+ /** Positive rolling window duration in minutes, at most 153722867. */
10682
+ windowDurationMinutes: string;
10683
+ /** Whether this spending window permits new swaps. True also grants the billing parent's signed permission for the feature. False turns the saved window off, keeps its limits, and removes the permission. Granting or removing the permission needs root quorum. */
10684
+ enabled: boolean;
10685
+ };
10686
+ export type TUpsertSwapFixedRateLimitConfigInput = {
10687
+ body: TUpsertSwapFixedRateLimitConfigBody;
10688
+ };
9578
10689
  export type TVerifyOtpResponse = {
9579
10690
  activity: v1Activity;
9580
10691
  /** 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) */
@@ -9594,6 +10705,25 @@ export type TVerifyOtpBody = {
9594
10705
  export type TVerifyOtpInput = {
9595
10706
  body: TVerifyOtpBody;
9596
10707
  };
10708
+ export type TVerifyWalletAuthenticatorResponse = {
10709
+ activity: v1Activity;
10710
+ /** Enclave-signed JWT binding the wallet, the wallet public key, and the ephemeral P-256 session key. */
10711
+ verificationToken: string;
10712
+ };
10713
+ export type TVerifyWalletAuthenticatorBody = {
10714
+ timestampMs?: string;
10715
+ organizationId?: string;
10716
+ /** SIWE or SIWS message. Ump accepts only the Turnkey supported login template. */
10717
+ message: string;
10718
+ /** Wallet signature over the message. Ethereum: 65-byte hex personal_sign (r || s || v). Solana: 64-byte hex ed25519 signature. */
10719
+ signature: string;
10720
+ /** Wallet public key that signed the message. Ethereum: sec1 secp256k1 hex, compressed or uncompressed. Solana: 32-byte ed25519 hex. */
10721
+ publicKey: string;
10722
+ generateAppProofs?: boolean;
10723
+ };
10724
+ export type TVerifyWalletAuthenticatorInput = {
10725
+ body: TVerifyWalletAuthenticatorBody;
10726
+ };
9597
10727
  export type TNOOPCodegenAnchorResponse = {
9598
10728
  activity: v1Activity;
9599
10729
  };
@@ -9715,9 +10845,11 @@ export type TSolSendTransactionV2Input = {
9715
10845
  };
9716
10846
  export type ProxyTGetAccountResponse = {
9717
10847
  organizationId?: string;
10848
+ /** True when the organization was matched by verified email and the OIDC token is not yet a registered identity on it. */
10849
+ requiresSocialLinking?: boolean;
9718
10850
  };
9719
10851
  export type ProxyTGetAccountBody = {
9720
- /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN' or 'PUBLIC_KEY' */
10852
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'PUBLIC_KEY', or 'WALLET_AUTH_TOKEN' */
9721
10853
  filterType: string;
9722
10854
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
9723
10855
  filterValue: string;
@@ -9725,6 +10857,8 @@ export type ProxyTGetAccountBody = {
9725
10857
  verificationToken?: string;
9726
10858
  /** OIDC token to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. Needed for social linking when verification_token is not available. */
9727
10859
  oidcToken?: string;
10860
+ /** Whether to include requires_social_linking in the response. Only applies when filter_type is 'OIDC_TOKEN'. */
10861
+ includeRequiresSocialLinking?: boolean;
9728
10862
  };
9729
10863
  export type ProxyTGetAccountInput = {
9730
10864
  body: ProxyTGetAccountBody;
@@ -9925,6 +11059,53 @@ export type ProxyTSignupV2Body = {
9925
11059
  export type ProxyTSignupV2Input = {
9926
11060
  body: ProxyTSignupV2Body;
9927
11061
  };
11062
+ export type ProxyTSignupV3Response = {
11063
+ organizationId: string;
11064
+ /** Wallet created for the sub-organization, if provided in the request */
11065
+ wallet?: v1WalletResult;
11066
+ /** Root user ID created for this sub-organization */
11067
+ userId: string;
11068
+ /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
11069
+ appProofs?: v1AppProof[];
11070
+ };
11071
+ export type ProxyTSignupV3Body = {
11072
+ userEmail?: string;
11073
+ userPhoneNumber?: string;
11074
+ userTag?: string;
11075
+ userName?: string;
11076
+ organizationName?: string;
11077
+ verificationToken?: string;
11078
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
11079
+ apiKeys: v1ApiKeyParamsV2[];
11080
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
11081
+ authenticators: v1AuthenticatorParamsV2[];
11082
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
11083
+ oauthProviders: v1OauthProviderParamsV2[];
11084
+ /** The wallet to create for the sub-organization */
11085
+ wallet?: v1WalletParams;
11086
+ /** Optional signature proving authorization for this signup. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
11087
+ clientSignature?: v1ClientSignature;
11088
+ /** A list of wallet authenticators. This field, if not needed, should be an empty array in your request body. */
11089
+ walletAuthenticators: v1WalletAuthenticatorParams[];
11090
+ };
11091
+ export type ProxyTSignupV3Input = {
11092
+ body: ProxyTSignupV3Body;
11093
+ };
11094
+ export type ProxyTVerifyWalletAuthenticatorResponse = {
11095
+ /** Enclave-signed JWT binding the wallet, the wallet public key, and the ephemeral P-256 session key. */
11096
+ verificationToken: string;
11097
+ };
11098
+ export type ProxyTVerifyWalletAuthenticatorBody = {
11099
+ /** SIWE or SIWS message. Ump accepts only the Turnkey supported login template. */
11100
+ message: string;
11101
+ /** Wallet signature over the message. Ethereum: 65-byte hex personal_sign (r || s || v). Solana: 64-byte hex ed25519 signature. */
11102
+ signature: string;
11103
+ /** Wallet public key that signed the message. Ethereum: sec1 secp256k1 hex, compressed or uncompressed. Solana: 32-byte ed25519 hex. */
11104
+ publicKey: string;
11105
+ };
11106
+ export type ProxyTVerifyWalletAuthenticatorInput = {
11107
+ body: ProxyTVerifyWalletAuthenticatorBody;
11108
+ };
9928
11109
  export type ProxyTGetWalletKitClientParamsResponse = {
9929
11110
  /** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
9930
11111
  turnstileSiteKey?: string;
@@ -9951,4 +11132,8 @@ export type ProxyTGetWalletKitConfigBody = {};
9951
11132
  export type ProxyTGetWalletKitConfigInput = {
9952
11133
  body: ProxyTGetWalletKitConfigBody;
9953
11134
  };
11135
+ export declare const OnRampCaip19Values: readonly ["eip155:1/slip44:60", "eip155:10/slip44:60", "eip155:137/erc20:0x7ceb23fd6bc0add59e62ac25578270cff1b9f619", "eip155:8453/slip44:60", "eip155:42161/slip44:60", "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "eip155:10/erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85", "eip155:137/erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", "eip155:8453/erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "eip155:42161/erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"];
11136
+ type _AssertExtends<A extends B, B> = A;
11137
+ export type _AssertOnRampCaip19ValuesInSync = _AssertExtends<TGetFiatOnRampQuotesBody["caip19"], (typeof OnRampCaip19Values)[number]>;
11138
+ export {};
9954
11139
  //# sourceMappingURL=types.d.ts.map