@turnkey/sdk-types 1.11.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;
@@ -268,6 +268,35 @@ export type v1SignupV2Response = {
268
268
  /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
269
269
  appProofs?: v1AppProof[];
270
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
+ };
271
300
  export type v1VerifyOtpRequest = {
272
301
  type: "ACTIVITY_TYPE_VERIFY_OTP_V2";
273
302
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
@@ -291,6 +320,19 @@ export type v1VerifyOtpV2Response = {
291
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) */
292
321
  verificationToken: string;
293
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
+ };
294
336
  export type v1WalletAccountParams = {
295
337
  /** Cryptographic curve used to generate a wallet Account. */
296
338
  curve: v1Curve;
@@ -303,6 +345,17 @@ export type v1WalletAccountParams = {
303
345
  /** Optional human-readable name for the account. */
304
346
  name?: string;
305
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";
306
359
  export type v1WalletParams = {
307
360
  /** Human-readable name for a Wallet. */
308
361
  walletName: string;
@@ -514,7 +567,7 @@ export type v1ActivityResponse = {
514
567
  activity: v1Activity;
515
568
  };
516
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";
517
- 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_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_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG" | "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_SESSION";
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";
518
571
  export type v1ApiKey = {
519
572
  /** A User credential that can be used to authenticate to Turnkey. */
520
573
  credential: externaldatav1Credential;
@@ -608,7 +661,7 @@ export type v1AuthenticationMethodParams = {
608
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. */
609
662
  id?: string;
610
663
  };
611
- 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";
612
665
  export type v1Authenticator = {
613
666
  /** Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
614
667
  transports: v1AuthenticatorTransport[];
@@ -758,6 +811,47 @@ export type v1CreateAuthenticatorsResult = {
758
811
  /** A list of Authenticator IDs. */
759
812
  authenticatorIds: string[];
760
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
+ };
761
855
  export type v1CreateFiatOnRampCredentialIntent = {
762
856
  /** The fiat on-ramp provider */
763
857
  onrampProvider: v1FiatOnRampProvider;
@@ -786,17 +880,49 @@ export type v1CreateFiatOnRampCredentialResult = {
786
880
  fiatOnRampCredentialId: string;
787
881
  };
788
882
  export type v1CreateFiatOnRampSessionIntent = {
789
- /** Identifier of a saved fiat on-ramp quote. Returned by GetFiatOnRampQuote. */
883
+ /** Identifier of a saved fiat on-ramp quote. Returned by GetFiatOnRampQuotes. */
790
884
  quoteId: string;
791
885
  /** Destination wallet address for the buy transaction. */
792
886
  walletAddress: string;
793
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
+ };
794
897
  export type v1CreateFiatOnRampSessionResult = {
795
898
  /** URL of the fiat on-ramp session for the saved quote. */
796
899
  onRampUrl: string;
797
900
  /** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
798
901
  onRampTransactionId: string;
799
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
+ };
800
926
  export type v1CreateInvitationsIntent = {
801
927
  /** A list of Invitations. */
802
928
  invitations: v1InvitationParams[];
@@ -1004,8 +1130,10 @@ export type v1CreatePrivateKeysIntent = {
1004
1130
  export type v1CreatePrivateKeysIntentV2 = {
1005
1131
  /** A list of Private Keys. */
1006
1132
  privateKeys: v1PrivateKeyParams[];
1007
- /** The public key of the external signer to use for creating the private keys. */
1133
+ /** The public key of the external signer to use for creating the private keys. Only needed for external signer requests. */
1008
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;
1009
1137
  };
1010
1138
  export type v1CreatePrivateKeysRequest = {
1011
1139
  type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2";
@@ -1263,6 +1391,28 @@ export type v1CreateSubOrganizationIntentV8 = {
1263
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. */
1264
1392
  clientSignature?: v1ClientSignature;
1265
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
+ };
1266
1416
  export type v1CreateSubOrganizationRequest = {
1267
1417
  type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8";
1268
1418
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
@@ -1307,6 +1457,11 @@ export type v1CreateSubOrganizationResultV8 = {
1307
1457
  wallet?: v1WalletResult;
1308
1458
  rootUserIds?: string[];
1309
1459
  };
1460
+ export type v1CreateSubOrganizationResultV9 = {
1461
+ subOrganizationId: string;
1462
+ wallet?: v1WalletResult;
1463
+ rootUserIds?: string[];
1464
+ };
1310
1465
  export type v1CreateSwapQuoteIntent = {
1311
1466
  /** Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
1312
1467
  signWith: string;
@@ -1346,7 +1501,7 @@ export type v1CreateSwapQuoteIntentV3 = {
1346
1501
  slippageBps?: string;
1347
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. */
1348
1503
  destinationAddress?: string;
1349
- /** When true, Turnkey pays the provider fees for this swap and invoices them to the billing parent organization. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
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. */
1350
1505
  feeSponsorship?: boolean;
1351
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. */
1352
1507
  fixedRate?: boolean;
@@ -1385,6 +1540,8 @@ export type v1CreateTvcAppIntent = {
1385
1540
  enableEgress?: boolean;
1386
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. */
1387
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;
1388
1545
  };
1389
1546
  export type v1CreateTvcAppRequest = {
1390
1547
  type: "ACTIVITY_TYPE_CREATE_TVC_APP";
@@ -1441,6 +1598,8 @@ export type v1CreateTvcDeploymentIntent = {
1441
1598
  instanceSizeCpus?: number;
1442
1599
  /** Optional desired instance memory size in GiB. */
1443
1600
  instanceSizeRam?: number;
1601
+ /** Optional client-generated QOS manifest. */
1602
+ qosManifest?: string;
1444
1603
  };
1445
1604
  export type v1CreateTvcDeploymentRequest = {
1446
1605
  type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
@@ -1526,6 +1685,19 @@ export type v1CreateTvcQuorumKeyResult = {
1526
1685
  /** The unique identifier(s) for the generated TVC quorum key shares */
1527
1686
  shareIds: string[];
1528
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
+ };
1529
1701
  export type v1CreateUserTagIntent = {
1530
1702
  /** Human-readable name for a User Tag. */
1531
1703
  userTagName: string;
@@ -1576,19 +1748,6 @@ export type v1CreateUsersResult = {
1576
1748
  /** A list of User IDs. */
1577
1749
  userIds: string[];
1578
1750
  };
1579
- export type v1CreateVelocityControlIntent = {
1580
- /** Human-readable name for the Velocity Control. */
1581
- name: string;
1582
- /** Data source for the Velocity Control. */
1583
- dataSource: v1VelocityControlDataSource;
1584
- /** Aggregation expression that the Velocity Control evaluates. */
1585
- aggregation: v1VelocityControlAggregation;
1586
- /** Identifier for the Velocity Control. Policies reference it as `controls.<identifier>`. It must be unique within the Organization. */
1587
- identifier: string;
1588
- };
1589
- export type v1CreateVelocityControlResult = {
1590
- velocityControlId: string;
1591
- };
1592
1751
  export type v1CreateWalletAccountsIntent = {
1593
1752
  /** Unique identifier for a given Wallet. */
1594
1753
  walletId: string;
@@ -1610,6 +1769,25 @@ export type v1CreateWalletAccountsResult = {
1610
1769
  /** A list of derived addresses. */
1611
1770
  addresses: string[];
1612
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
+ };
1613
1791
  export type v1CreateWalletIntent = {
1614
1792
  /** Human-readable name for a Wallet. */
1615
1793
  walletName: string;
@@ -1704,6 +1882,22 @@ export type v1DeleteAuthenticatorsResult = {
1704
1882
  /** Unique identifier for a given Authenticator. */
1705
1883
  authenticatorIds: string[];
1706
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
+ };
1707
1901
  export type v1DeleteFiatOnRampCredentialIntent = {
1708
1902
  /** The ID of the fiat on-ramp credential to delete */
1709
1903
  fiatOnrampCredentialId: string;
@@ -1956,6 +2150,14 @@ export type v1DeleteTvcDeploymentResult = {
1956
2150
  /** The unique identifier of the deleted TVC deployment. */
1957
2151
  deploymentId: string;
1958
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
+ };
1959
2161
  export type v1DeleteUserTagsIntent = {
1960
2162
  /** A list of User Tag IDs. */
1961
2163
  userTagIds: string[];
@@ -1992,14 +2194,6 @@ export type v1DeleteUsersResult = {
1992
2194
  /** A list of User IDs. */
1993
2195
  userIds: string[];
1994
2196
  };
1995
- export type v1DeleteVelocityControlsIntent = {
1996
- /** List of 1 to 32 unique identifiers for Velocity Controls within an Organization. */
1997
- velocityControlIds: string[];
1998
- };
1999
- export type v1DeleteVelocityControlsResult = {
2000
- /** A list of unique identifiers for the deleted Velocity Controls. */
2001
- velocityControlIds: string[];
2002
- };
2003
2197
  export type v1DeleteWalletAccountsIntent = {
2004
2198
  /** List of unique identifiers for wallet accounts within an organization */
2005
2199
  walletAccountIds: string[];
@@ -2019,6 +2213,25 @@ export type v1DeleteWalletAccountsResult = {
2019
2213
  /** A list of wallet account unique identifiers that were removed */
2020
2214
  walletAccountIds: string[];
2021
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
+ };
2022
2235
  export type v1DeleteWalletsIntent = {
2023
2236
  /** List of unique identifiers for wallets within an organization */
2024
2237
  walletIds: string[];
@@ -2077,6 +2290,11 @@ export type v1DisablePrivateKeyResult = {
2077
2290
  /** Unique identifier for a given Private Key. */
2078
2291
  privateKeyId: string;
2079
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 = {};
2080
2298
  export type v1EarnClaimRewardsIntent = {
2081
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. */
2082
2300
  signWith: string;
@@ -2514,6 +2732,11 @@ export type v1EnableAuthProxyResult = {
2514
2732
  /** A User ID with permission to initiate authentication. */
2515
2733
  userId: string;
2516
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 = {};
2517
2740
  export type v1EthCallParams = {
2518
2741
  /** Recipient address as a hex string with 0x prefix. */
2519
2742
  to: string;
@@ -2654,6 +2877,14 @@ export type v1EthUndelegate7702Result = {
2654
2877
  /** The send_transaction_status ID associated with the undelegation transaction submission */
2655
2878
  sendTransactionStatusId: string;
2656
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
+ };
2657
2888
  export type v1ExecuteSwapIntent = {
2658
2889
  /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
2659
2890
  inputToken: string;
@@ -2718,13 +2949,47 @@ export type v1ExecuteSwapIntentV3 = {
2718
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. */
2719
2950
  destinationAddress?: string;
2720
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
+ };
2721
2986
  export type v1ExecuteSwapRequest = {
2722
- type: "ACTIVITY_TYPE_EXECUTE_SWAP_V3";
2987
+ type: "ACTIVITY_TYPE_EXECUTE_SWAP_V4";
2723
2988
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2724
2989
  timestampMs: string;
2725
2990
  /** Unique identifier for a given Organization. */
2726
2991
  organizationId: string;
2727
- parameters: v1ExecuteSwapIntentV3;
2992
+ parameters: v1ExecuteSwapIntentV4;
2728
2993
  generateAppProofs?: boolean;
2729
2994
  };
2730
2995
  export type v1ExecuteSwapResult = {
@@ -2734,6 +2999,16 @@ export type v1ExecuteSwapResult = {
2734
2999
  provider?: string;
2735
3000
  /** Quote identifier used for execution, if any. */
2736
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;
2737
3012
  };
2738
3013
  export type v1ExportPrivateKeyIntent = {
2739
3014
  /** Unique identifier for a given Private Key. */
@@ -2831,22 +3106,40 @@ export type v1Feature = {
2831
3106
  value?: string;
2832
3107
  };
2833
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
+ };
2834
3131
  export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
2835
3132
  export type v1FiatOnRampCredential = {
2836
- /** Unique identifier for a given Fiat On-Ramp Credential. */
2837
- fiatOnrampCredentialId: string;
3133
+ /** Unique identifier for a given fiat ramp credential. */
3134
+ credentialId: string;
2838
3135
  /** Unique identifier for an Organization. */
2839
3136
  organizationId: string;
2840
- /** The fiat on-ramp provider. */
2841
- onrampProvider: v1FiatOnRampProvider;
2842
- /** Project ID for the on-ramp provider. Some providers, like Coinbase, require this additional identifier. */
2843
- projectId?: string;
2844
- /** Publishable API key for the on-ramp provider. */
2845
- publishableApiKey: string;
2846
- /** Secret API key for the on-ramp provider encrypted to our on-ramp encryption public key. */
2847
- encryptedSecretApiKey: string;
2848
- /** Private API key for the on-ramp provider encrypted to our on-ramp encryption public key. Some providers, like Coinbase, require this additional key. */
2849
- 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;
2850
3143
  /** If the on-ramp credential is a sandbox credential. */
2851
3144
  sandboxMode?: boolean;
2852
3145
  createdAt: externaldatav1Timestamp;
@@ -2856,6 +3149,39 @@ export type v1FiatOnRampCryptoCurrency = "FIAT_ON_RAMP_CRYPTO_CURRENCY_BTC" | "F
2856
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";
2857
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";
2858
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";
2859
3185
  export type v1GetActivePoliciesRequest = {
2860
3186
  /** Unique identifier for a given Organization. */
2861
3187
  organizationId: string;
@@ -3021,6 +3347,46 @@ export type v1GetEarnWithdrawStatusResponse = {
3021
3347
  /** Reason the withdrawal transaction failed, when status is FAILED. */
3022
3348
  error?: string;
3023
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
+ };
3024
3390
  export type v1GetGasUsageRequest = {
3025
3391
  /** Unique identifier for a given Organization. */
3026
3392
  organizationId: string;
@@ -3033,6 +3399,48 @@ export type v1GetGasUsageResponse = {
3033
3399
  /** The total gas usage (in USD) of all sponsored transactions processed over the last `window_duration_minutes` */
3034
3400
  usageUsd: string;
3035
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
+ };
3036
3444
  export type v1GetIpAllowlistRequest = {
3037
3445
  /** Unique identifier for a given Organization. */
3038
3446
  organizationId: string;
@@ -3241,7 +3649,7 @@ export type v1GetSmartContractInterfacesResponse = {
3241
3649
  export type v1GetSubOrgIdsRequest = {
3242
3650
  /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
3243
3651
  organizationId: string;
3244
- /** 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' */
3245
3653
  filterType?: string;
3246
3654
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
3247
3655
  filterValue?: string;
@@ -3293,6 +3701,8 @@ export type v1GetSwapStatusResponse = {
3293
3701
  error?: v1SwapError;
3294
3702
  /** Address that receives the output asset. */
3295
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;
3296
3706
  };
3297
3707
  export type v1GetTvcAppDeploymentsRequest = {
3298
3708
  /** Unique identifier for a given Organization. */
@@ -3362,6 +3772,22 @@ export type v1GetTvcDeploymentResponse = {
3362
3772
  /** Details about a single TVC Deployment */
3363
3773
  tvcDeployment: v1TvcDeployment;
3364
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
+ };
3365
3791
  export type v1GetTvcOperatorsRequest = {
3366
3792
  /** Unique identifier for a given Organization. */
3367
3793
  organizationId: string;
@@ -3407,7 +3833,7 @@ export type v1GetUsersResponse = {
3407
3833
  export type v1GetVerifiedSubOrgIdsRequest = {
3408
3834
  /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
3409
3835
  organizationId: string;
3410
- /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', or 'PUBLIC_KEY' */
3836
+ /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'PUBLIC_KEY', or 'WALLET_AUTH_TOKEN'. */
3411
3837
  filterType?: string;
3412
3838
  /** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
3413
3839
  filterValue?: string;
@@ -3458,6 +3884,16 @@ export type v1GetWalletAddressBalancesResponse = {
3458
3884
  /** List of asset balances */
3459
3885
  balances?: v1AssetBalance[];
3460
3886
  };
3887
+ export type v1GetWalletAuthenticatorsRequest = {
3888
+ /** Unique identifier for a given organization. */
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
+ };
3461
3897
  export type v1GetWalletRequest = {
3462
3898
  /** Unique identifier for a given Organization. */
3463
3899
  organizationId: string;
@@ -3491,6 +3927,26 @@ export type v1GetWhoamiResponse = {
3491
3927
  username: string;
3492
3928
  };
3493
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
+ };
3494
3950
  export type v1ImportPrivateKeyIntent = {
3495
3951
  /** The ID of the User importing a Private Key. */
3496
3952
  userId: string;
@@ -4041,17 +4497,30 @@ export type v1Intent = {
4041
4497
  createSwapQuoteIntent?: v1CreateSwapQuoteIntent;
4042
4498
  importSecretsIntent?: v1ImportSecretsIntent;
4043
4499
  exportSecretsIntent?: v1ExportSecretsIntent;
4044
- createVelocityControlIntent?: v1CreateVelocityControlIntent;
4045
- deleteVelocityControlsIntent?: v1DeleteVelocityControlsIntent;
4500
+ createUsageControlIntent?: v1CreateUsageControlIntent;
4501
+ deleteUsageControlsIntent?: v1DeleteUsageControlsIntent;
4046
4502
  updatePaymentMethodIntent?: billingUpdatePaymentMethodIntent;
4047
4503
  createSwapQuoteIntentV2?: v1CreateSwapQuoteIntentV2;
4048
4504
  executeSwapIntentV3?: v1ExecuteSwapIntentV3;
4049
4505
  deleteSecretsIntent?: v1DeleteSecretsIntent;
4050
4506
  earnClaimRewardsIntent?: v1EarnClaimRewardsIntent;
4051
4507
  createSwapQuoteIntentV3?: v1CreateSwapQuoteIntentV3;
4508
+ createSubOrganizationIntentV9?: v1CreateSubOrganizationIntentV9;
4509
+ verifyWalletAuthenticatorIntent?: v1VerifyWalletAuthenticatorIntent;
4052
4510
  upsertSwapFeeSponsorshipLimitConfigIntent?: v1UpsertSwapFeeSponsorshipLimitConfigIntent;
4053
4511
  upsertSwapFixedRateLimitConfigIntent?: v1UpsertSwapFixedRateLimitConfigIntent;
4054
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;
4055
4524
  };
4056
4525
  export type v1InvitationParams = {
4057
4526
  /** The name of the intended Invitation recipient. */
@@ -4091,6 +4560,7 @@ export type v1IpAllowlistRule = {
4091
4560
  /** Creation timestamp as millisecond epoch string. */
4092
4561
  createdAt?: string;
4093
4562
  };
4563
+ export type v1JwtProfile = "JWT_PROFILE_HTTP_AUTHZ_V1";
4094
4564
  export type v1KeyValue = {
4095
4565
  key?: string;
4096
4566
  value?: string;
@@ -4286,6 +4756,28 @@ export type v1MfaStatus = {
4286
4756
  /** An ordered list of authentication requirements needed to satisfy this MFA policy. */
4287
4757
  requiredMethods: v1RequiredAuthenticationMethod[];
4288
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
+ };
4289
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";
4290
4782
  export type v1NOOPCodegenAnchorResponse = {
4291
4783
  stamp: v1WebAuthnStamp;
@@ -4832,15 +5324,27 @@ export type v1Result = {
4832
5324
  createSwapQuoteResult?: v1CreateSwapQuoteResult;
4833
5325
  importSecretsResult?: v1ImportSecretsResult;
4834
5326
  exportSecretsResult?: v1ExportSecretsResult;
4835
- createVelocityControlResult?: v1CreateVelocityControlResult;
4836
- deleteVelocityControlsResult?: v1DeleteVelocityControlsResult;
5327
+ createUsageControlResult?: v1CreateUsageControlResult;
5328
+ deleteUsageControlsResult?: v1DeleteUsageControlsResult;
4837
5329
  updatePaymentMethodResult?: billingUpdatePaymentMethodResult;
4838
5330
  deleteSecretsResult?: v1DeleteSecretsResult;
4839
5331
  earnClaimRewardsResult?: v1EarnClaimRewardsResult;
4840
5332
  createSwapQuoteResultV2?: v1CreateSwapQuoteResultV2;
5333
+ createSubOrganizationResultV9?: v1CreateSubOrganizationResultV9;
5334
+ verifyWalletAuthenticatorResult?: v1VerifyWalletAuthenticatorResult;
4841
5335
  upsertSwapFeeSponsorshipLimitConfigResult?: v1UpsertSwapFeeSponsorshipLimitConfigResult;
4842
5336
  upsertSwapFixedRateLimitConfigResult?: v1UpsertSwapFixedRateLimitConfigResult;
4843
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;
4844
5348
  };
4845
5349
  export type v1RevertChainEntry = {
4846
5350
  /** The contract address where the revert occurred. */
@@ -4918,6 +5422,22 @@ export type v1RootUserParamsV5 = {
4918
5422
  /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
4919
5423
  oauthProviders: v1OauthProviderParamsV2[];
4920
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
+ };
4921
5441
  export type v1SecretMetadata = {
4922
5442
  /** Unique identifier for the secret. */
4923
5443
  secretId: string;
@@ -4976,7 +5496,7 @@ export type v1SetOrganizationFeatureIntent = {
4976
5496
  /** Name of the feature to set */
4977
5497
  name: v1FeatureName;
4978
5498
  /** Optional value for the feature. Will override existing values if feature is already set. */
4979
- value: string;
5499
+ value?: string;
4980
5500
  };
4981
5501
  export type v1SetOrganizationFeatureRequest = {
4982
5502
  type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE";
@@ -5010,7 +5530,7 @@ export type v1SignRawPayloadIntentV2 = {
5010
5530
  encoding: v1PayloadEncoding;
5011
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. */
5012
5532
  hashFunction: v1HashFunction;
5013
- /** The public key of the external signer to use for signing the payload. */
5533
+ /** The public key of the external signer to use for signing the payload. Only needed for external signer requests. */
5014
5534
  externalSignerPubkey?: string;
5015
5535
  };
5016
5536
  export type v1SignRawPayloadRequest = {
@@ -5039,7 +5559,7 @@ export type v1SignRawPayloadsIntent = {
5039
5559
  encoding: v1PayloadEncoding;
5040
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. */
5041
5561
  hashFunction: v1HashFunction;
5042
- /** The public key of the external signer to use for signing the payloads. */
5562
+ /** The public key of the external signer to use for signing the payloads. Only needed for external signer requests. */
5043
5563
  externalSignerPubkey?: string;
5044
5564
  };
5045
5565
  export type v1SignRawPayloadsRequest = {
@@ -5067,7 +5587,7 @@ export type v1SignTransactionIntentV2 = {
5067
5587
  /** Raw unsigned transaction to be signed */
5068
5588
  unsignedTransaction: string;
5069
5589
  type: v1TransactionType;
5070
- /** The public key of the external signer to use for signing this transaction. */
5590
+ /** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
5071
5591
  externalSignerPubkey?: string;
5072
5592
  };
5073
5593
  export type v1SignTransactionRequest = {
@@ -5096,6 +5616,14 @@ export type v1SignupUsageV2 = {
5096
5616
  authenticators?: v1AuthenticatorParamsV2[];
5097
5617
  oauthProviders?: v1OauthProviderParamsV2[];
5098
5618
  };
5619
+ export type v1SignupUsageV3 = {
5620
+ email?: string;
5621
+ phoneNumber?: string;
5622
+ apiKeys?: v1ApiKeyParamsV2[];
5623
+ authenticators?: v1AuthenticatorParamsV2[];
5624
+ oauthProviders?: v1OauthProviderParamsV2[];
5625
+ walletAuthenticators?: v1WalletAuthenticatorParams[];
5626
+ };
5099
5627
  export type v1SimpleClientExtensionResults = {
5100
5628
  appid?: boolean;
5101
5629
  appidExclude?: boolean;
@@ -5423,6 +5951,14 @@ export type v1StampLoginResult = {
5423
5951
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
5424
5952
  session: string;
5425
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
+ };
5426
5962
  export type v1SwapError = {
5427
5963
  /** Stable machine-readable failure reason. One of ORIGIN_TRANSACTION_FAILED or PROVIDER_FILL_FAILED. */
5428
5964
  reason: string;
@@ -5468,12 +6004,14 @@ export type v1SwapQuoteV2 = {
5468
6004
  clientFeeBps: string;
5469
6005
  /** Provider-estimated completion time in seconds, when available. */
5470
6006
  estimatedTimeSeconds?: string;
5471
- /** Whether Turnkey pays the provider fees for this quote. */
6007
+ /** Whether Turnkey pays the execution costs for this quote. */
5472
6008
  feeSponsorship: boolean;
5473
6009
  /** Whether this quote uses a 1:1 fixed rate. */
5474
6010
  fixedRate: boolean;
5475
- /** 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. */
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. */
5476
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;
5477
6015
  };
5478
6016
  export type v1SwapRefund = {
5479
6017
  /** CAIP-19 asset returned by the swap provider after a failed cross-chain fill. */
@@ -5498,7 +6036,7 @@ export type v1SwapSpendingWindow = {
5498
6036
  subOrgWindowLimitUsd?: string;
5499
6037
  };
5500
6038
  export type v1SwapSponsorshipFeature = {
5501
- /** Whether the billing parent holds this feature's signed permission. Quotes can use the feature only when it is permitted and its window is enabled. */
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. */
5502
6040
  permitted: boolean;
5503
6041
  /** Absent until the billing parent saves a spending window. */
5504
6042
  window?: v1SwapSpendingWindow;
@@ -5512,6 +6050,7 @@ export type v1TokenUsage = {
5512
6050
  signup?: v1SignupUsage;
5513
6051
  login?: v1LoginUsage;
5514
6052
  signupV2?: v1SignupUsageV2;
6053
+ signupV3?: v1SignupUsageV3;
5515
6054
  };
5516
6055
  export type v1TransactionHistoryAsset = {
5517
6056
  /** The CAIP-19 asset identifier. */
@@ -5584,10 +6123,12 @@ export type v1TvcApp = {
5584
6123
  updatedAt: externaldatav1Timestamp;
5585
6124
  /** The deployment currently designated to receive traffic. Null if no deployment for this app is deployed. */
5586
6125
  liveDeploymentId?: string;
5587
- /** 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. */
5588
6127
  publicDomain: string;
5589
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. */
5590
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;
5591
6132
  };
5592
6133
  export type v1TvcContainerSpec = {
5593
6134
  /** The URL for this container image. */
@@ -5812,6 +6353,29 @@ export type v1UpdateFiatOnRampCredentialResult = {
5812
6353
  /** Unique identifier of the Fiat On-Ramp credential that was updated */
5813
6354
  fiatOnRampCredentialId: string;
5814
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
+ };
5815
6379
  export type v1UpdateMfaPolicyIntent = {
5816
6380
  /** The ID of the User to update the MFA Policy for. */
5817
6381
  userId: string;
@@ -6190,7 +6754,7 @@ export type v1UpsertSwapFeeSponsorshipLimitConfigIntent = {
6190
6754
  subOrgWindowLimitUsd: string;
6191
6755
  /** Positive rolling window duration in minutes, at most 153722867. */
6192
6756
  windowDurationMinutes: string;
6193
- /** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
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. */
6194
6758
  enabled: boolean;
6195
6759
  };
6196
6760
  export type v1UpsertSwapFeeSponsorshipLimitConfigRequest = {
@@ -6212,7 +6776,7 @@ export type v1UpsertSwapFixedRateLimitConfigIntent = {
6212
6776
  subOrgWindowLimitUsd: string;
6213
6777
  /** Positive rolling window duration in minutes, at most 153722867. */
6214
6778
  windowDurationMinutes: string;
6215
- /** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
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. */
6216
6780
  enabled: boolean;
6217
6781
  };
6218
6782
  export type v1UpsertSwapFixedRateLimitConfigRequest = {
@@ -6227,6 +6791,86 @@ export type v1UpsertSwapFixedRateLimitConfigResult = {
6227
6791
  /** Unique identifier of the organization the limit config was saved for. */
6228
6792
  organizationId: string;
6229
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 = {};
6230
6874
  export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
6231
6875
  export type v1User = {
6232
6876
  /** Unique identifier for a given User. */
@@ -6249,6 +6893,8 @@ export type v1User = {
6249
6893
  updatedAt: externaldatav1Timestamp;
6250
6894
  /** A list of MFA Policies that define multi-factor authentication requirements for this user. */
6251
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[];
6252
6898
  };
6253
6899
  export type v1UserParams = {
6254
6900
  /** Human-readable name for a User. */
@@ -6319,86 +6965,6 @@ export type v1ValidateTvcImageRequest = {
6319
6965
  export type v1ValidateTvcImageResponse = {
6320
6966
  resolvedImageDigest?: string;
6321
6967
  };
6322
- export type v1VelocityControlAggregation = {
6323
- /** Method that aggregates matching data points. */
6324
- method: v1VelocityControlAggregationMethod;
6325
- /** Comparison between the aggregate and the threshold. */
6326
- operator: v1VelocityControlAggregationOperator;
6327
- /** Non-negative base-10 decimal string with at most 38 total digits and 18 fractional digits. */
6328
- threshold: string;
6329
- /** Time window for the aggregation. */
6330
- window: v1VelocityControlAggregationWindow;
6331
- /** Scope that partitions matching data before aggregation. */
6332
- groupBy: v1VelocityControlAggregationGroupBy;
6333
- };
6334
- export type v1VelocityControlAggregationGroupBy = {
6335
- /** Uses one shared bucket for the Organization. */
6336
- organization?: v1VelocityControlAggregationGroupByOrganization;
6337
- /** Uses one bucket for each User. */
6338
- user?: v1VelocityControlAggregationGroupByUser;
6339
- /** Uses one bucket for each Wallet. */
6340
- wallet?: v1VelocityControlAggregationGroupByWallet;
6341
- };
6342
- export type v1VelocityControlAggregationGroupByOrganization = {};
6343
- export type v1VelocityControlAggregationGroupByUser = {};
6344
- export type v1VelocityControlAggregationGroupByWallet = {};
6345
- export type v1VelocityControlAggregationMethod = "VELOCITY_CONTROL_AGGREGATION_METHOD_SUM" | "VELOCITY_CONTROL_AGGREGATION_METHOD_COUNT";
6346
- 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";
6347
- export type v1VelocityControlAggregationWindow = {
6348
- /** Uses a rolling time window. */
6349
- rolling?: v1VelocityControlAggregationWindowRolling;
6350
- /** Uses all matching data without a time limit. */
6351
- infinite?: v1VelocityControlAggregationWindowInfinite;
6352
- };
6353
- export type v1VelocityControlAggregationWindowInfinite = {};
6354
- export type v1VelocityControlAggregationWindowRolling = {
6355
- /** Duration of the rolling window, in seconds. */
6356
- duration: number;
6357
- };
6358
- export type v1VelocityControlDataSource = {
6359
- /** Uses transfers of the listed on-chain assets as input data. */
6360
- chainAssetTransfer?: v1VelocityControlDataSourceChainAssetTransfer;
6361
- /** Uses executed Turnkey activities as input data. */
6362
- activityExecution?: v1VelocityControlDataSourceActivityExecution;
6363
- };
6364
- export type v1VelocityControlDataSourceActivityExecution = {
6365
- /** Filters activity executions by type. */
6366
- filter?: v1VelocityControlDataSourceActivityExecutionFilter;
6367
- };
6368
- export type v1VelocityControlDataSourceActivityExecutionFilter = {
6369
- /** Activity types whose executions are included. */
6370
- activity?: v1VelocityControlDataSourceFilterActivity[];
6371
- };
6372
- export type v1VelocityControlDataSourceChainAssetTransfer = {
6373
- /** Assets whose transfers are included in the data source. */
6374
- definition: v1VelocityControlDataSourceChainAssetTransferDefinition[];
6375
- /** Filters asset transfers by activity type. */
6376
- filter?: v1VelocityControlDataSourceChainAssetTransferFilter;
6377
- /** Selects when to measure an asset transfer. */
6378
- phase?: v1VelocityControlDataSourcePhase;
6379
- };
6380
- export type v1VelocityControlDataSourceChainAssetTransferDefinition = {
6381
- /** CAIP-19 identifier for the asset. */
6382
- caip19: string;
6383
- /** Integer between 0 and 255 (inclusive) that specifies the number of decimal places for the asset. */
6384
- decimals: number;
6385
- };
6386
- export type v1VelocityControlDataSourceChainAssetTransferFilter = {
6387
- /** Activity types whose asset transfers are included. */
6388
- activity?: v1VelocityControlDataSourceFilterActivity[];
6389
- };
6390
- export type v1VelocityControlDataSourceFilterActivity = {
6391
- /** Name of an activity type to include, such as `ACTIVITY_TYPE_SOL_SEND_TRANSACTION`. */
6392
- activityType: string;
6393
- };
6394
- export type v1VelocityControlDataSourcePhase = {
6395
- /** Measures the transfer when Turnkey signs the transaction and returns it to the user. */
6396
- signature?: v1VelocityControlDataSourcePhaseSignature;
6397
- /** Reserved for future use. Measures the transfer after the transaction lands on chain. */
6398
- submission?: v1VelocityControlDataSourcePhaseSubmission;
6399
- };
6400
- export type v1VelocityControlDataSourcePhaseSignature = {};
6401
- export type v1VelocityControlDataSourcePhaseSubmission = {};
6402
6968
  export type v1VerifyOtpIntent = {
6403
6969
  /** ID representing the result of an init OTP activity. */
6404
6970
  otpId: string;
@@ -6421,6 +6987,18 @@ export type v1VerifyOtpResult = {
6421
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) */
6422
6988
  verificationToken: string;
6423
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
+ };
6424
7002
  export type v1Vote = {
6425
7003
  /** Unique identifier for a given Vote object. */
6426
7004
  id: string;
@@ -6481,6 +7059,18 @@ export type v1WalletAccount = {
6481
7059
  /** The CAIP-2 namespace shared by the chains supported by this account (for example, 'eip155' or 'solana'). */
6482
7060
  caip2Prefix?: string;
6483
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
+ };
6484
7074
  export type v1WalletKitSettingsParams = {
6485
7075
  /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
6486
7076
  enabledSocialProviders?: string[];
@@ -6710,6 +7300,50 @@ export type TGetGasUsageBody = {
6710
7300
  export type TGetGasUsageInput = {
6711
7301
  body: TGetGasUsageBody;
6712
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
+ };
6713
7347
  export type TGetIpAllowlistResponse = {
6714
7348
  allowlist: v1IpAllowlist;
6715
7349
  };
@@ -6965,6 +7599,8 @@ export type TGetSwapStatusResponse = {
6965
7599
  error?: v1SwapError;
6966
7600
  /** Address that receives the output asset. */
6967
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;
6968
7604
  };
6969
7605
  export type TGetSwapStatusBody = {
6970
7606
  organizationId?: string;
@@ -7030,6 +7666,25 @@ export type TGetTvcDeploymentProvisioningDetailsBody = {
7030
7666
  export type TGetTvcDeploymentProvisioningDetailsInput = {
7031
7667
  body: TGetTvcDeploymentProvisioningDetailsBody;
7032
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
+ };
7033
7688
  export type TGetTvcQosVersionsResponse = {
7034
7689
  /** QOS versions supported for new TVC deployments. */
7035
7690
  availableVersions: string[];
@@ -7096,6 +7751,18 @@ export type TGetWalletAddressBalancesBody = {
7096
7751
  export type TGetWalletAddressBalancesInput = {
7097
7752
  body: TGetWalletAddressBalancesBody;
7098
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
+ };
7099
7766
  export type TGetActivitiesResponse = {
7100
7767
  /** A list of activities. */
7101
7768
  activities: v1Activity[];
@@ -7216,6 +7883,28 @@ export type TListEthTransactionHistoryBody = {
7216
7883
  export type TListEthTransactionHistoryInput = {
7217
7884
  body: TListEthTransactionHistoryBody;
7218
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
+ };
7219
7908
  export type TListFiatOnRampCredentialsResponse = {
7220
7909
  fiatOnRampCredentials: v1FiatOnRampCredential[];
7221
7910
  };
@@ -7225,6 +7914,28 @@ export type TListFiatOnRampCredentialsBody = {
7225
7914
  export type TListFiatOnRampCredentialsInput = {
7226
7915
  body: TListFiatOnRampCredentialsBody;
7227
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
+ };
7228
7939
  export type TListOauth2CredentialsResponse = {
7229
7940
  oauth2Credentials: v1Oauth2Credential[];
7230
7941
  };
@@ -7309,7 +8020,7 @@ export type TGetSubOrgIdsResponse = {
7309
8020
  };
7310
8021
  export type TGetSubOrgIdsBody = {
7311
8022
  organizationId?: string;
7312
- /** 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' */
7313
8024
  filterType?: string;
7314
8025
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
7315
8026
  filterValue?: string;
@@ -7399,7 +8110,7 @@ export type TGetVerifiedSubOrgIdsResponse = {
7399
8110
  };
7400
8111
  export type TGetVerifiedSubOrgIdsBody = {
7401
8112
  organizationId?: string;
7402
- /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', or 'PUBLIC_KEY' */
8113
+ /** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', 'PUBLIC_KEY', or 'WALLET_AUTH_TOKEN'. */
7403
8114
  filterType?: string;
7404
8115
  /** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
7405
8116
  filterValue?: string;
@@ -7549,6 +8260,43 @@ export type TCreateAuthenticatorsBody = {
7549
8260
  export type TCreateAuthenticatorsInput = {
7550
8261
  body: TCreateAuthenticatorsBody;
7551
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
+ };
7552
8300
  export type TCreateFiatOnRampCredentialResponse = {
7553
8301
  activity: v1Activity;
7554
8302
  /** Unique identifier of the Fiat On-Ramp credential that was created */
@@ -7574,6 +8322,46 @@ export type TCreateFiatOnRampCredentialBody = {
7574
8322
  export type TCreateFiatOnRampCredentialInput = {
7575
8323
  body: TCreateFiatOnRampCredentialBody;
7576
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
+ };
7577
8365
  export type TCreateInvitationsResponse = {
7578
8366
  activity: v1Activity;
7579
8367
  /** A list of Invitation IDs */
@@ -7718,8 +8506,10 @@ export type TCreatePrivateKeysBody = {
7718
8506
  organizationId?: string;
7719
8507
  /** A list of Private Keys. */
7720
8508
  privateKeys: v1PrivateKeyParams[];
7721
- /** The public key of the external signer to use for creating the private keys. */
8509
+ /** The public key of the external signer to use for creating the private keys. Only needed for external signer requests. */
7722
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;
7723
8513
  generateAppProofs?: boolean;
7724
8514
  };
7725
8515
  export type TCreatePrivateKeysInput = {
@@ -7877,7 +8667,7 @@ export type TCreateSwapQuoteBody = {
7877
8667
  slippageBps?: string;
7878
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. */
7879
8669
  destinationAddress?: string;
7880
- /** When true, Turnkey pays the provider fees for this swap and invoices them to the billing parent organization. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
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. */
7881
8671
  feeSponsorship?: boolean;
7882
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. */
7883
8673
  fixedRate?: boolean;
@@ -7922,6 +8712,8 @@ export type TCreateTvcAppBody = {
7922
8712
  enableEgress?: boolean;
7923
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. */
7924
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;
7925
8717
  };
7926
8718
  export type TCreateTvcAppInput = {
7927
8719
  body: TCreateTvcAppBody;
@@ -7966,6 +8758,8 @@ export type TCreateTvcDeploymentBody = {
7966
8758
  instanceSizeCpus?: number;
7967
8759
  /** Optional desired instance memory size in GiB. */
7968
8760
  instanceSizeRam?: number;
8761
+ /** Optional client-generated QOS manifest. */
8762
+ qosManifest?: string;
7969
8763
  };
7970
8764
  export type TCreateTvcDeploymentInput = {
7971
8765
  body: TCreateTvcDeploymentBody;
@@ -8108,6 +8902,23 @@ export type TCreateWalletAccountsBody = {
8108
8902
  export type TCreateWalletAccountsInput = {
8109
8903
  body: TCreateWalletAccountsBody;
8110
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
+ };
8111
8922
  export type TCreateWebhookEndpointResponse = {
8112
8923
  activity: v1Activity;
8113
8924
  /** Unique identifier of the created webhook endpoint. */
@@ -8163,6 +8974,20 @@ export type TDeleteAuthenticatorsBody = {
8163
8974
  export type TDeleteAuthenticatorsInput = {
8164
8975
  body: TDeleteAuthenticatorsBody;
8165
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
+ };
8166
8991
  export type TDeleteFiatOnRampCredentialResponse = {
8167
8992
  activity: v1Activity;
8168
8993
  /** Unique identifier of the Fiat On-Ramp credential that was deleted */
@@ -8428,6 +9253,23 @@ export type TDeleteWalletAccountsBody = {
8428
9253
  export type TDeleteWalletAccountsInput = {
8429
9254
  body: TDeleteWalletAccountsBody;
8430
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
+ };
8431
9273
  export type TDeleteWalletsResponse = {
8432
9274
  activity: v1Activity;
8433
9275
  /** A list of wallet unique identifiers that were removed */
@@ -8635,32 +9477,40 @@ export type TExecuteSwapResponse = {
8635
9477
  provider?: string;
8636
9478
  /** Quote identifier used for execution, if any. */
8637
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;
8638
9490
  };
8639
9491
  export type TExecuteSwapBody = {
8640
9492
  timestampMs?: string;
8641
9493
  organizationId?: string;
8642
- /** 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. */
8643
- quoteId: string;
8644
9494
  /** CAIP-19 asset ID for the input asset. */
8645
9495
  inputToken: string;
8646
- /** Exact base-unit amount of the input asset committed by the quote. */
9496
+ /** Exact base-unit amount of the input asset. */
8647
9497
  inputAmount: string;
8648
9498
  /** CAIP-19 asset ID for the output asset. */
8649
9499
  outputToken: string;
8650
- /** Exact quoted base-unit output amount committed by the quote. */
8651
- quotedOutputAmount: string;
8652
- /** Exact minimum base-unit output committed by the quote. */
8653
- minOutputAmount: string;
8654
- /** Whether the quoted transaction is sponsored. */
9500
+ /** Whether the swap transaction is gas sponsored. */
8655
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;
8656
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. */
8657
9505
  evmNonce?: string;
8658
9506
  /** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
8659
9507
  recentBlockhash?: string;
8660
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. */
8661
9509
  gasStationNonce?: string;
8662
- /** 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. */
8663
- 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;
8664
9514
  generateAppProofs?: boolean;
8665
9515
  };
8666
9516
  export type TExecuteSwapInput = {
@@ -8989,6 +9839,26 @@ export type TInitUserEmailRecoveryBody = {
8989
9839
  export type TInitUserEmailRecoveryInput = {
8990
9840
  body: TInitUserEmailRecoveryBody;
8991
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
+ };
8992
9862
  export type TOauthResponse = {
8993
9863
  activity: v1Activity;
8994
9864
  /** Unique identifier for the authenticating User. */
@@ -9264,7 +10134,7 @@ export type TSetOrganizationFeatureBody = {
9264
10134
  /** Name of the feature to set */
9265
10135
  name: v1FeatureName;
9266
10136
  /** Optional value for the feature. Will override existing values if feature is already set. */
9267
- value: string;
10137
+ value?: string;
9268
10138
  generateAppProofs?: boolean;
9269
10139
  };
9270
10140
  export type TSetOrganizationFeatureInput = {
@@ -9303,7 +10173,7 @@ export type TSignRawPayloadBody = {
9303
10173
  encoding: v1PayloadEncoding;
9304
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. */
9305
10175
  hashFunction: v1HashFunction;
9306
- /** The public key of the external signer to use for signing the payload. */
10176
+ /** The public key of the external signer to use for signing the payload. Only needed for external signer requests. */
9307
10177
  externalSignerPubkey?: string;
9308
10178
  generateAppProofs?: boolean;
9309
10179
  };
@@ -9325,7 +10195,7 @@ export type TSignRawPayloadsBody = {
9325
10195
  encoding: v1PayloadEncoding;
9326
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. */
9327
10197
  hashFunction: v1HashFunction;
9328
- /** The public key of the external signer to use for signing the payloads. */
10198
+ /** The public key of the external signer to use for signing the payloads. Only needed for external signer requests. */
9329
10199
  externalSignerPubkey?: string;
9330
10200
  generateAppProofs?: boolean;
9331
10201
  };
@@ -9344,7 +10214,7 @@ export type TSignTransactionBody = {
9344
10214
  /** Raw unsigned transaction to be signed */
9345
10215
  unsignedTransaction: string;
9346
10216
  type: v1TransactionType;
9347
- /** The public key of the external signer to use for signing this transaction. */
10217
+ /** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
9348
10218
  externalSignerPubkey?: string;
9349
10219
  generateAppProofs?: boolean;
9350
10220
  };
@@ -9469,6 +10339,27 @@ export type TUpdateFiatOnRampCredentialBody = {
9469
10339
  export type TUpdateFiatOnRampCredentialInput = {
9470
10340
  body: TUpdateFiatOnRampCredentialBody;
9471
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
+ };
9472
10363
  export type TUpdateMfaPolicyResponse = {
9473
10364
  activity: v1Activity;
9474
10365
  /** Unique identifier for a given MFA Policy. */
@@ -9769,7 +10660,7 @@ export type TUpsertSwapFeeSponsorshipLimitConfigBody = {
9769
10660
  subOrgWindowLimitUsd: string;
9770
10661
  /** Positive rolling window duration in minutes, at most 153722867. */
9771
10662
  windowDurationMinutes: string;
9772
- /** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
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. */
9773
10664
  enabled: boolean;
9774
10665
  };
9775
10666
  export type TUpsertSwapFeeSponsorshipLimitConfigInput = {
@@ -9789,7 +10680,7 @@ export type TUpsertSwapFixedRateLimitConfigBody = {
9789
10680
  subOrgWindowLimitUsd: string;
9790
10681
  /** Positive rolling window duration in minutes, at most 153722867. */
9791
10682
  windowDurationMinutes: string;
9792
- /** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
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. */
9793
10684
  enabled: boolean;
9794
10685
  };
9795
10686
  export type TUpsertSwapFixedRateLimitConfigInput = {
@@ -9814,6 +10705,25 @@ export type TVerifyOtpBody = {
9814
10705
  export type TVerifyOtpInput = {
9815
10706
  body: TVerifyOtpBody;
9816
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
+ };
9817
10727
  export type TNOOPCodegenAnchorResponse = {
9818
10728
  activity: v1Activity;
9819
10729
  };
@@ -9939,7 +10849,7 @@ export type ProxyTGetAccountResponse = {
9939
10849
  requiresSocialLinking?: boolean;
9940
10850
  };
9941
10851
  export type ProxyTGetAccountBody = {
9942
- /** 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' */
9943
10853
  filterType: string;
9944
10854
  /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
9945
10855
  filterValue: string;
@@ -10149,6 +11059,53 @@ export type ProxyTSignupV2Body = {
10149
11059
  export type ProxyTSignupV2Input = {
10150
11060
  body: ProxyTSignupV2Body;
10151
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
+ };
10152
11109
  export type ProxyTGetWalletKitClientParamsResponse = {
10153
11110
  /** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
10154
11111
  turnstileSiteKey?: string;
@@ -10175,4 +11132,8 @@ export type ProxyTGetWalletKitConfigBody = {};
10175
11132
  export type ProxyTGetWalletKitConfigInput = {
10176
11133
  body: ProxyTGetWalletKitConfigBody;
10177
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 {};
10178
11139
  //# sourceMappingURL=types.d.ts.map