@turnkey/sdk-types 1.1.0 → 1.2.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.
@@ -291,6 +291,8 @@ export type v1WalletAccountParams = {
291
291
  path: string;
292
292
  /** Address format used to generate a wallet Acccount. */
293
293
  addressFormat: v1AddressFormat;
294
+ /** Optional human-readable name for the account. */
295
+ name?: string;
294
296
  };
295
297
  export type v1WalletParams = {
296
298
  /** Human-readable name for a Wallet. */
@@ -390,6 +392,8 @@ export type externaldatav1Credential = {
390
392
  /** The public component of a cryptographic key pair used to sign messages and transactions. */
391
393
  publicKey: string;
392
394
  type: v1CredentialType;
395
+ /** The session profile associated with this credential, if any. This field is only applicable for credentials of type CREDENTIAL_TYPE_LOGIN. */
396
+ sessionProfileId?: string;
393
397
  };
394
398
  export type externaldatav1Quorum = {
395
399
  /** Count of unique approvals required to meet quorum. */
@@ -480,8 +484,8 @@ export type v1ActivityResponse = {
480
484
  /** An action that can be taken within the Turnkey infrastructure. */
481
485
  activity: v1Activity;
482
486
  };
483
- export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
484
- 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";
487
+ export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
488
+ export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_UPSERT_EARN_CLIENT_FEE_CONFIG" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE";
485
489
  export type v1ApiKey = {
486
490
  /** A User credential that can be used to authenticate to Turnkey. */
487
491
  credential: externaldatav1Credential;
@@ -557,6 +561,19 @@ export type v1AssetMetadata = {
557
561
  /** The asset name */
558
562
  name?: string;
559
563
  };
564
+ export type v1AuthenticationMethod = {
565
+ /** The type of authenticator (e.g., AUTHENTICATION_TYPE_EMAIL, AUTHENTICATION_TYPE_SESSION) required for this MFA step. */
566
+ type: v1AuthenticationType;
567
+ /** Optional specific authenticator ID required (e.g., for requiring a specific session profile id) */
568
+ id?: string;
569
+ };
570
+ export type v1AuthenticationMethodParams = {
571
+ /** The type of authenticator (e.g., AUTHENTICATION_TYPE_PASSKEY for passkey authentication). */
572
+ type: v1AuthenticationType;
573
+ /** Optional specific authenticator ID required (e.g., UUID of a passkey authenticator). If not provided, any authenticator of the specified type can be used. */
574
+ id?: string;
575
+ };
576
+ export type v1AuthenticationType = "AUTHENTICATION_TYPE_EMAIL_OTP" | "AUTHENTICATION_TYPE_SMS_OTP" | "AUTHENTICATION_TYPE_PASSKEY" | "AUTHENTICATION_TYPE_API_KEY" | "AUTHENTICATION_TYPE_OAUTH" | "AUTHENTICATION_TYPE_SESSION";
560
577
  export type v1Authenticator = {
561
578
  /** Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
562
579
  transports: v1AuthenticatorTransport[];
@@ -596,9 +613,9 @@ export type v1BootProof = {
596
613
  ephemeralPublicKeyHex: string;
597
614
  /** The DER encoded COSE Sign1 struct Attestation doc. */
598
615
  awsAttestationDocB64: string;
599
- /** The borsch serialized base64 encoded Manifest. */
616
+ /** The base64 encoded QOS manifest. Encoding depends on qos_manifest_version. */
600
617
  qosManifestB64: string;
601
- /** The borsch serialized base64 encoded Manifest Envelope. */
618
+ /** The base64 encoded QOS manifest envelope. Encoding depends on qos_manifest_version. */
602
619
  qosManifestEnvelopeB64: string;
603
620
  /** The label under which the enclave app was deployed. */
604
621
  deploymentLabel: string;
@@ -607,6 +624,8 @@ export type v1BootProof = {
607
624
  /** Owner of the app i.e. 'tkhq' */
608
625
  owner: string;
609
626
  createdAt: externaldatav1Timestamp;
627
+ /** QOS manifest schema version. */
628
+ qosManifestVersion?: string;
610
629
  };
611
630
  export type v1BootProofResponse = {
612
631
  bootProof: v1BootProof;
@@ -717,6 +736,32 @@ export type v1CreateInvitationsResult = {
717
736
  /** A list of Invitation IDs */
718
737
  invitationIds: string[];
719
738
  };
739
+ export type v1CreateMfaPolicyIntent = {
740
+ /** The ID of the User to add the MFA Policy to. */
741
+ userId: string;
742
+ /** Human-readable name for a Policy. */
743
+ mfaPolicyName: string;
744
+ /** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
745
+ condition: string;
746
+ /** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
747
+ requiredAuthenticationMethods: v1RequiredAuthenticationMethodParams[];
748
+ /** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
749
+ order: number;
750
+ /** Notes for an MFA Policy. */
751
+ notes?: string;
752
+ };
753
+ export type v1CreateMfaPolicyRequest = {
754
+ type: "ACTIVITY_TYPE_CREATE_MFA_POLICY";
755
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
756
+ timestampMs: string;
757
+ /** Unique identifier for a given Organization. */
758
+ organizationId: string;
759
+ parameters: v1CreateMfaPolicyIntent;
760
+ };
761
+ export type v1CreateMfaPolicyResult = {
762
+ /** Unique identifier for a given MFA Policy. */
763
+ mfaPolicyId: string;
764
+ };
720
765
  export type v1CreateOauth2CredentialIntent = {
721
766
  /** The OAuth 2.0 provider */
722
767
  provider: v1Oauth2Provider;
@@ -980,6 +1025,28 @@ export type v1CreateReadWriteSessionResultV2 = {
980
1025
  /** HPKE encrypted credential bundle */
981
1026
  credentialBundle: string;
982
1027
  };
1028
+ export type v1CreateSessionProfileIntent = {
1029
+ /** Human-readable name for a Session Profile. */
1030
+ sessionProfileName: string;
1031
+ /** The scope string that defines the permissions for this Session Profile. */
1032
+ scope: string;
1033
+ /** The duration in seconds for which sessions created with this Session Profile are valid. If not set, expiration will be determined by the value passed in to the intent of login activities. */
1034
+ expirationSeconds?: string;
1035
+ /** Notes for a Session Profile. */
1036
+ notes?: string;
1037
+ };
1038
+ export type v1CreateSessionProfileRequest = {
1039
+ type: "ACTIVITY_TYPE_CREATE_SESSION_PROFILE";
1040
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1041
+ timestampMs: string;
1042
+ /** Unique identifier for a given Organization. */
1043
+ organizationId: string;
1044
+ parameters: v1CreateSessionProfileIntent;
1045
+ };
1046
+ export type v1CreateSessionProfileResult = {
1047
+ /** Unique identifier for a given Session Profile. */
1048
+ sessionProfileId: string;
1049
+ };
983
1050
  export type v1CreateSmartContractInterfaceIntent = {
984
1051
  /** Corresponding contract address or program ID */
985
1052
  smartContractAddress: string;
@@ -1173,6 +1240,8 @@ export type v1CreateTvcAppIntent = {
1173
1240
  shareSetParams?: v1TvcOperatorSetParams;
1174
1241
  /** Enables network egress for this TVC app. Default if not provided: false. */
1175
1242
  enableEgress?: boolean;
1243
+ /** 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. */
1244
+ enableDebugModeDeployments?: boolean;
1176
1245
  };
1177
1246
  export type v1CreateTvcAppRequest = {
1178
1247
  type: "ACTIVITY_TYPE_CREATE_TVC_APP";
@@ -1250,6 +1319,40 @@ export type v1CreateTvcManifestApprovalsResult = {
1250
1319
  /** The unique identifier(s) for the manifest approvals */
1251
1320
  approvalIds: string[];
1252
1321
  };
1322
+ export type v1CreateTvcOperatorIntent = {
1323
+ /** Human-readable name for a new wallet created for this TVC operator */
1324
+ walletName?: string;
1325
+ /** Unique identifier for an existing wallet to reuse for this TVC operator */
1326
+ walletId?: string;
1327
+ /** Base derivation path for creating TVC operator wallet accounts */
1328
+ path: string;
1329
+ /** Human-readable name for this new TVC operator */
1330
+ operatorName: string;
1331
+ };
1332
+ export type v1CreateTvcOperatorResult = {
1333
+ /** The unique identifier for the wallet containing TVC operator accounts */
1334
+ walletId: string;
1335
+ /** The unique identifier for the TVC operator */
1336
+ operatorId: string;
1337
+ /** Public encryption key for this TVC operator */
1338
+ encryptPublicKey: string;
1339
+ /** Public signing key for this TVC operator */
1340
+ signPublicKey: string;
1341
+ };
1342
+ export type v1CreateTvcQuorumKeyIntent = {
1343
+ /** The threshold of operators needed to reassemble this TVC quorum key */
1344
+ threshold: number;
1345
+ /** Operator public keys used to encrypt and later approve the generated TVC quorum key shares */
1346
+ operatorEncryptKeys: string[];
1347
+ };
1348
+ export type v1CreateTvcQuorumKeyResult = {
1349
+ /** The unique identifier for the TVC quorum key */
1350
+ quorumKeyId: string;
1351
+ /** Public key for the generated TVC quorum key */
1352
+ quorumPublicKey: string;
1353
+ /** The unique identifier(s) for the generated TVC quorum key shares */
1354
+ shareIds: string[];
1355
+ };
1253
1356
  export type v1CreateUserTagIntent = {
1254
1357
  /** Human-readable name for a User Tag. */
1255
1358
  userTagName: string;
@@ -1449,6 +1552,24 @@ export type v1DeleteInvitationResult = {
1449
1552
  /** Unique identifier for a given Invitation. */
1450
1553
  invitationId: string;
1451
1554
  };
1555
+ export type v1DeleteMfaPolicyIntent = {
1556
+ /** The ID of the User to delete the MFA Policy from. */
1557
+ userId: string;
1558
+ /** Unique identifier for a given MFA Policy. */
1559
+ mfaPolicyId: string;
1560
+ };
1561
+ export type v1DeleteMfaPolicyRequest = {
1562
+ type: "ACTIVITY_TYPE_DELETE_MFA_POLICY";
1563
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1564
+ timestampMs: string;
1565
+ /** Unique identifier for a given Organization. */
1566
+ organizationId: string;
1567
+ parameters: v1DeleteMfaPolicyIntent;
1568
+ };
1569
+ export type v1DeleteMfaPolicyResult = {
1570
+ /** Unique identifier for a given MFA Policy. */
1571
+ mfaPolicyId: string;
1572
+ };
1452
1573
  export type v1DeleteOauth2CredentialIntent = {
1453
1574
  /** The ID of the OAuth 2.0 credential to delete */
1454
1575
  oauth2CredentialId: string;
@@ -1744,6 +1865,66 @@ export type v1DisablePrivateKeyResult = {
1744
1865
  /** Unique identifier for a given Private Key. */
1745
1866
  privateKeyId: string;
1746
1867
  };
1868
+ export type v1EarnDeployWrapperIntent = {
1869
+ /** Address of the underlying yield vault to wrap (from the EarnVaults catalog). */
1870
+ vaultAddress: string;
1871
+ /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
1872
+ chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
1873
+ };
1874
+ export type v1EarnDeployWrapperResult = {
1875
+ /** Address of the deployed fee wrapper (the deposit target). */
1876
+ wrapperAddress: string;
1877
+ /** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
1878
+ splitterAddress: string;
1879
+ /** Transaction hash of the wrapper deployment. */
1880
+ deployTxHash: string;
1881
+ };
1882
+ export type v1EarnDepositIntent = {
1883
+ /** Address of the underlying yield vault to deposit into. The org must have an enabled wrapper for this vault. */
1884
+ vaultAddress: string;
1885
+ /** A Wallet account address or Private Key address to deposit from and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
1886
+ signWith: string;
1887
+ /** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
1888
+ assets: string;
1889
+ /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
1890
+ chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
1891
+ /** Whether to sponsor this transaction via Gas Station. */
1892
+ sponsor?: boolean;
1893
+ };
1894
+ export type v1EarnDepositResult = {
1895
+ /** Transaction hash of the deposit. */
1896
+ depositTxHash: string;
1897
+ /** Number of wrapper shares minted to the depositor, in raw on-chain units. */
1898
+ sharesMinted: string;
1899
+ /** Address of the fee wrapper the deposit was routed to. */
1900
+ wrapperAddress: string;
1901
+ /** Identifier to poll deposit status via EarnDepositStatus (for the async/sponsored path). */
1902
+ depositRequestId: string;
1903
+ };
1904
+ export type v1EarnWithdrawIntent = {
1905
+ /** Address of the underlying yield vault to withdraw from. The org must have an enabled wrapper for this vault. */
1906
+ vaultAddress: string;
1907
+ /** A Wallet account address or Private Key address to withdraw to and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
1908
+ signWith: string;
1909
+ /** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
1910
+ chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
1911
+ /** Whether to sponsor this transaction via Gas Station. */
1912
+ sponsor?: boolean;
1913
+ /** Whether amount_value is denominated in shares or assets. 'SHARES' redeems wrapper shares (calls redeem()); 'ASSETS' withdraws underlying assets (calls withdraw(), enabling yield-only claims). */
1914
+ amountType: "SHARES" | "ASSETS";
1915
+ /** The amount to withdraw, in raw on-chain units, interpreted according to amount_type. */
1916
+ amountValue: string;
1917
+ };
1918
+ export type v1EarnWithdrawResult = {
1919
+ /** Transaction hash of the withdrawal. */
1920
+ withdrawTxHash: string;
1921
+ /** Identifier to poll withdrawal status via EarnWithdrawStatus. */
1922
+ withdrawRequestId: string;
1923
+ /** Amount of the underlying asset received, in raw on-chain units. */
1924
+ assetsReceived: string;
1925
+ /** Number of wrapper shares burned, in raw on-chain units. */
1926
+ sharesBurned: string;
1927
+ };
1747
1928
  export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
1748
1929
  export type v1EmailAuthCustomizationParams = {
1749
1930
  /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
@@ -1854,11 +2035,55 @@ export type v1EmailCustomizationParamsV2 = {
1854
2035
  /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1855
2036
  templateId?: string;
1856
2037
  };
2038
+ export type v1EmailEvent = {
2039
+ /** Unique identifier for the email event */
2040
+ id: string;
2041
+ /** Unique identifier for the organization associated with the email event */
2042
+ organizationId: string;
2043
+ /** Provider message identifier. Multiple events can share the same message ID */
2044
+ messageId: string;
2045
+ /** Email event type, such as Send, Delivery, Bounce, or DeliveryDelay */
2046
+ eventType: string;
2047
+ /** Sender email address */
2048
+ fromAddress: string;
2049
+ /** Recipient email address */
2050
+ toAddress: string;
2051
+ /** SES tenant that sent the email, when available */
2052
+ senderTenant?: string;
2053
+ /** Event timestamp as millisecond epoch string */
2054
+ timestamp: string;
2055
+ /** Creation timestamp as millisecond epoch string */
2056
+ createdAt: string;
2057
+ /** Parsed email event details. Fields are populated based on event type and available provider metadata */
2058
+ details: v1EmailEventDetails;
2059
+ };
2060
+ export type v1EmailEventDetails = {
2061
+ /** Bounce type for Bounce events */
2062
+ bounceType?: string;
2063
+ /** Bounce subtype for Bounce events */
2064
+ bounceSubType?: string;
2065
+ /** Diagnostic text for Bounce or DeliveryDelay events */
2066
+ diagnosticCode?: string;
2067
+ /** SMTP response for Delivery events */
2068
+ deliverySmtpResponse?: string;
2069
+ /** Processing time in milliseconds for Delivery events */
2070
+ deliveryProcessingTimeMillis?: string;
2071
+ /** Delay type for DeliveryDelay events */
2072
+ deliveryDelayType?: string;
2073
+ };
1857
2074
  export type v1EnableAuthProxyIntent = {};
1858
2075
  export type v1EnableAuthProxyResult = {
1859
2076
  /** A User ID with permission to initiate authentication. */
1860
2077
  userId: string;
1861
2078
  };
2079
+ export type v1EthCallParams = {
2080
+ /** Recipient address as a hex string with 0x prefix. */
2081
+ to: string;
2082
+ /** Amount of native asset to send in wei. */
2083
+ value?: string;
2084
+ /** Hex-encoded call data for contract interactions. */
2085
+ data?: string;
2086
+ };
1862
2087
  export type v1EthFailureDetails = {
1863
2088
  /** Ethereum revert chain, ordered from outermost to innermost. */
1864
2089
  revertChain?: v1RevertChainEntry[];
@@ -1867,7 +2092,7 @@ export type v1EthSendRawTransactionIntent = {
1867
2092
  /** The raw, signed transaction to be sent. */
1868
2093
  signedTransaction: string;
1869
2094
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
1870
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002";
2095
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
1871
2096
  };
1872
2097
  export type v1EthSendRawTransactionResult = {
1873
2098
  /** The transaction hash of the sent transaction */
@@ -1879,7 +2104,7 @@ export type v1EthSendTransactionIntent = {
1879
2104
  /** Whether to sponsor this transaction via Gas Station. */
1880
2105
  sponsor?: boolean;
1881
2106
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
1882
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002";
2107
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
1883
2108
  /** Recipient address as a hex string with 0x prefix. */
1884
2109
  to: string;
1885
2110
  /** Amount of native asset to send in wei. */
@@ -1899,23 +2124,73 @@ export type v1EthSendTransactionIntent = {
1899
2124
  /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
1900
2125
  gasStationNonce?: string;
1901
2126
  };
2127
+ export type v1EthSendTransactionIntentV2 = {
2128
+ /** A wallet or private key address to sign with. This does not support private key IDs. */
2129
+ from: string;
2130
+ /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2131
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
2132
+ /** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
2133
+ sponsor?: boolean;
2134
+ /** Outer transaction nonce. Omit to auto-fetch. */
2135
+ nonce?: string;
2136
+ /** Maximum amount of gas for the outer transaction. Omit to auto-estimate. */
2137
+ gasLimit?: string;
2138
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
2139
+ maxFeePerGas?: string;
2140
+ /** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
2141
+ maxPriorityFeePerGas?: string;
2142
+ /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
2143
+ deadline?: string;
2144
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
2145
+ gasStationNonce?: string;
2146
+ /** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
2147
+ calls: v1EthCallParams[];
2148
+ };
1902
2149
  export type v1EthSendTransactionRequest = {
1903
- type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION";
2150
+ type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2";
1904
2151
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1905
2152
  timestampMs: string;
1906
2153
  /** Unique identifier for a given Organization. */
1907
2154
  organizationId: string;
1908
- parameters: v1EthSendTransactionIntent;
2155
+ parameters: v1EthSendTransactionIntentV2;
1909
2156
  generateAppProofs?: boolean;
1910
2157
  };
1911
2158
  export type v1EthSendTransactionResult = {
1912
2159
  /** The send_transaction_status ID associated with the transaction submission */
1913
2160
  sendTransactionStatusId: string;
1914
2161
  };
2162
+ export type v1EthSendTransactionResultV2 = {
2163
+ /** The send_transaction_status ID associated with the transaction submission */
2164
+ sendTransactionStatusId: string;
2165
+ };
1915
2166
  export type v1EthSendTransactionStatus = {
1916
2167
  /** The Ethereum transaction hash, if available. */
1917
2168
  txHash?: string;
1918
2169
  };
2170
+ export type v1ExecuteSwapIntent = {
2171
+ /** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
2172
+ inputToken: string;
2173
+ /** CAIP-19 asset ID for the output asset. May be on a different chain than `input_token` for cross-chain swaps. */
2174
+ outputToken: string;
2175
+ /** Base-unit amount of the input asset. */
2176
+ inputAmount: string;
2177
+ /** Wallet account address to sign and submit the swap transaction from. Cross-wallet swaps are not supported. */
2178
+ walletAccount: string;
2179
+ /** Whether to sponsor the resulting swap transaction via Gas Station when supported by the chain. */
2180
+ sponsor?: boolean;
2181
+ /** Maximum allowed slippage in basis points. */
2182
+ slippage?: string;
2183
+ /** Swap provider to execute with, as returned by get_swap_quote. When omitted, execution uses the default provider. */
2184
+ provider?: string;
2185
+ };
2186
+ export type v1ExecuteSwapResult = {
2187
+ /** The send_transaction_status ID associated with the swap transaction submission */
2188
+ sendTransactionStatusId: string;
2189
+ /** Swap provider used to build the transaction. */
2190
+ provider?: string;
2191
+ /** Quote identifier used for execution, if any. */
2192
+ quoteId?: string;
2193
+ };
1919
2194
  export type v1ExportPrivateKeyIntent = {
1920
2195
  /** Unique identifier for a given Private Key. */
1921
2196
  privateKeyId: string;
@@ -1985,7 +2260,7 @@ export type v1Feature = {
1985
2260
  name?: v1FeatureName;
1986
2261
  value?: string;
1987
2262
  };
1988
- 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";
2263
+ 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";
1989
2264
  export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
1990
2265
  export type v1FiatOnRampCredential = {
1991
2266
  /** Unique identifier for a given Fiat On-Ramp Credential. */
@@ -2123,13 +2398,47 @@ export type v1GetLatestBootProofRequest = {
2123
2398
  /** Name of enclave app. */
2124
2399
  appName: string;
2125
2400
  };
2401
+ export type v1GetMfaPoliciesRequest = {
2402
+ /** Unique identifier for a given organization. */
2403
+ organizationId: string;
2404
+ /** Unique identifier for a given user. */
2405
+ userId: string;
2406
+ };
2407
+ export type v1GetMfaPoliciesResponse = {
2408
+ /** A list of multi-factor authentication policies for a user. */
2409
+ mfaPolicies: v1MfaPolicy[];
2410
+ };
2411
+ export type v1GetMfaPolicyRequest = {
2412
+ /** Unique identifier for a given organization. */
2413
+ organizationId: string;
2414
+ /** Unique identifier for a given user. */
2415
+ userId: string;
2416
+ /** Unique identifier for a given MFA policy. */
2417
+ mfaPolicyId: string;
2418
+ };
2419
+ export type v1GetMfaPolicyResponse = {
2420
+ /** Multi-factor authentication policy for a user. */
2421
+ mfaPolicy: v1MfaPolicy;
2422
+ };
2423
+ export type v1GetMfaStatusRequest = {
2424
+ /** Unique identifier for a given organization. */
2425
+ organizationId: string;
2426
+ /** The unique identifier of the activity to get MFA status for. */
2427
+ activityId: string;
2428
+ /** Optional user ID to filter MFA status for a specific user. */
2429
+ userId?: string;
2430
+ };
2431
+ export type v1GetMfaStatusResponse = {
2432
+ /** A list of MFA statuses for the activity's votes. */
2433
+ mfaStatuses: v1MfaStatus[];
2434
+ };
2126
2435
  export type v1GetNoncesRequest = {
2127
2436
  /** Unique identifier for a given Organization. */
2128
2437
  organizationId: string;
2129
2438
  /** The Ethereum address to query nonces for. */
2130
2439
  address: string;
2131
2440
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
2132
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002";
2441
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
2133
2442
  /** Whether to fetch the standard on-chain nonce. */
2134
2443
  nonce?: boolean;
2135
2444
  /** Whether to fetch the gas station nonce used for sponsored transactions. */
@@ -2243,6 +2552,24 @@ export type v1GetSendTransactionStatusResponse = {
2243
2552
  /** Structured error information including revert details, if available. */
2244
2553
  error?: v1TxError;
2245
2554
  };
2555
+ export type v1GetSessionProfileRequest = {
2556
+ /** Unique identifier for a given organization. */
2557
+ organizationId: string;
2558
+ /** Unique identifier for a session profile. */
2559
+ sessionProfileId: string;
2560
+ };
2561
+ export type v1GetSessionProfileResponse = {
2562
+ /** Session profile for a user, including details about the user's authenticators, Oauth providers, API keys, and MFA policies. */
2563
+ sessionProfile: v1SessionProfile;
2564
+ };
2565
+ export type v1GetSessionProfilesRequest = {
2566
+ /** Unique identifier for a given organization. */
2567
+ organizationId: string;
2568
+ };
2569
+ export type v1GetSessionProfilesResponse = {
2570
+ /** A list of session profiles for users in the organization. */
2571
+ sessionProfiles: v1SessionProfile[];
2572
+ };
2246
2573
  export type v1GetSmartContractInterfaceRequest = {
2247
2574
  /** Unique identifier for a given organization. */
2248
2575
  organizationId: string;
@@ -2303,6 +2630,20 @@ export type v1GetTvcAppsResponse = {
2303
2630
  /** A list of TVC Apps. */
2304
2631
  tvcApps: v1TvcApp[];
2305
2632
  };
2633
+ export type v1GetTvcDeploymentDebugLogsRequest = {
2634
+ /** Unique identifier for a given Organization. */
2635
+ organizationId: string;
2636
+ /** Unique identifier for a given TVC Deployment. The deployment must be running in debug mode. */
2637
+ deploymentId: string;
2638
+ /** Limit returned history to the last N lines per replica. If unset or zero, no tail-line limit is applied. */
2639
+ tailLines?: number;
2640
+ /** Return logs newer than this many seconds ago. If unset or zero, no since-time limit is applied. Useful for clients that poll to follow logs. */
2641
+ sinceSeconds?: string;
2642
+ };
2643
+ export type v1GetTvcDeploymentDebugLogsResponse = {
2644
+ /** Application log entries sorted by platform timestamp. */
2645
+ entries: v1TvcDeploymentDebugLogEntry[];
2646
+ };
2306
2647
  export type v1GetTvcDeploymentRequest = {
2307
2648
  /** Unique identifier for a given organization. */
2308
2649
  organizationId: string;
@@ -2379,7 +2720,7 @@ export type v1GetWalletAddressBalancesRequest = {
2379
2720
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
2380
2721
  address: string;
2381
2722
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
2382
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2723
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2383
2724
  };
2384
2725
  export type v1GetWalletAddressBalancesResponse = {
2385
2726
  /** List of asset balances */
@@ -2898,6 +3239,20 @@ export type v1Intent = {
2898
3239
  sparkClaimTransferIntent?: v1SparkClaimTransferIntent;
2899
3240
  sparkPrepareLightningReceiveIntent?: v1SparkPrepareLightningReceiveIntent;
2900
3241
  postTvcQuorumKeyShareIntent?: v1PostTvcQuorumKeyShareIntent;
3242
+ ethSendTransactionIntentV2?: v1EthSendTransactionIntentV2;
3243
+ createMfaPolicyIntent?: v1CreateMfaPolicyIntent;
3244
+ updateMfaPolicyIntent?: v1UpdateMfaPolicyIntent;
3245
+ deleteMfaPolicyIntent?: v1DeleteMfaPolicyIntent;
3246
+ createSessionProfileIntent?: v1CreateSessionProfileIntent;
3247
+ earnDeployWrapperIntent?: v1EarnDeployWrapperIntent;
3248
+ earnDepositIntent?: v1EarnDepositIntent;
3249
+ earnWithdrawIntent?: v1EarnWithdrawIntent;
3250
+ upsertEarnClientFeeConfigIntent?: v1UpsertEarnClientFeeConfigIntent;
3251
+ executeSwapIntent?: v1ExecuteSwapIntent;
3252
+ upsertSwapConfigIntent?: v1UpsertSwapConfigIntent;
3253
+ createTvcOperatorIntent?: v1CreateTvcOperatorIntent;
3254
+ createTvcQuorumKeyIntent?: v1CreateTvcQuorumKeyIntent;
3255
+ reEncryptTvcQuorumKeyShareIntent?: v1ReEncryptTvcQuorumKeyShareIntent;
2901
3256
  };
2902
3257
  export type v1InvitationParams = {
2903
3258
  /** The name of the intended Invitation recipient. */
@@ -2937,6 +3292,20 @@ export type v1IpAllowlistRule = {
2937
3292
  /** Creation timestamp as millisecond epoch string. */
2938
3293
  createdAt?: string;
2939
3294
  };
3295
+ export type v1ListEmailEventsRequest = {
3296
+ /** Unique identifier for a given organization */
3297
+ organizationId: string;
3298
+ /** Recipient email address to list email events for */
3299
+ email: string;
3300
+ /** Optional email event type to filter by. Examples include Send, Delivery, Bounce, and DeliveryDelay */
3301
+ eventType?: string;
3302
+ /** Parameters used for cursor-based pagination */
3303
+ paginationOptions?: v1Pagination;
3304
+ };
3305
+ export type v1ListEmailEventsResponse = {
3306
+ /** Email events matching the requested filters, ordered by most recent event first. */
3307
+ emailEvents: v1EmailEvent[];
3308
+ };
2940
3309
  export type v1ListFiatOnRampCredentialsRequest = {
2941
3310
  /** Unique identifier for a given Organization. */
2942
3311
  organizationId: string;
@@ -2963,7 +3332,7 @@ export type v1ListSupportedAssetsRequest = {
2963
3332
  /** Unique identifier for a given organization. */
2964
3333
  organizationId: string;
2965
3334
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
2966
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
3335
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
2967
3336
  };
2968
3337
  export type v1ListSupportedAssetsResponse = {
2969
3338
  /** List of asset metadata */
@@ -2984,10 +3353,44 @@ export type v1ListWebhookEndpointsRequest = {
2984
3353
  export type v1ListWebhookEndpointsResponse = {
2985
3354
  webhookEndpoints: v1WebhookEndpointData[];
2986
3355
  };
3356
+ export type v1LogLine = {
3357
+ /** One log line, exactly as the application printed it (without the trailing newline) */
3358
+ content: string;
3359
+ /** When the line was logged. Stable across replays, so lines can be chronologically merged across pods */
3360
+ ts?: externaldatav1Timestamp;
3361
+ };
2987
3362
  export type v1LoginUsage = {
2988
3363
  /** Public key for authentication */
2989
3364
  publicKey: string;
2990
3365
  };
3366
+ export type v1MfaPolicy = {
3367
+ /** Unique identifier for a given MFA Policy. */
3368
+ mfaPolicyId: string;
3369
+ /** Human-readable name for an MFA Policy. */
3370
+ mfaPolicyName: string;
3371
+ /** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
3372
+ condition: string;
3373
+ /** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
3374
+ requiredAuthenticationMethods: v1RequiredAuthenticationMethod[];
3375
+ /** The order in which this policy is evaluated relative to other MFA policies. */
3376
+ order: number;
3377
+ /** Optional human-readable notes added by a User to describe a particular MFA policy. */
3378
+ notes?: string;
3379
+ createdAt: externaldatav1Timestamp;
3380
+ updatedAt: externaldatav1Timestamp;
3381
+ };
3382
+ export type v1MfaStatus = {
3383
+ /** Unique identifier for a given MFA Policy. */
3384
+ mfaPolicyId: string;
3385
+ /** Unique identifier for a given User. */
3386
+ userId: string;
3387
+ /** Whether the MFA policy requirements are currently satisfied. */
3388
+ satisfied: boolean;
3389
+ /** A list of authentication methods already satisfied for this MFA policy. */
3390
+ satisfiedMethods: v1AuthenticationMethod[];
3391
+ /** An ordered list of authentication requirements needed to satisfy this MFA policy. */
3392
+ requiredMethods: v1RequiredAuthenticationMethod[];
3393
+ };
2991
3394
  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";
2992
3395
  export type v1NOOPCodegenAnchorResponse = {
2993
3396
  stamp: v1WebAuthnStamp;
@@ -3063,6 +3466,8 @@ export type v1OauthLoginIntent = {
3063
3466
  expirationSeconds?: string;
3064
3467
  /** Invalidate all other previously generated Login API keys */
3065
3468
  invalidateExisting?: boolean;
3469
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
3470
+ sessionProfileId?: string;
3066
3471
  };
3067
3472
  export type v1OauthLoginRequest = {
3068
3473
  type: "ACTIVITY_TYPE_OAUTH_LOGIN";
@@ -3151,6 +3556,8 @@ export type v1OtpLoginIntent = {
3151
3556
  invalidateExisting?: boolean;
3152
3557
  /** Optional signature proving authorization for this login. The signature is over the verification token ID and the public key. Only required if a public key was provided during the verification step. */
3153
3558
  clientSignature?: v1ClientSignature;
3559
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
3560
+ sessionProfileId?: string;
3154
3561
  };
3155
3562
  export type v1OtpLoginIntentV2 = {
3156
3563
  /** Signed Verification Token containing a unique id, expiry, verification type, contact */
@@ -3163,12 +3570,14 @@ export type v1OtpLoginIntentV2 = {
3163
3570
  expirationSeconds?: string;
3164
3571
  /** Invalidate all other previously generated Login sessions */
3165
3572
  invalidateExisting?: boolean;
3573
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
3574
+ sessionProfileId?: string;
3166
3575
  };
3167
3576
  export type v1OtpLoginResult = {
3168
3577
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
3169
3578
  session: string;
3170
3579
  };
3171
- export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR";
3580
+ export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS";
3172
3581
  export type v1Pagination = {
3173
3582
  /** A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
3174
3583
  limit?: string;
@@ -3256,6 +3665,24 @@ export type v1QuorumKeyShareApprovalBundle = {
3256
3665
  /** Signature from the share set operator approving the manifest */
3257
3666
  signature: string;
3258
3667
  };
3668
+ export type v1ReEncryptTvcQuorumKeyShareIntent = {
3669
+ /** Base64-encoded attestation document for the TVC deployment provisioning enclave */
3670
+ attestationDocB64: string;
3671
+ /** Base64-encoded manifest for the TVC deployment */
3672
+ manifestB64: string;
3673
+ /** Operator encryption public key used to encrypt the hosted TVC quorum key share */
3674
+ operatorEncryptKey: string;
3675
+ /** Operator signing public key used to approve the TVC manifest */
3676
+ operatorSignKey: string;
3677
+ /** Unique identifier of the TVC deployment receiving the re-encrypted quorum key share */
3678
+ deploymentId: string;
3679
+ /** Quorum key for the TVC application */
3680
+ appQuorumKey: string;
3681
+ };
3682
+ export type v1ReEncryptTvcQuorumKeyShareResult = {
3683
+ /** The unique identifier for the provisioning quorum key share */
3684
+ provisioningShareId: string;
3685
+ };
3259
3686
  export type v1RecoverUserIntent = {
3260
3687
  /** The new authenticator to register. */
3261
3688
  authenticator: v1AuthenticatorParamsV2;
@@ -3319,6 +3746,14 @@ export type v1RemoveOrganizationFeatureResult = {
3319
3746
  /** Resulting list of organization features. */
3320
3747
  features: v1Feature[];
3321
3748
  };
3749
+ export type v1RequiredAuthenticationMethod = {
3750
+ /** A list of authentication methods for this MFA step. If only one method is provided, it is required. If multiple are provided, the user must satisfy ANY one of them. */
3751
+ any: v1AuthenticationMethod[];
3752
+ };
3753
+ export type v1RequiredAuthenticationMethodParams = {
3754
+ /** A list of authentication methods for this MFA step. If only one method is provided, it is required. If multiple are provided, the user must satisfy ANY one of them. */
3755
+ any: v1AuthenticationMethodParams[];
3756
+ };
3322
3757
  export type v1RestoreTvcDeploymentIntent = {
3323
3758
  /** The unique identifier of the TVC deployment to restore. */
3324
3759
  deploymentId: string;
@@ -3453,6 +3888,20 @@ export type v1Result = {
3453
3888
  sparkClaimTransferResult?: v1SparkClaimTransferResult;
3454
3889
  sparkPrepareLightningReceiveResult?: v1SparkPrepareLightningReceiveResult;
3455
3890
  postTvcQuorumKeyShareResult?: v1PostTvcQuorumKeyShareResult;
3891
+ ethSendTransactionResultV2?: v1EthSendTransactionResultV2;
3892
+ createMfaPolicyResult?: v1CreateMfaPolicyResult;
3893
+ updateMfaPolicyResult?: v1UpdateMfaPolicyResult;
3894
+ deleteMfaPolicyResult?: v1DeleteMfaPolicyResult;
3895
+ createSessionProfileResult?: v1CreateSessionProfileResult;
3896
+ earnDeployWrapperResult?: v1EarnDeployWrapperResult;
3897
+ earnDepositResult?: v1EarnDepositResult;
3898
+ earnWithdrawResult?: v1EarnWithdrawResult;
3899
+ upsertEarnClientFeeConfigResult?: v1UpsertEarnClientFeeConfigResult;
3900
+ executeSwapResult?: v1ExecuteSwapResult;
3901
+ upsertSwapConfigResult?: v1UpsertSwapConfigResult;
3902
+ createTvcOperatorResult?: v1CreateTvcOperatorResult;
3903
+ createTvcQuorumKeyResult?: v1CreateTvcQuorumKeyResult;
3904
+ reEncryptTvcQuorumKeyShareResult?: v1ReEncryptTvcQuorumKeyShareResult;
3456
3905
  };
3457
3906
  export type v1RevertChainEntry = {
3458
3907
  /** The contract address where the revert occurred. */
@@ -3540,6 +3989,20 @@ export type v1SelectorV2 = {
3540
3989
  operator?: v1Operator;
3541
3990
  targets?: string[];
3542
3991
  };
3992
+ export type v1SessionProfile = {
3993
+ /** Unique identifier for a given Session Profile. */
3994
+ sessionProfileId: string;
3995
+ /** Human-readable name for a Session Profile. */
3996
+ sessionProfileName: string;
3997
+ /** The specific scope that a session created with this profile is limited to. */
3998
+ scope: string;
3999
+ /** Optional window (in seconds) indicating how long sessions created with this profile should last. */
4000
+ expirationSeconds?: string;
4001
+ /** Optional human-readable notes added by a User to describe a particular Session Profile. */
4002
+ notes?: string;
4003
+ createdAt: externaldatav1Timestamp;
4004
+ updatedAt: externaldatav1Timestamp;
4005
+ };
3543
4006
  export type v1SetIpAllowlistIntent = {
3544
4007
  /** The public component of an API key. If null, the IP allowlist applies at the organization level. If set, it applies only to this specific API key. */
3545
4008
  publicKey?: string;
@@ -3945,6 +4408,8 @@ export type v1StampLoginIntent = {
3945
4408
  expirationSeconds?: string;
3946
4409
  /** Invalidate all other previously generated Login API keys */
3947
4410
  invalidateExisting?: boolean;
4411
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
4412
+ sessionProfileId?: string;
3948
4413
  };
3949
4414
  export type v1StampLoginRequest = {
3950
4415
  type: "ACTIVITY_TYPE_STAMP_LOGIN";
@@ -3991,6 +4456,8 @@ export type v1TvcApp = {
3991
4456
  liveDeploymentId?: string;
3992
4457
  /** The public domain for ingress to this TVC App (in the format "app-<ID>.turnkey.cloud"). */
3993
4458
  publicDomain: string;
4459
+ /** 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. */
4460
+ enableDebugModeDeployments: boolean;
3994
4461
  };
3995
4462
  export type v1TvcContainerSpec = {
3996
4463
  /** The URL for this container image. */
@@ -4031,6 +4498,14 @@ export type v1TvcDeployment = {
4031
4498
  updatedAt: externaldatav1Timestamp;
4032
4499
  /** Whether or not the user wants this deployment deleted from the cluster. */
4033
4500
  delete: boolean;
4501
+ /** Whether this deployment is running in debug mode. Debug-mode deployments expose enclave logs and cannot be remotely attested. */
4502
+ debugMode: boolean;
4503
+ };
4504
+ export type v1TvcDeploymentDebugLogEntry = {
4505
+ /** Application log line with its platform timestamp. */
4506
+ line: v1LogLine;
4507
+ /** Public replica label that produced this log line, for example 'replica 2/3'. */
4508
+ replicaLabel: string;
4034
4509
  };
4035
4510
  export type v1TvcHealthCheckType = "TVC_HEALTH_CHECK_TYPE_HTTP" | "TVC_HEALTH_CHECK_TYPE_GRPC";
4036
4511
  export type v1TvcManifest = {
@@ -4187,6 +4662,34 @@ export type v1UpdateFiatOnRampCredentialResult = {
4187
4662
  /** Unique identifier of the Fiat On-Ramp credential that was updated */
4188
4663
  fiatOnRampCredentialId: string;
4189
4664
  };
4665
+ export type v1UpdateMfaPolicyIntent = {
4666
+ /** The ID of the User to update the MFA Policy for. */
4667
+ userId: string;
4668
+ /** Unique identifier for a given MFA Policy. */
4669
+ mfaPolicyId: string;
4670
+ /** Human-readable name for a Policy. */
4671
+ mfaPolicyName?: string;
4672
+ /** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
4673
+ condition?: string;
4674
+ /** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
4675
+ requiredAuthenticationMethods?: v1RequiredAuthenticationMethodParams[];
4676
+ /** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
4677
+ order?: number;
4678
+ /** Notes for an MFA Policy. */
4679
+ notes?: string;
4680
+ };
4681
+ export type v1UpdateMfaPolicyRequest = {
4682
+ type: "ACTIVITY_TYPE_UPDATE_MFA_POLICY";
4683
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4684
+ timestampMs: string;
4685
+ /** Unique identifier for a given Organization. */
4686
+ organizationId: string;
4687
+ parameters: v1UpdateMfaPolicyIntent;
4688
+ };
4689
+ export type v1UpdateMfaPolicyResult = {
4690
+ /** Unique identifier for a given MFA Policy. */
4691
+ mfaPolicyId: string;
4692
+ };
4190
4693
  export type v1UpdateOauth2CredentialIntent = {
4191
4694
  /** The ID of the OAuth 2.0 credential to update */
4192
4695
  oauth2CredentialId: string;
@@ -4480,6 +4983,16 @@ export type v1UpdateWebhookEndpointResult = {
4480
4983
  /** The updated webhook endpoint data. */
4481
4984
  webhookEndpoint: v1WebhookEndpointData;
4482
4985
  };
4986
+ export type v1UpsertEarnClientFeeConfigIntent = {
4987
+ /** Your performance fee on gross yield, in basis points (e.g., '2000' for 20%). Your fee plus Turnkey's fee cannot exceed 50% of yield. */
4988
+ clientFeeBps: string;
4989
+ /** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
4990
+ clientFeeWallet: string;
4991
+ };
4992
+ export type v1UpsertEarnClientFeeConfigResult = {
4993
+ /** Transaction hash of the fee configuration update. */
4994
+ feeUpdateTxHash: string;
4995
+ };
4483
4996
  export type v1UpsertGasUsageConfigIntent = {
4484
4997
  /** Gas sponsorship USD limit for the billing organization window. */
4485
4998
  orgWindowLimitUsd: string;
@@ -4496,6 +5009,15 @@ export type v1UpsertGasUsageConfigResult = {
4496
5009
  /** Unique identifier for the gas usage configuration that was created or updated. */
4497
5010
  gasUsageConfigId: string;
4498
5011
  };
5012
+ export type v1UpsertSwapConfigIntent = {
5013
+ feeReceiverWalletAddress?: string;
5014
+ feeBps?: string;
5015
+ provider?: string;
5016
+ };
5017
+ export type v1UpsertSwapConfigResult = {
5018
+ feeReceiverWalletAddress?: string;
5019
+ feeBps?: string;
5020
+ };
4499
5021
  export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
4500
5022
  export type v1User = {
4501
5023
  /** Unique identifier for a given User. */
@@ -4516,6 +5038,8 @@ export type v1User = {
4516
5038
  oauthProviders: v1OauthProvider[];
4517
5039
  createdAt: externaldatav1Timestamp;
4518
5040
  updatedAt: externaldatav1Timestamp;
5041
+ /** A list of MFA Policies that define multi-factor authentication requirements for this user. */
5042
+ mfaPolicies: v1MfaPolicy[];
4519
5043
  };
4520
5044
  export type v1UserParams = {
4521
5045
  /** Human-readable name for a User. */
@@ -4663,6 +5187,8 @@ export type v1WalletAccount = {
4663
5187
  publicKey?: string;
4664
5188
  /** Wallet details for this account. This is only present when include_wallet_details=true. */
4665
5189
  walletDetails?: v1Wallet;
5190
+ /** Human-readable name for this Wallet Account, unique within the organization. */
5191
+ name?: string;
4666
5192
  };
4667
5193
  export type v1WalletKitSettingsParams = {
4668
5194
  /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
@@ -4823,6 +5349,46 @@ export type TGetLatestBootProofBody = {
4823
5349
  export type TGetLatestBootProofInput = {
4824
5350
  body: TGetLatestBootProofBody;
4825
5351
  };
5352
+ export type TGetMfaPoliciesResponse = {
5353
+ /** A list of multi-factor authentication policies for a user. */
5354
+ mfaPolicies: v1MfaPolicy[];
5355
+ };
5356
+ export type TGetMfaPoliciesBody = {
5357
+ organizationId?: string;
5358
+ /** Unique identifier for a given user. */
5359
+ userId: string;
5360
+ };
5361
+ export type TGetMfaPoliciesInput = {
5362
+ body: TGetMfaPoliciesBody;
5363
+ };
5364
+ export type TGetMfaPolicyResponse = {
5365
+ /** Multi-factor authentication policy for a user. */
5366
+ mfaPolicy: v1MfaPolicy;
5367
+ };
5368
+ export type TGetMfaPolicyBody = {
5369
+ organizationId?: string;
5370
+ /** Unique identifier for a given user. */
5371
+ userId: string;
5372
+ /** Unique identifier for a given MFA policy. */
5373
+ mfaPolicyId: string;
5374
+ };
5375
+ export type TGetMfaPolicyInput = {
5376
+ body: TGetMfaPolicyBody;
5377
+ };
5378
+ export type TGetMfaStatusResponse = {
5379
+ /** A list of MFA statuses for the activity's votes. */
5380
+ mfaStatuses: v1MfaStatus[];
5381
+ };
5382
+ export type TGetMfaStatusBody = {
5383
+ organizationId?: string;
5384
+ /** The unique identifier of the activity to get MFA status for. */
5385
+ activityId: string;
5386
+ /** Optional user ID to filter MFA status for a specific user. */
5387
+ userId?: string;
5388
+ };
5389
+ export type TGetMfaStatusInput = {
5390
+ body: TGetMfaStatusBody;
5391
+ };
4826
5392
  export type TGetNoncesResponse = {
4827
5393
  /** The standard on-chain nonce for the address, if requested. */
4828
5394
  nonce?: string;
@@ -4834,7 +5400,7 @@ export type TGetNoncesBody = {
4834
5400
  /** The Ethereum address to query nonces for. */
4835
5401
  address: string;
4836
5402
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
4837
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002";
5403
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
4838
5404
  /** Whether to fetch the standard on-chain nonce. */
4839
5405
  nonce?: boolean;
4840
5406
  /** Whether to fetch the gas station nonce used for sponsored transactions. */
@@ -4945,6 +5511,28 @@ export type TGetSendTransactionStatusBody = {
4945
5511
  export type TGetSendTransactionStatusInput = {
4946
5512
  body: TGetSendTransactionStatusBody;
4947
5513
  };
5514
+ export type TGetSessionProfileResponse = {
5515
+ /** Session profile for a user, including details about the user's authenticators, Oauth providers, API keys, and MFA policies. */
5516
+ sessionProfile: v1SessionProfile;
5517
+ };
5518
+ export type TGetSessionProfileBody = {
5519
+ organizationId?: string;
5520
+ /** Unique identifier for a session profile. */
5521
+ sessionProfileId: string;
5522
+ };
5523
+ export type TGetSessionProfileInput = {
5524
+ body: TGetSessionProfileBody;
5525
+ };
5526
+ export type TGetSessionProfilesResponse = {
5527
+ /** A list of session profiles for users in the organization. */
5528
+ sessionProfiles: v1SessionProfile[];
5529
+ };
5530
+ export type TGetSessionProfilesBody = {
5531
+ organizationId?: string;
5532
+ };
5533
+ export type TGetSessionProfilesInput = {
5534
+ body: TGetSessionProfilesBody;
5535
+ };
4948
5536
  export type TGetSmartContractInterfaceResponse = {
4949
5537
  /** Object to be used in conjunction with policies to guard transaction signing. */
4950
5538
  smartContractInterface: externaldatav1SmartContractInterface;
@@ -4981,6 +5569,22 @@ export type TGetTvcDeploymentBody = {
4981
5569
  export type TGetTvcDeploymentInput = {
4982
5570
  body: TGetTvcDeploymentBody;
4983
5571
  };
5572
+ export type TGetTvcDeploymentDebugLogsResponse = {
5573
+ /** Application log entries sorted by platform timestamp. */
5574
+ entries: v1TvcDeploymentDebugLogEntry[];
5575
+ };
5576
+ export type TGetTvcDeploymentDebugLogsBody = {
5577
+ organizationId?: string;
5578
+ /** Unique identifier for a given TVC Deployment. The deployment must be running in debug mode. */
5579
+ deploymentId: string;
5580
+ /** Limit returned history to the last N lines per replica. If unset or zero, no tail-line limit is applied. */
5581
+ tailLines?: number;
5582
+ /** Return logs newer than this many seconds ago. If unset or zero, no since-time limit is applied. Useful for clients that poll to follow logs. */
5583
+ sinceSeconds?: string;
5584
+ };
5585
+ export type TGetTvcDeploymentDebugLogsInput = {
5586
+ body: TGetTvcDeploymentDebugLogsBody;
5587
+ };
4984
5588
  export type TGetUserResponse = {
4985
5589
  /** Web and/or API user within your organization. */
4986
5590
  user: v1User;
@@ -5030,7 +5634,7 @@ export type TGetWalletAddressBalancesBody = {
5030
5634
  /** Address corresponding to a wallet account. Private key addresses are not supported. */
5031
5635
  address: string;
5032
5636
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
5033
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
5637
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
5034
5638
  };
5035
5639
  export type TGetWalletAddressBalancesInput = {
5036
5640
  body: TGetWalletAddressBalancesBody;
@@ -5062,6 +5666,22 @@ export type TGetAppProofsBody = {
5062
5666
  export type TGetAppProofsInput = {
5063
5667
  body: TGetAppProofsBody;
5064
5668
  };
5669
+ export type TListEmailEventsResponse = {
5670
+ /** Email events matching the requested filters, ordered by most recent event first. */
5671
+ emailEvents: v1EmailEvent[];
5672
+ };
5673
+ export type TListEmailEventsBody = {
5674
+ organizationId?: string;
5675
+ /** Recipient email address to list email events for */
5676
+ email: string;
5677
+ /** Optional email event type to filter by. Examples include Send, Delivery, Bounce, and DeliveryDelay */
5678
+ eventType?: string;
5679
+ /** Parameters used for cursor-based pagination */
5680
+ paginationOptions?: v1Pagination;
5681
+ };
5682
+ export type TListEmailEventsInput = {
5683
+ body: TListEmailEventsBody;
5684
+ };
5065
5685
  export type TListFiatOnRampCredentialsResponse = {
5066
5686
  fiatOnRampCredentials: v1FiatOnRampCredential[];
5067
5687
  };
@@ -5143,7 +5763,7 @@ export type TListSupportedAssetsResponse = {
5143
5763
  export type TListSupportedAssetsBody = {
5144
5764
  organizationId?: string;
5145
5765
  /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
5146
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
5766
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
5147
5767
  };
5148
5768
  export type TListSupportedAssetsInput = {
5149
5769
  body: TListSupportedAssetsBody;
@@ -5358,6 +5978,30 @@ export type TCreateInvitationsBody = {
5358
5978
  export type TCreateInvitationsInput = {
5359
5979
  body: TCreateInvitationsBody;
5360
5980
  };
5981
+ export type TCreateMfaPolicyResponse = {
5982
+ activity: v1Activity;
5983
+ /** Unique identifier for a given MFA Policy. */
5984
+ mfaPolicyId: string;
5985
+ };
5986
+ export type TCreateMfaPolicyBody = {
5987
+ timestampMs?: string;
5988
+ organizationId?: string;
5989
+ /** The ID of the User to add the MFA Policy to. */
5990
+ userId: string;
5991
+ /** Human-readable name for a Policy. */
5992
+ mfaPolicyName: string;
5993
+ /** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
5994
+ condition: string;
5995
+ /** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
5996
+ requiredAuthenticationMethods: v1RequiredAuthenticationMethodParams[];
5997
+ /** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
5998
+ order: number;
5999
+ /** Notes for an MFA Policy. */
6000
+ notes?: string;
6001
+ };
6002
+ export type TCreateMfaPolicyInput = {
6003
+ body: TCreateMfaPolicyBody;
6004
+ };
5361
6005
  export type TCreateOauth2CredentialResponse = {
5362
6006
  activity: v1Activity;
5363
6007
  /** Unique identifier of the OAuth 2.0 credential that was created */
@@ -5522,6 +6166,26 @@ export type TCreateReadWriteSessionBody = {
5522
6166
  export type TCreateReadWriteSessionInput = {
5523
6167
  body: TCreateReadWriteSessionBody;
5524
6168
  };
6169
+ export type TCreateSessionProfileResponse = {
6170
+ activity: v1Activity;
6171
+ /** Unique identifier for a given Session Profile. */
6172
+ sessionProfileId: string;
6173
+ };
6174
+ export type TCreateSessionProfileBody = {
6175
+ timestampMs?: string;
6176
+ organizationId?: string;
6177
+ /** Human-readable name for a Session Profile. */
6178
+ sessionProfileName: string;
6179
+ /** The scope string that defines the permissions for this Session Profile. */
6180
+ scope: string;
6181
+ /** The duration in seconds for which sessions created with this Session Profile are valid. If not set, expiration will be determined by the value passed in to the intent of login activities. */
6182
+ expirationSeconds?: string;
6183
+ /** Notes for a Session Profile. */
6184
+ notes?: string;
6185
+ };
6186
+ export type TCreateSessionProfileInput = {
6187
+ body: TCreateSessionProfileBody;
6188
+ };
5525
6189
  export type TCreateSmartContractInterfaceResponse = {
5526
6190
  activity: v1Activity;
5527
6191
  /** The ID of the created Smart Contract Interface. */
@@ -5606,6 +6270,8 @@ export type TCreateTvcAppBody = {
5606
6270
  shareSetParams?: v1TvcOperatorSetParams;
5607
6271
  /** Enables network egress for this TVC app. Default if not provided: false. */
5608
6272
  enableEgress?: boolean;
6273
+ /** 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. */
6274
+ enableDebugModeDeployments?: boolean;
5609
6275
  };
5610
6276
  export type TCreateTvcAppInput = {
5611
6277
  body: TCreateTvcAppBody;
@@ -5823,6 +6489,22 @@ export type TDeleteInvitationBody = {
5823
6489
  export type TDeleteInvitationInput = {
5824
6490
  body: TDeleteInvitationBody;
5825
6491
  };
6492
+ export type TDeleteMfaPolicyResponse = {
6493
+ activity: v1Activity;
6494
+ /** Unique identifier for a given MFA Policy. */
6495
+ mfaPolicyId: string;
6496
+ };
6497
+ export type TDeleteMfaPolicyBody = {
6498
+ timestampMs?: string;
6499
+ organizationId?: string;
6500
+ /** The ID of the User to delete the MFA Policy from. */
6501
+ userId: string;
6502
+ /** Unique identifier for a given MFA Policy. */
6503
+ mfaPolicyId: string;
6504
+ };
6505
+ export type TDeleteMfaPolicyInput = {
6506
+ body: TDeleteMfaPolicyBody;
6507
+ };
5826
6508
  export type TDeleteOauth2CredentialResponse = {
5827
6509
  activity: v1Activity;
5828
6510
  /** Unique identifier of the OAuth 2.0 credential that was deleted */
@@ -6093,43 +6775,6 @@ export type TEmailAuthBody = {
6093
6775
  export type TEmailAuthInput = {
6094
6776
  body: TEmailAuthBody;
6095
6777
  };
6096
- export type TEthSendTransactionResponse = {
6097
- activity: v1Activity;
6098
- /** The send_transaction_status ID associated with the transaction submission */
6099
- sendTransactionStatusId: string;
6100
- };
6101
- export type TEthSendTransactionBody = {
6102
- timestampMs?: string;
6103
- organizationId?: string;
6104
- /** A wallet or private key address to sign with. This does not support private key IDs. */
6105
- from: string;
6106
- /** Whether to sponsor this transaction via Gas Station. */
6107
- sponsor?: boolean;
6108
- /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
6109
- caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002";
6110
- /** Recipient address as a hex string with 0x prefix. */
6111
- to: string;
6112
- /** Amount of native asset to send in wei. */
6113
- value?: string;
6114
- /** Hex-encoded call data for contract interactions. */
6115
- data?: string;
6116
- /** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
6117
- nonce?: string;
6118
- /** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
6119
- gasLimit?: string;
6120
- /** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
6121
- maxFeePerGas?: string;
6122
- /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
6123
- maxPriorityFeePerGas?: string;
6124
- /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
6125
- deadline?: string;
6126
- /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
6127
- gasStationNonce?: string;
6128
- generateAppProofs?: boolean;
6129
- };
6130
- export type TEthSendTransactionInput = {
6131
- body: TEthSendTransactionBody;
6132
- };
6133
6778
  export type TExportPrivateKeyResponse = {
6134
6779
  activity: v1Activity;
6135
6780
  /** Unique identifier for a given Private Key. */
@@ -6477,6 +7122,8 @@ export type TOauthLoginBody = {
6477
7122
  expirationSeconds?: string;
6478
7123
  /** Invalidate all other previously generated Login API keys */
6479
7124
  invalidateExisting?: boolean;
7125
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
7126
+ sessionProfileId?: string;
6480
7127
  generateAppProofs?: boolean;
6481
7128
  };
6482
7129
  export type TOauthLoginInput = {
@@ -6529,6 +7176,8 @@ export type TOtpLoginBody = {
6529
7176
  expirationSeconds?: string;
6530
7177
  /** Invalidate all other previously generated Login sessions */
6531
7178
  invalidateExisting?: boolean;
7179
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
7180
+ sessionProfileId?: string;
6532
7181
  generateAppProofs?: boolean;
6533
7182
  };
6534
7183
  export type TOtpLoginInput = {
@@ -6827,6 +7476,8 @@ export type TStampLoginBody = {
6827
7476
  expirationSeconds?: string;
6828
7477
  /** Invalidate all other previously generated Login API keys */
6829
7478
  invalidateExisting?: boolean;
7479
+ /** Optional session profile ID to specify which Session Profile to use for this login. If not provided, the default read/write session will be used. */
7480
+ sessionProfileId?: string;
6830
7481
  generateAppProofs?: boolean;
6831
7482
  };
6832
7483
  export type TStampLoginInput = {
@@ -6857,6 +7508,32 @@ export type TUpdateFiatOnRampCredentialBody = {
6857
7508
  export type TUpdateFiatOnRampCredentialInput = {
6858
7509
  body: TUpdateFiatOnRampCredentialBody;
6859
7510
  };
7511
+ export type TUpdateMfaPolicyResponse = {
7512
+ activity: v1Activity;
7513
+ /** Unique identifier for a given MFA Policy. */
7514
+ mfaPolicyId: string;
7515
+ };
7516
+ export type TUpdateMfaPolicyBody = {
7517
+ timestampMs?: string;
7518
+ organizationId?: string;
7519
+ /** The ID of the User to update the MFA Policy for. */
7520
+ userId: string;
7521
+ /** Unique identifier for a given MFA Policy. */
7522
+ mfaPolicyId: string;
7523
+ /** Human-readable name for a Policy. */
7524
+ mfaPolicyName?: string;
7525
+ /** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
7526
+ condition?: string;
7527
+ /** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
7528
+ requiredAuthenticationMethods?: v1RequiredAuthenticationMethodParams[];
7529
+ /** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
7530
+ order?: number;
7531
+ /** Notes for an MFA Policy. */
7532
+ notes?: string;
7533
+ };
7534
+ export type TUpdateMfaPolicyInput = {
7535
+ body: TUpdateMfaPolicyBody;
7536
+ };
6860
7537
  export type TUpdateOauth2CredentialResponse = {
6861
7538
  activity: v1Activity;
6862
7539
  /** Unique identifier of the OAuth 2.0 credential that was updated */
@@ -7117,6 +7794,76 @@ export type TVerifyOtpInput = {
7117
7794
  export type TNOOPCodegenAnchorResponse = {
7118
7795
  activity: v1Activity;
7119
7796
  };
7797
+ export type TEthSendTransactionResponse = {
7798
+ activity: v1Activity;
7799
+ /** The send_transaction_status ID associated with the transaction submission */
7800
+ sendTransactionStatusId: string;
7801
+ };
7802
+ export type TEthSendTransactionBody = {
7803
+ timestampMs?: string;
7804
+ organizationId?: string;
7805
+ /** A wallet or private key address to sign with. This does not support private key IDs. */
7806
+ from: string;
7807
+ /** Whether to sponsor this transaction via Gas Station. */
7808
+ sponsor?: boolean;
7809
+ /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
7810
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
7811
+ /** Recipient address as a hex string with 0x prefix. */
7812
+ to: string;
7813
+ /** Amount of native asset to send in wei. */
7814
+ value?: string;
7815
+ /** Hex-encoded call data for contract interactions. */
7816
+ data?: string;
7817
+ /** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
7818
+ nonce?: string;
7819
+ /** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
7820
+ gasLimit?: string;
7821
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
7822
+ maxFeePerGas?: string;
7823
+ /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
7824
+ maxPriorityFeePerGas?: string;
7825
+ /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
7826
+ deadline?: string;
7827
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
7828
+ gasStationNonce?: string;
7829
+ generateAppProofs?: boolean;
7830
+ };
7831
+ export type TEthSendTransactionInput = {
7832
+ body: TEthSendTransactionBody;
7833
+ };
7834
+ export type TEthSendTransactionV2Response = {
7835
+ activity: v1Activity;
7836
+ /** The send_transaction_status ID associated with the transaction submission */
7837
+ sendTransactionStatusId: string;
7838
+ };
7839
+ export type TEthSendTransactionV2Body = {
7840
+ timestampMs?: string;
7841
+ organizationId?: string;
7842
+ /** A wallet or private key address to sign with. This does not support private key IDs. */
7843
+ from: string;
7844
+ /** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
7845
+ caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
7846
+ /** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
7847
+ sponsor?: boolean;
7848
+ /** Outer transaction nonce. Omit to auto-fetch. */
7849
+ nonce?: string;
7850
+ /** Maximum amount of gas for the outer transaction. Omit to auto-estimate. */
7851
+ gasLimit?: string;
7852
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
7853
+ maxFeePerGas?: string;
7854
+ /** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
7855
+ maxPriorityFeePerGas?: string;
7856
+ /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
7857
+ deadline?: string;
7858
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
7859
+ gasStationNonce?: string;
7860
+ /** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
7861
+ calls: v1EthCallParams[];
7862
+ generateAppProofs?: boolean;
7863
+ };
7864
+ export type TEthSendTransactionV2Input = {
7865
+ body: TEthSendTransactionV2Body;
7866
+ };
7120
7867
  export type ProxyTGetAccountResponse = {
7121
7868
  organizationId?: string;
7122
7869
  };