@turnkey/sdk-types 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,6 +74,11 @@ export type v1GetAccountRequest = {
|
|
|
74
74
|
export type v1GetAccountResponse = {
|
|
75
75
|
organizationId?: string;
|
|
76
76
|
};
|
|
77
|
+
export type v1GetWalletKitClientParamsRequest = {};
|
|
78
|
+
export type v1GetWalletKitClientParamsResponse = {
|
|
79
|
+
/** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
|
|
80
|
+
turnstileSiteKey?: string;
|
|
81
|
+
};
|
|
77
82
|
export type v1GetWalletKitConfigRequest = {};
|
|
78
83
|
export type v1GetWalletKitConfigResponse = {
|
|
79
84
|
/** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
|
|
@@ -291,6 +296,8 @@ export type v1WalletAccountParams = {
|
|
|
291
296
|
path: string;
|
|
292
297
|
/** Address format used to generate a wallet Acccount. */
|
|
293
298
|
addressFormat: v1AddressFormat;
|
|
299
|
+
/** Optional human-readable name for the account. */
|
|
300
|
+
name?: string;
|
|
294
301
|
};
|
|
295
302
|
export type v1WalletParams = {
|
|
296
303
|
/** Human-readable name for a Wallet. */
|
|
@@ -390,6 +397,8 @@ export type externaldatav1Credential = {
|
|
|
390
397
|
/** The public component of a cryptographic key pair used to sign messages and transactions. */
|
|
391
398
|
publicKey: string;
|
|
392
399
|
type: v1CredentialType;
|
|
400
|
+
/** The session profile associated with this credential, if any. This field is only applicable for credentials of type CREDENTIAL_TYPE_LOGIN. */
|
|
401
|
+
sessionProfileId?: string;
|
|
393
402
|
};
|
|
394
403
|
export type externaldatav1Quorum = {
|
|
395
404
|
/** Count of unique approvals required to meet quorum. */
|
|
@@ -480,8 +489,8 @@ export type v1ActivityResponse = {
|
|
|
480
489
|
/** An action that can be taken within the Turnkey infrastructure. */
|
|
481
490
|
activity: v1Activity;
|
|
482
491
|
};
|
|
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";
|
|
492
|
+
export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
|
|
493
|
+
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES";
|
|
485
494
|
export type v1ApiKey = {
|
|
486
495
|
/** A User credential that can be used to authenticate to Turnkey. */
|
|
487
496
|
credential: externaldatav1Credential;
|
|
@@ -557,6 +566,19 @@ export type v1AssetMetadata = {
|
|
|
557
566
|
/** The asset name */
|
|
558
567
|
name?: string;
|
|
559
568
|
};
|
|
569
|
+
export type v1AuthenticationMethod = {
|
|
570
|
+
/** The type of authenticator (e.g., AUTHENTICATION_TYPE_EMAIL, AUTHENTICATION_TYPE_SESSION) required for this MFA step. */
|
|
571
|
+
type: v1AuthenticationType;
|
|
572
|
+
/** Optional specific authenticator ID required (e.g., for requiring a specific session profile id) */
|
|
573
|
+
id?: string;
|
|
574
|
+
};
|
|
575
|
+
export type v1AuthenticationMethodParams = {
|
|
576
|
+
/** The type of authenticator (e.g., AUTHENTICATION_TYPE_PASSKEY for passkey authentication). */
|
|
577
|
+
type: v1AuthenticationType;
|
|
578
|
+
/** Optional specific authenticator ID required (e.g., UUID of a passkey authenticator). If not provided, any authenticator of the specified type can be used. */
|
|
579
|
+
id?: string;
|
|
580
|
+
};
|
|
581
|
+
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
582
|
export type v1Authenticator = {
|
|
561
583
|
/** Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
|
|
562
584
|
transports: v1AuthenticatorTransport[];
|
|
@@ -596,9 +618,9 @@ export type v1BootProof = {
|
|
|
596
618
|
ephemeralPublicKeyHex: string;
|
|
597
619
|
/** The DER encoded COSE Sign1 struct Attestation doc. */
|
|
598
620
|
awsAttestationDocB64: string;
|
|
599
|
-
/** The
|
|
621
|
+
/** The base64 encoded QOS manifest. Encoding depends on qos_manifest_version. */
|
|
600
622
|
qosManifestB64: string;
|
|
601
|
-
/** The
|
|
623
|
+
/** The base64 encoded QOS manifest envelope. Encoding depends on qos_manifest_version. */
|
|
602
624
|
qosManifestEnvelopeB64: string;
|
|
603
625
|
/** The label under which the enclave app was deployed. */
|
|
604
626
|
deploymentLabel: string;
|
|
@@ -607,10 +629,34 @@ export type v1BootProof = {
|
|
|
607
629
|
/** Owner of the app i.e. 'tkhq' */
|
|
608
630
|
owner: string;
|
|
609
631
|
createdAt: externaldatav1Timestamp;
|
|
632
|
+
/** QOS manifest schema version. */
|
|
633
|
+
qosManifestVersion?: string;
|
|
610
634
|
};
|
|
611
635
|
export type v1BootProofResponse = {
|
|
612
636
|
bootProof: v1BootProof;
|
|
613
637
|
};
|
|
638
|
+
export type v1ClaimEarnFeesIntent = {
|
|
639
|
+
/** Address of the deployed Earn wrapper to claim fees for. Must be one of the org's deployed wrappers. */
|
|
640
|
+
wrapperAddress: string;
|
|
641
|
+
};
|
|
642
|
+
export type v1ClaimEarnFeesRequest = {
|
|
643
|
+
type: "ACTIVITY_TYPE_CLAIM_EARN_FEES";
|
|
644
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
645
|
+
timestampMs: string;
|
|
646
|
+
/** Unique identifier for a given Organization. */
|
|
647
|
+
organizationId: string;
|
|
648
|
+
parameters: v1ClaimEarnFeesIntent;
|
|
649
|
+
generateAppProofs?: boolean;
|
|
650
|
+
};
|
|
651
|
+
export type v1ClaimEarnFeesResult = {
|
|
652
|
+
/** Identifier to poll claim status and tx hash via GetClaimEarnFeesStatus. */
|
|
653
|
+
claimRequestId: string;
|
|
654
|
+
};
|
|
655
|
+
export type v1ClaimSwapFeesIntent = {};
|
|
656
|
+
export type v1ClaimSwapFeesResult = {
|
|
657
|
+
/** Relay claim request ID submitted through the permit endpoint. */
|
|
658
|
+
requestId: string;
|
|
659
|
+
};
|
|
614
660
|
export type v1Config = {
|
|
615
661
|
features?: v1Feature[];
|
|
616
662
|
quorum?: externaldatav1Quorum;
|
|
@@ -717,6 +763,32 @@ export type v1CreateInvitationsResult = {
|
|
|
717
763
|
/** A list of Invitation IDs */
|
|
718
764
|
invitationIds: string[];
|
|
719
765
|
};
|
|
766
|
+
export type v1CreateMfaPolicyIntent = {
|
|
767
|
+
/** The ID of the User to add the MFA Policy to. */
|
|
768
|
+
userId: string;
|
|
769
|
+
/** Human-readable name for a Policy. */
|
|
770
|
+
mfaPolicyName: string;
|
|
771
|
+
/** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
|
|
772
|
+
condition: string;
|
|
773
|
+
/** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
|
|
774
|
+
requiredAuthenticationMethods: v1RequiredAuthenticationMethodParams[];
|
|
775
|
+
/** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
|
|
776
|
+
order: number;
|
|
777
|
+
/** Notes for an MFA Policy. */
|
|
778
|
+
notes?: string;
|
|
779
|
+
};
|
|
780
|
+
export type v1CreateMfaPolicyRequest = {
|
|
781
|
+
type: "ACTIVITY_TYPE_CREATE_MFA_POLICY";
|
|
782
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
783
|
+
timestampMs: string;
|
|
784
|
+
/** Unique identifier for a given Organization. */
|
|
785
|
+
organizationId: string;
|
|
786
|
+
parameters: v1CreateMfaPolicyIntent;
|
|
787
|
+
};
|
|
788
|
+
export type v1CreateMfaPolicyResult = {
|
|
789
|
+
/** Unique identifier for a given MFA Policy. */
|
|
790
|
+
mfaPolicyId: string;
|
|
791
|
+
};
|
|
720
792
|
export type v1CreateOauth2CredentialIntent = {
|
|
721
793
|
/** The OAuth 2.0 provider */
|
|
722
794
|
provider: v1Oauth2Provider;
|
|
@@ -980,6 +1052,28 @@ export type v1CreateReadWriteSessionResultV2 = {
|
|
|
980
1052
|
/** HPKE encrypted credential bundle */
|
|
981
1053
|
credentialBundle: string;
|
|
982
1054
|
};
|
|
1055
|
+
export type v1CreateSessionProfileIntent = {
|
|
1056
|
+
/** Human-readable name for a Session Profile. */
|
|
1057
|
+
sessionProfileName: string;
|
|
1058
|
+
/** The scope string that defines the permissions for this Session Profile. */
|
|
1059
|
+
scope: string;
|
|
1060
|
+
/** 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. */
|
|
1061
|
+
expirationSeconds?: string;
|
|
1062
|
+
/** Notes for a Session Profile. */
|
|
1063
|
+
notes?: string;
|
|
1064
|
+
};
|
|
1065
|
+
export type v1CreateSessionProfileRequest = {
|
|
1066
|
+
type: "ACTIVITY_TYPE_CREATE_SESSION_PROFILE";
|
|
1067
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1068
|
+
timestampMs: string;
|
|
1069
|
+
/** Unique identifier for a given Organization. */
|
|
1070
|
+
organizationId: string;
|
|
1071
|
+
parameters: v1CreateSessionProfileIntent;
|
|
1072
|
+
};
|
|
1073
|
+
export type v1CreateSessionProfileResult = {
|
|
1074
|
+
/** Unique identifier for a given Session Profile. */
|
|
1075
|
+
sessionProfileId: string;
|
|
1076
|
+
};
|
|
983
1077
|
export type v1CreateSmartContractInterfaceIntent = {
|
|
984
1078
|
/** Corresponding contract address or program ID */
|
|
985
1079
|
smartContractAddress: string;
|
|
@@ -1173,6 +1267,8 @@ export type v1CreateTvcAppIntent = {
|
|
|
1173
1267
|
shareSetParams?: v1TvcOperatorSetParams;
|
|
1174
1268
|
/** Enables network egress for this TVC app. Default if not provided: false. */
|
|
1175
1269
|
enableEgress?: boolean;
|
|
1270
|
+
/** 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. */
|
|
1271
|
+
enableDebugModeDeployments?: boolean;
|
|
1176
1272
|
};
|
|
1177
1273
|
export type v1CreateTvcAppRequest = {
|
|
1178
1274
|
type: "ACTIVITY_TYPE_CREATE_TVC_APP";
|
|
@@ -1217,6 +1313,8 @@ export type v1CreateTvcDeploymentIntent = {
|
|
|
1217
1313
|
healthCheckPort: number;
|
|
1218
1314
|
/** Port to use for public ingress. */
|
|
1219
1315
|
publicIngressPort: number;
|
|
1316
|
+
/** Optional desired replica count for this deployment. */
|
|
1317
|
+
replicas?: number;
|
|
1220
1318
|
};
|
|
1221
1319
|
export type v1CreateTvcDeploymentRequest = {
|
|
1222
1320
|
type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
|
|
@@ -1250,6 +1348,40 @@ export type v1CreateTvcManifestApprovalsResult = {
|
|
|
1250
1348
|
/** The unique identifier(s) for the manifest approvals */
|
|
1251
1349
|
approvalIds: string[];
|
|
1252
1350
|
};
|
|
1351
|
+
export type v1CreateTvcOperatorIntent = {
|
|
1352
|
+
/** Human-readable name for a new wallet created for this TVC operator */
|
|
1353
|
+
walletName?: string;
|
|
1354
|
+
/** Unique identifier for an existing wallet to reuse for this TVC operator */
|
|
1355
|
+
walletId?: string;
|
|
1356
|
+
/** Base derivation path for creating TVC operator wallet accounts */
|
|
1357
|
+
path: string;
|
|
1358
|
+
/** Human-readable name for this new TVC operator */
|
|
1359
|
+
operatorName: string;
|
|
1360
|
+
};
|
|
1361
|
+
export type v1CreateTvcOperatorResult = {
|
|
1362
|
+
/** The unique identifier for the wallet containing TVC operator accounts */
|
|
1363
|
+
walletId: string;
|
|
1364
|
+
/** The unique identifier for the TVC operator */
|
|
1365
|
+
operatorId: string;
|
|
1366
|
+
/** Public encryption key for this TVC operator */
|
|
1367
|
+
encryptPublicKey: string;
|
|
1368
|
+
/** Public signing key for this TVC operator */
|
|
1369
|
+
signPublicKey: string;
|
|
1370
|
+
};
|
|
1371
|
+
export type v1CreateTvcQuorumKeyIntent = {
|
|
1372
|
+
/** The threshold of operators needed to reassemble this TVC quorum key */
|
|
1373
|
+
threshold: number;
|
|
1374
|
+
/** Operator public keys used to encrypt and later approve the generated TVC quorum key shares */
|
|
1375
|
+
operatorEncryptKeys: string[];
|
|
1376
|
+
};
|
|
1377
|
+
export type v1CreateTvcQuorumKeyResult = {
|
|
1378
|
+
/** The unique identifier for the TVC quorum key */
|
|
1379
|
+
quorumKeyId: string;
|
|
1380
|
+
/** Public key for the generated TVC quorum key */
|
|
1381
|
+
quorumPublicKey: string;
|
|
1382
|
+
/** The unique identifier(s) for the generated TVC quorum key shares */
|
|
1383
|
+
shareIds: string[];
|
|
1384
|
+
};
|
|
1253
1385
|
export type v1CreateUserTagIntent = {
|
|
1254
1386
|
/** Human-readable name for a User Tag. */
|
|
1255
1387
|
userTagName: string;
|
|
@@ -1449,6 +1581,24 @@ export type v1DeleteInvitationResult = {
|
|
|
1449
1581
|
/** Unique identifier for a given Invitation. */
|
|
1450
1582
|
invitationId: string;
|
|
1451
1583
|
};
|
|
1584
|
+
export type v1DeleteMfaPolicyIntent = {
|
|
1585
|
+
/** The ID of the User to delete the MFA Policy from. */
|
|
1586
|
+
userId: string;
|
|
1587
|
+
/** Unique identifier for a given MFA Policy. */
|
|
1588
|
+
mfaPolicyId: string;
|
|
1589
|
+
};
|
|
1590
|
+
export type v1DeleteMfaPolicyRequest = {
|
|
1591
|
+
type: "ACTIVITY_TYPE_DELETE_MFA_POLICY";
|
|
1592
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1593
|
+
timestampMs: string;
|
|
1594
|
+
/** Unique identifier for a given Organization. */
|
|
1595
|
+
organizationId: string;
|
|
1596
|
+
parameters: v1DeleteMfaPolicyIntent;
|
|
1597
|
+
};
|
|
1598
|
+
export type v1DeleteMfaPolicyResult = {
|
|
1599
|
+
/** Unique identifier for a given MFA Policy. */
|
|
1600
|
+
mfaPolicyId: string;
|
|
1601
|
+
};
|
|
1452
1602
|
export type v1DeleteOauth2CredentialIntent = {
|
|
1453
1603
|
/** The ID of the OAuth 2.0 credential to delete */
|
|
1454
1604
|
oauth2CredentialId: string;
|
|
@@ -1744,6 +1894,195 @@ export type v1DisablePrivateKeyResult = {
|
|
|
1744
1894
|
/** Unique identifier for a given Private Key. */
|
|
1745
1895
|
privateKeyId: string;
|
|
1746
1896
|
};
|
|
1897
|
+
export type v1EarnDeployWrapperIntent = {
|
|
1898
|
+
/** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
|
|
1899
|
+
vaultAddress: string;
|
|
1900
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
1901
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
1902
|
+
/** Your performance fee on gross yield, in basis points (e.g., '2000' for 20%). Your fee plus Turnkey's fee cannot exceed 50% of yield. */
|
|
1903
|
+
clientFeeBps: string;
|
|
1904
|
+
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
1905
|
+
clientFeeWallet: string;
|
|
1906
|
+
};
|
|
1907
|
+
export type v1EarnDeployWrapperRequest = {
|
|
1908
|
+
type: "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER";
|
|
1909
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1910
|
+
timestampMs: string;
|
|
1911
|
+
/** Unique identifier for a given Organization. */
|
|
1912
|
+
organizationId: string;
|
|
1913
|
+
parameters: v1EarnDeployWrapperIntent;
|
|
1914
|
+
generateAppProofs?: boolean;
|
|
1915
|
+
};
|
|
1916
|
+
export type v1EarnDeployWrapperResult = {
|
|
1917
|
+
/** Address of the deployed fee wrapper (the deposit target). */
|
|
1918
|
+
wrapperAddress: string;
|
|
1919
|
+
/** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
|
|
1920
|
+
splitterAddress: string;
|
|
1921
|
+
/** Identifier to poll deploy status. */
|
|
1922
|
+
deployRequestId: string;
|
|
1923
|
+
};
|
|
1924
|
+
export type v1EarnDepositIntent = {
|
|
1925
|
+
/** Address of the deployed Earn wrapper to deposit into, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
1926
|
+
wrapperAddress: string;
|
|
1927
|
+
/** A Wallet account address or Private Key address to deposit from and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
|
|
1928
|
+
signWith: string;
|
|
1929
|
+
/** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
|
|
1930
|
+
assets: string;
|
|
1931
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
1932
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
1933
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
1934
|
+
sponsor?: boolean;
|
|
1935
|
+
};
|
|
1936
|
+
export type v1EarnDepositRequest = {
|
|
1937
|
+
type: "ACTIVITY_TYPE_EARN_DEPOSIT";
|
|
1938
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1939
|
+
timestampMs: string;
|
|
1940
|
+
/** Unique identifier for a given Organization. */
|
|
1941
|
+
organizationId: string;
|
|
1942
|
+
parameters: v1EarnDepositIntent;
|
|
1943
|
+
generateAppProofs?: boolean;
|
|
1944
|
+
};
|
|
1945
|
+
export type v1EarnDepositResult = {
|
|
1946
|
+
/** Identifier to poll deposit status and tx hash via GetEarnDepositStatus. */
|
|
1947
|
+
depositRequestId: string;
|
|
1948
|
+
};
|
|
1949
|
+
export type v1EarnEnabledVault = {
|
|
1950
|
+
/** Address of the underlying yield vault. */
|
|
1951
|
+
vaultAddress?: string;
|
|
1952
|
+
/** Address of the deployed fee wrapper (the deposit target). */
|
|
1953
|
+
wrapperAddress?: string;
|
|
1954
|
+
/** Yield provider for the vault. */
|
|
1955
|
+
provider?: v1EarnProvider;
|
|
1956
|
+
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
1957
|
+
caip19?: string;
|
|
1958
|
+
/** Gross annual percentage yield, expressed as a decimal fraction (before Turnkey and client fees). */
|
|
1959
|
+
apyPct?: string;
|
|
1960
|
+
/** Total deposited through this wrapper (wrapper TVL), in raw on-chain units of the underlying asset. */
|
|
1961
|
+
totalDeposited?: string;
|
|
1962
|
+
/** Normalized total-deposited values for display only (usd + crypto). Do not do arithmetic with these; use total_deposited instead. */
|
|
1963
|
+
display?: v1EarnValueDisplay;
|
|
1964
|
+
/** Annual percentage yield net of the Turnkey and client performance fees, expressed as a decimal fraction. */
|
|
1965
|
+
netApyPct?: string;
|
|
1966
|
+
/** Client performance fee taken on yield, in basis points. Currently org-wide; moving to a per-vault setting. */
|
|
1967
|
+
clientFeeBps?: string;
|
|
1968
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
|
|
1969
|
+
depositsDisabled?: boolean;
|
|
1970
|
+
/** Human-readable vault name from the provider (e.g. 'Steakhouse Prime USDC' for Morpho; the reserve symbol for Aave). */
|
|
1971
|
+
name?: string;
|
|
1972
|
+
/** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
|
|
1973
|
+
curator?: string;
|
|
1974
|
+
/** The client's claimable performance fee (releasable now), in raw on-chain units of the underlying asset (the caip19 asset). Turnkey's fee is excluded. Only returned to the parent org; unset when a sub-org queries. */
|
|
1975
|
+
claimableClientFee?: string;
|
|
1976
|
+
/** Normalized claimable_client_fee for display only (usd + crypto). Do not do arithmetic with these; use claimable_client_fee. Unset when a sub-org queries. */
|
|
1977
|
+
claimableClientFeeDisplay?: v1EarnValueDisplay;
|
|
1978
|
+
};
|
|
1979
|
+
export type v1EarnPosition = {
|
|
1980
|
+
/** Address of the underlying yield vault. */
|
|
1981
|
+
vaultAddress?: string;
|
|
1982
|
+
/** Address of the fee wrapper holding the position. */
|
|
1983
|
+
wrapperAddress?: string;
|
|
1984
|
+
/** Yield provider for the vault. */
|
|
1985
|
+
provider?: v1EarnProvider;
|
|
1986
|
+
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
1987
|
+
caip19?: string;
|
|
1988
|
+
/** Current value of the position in the underlying asset, in raw on-chain units (already net of the wrapper fee). */
|
|
1989
|
+
currentValue?: string;
|
|
1990
|
+
/** Lifetime total deposited into this position, in raw on-chain units. */
|
|
1991
|
+
totalDeposited?: string;
|
|
1992
|
+
/** Lifetime total withdrawn from this position, in raw on-chain units. */
|
|
1993
|
+
totalWithdrawn?: string;
|
|
1994
|
+
/** USD + crypto renderings for display only. Do not do arithmetic with these. */
|
|
1995
|
+
display?: v1EarnPositionDisplay;
|
|
1996
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
|
|
1997
|
+
depositsDisabled?: boolean;
|
|
1998
|
+
};
|
|
1999
|
+
export type v1EarnPositionDisplay = {
|
|
2000
|
+
/** Current value in USD, for display only. */
|
|
2001
|
+
currentValueUsd?: string;
|
|
2002
|
+
/** Total deposited in USD, for display only. */
|
|
2003
|
+
totalDepositedUsd?: string;
|
|
2004
|
+
/** Total withdrawn in USD, for display only. */
|
|
2005
|
+
totalWithdrawnUsd?: string;
|
|
2006
|
+
/** Current value in the asset's own units, for display only. */
|
|
2007
|
+
currentValueCrypto?: string;
|
|
2008
|
+
/** Total deposited in the asset's own units, for display only. */
|
|
2009
|
+
totalDepositedCrypto?: string;
|
|
2010
|
+
/** Total withdrawn in the asset's own units, for display only. */
|
|
2011
|
+
totalWithdrawnCrypto?: string;
|
|
2012
|
+
};
|
|
2013
|
+
export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE";
|
|
2014
|
+
export type v1EarnSetWrapperStateIntent = {
|
|
2015
|
+
/** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
2016
|
+
wrapperAddress: string;
|
|
2017
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Set to false to re-enable deposits. */
|
|
2018
|
+
depositsDisabled: boolean;
|
|
2019
|
+
};
|
|
2020
|
+
export type v1EarnSetWrapperStateRequest = {
|
|
2021
|
+
type: "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE";
|
|
2022
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2023
|
+
timestampMs: string;
|
|
2024
|
+
/** Unique identifier for a given Organization. */
|
|
2025
|
+
organizationId: string;
|
|
2026
|
+
parameters: v1EarnSetWrapperStateIntent;
|
|
2027
|
+
generateAppProofs?: boolean;
|
|
2028
|
+
};
|
|
2029
|
+
export type v1EarnSetWrapperStateResult = {
|
|
2030
|
+
/** Address of the updated Earn wrapper. */
|
|
2031
|
+
wrapperAddress: string;
|
|
2032
|
+
/** The wrapper's deposit state after this activity. */
|
|
2033
|
+
depositsDisabled: boolean;
|
|
2034
|
+
};
|
|
2035
|
+
export type v1EarnValueDisplay = {
|
|
2036
|
+
/** USD value, for display only. */
|
|
2037
|
+
usd?: string;
|
|
2038
|
+
/** Normalized amount in the asset's own units, for display only. */
|
|
2039
|
+
crypto?: string;
|
|
2040
|
+
};
|
|
2041
|
+
export type v1EarnVault = {
|
|
2042
|
+
/** Address of the underlying yield vault. */
|
|
2043
|
+
vaultAddress?: string;
|
|
2044
|
+
/** Yield provider for the vault. */
|
|
2045
|
+
provider?: v1EarnProvider;
|
|
2046
|
+
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
2047
|
+
caip19?: string;
|
|
2048
|
+
/** Total value locked in the vault, in raw on-chain units of the underlying asset. The catalog is sorted by the USD value of this. */
|
|
2049
|
+
tvl?: string;
|
|
2050
|
+
/** Current annual percentage yield, expressed as a decimal fraction (e.g., '0.0812' for 8.12%). */
|
|
2051
|
+
apyPct?: string;
|
|
2052
|
+
/** Whether the organization has enabled this vault. */
|
|
2053
|
+
enabled?: boolean;
|
|
2054
|
+
/** Normalized TVL values for display purposes only (usd + crypto). Do not do arithmetic with these; use tvl instead. */
|
|
2055
|
+
display?: v1EarnValueDisplay;
|
|
2056
|
+
/** Human-readable vault name from the provider (e.g. 'Steakhouse Prime USDC' for Morpho; the reserve symbol for Aave). */
|
|
2057
|
+
name?: string;
|
|
2058
|
+
/** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
|
|
2059
|
+
curator?: string;
|
|
2060
|
+
};
|
|
2061
|
+
export type v1EarnWithdrawIntent = {
|
|
2062
|
+
/** Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
2063
|
+
wrapperAddress: string;
|
|
2064
|
+
/** A Wallet account address or Private Key address to withdraw to and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
|
|
2065
|
+
signWith: string;
|
|
2066
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
2067
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
2068
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
2069
|
+
sponsor?: boolean;
|
|
2070
|
+
/** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
|
|
2071
|
+
amountValue: string;
|
|
2072
|
+
};
|
|
2073
|
+
export type v1EarnWithdrawRequest = {
|
|
2074
|
+
type: "ACTIVITY_TYPE_EARN_WITHDRAW";
|
|
2075
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2076
|
+
timestampMs: string;
|
|
2077
|
+
/** Unique identifier for a given Organization. */
|
|
2078
|
+
organizationId: string;
|
|
2079
|
+
parameters: v1EarnWithdrawIntent;
|
|
2080
|
+
generateAppProofs?: boolean;
|
|
2081
|
+
};
|
|
2082
|
+
export type v1EarnWithdrawResult = {
|
|
2083
|
+
/** Identifier to poll withdrawal status and tx hash via GetEarnWithdrawStatus. */
|
|
2084
|
+
withdrawRequestId: string;
|
|
2085
|
+
};
|
|
1747
2086
|
export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
|
|
1748
2087
|
export type v1EmailAuthCustomizationParams = {
|
|
1749
2088
|
/** 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 +2193,55 @@ export type v1EmailCustomizationParamsV2 = {
|
|
|
1854
2193
|
/** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
|
|
1855
2194
|
templateId?: string;
|
|
1856
2195
|
};
|
|
2196
|
+
export type v1EmailEvent = {
|
|
2197
|
+
/** Unique identifier for the email event */
|
|
2198
|
+
id: string;
|
|
2199
|
+
/** Unique identifier for the organization associated with the email event */
|
|
2200
|
+
organizationId: string;
|
|
2201
|
+
/** Provider message identifier. Multiple events can share the same message ID */
|
|
2202
|
+
messageId: string;
|
|
2203
|
+
/** Email event type, such as Send, Delivery, Bounce, or DeliveryDelay */
|
|
2204
|
+
eventType: string;
|
|
2205
|
+
/** Sender email address */
|
|
2206
|
+
fromAddress: string;
|
|
2207
|
+
/** Recipient email address */
|
|
2208
|
+
toAddress: string;
|
|
2209
|
+
/** SES tenant that sent the email, when available */
|
|
2210
|
+
senderTenant?: string;
|
|
2211
|
+
/** Event timestamp as millisecond epoch string */
|
|
2212
|
+
timestamp: string;
|
|
2213
|
+
/** Creation timestamp as millisecond epoch string */
|
|
2214
|
+
createdAt: string;
|
|
2215
|
+
/** Parsed email event details. Fields are populated based on event type and available provider metadata */
|
|
2216
|
+
details: v1EmailEventDetails;
|
|
2217
|
+
};
|
|
2218
|
+
export type v1EmailEventDetails = {
|
|
2219
|
+
/** Bounce type for Bounce events */
|
|
2220
|
+
bounceType?: string;
|
|
2221
|
+
/** Bounce subtype for Bounce events */
|
|
2222
|
+
bounceSubType?: string;
|
|
2223
|
+
/** Diagnostic text for Bounce or DeliveryDelay events */
|
|
2224
|
+
diagnosticCode?: string;
|
|
2225
|
+
/** SMTP response for Delivery events */
|
|
2226
|
+
deliverySmtpResponse?: string;
|
|
2227
|
+
/** Processing time in milliseconds for Delivery events */
|
|
2228
|
+
deliveryProcessingTimeMillis?: string;
|
|
2229
|
+
/** Delay type for DeliveryDelay events */
|
|
2230
|
+
deliveryDelayType?: string;
|
|
2231
|
+
};
|
|
1857
2232
|
export type v1EnableAuthProxyIntent = {};
|
|
1858
2233
|
export type v1EnableAuthProxyResult = {
|
|
1859
2234
|
/** A User ID with permission to initiate authentication. */
|
|
1860
2235
|
userId: string;
|
|
1861
2236
|
};
|
|
2237
|
+
export type v1EthCallParams = {
|
|
2238
|
+
/** Recipient address as a hex string with 0x prefix. */
|
|
2239
|
+
to: string;
|
|
2240
|
+
/** Amount of native asset to send in wei. */
|
|
2241
|
+
value?: string;
|
|
2242
|
+
/** Hex-encoded call data for contract interactions. */
|
|
2243
|
+
data?: string;
|
|
2244
|
+
};
|
|
1862
2245
|
export type v1EthFailureDetails = {
|
|
1863
2246
|
/** Ethereum revert chain, ordered from outermost to innermost. */
|
|
1864
2247
|
revertChain?: v1RevertChainEntry[];
|
|
@@ -1867,7 +2250,7 @@ export type v1EthSendRawTransactionIntent = {
|
|
|
1867
2250
|
/** The raw, signed transaction to be sent. */
|
|
1868
2251
|
signedTransaction: string;
|
|
1869
2252
|
/** 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";
|
|
2253
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
1871
2254
|
};
|
|
1872
2255
|
export type v1EthSendRawTransactionResult = {
|
|
1873
2256
|
/** The transaction hash of the sent transaction */
|
|
@@ -1879,7 +2262,7 @@ export type v1EthSendTransactionIntent = {
|
|
|
1879
2262
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
1880
2263
|
sponsor?: boolean;
|
|
1881
2264
|
/** 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";
|
|
2265
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
1883
2266
|
/** Recipient address as a hex string with 0x prefix. */
|
|
1884
2267
|
to: string;
|
|
1885
2268
|
/** Amount of native asset to send in wei. */
|
|
@@ -1899,23 +2282,95 @@ export type v1EthSendTransactionIntent = {
|
|
|
1899
2282
|
/** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
|
|
1900
2283
|
gasStationNonce?: string;
|
|
1901
2284
|
};
|
|
2285
|
+
export type v1EthSendTransactionIntentV2 = {
|
|
2286
|
+
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
2287
|
+
from: string;
|
|
2288
|
+
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
2289
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
2290
|
+
/** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
|
|
2291
|
+
sponsor?: boolean;
|
|
2292
|
+
/** Outer transaction nonce. Omit to auto-fetch. */
|
|
2293
|
+
nonce?: string;
|
|
2294
|
+
/** Maximum amount of gas for the outer transaction. Omit to auto-estimate. */
|
|
2295
|
+
gasLimit?: string;
|
|
2296
|
+
/** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
|
|
2297
|
+
maxFeePerGas?: string;
|
|
2298
|
+
/** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
|
|
2299
|
+
maxPriorityFeePerGas?: string;
|
|
2300
|
+
/** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
|
|
2301
|
+
deadline?: string;
|
|
2302
|
+
/** The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
|
|
2303
|
+
gasStationNonce?: string;
|
|
2304
|
+
/** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
|
|
2305
|
+
calls: v1EthCallParams[];
|
|
2306
|
+
};
|
|
1902
2307
|
export type v1EthSendTransactionRequest = {
|
|
1903
|
-
type: "
|
|
2308
|
+
type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2";
|
|
1904
2309
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1905
2310
|
timestampMs: string;
|
|
1906
2311
|
/** Unique identifier for a given Organization. */
|
|
1907
2312
|
organizationId: string;
|
|
1908
|
-
parameters:
|
|
2313
|
+
parameters: v1EthSendTransactionIntentV2;
|
|
1909
2314
|
generateAppProofs?: boolean;
|
|
1910
2315
|
};
|
|
1911
2316
|
export type v1EthSendTransactionResult = {
|
|
1912
2317
|
/** The send_transaction_status ID associated with the transaction submission */
|
|
1913
2318
|
sendTransactionStatusId: string;
|
|
1914
2319
|
};
|
|
2320
|
+
export type v1EthSendTransactionResultV2 = {
|
|
2321
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
2322
|
+
sendTransactionStatusId: string;
|
|
2323
|
+
};
|
|
1915
2324
|
export type v1EthSendTransactionStatus = {
|
|
1916
2325
|
/** The Ethereum transaction hash, if available. */
|
|
1917
2326
|
txHash?: string;
|
|
1918
2327
|
};
|
|
2328
|
+
export type v1EthTransactionHistoryItem = {
|
|
2329
|
+
/** EVM transaction hash. */
|
|
2330
|
+
transactionHash: string;
|
|
2331
|
+
/** Block metadata for the transaction. */
|
|
2332
|
+
block: v1TransactionHistoryBlock;
|
|
2333
|
+
/** Transaction confirmation status. */
|
|
2334
|
+
status: "CONFIRMED" | "FINALIZED";
|
|
2335
|
+
/** Origin of the transaction. Examples include TURNKEY. */
|
|
2336
|
+
origin: string;
|
|
2337
|
+
/** EVM sender address for the transaction. */
|
|
2338
|
+
from: string;
|
|
2339
|
+
/** EVM transaction destination address, such as the called contract or EVM tx.to. Omitted for contract-creation transactions with no destination. Recipients and payers of value transfers are reflected in transfers[].counterparty. */
|
|
2340
|
+
to?: string;
|
|
2341
|
+
/** Transaction fee information. */
|
|
2342
|
+
fee: v1TransactionHistoryFee;
|
|
2343
|
+
/** Asset transfers associated with the transaction. */
|
|
2344
|
+
transfers: v1TransactionHistoryTransfer[];
|
|
2345
|
+
/** Turnkey-specific metadata for transactions originated by Turnkey. */
|
|
2346
|
+
turnkey?: v1TransactionHistoryTurnkey;
|
|
2347
|
+
};
|
|
2348
|
+
export type v1ExecuteSwapIntent = {
|
|
2349
|
+
/** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
|
|
2350
|
+
inputToken: string;
|
|
2351
|
+
/** CAIP-19 asset ID for the output asset. May be on a different chain than `input_token` for cross-chain swaps. */
|
|
2352
|
+
outputToken: string;
|
|
2353
|
+
/** Base-unit amount of the input asset. */
|
|
2354
|
+
inputAmount: string;
|
|
2355
|
+
/** Wallet account address to sign and submit the swap transaction from. Cross-wallet swaps are not supported. */
|
|
2356
|
+
walletAccount: string;
|
|
2357
|
+
/** Whether to sponsor the resulting swap transaction via Gas Station when supported by the chain. */
|
|
2358
|
+
sponsor?: boolean;
|
|
2359
|
+
/** Maximum allowed slippage in basis points. */
|
|
2360
|
+
slippage?: string;
|
|
2361
|
+
/** Swap provider to execute with, as returned by get_swap_quote. When omitted, execution uses the default provider. */
|
|
2362
|
+
provider?: string;
|
|
2363
|
+
/** Minimum acceptable base-unit amount of the output asset. Execution fails if the swap provider's quoted minimum output falls below this floor at execution time. */
|
|
2364
|
+
minOutputAmount: string;
|
|
2365
|
+
};
|
|
2366
|
+
export type v1ExecuteSwapResult = {
|
|
2367
|
+
/** The send_transaction_status ID associated with the swap transaction submission */
|
|
2368
|
+
sendTransactionStatusId: string;
|
|
2369
|
+
/** Swap provider used to build the transaction. */
|
|
2370
|
+
provider?: string;
|
|
2371
|
+
/** Quote identifier used for execution, if any. */
|
|
2372
|
+
quoteId?: string;
|
|
2373
|
+
};
|
|
1919
2374
|
export type v1ExportPrivateKeyIntent = {
|
|
1920
2375
|
/** Unique identifier for a given Private Key. */
|
|
1921
2376
|
privateKeyId: string;
|
|
@@ -1985,7 +2440,7 @@ export type v1Feature = {
|
|
|
1985
2440
|
name?: v1FeatureName;
|
|
1986
2441
|
value?: string;
|
|
1987
2442
|
};
|
|
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";
|
|
2443
|
+
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
2444
|
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
2445
|
export type v1FiatOnRampCredential = {
|
|
1991
2446
|
/** Unique identifier for a given Fiat On-Ramp Credential. */
|
|
@@ -2096,6 +2551,48 @@ export type v1GetBootProofRequest = {
|
|
|
2096
2551
|
/** Hex encoded ephemeral public key. */
|
|
2097
2552
|
ephemeralKey: string;
|
|
2098
2553
|
};
|
|
2554
|
+
export type v1GetEarnDeployStatusRequest = {
|
|
2555
|
+
/** Unique identifier for a given Organization. */
|
|
2556
|
+
organizationId: string;
|
|
2557
|
+
/** The deploy_request_id returned by EarnDeployWrapper. */
|
|
2558
|
+
deployRequestId: string;
|
|
2559
|
+
};
|
|
2560
|
+
export type v1GetEarnDeployStatusResponse = {
|
|
2561
|
+
/** Status of the wrapper deployment. */
|
|
2562
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2563
|
+
/** Transaction hash of the deployment, once available. */
|
|
2564
|
+
deployTxHash?: string;
|
|
2565
|
+
/** Reason the deployment transaction failed, when status is FAILED. */
|
|
2566
|
+
error?: string;
|
|
2567
|
+
};
|
|
2568
|
+
export type v1GetEarnDepositStatusRequest = {
|
|
2569
|
+
/** Unique identifier for a given Organization. */
|
|
2570
|
+
organizationId: string;
|
|
2571
|
+
/** The deposit_request_id returned by EarnDeposit. */
|
|
2572
|
+
depositRequestId: string;
|
|
2573
|
+
};
|
|
2574
|
+
export type v1GetEarnDepositStatusResponse = {
|
|
2575
|
+
/** Status of the deposit. */
|
|
2576
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2577
|
+
/** Transaction hash of the deposit, once available. */
|
|
2578
|
+
depositTxHash?: string;
|
|
2579
|
+
/** Reason the deposit transaction failed, when status is FAILED. */
|
|
2580
|
+
error?: string;
|
|
2581
|
+
};
|
|
2582
|
+
export type v1GetEarnWithdrawStatusRequest = {
|
|
2583
|
+
/** Unique identifier for a given Organization. */
|
|
2584
|
+
organizationId: string;
|
|
2585
|
+
/** The withdraw_request_id returned by EarnWithdraw. */
|
|
2586
|
+
withdrawRequestId: string;
|
|
2587
|
+
};
|
|
2588
|
+
export type v1GetEarnWithdrawStatusResponse = {
|
|
2589
|
+
/** Status of the withdrawal. */
|
|
2590
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2591
|
+
/** Transaction hash of the withdrawal, once available. */
|
|
2592
|
+
withdrawTxHash?: string;
|
|
2593
|
+
/** Reason the withdrawal transaction failed, when status is FAILED. */
|
|
2594
|
+
error?: string;
|
|
2595
|
+
};
|
|
2099
2596
|
export type v1GetGasUsageRequest = {
|
|
2100
2597
|
/** Unique identifier for a given Organization. */
|
|
2101
2598
|
organizationId: string;
|
|
@@ -2123,13 +2620,47 @@ export type v1GetLatestBootProofRequest = {
|
|
|
2123
2620
|
/** Name of enclave app. */
|
|
2124
2621
|
appName: string;
|
|
2125
2622
|
};
|
|
2623
|
+
export type v1GetMfaPoliciesRequest = {
|
|
2624
|
+
/** Unique identifier for a given organization. */
|
|
2625
|
+
organizationId: string;
|
|
2626
|
+
/** Unique identifier for a given user. */
|
|
2627
|
+
userId: string;
|
|
2628
|
+
};
|
|
2629
|
+
export type v1GetMfaPoliciesResponse = {
|
|
2630
|
+
/** A list of multi-factor authentication policies for a user. */
|
|
2631
|
+
mfaPolicies: v1MfaPolicy[];
|
|
2632
|
+
};
|
|
2633
|
+
export type v1GetMfaPolicyRequest = {
|
|
2634
|
+
/** Unique identifier for a given organization. */
|
|
2635
|
+
organizationId: string;
|
|
2636
|
+
/** Unique identifier for a given user. */
|
|
2637
|
+
userId: string;
|
|
2638
|
+
/** Unique identifier for a given MFA policy. */
|
|
2639
|
+
mfaPolicyId: string;
|
|
2640
|
+
};
|
|
2641
|
+
export type v1GetMfaPolicyResponse = {
|
|
2642
|
+
/** Multi-factor authentication policy for a user. */
|
|
2643
|
+
mfaPolicy: v1MfaPolicy;
|
|
2644
|
+
};
|
|
2645
|
+
export type v1GetMfaStatusRequest = {
|
|
2646
|
+
/** Unique identifier for a given organization. */
|
|
2647
|
+
organizationId: string;
|
|
2648
|
+
/** The unique identifier of the activity to get MFA status for. */
|
|
2649
|
+
activityId: string;
|
|
2650
|
+
/** Optional user ID to filter MFA status for a specific user. */
|
|
2651
|
+
userId?: string;
|
|
2652
|
+
};
|
|
2653
|
+
export type v1GetMfaStatusResponse = {
|
|
2654
|
+
/** A list of MFA statuses for the activity's votes. */
|
|
2655
|
+
mfaStatuses: v1MfaStatus[];
|
|
2656
|
+
};
|
|
2126
2657
|
export type v1GetNoncesRequest = {
|
|
2127
2658
|
/** Unique identifier for a given Organization. */
|
|
2128
2659
|
organizationId: string;
|
|
2129
2660
|
/** The Ethereum address to query nonces for. */
|
|
2130
2661
|
address: string;
|
|
2131
2662
|
/** 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";
|
|
2663
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
2133
2664
|
/** Whether to fetch the standard on-chain nonce. */
|
|
2134
2665
|
nonce?: boolean;
|
|
2135
2666
|
/** Whether to fetch the gas station nonce used for sponsored transactions. */
|
|
@@ -2243,6 +2774,24 @@ export type v1GetSendTransactionStatusResponse = {
|
|
|
2243
2774
|
/** Structured error information including revert details, if available. */
|
|
2244
2775
|
error?: v1TxError;
|
|
2245
2776
|
};
|
|
2777
|
+
export type v1GetSessionProfileRequest = {
|
|
2778
|
+
/** Unique identifier for a given organization. */
|
|
2779
|
+
organizationId: string;
|
|
2780
|
+
/** Unique identifier for a session profile. */
|
|
2781
|
+
sessionProfileId: string;
|
|
2782
|
+
};
|
|
2783
|
+
export type v1GetSessionProfileResponse = {
|
|
2784
|
+
/** Session profile for a user, including details about the user's authenticators, Oauth providers, API keys, and MFA policies. */
|
|
2785
|
+
sessionProfile: v1SessionProfile;
|
|
2786
|
+
};
|
|
2787
|
+
export type v1GetSessionProfilesRequest = {
|
|
2788
|
+
/** Unique identifier for a given organization. */
|
|
2789
|
+
organizationId: string;
|
|
2790
|
+
};
|
|
2791
|
+
export type v1GetSessionProfilesResponse = {
|
|
2792
|
+
/** A list of session profiles for users in the organization. */
|
|
2793
|
+
sessionProfiles: v1SessionProfile[];
|
|
2794
|
+
};
|
|
2246
2795
|
export type v1GetSmartContractInterfaceRequest = {
|
|
2247
2796
|
/** Unique identifier for a given organization. */
|
|
2248
2797
|
organizationId: string;
|
|
@@ -2303,6 +2852,20 @@ export type v1GetTvcAppsResponse = {
|
|
|
2303
2852
|
/** A list of TVC Apps. */
|
|
2304
2853
|
tvcApps: v1TvcApp[];
|
|
2305
2854
|
};
|
|
2855
|
+
export type v1GetTvcDeploymentDebugLogsRequest = {
|
|
2856
|
+
/** Unique identifier for a given Organization. */
|
|
2857
|
+
organizationId: string;
|
|
2858
|
+
/** Unique identifier for a given TVC Deployment. The deployment must be running in debug mode. */
|
|
2859
|
+
deploymentId: string;
|
|
2860
|
+
/** Limit returned history to the last N lines per replica. If unset or zero, no tail-line limit is applied. */
|
|
2861
|
+
tailLines?: number;
|
|
2862
|
+
/** 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. */
|
|
2863
|
+
sinceSeconds?: string;
|
|
2864
|
+
};
|
|
2865
|
+
export type v1GetTvcDeploymentDebugLogsResponse = {
|
|
2866
|
+
/** Application log entries sorted by platform timestamp. */
|
|
2867
|
+
entries: v1TvcDeploymentDebugLogEntry[];
|
|
2868
|
+
};
|
|
2306
2869
|
export type v1GetTvcDeploymentRequest = {
|
|
2307
2870
|
/** Unique identifier for a given organization. */
|
|
2308
2871
|
organizationId: string;
|
|
@@ -2379,7 +2942,7 @@ export type v1GetWalletAddressBalancesRequest = {
|
|
|
2379
2942
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
2380
2943
|
address: string;
|
|
2381
2944
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
2382
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2945
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2383
2946
|
};
|
|
2384
2947
|
export type v1GetWalletAddressBalancesResponse = {
|
|
2385
2948
|
/** List of asset balances */
|
|
@@ -2528,6 +3091,16 @@ export type v1InitImportPrivateKeyResult = {
|
|
|
2528
3091
|
/** Import bundle containing a public key and signature to use for importing client data. */
|
|
2529
3092
|
importBundle: string;
|
|
2530
3093
|
};
|
|
3094
|
+
export type v1InitImportSecretsIntent = {
|
|
3095
|
+
/** Transport encryption suite used for ingress secrets. */
|
|
3096
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
3097
|
+
/** The number of secrets the user intends to import. */
|
|
3098
|
+
numSecrets: number;
|
|
3099
|
+
};
|
|
3100
|
+
export type v1InitImportSecretsResult = {
|
|
3101
|
+
/** Enclave ingress target keys along with metadata specific to the encryption suite. For enclave encrypt v1 this will be ServerTargetMsgV1. */
|
|
3102
|
+
enclaveTargetMessages: string[];
|
|
3103
|
+
};
|
|
2531
3104
|
export type v1InitImportWalletIntent = {
|
|
2532
3105
|
/** The ID of the User importing a Wallet. */
|
|
2533
3106
|
userId: string;
|
|
@@ -2898,6 +3471,24 @@ export type v1Intent = {
|
|
|
2898
3471
|
sparkClaimTransferIntent?: v1SparkClaimTransferIntent;
|
|
2899
3472
|
sparkPrepareLightningReceiveIntent?: v1SparkPrepareLightningReceiveIntent;
|
|
2900
3473
|
postTvcQuorumKeyShareIntent?: v1PostTvcQuorumKeyShareIntent;
|
|
3474
|
+
ethSendTransactionIntentV2?: v1EthSendTransactionIntentV2;
|
|
3475
|
+
createMfaPolicyIntent?: v1CreateMfaPolicyIntent;
|
|
3476
|
+
updateMfaPolicyIntent?: v1UpdateMfaPolicyIntent;
|
|
3477
|
+
deleteMfaPolicyIntent?: v1DeleteMfaPolicyIntent;
|
|
3478
|
+
createSessionProfileIntent?: v1CreateSessionProfileIntent;
|
|
3479
|
+
earnDeployWrapperIntent?: v1EarnDeployWrapperIntent;
|
|
3480
|
+
earnDepositIntent?: v1EarnDepositIntent;
|
|
3481
|
+
earnWithdrawIntent?: v1EarnWithdrawIntent;
|
|
3482
|
+
executeSwapIntent?: v1ExecuteSwapIntent;
|
|
3483
|
+
upsertSwapConfigIntent?: v1UpsertSwapConfigIntent;
|
|
3484
|
+
createTvcOperatorIntent?: v1CreateTvcOperatorIntent;
|
|
3485
|
+
createTvcQuorumKeyIntent?: v1CreateTvcQuorumKeyIntent;
|
|
3486
|
+
reEncryptTvcQuorumKeyShareIntent?: v1ReEncryptTvcQuorumKeyShareIntent;
|
|
3487
|
+
initImportSecretsIntent?: v1InitImportSecretsIntent;
|
|
3488
|
+
solSendTransactionIntentV2?: v1SolSendTransactionIntentV2;
|
|
3489
|
+
claimSwapFeesIntent?: v1ClaimSwapFeesIntent;
|
|
3490
|
+
earnSetWrapperStateIntent?: v1EarnSetWrapperStateIntent;
|
|
3491
|
+
claimEarnFeesIntent?: v1ClaimEarnFeesIntent;
|
|
2901
3492
|
};
|
|
2902
3493
|
export type v1InvitationParams = {
|
|
2903
3494
|
/** The name of the intended Invitation recipient. */
|
|
@@ -2937,6 +3528,72 @@ export type v1IpAllowlistRule = {
|
|
|
2937
3528
|
/** Creation timestamp as millisecond epoch string. */
|
|
2938
3529
|
createdAt?: string;
|
|
2939
3530
|
};
|
|
3531
|
+
export type v1ListEarnEnabledVaultsRequest = {
|
|
3532
|
+
/** Unique identifier for a given Organization. */
|
|
3533
|
+
organizationId: string;
|
|
3534
|
+
/** Optional filter: only return enabled vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
3535
|
+
provider?: v1EarnProvider;
|
|
3536
|
+
/** Optional filter: only return enabled vaults whose underlying asset matches this CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...'). The chain is taken from the CAIP-19 identifier. */
|
|
3537
|
+
caip19?: string;
|
|
3538
|
+
};
|
|
3539
|
+
export type v1ListEarnEnabledVaultsResponse = {
|
|
3540
|
+
/** The organization's deployed wrappers. */
|
|
3541
|
+
enabledVaults?: v1EarnEnabledVault[];
|
|
3542
|
+
};
|
|
3543
|
+
export type v1ListEarnPositionsRequest = {
|
|
3544
|
+
/** Unique identifier for a given Organization. */
|
|
3545
|
+
organizationId: string;
|
|
3546
|
+
/** The wallet address to return positions for. */
|
|
3547
|
+
walletAddress: string;
|
|
3548
|
+
};
|
|
3549
|
+
export type v1ListEarnPositionsResponse = {
|
|
3550
|
+
/** The wallet's active Earn positions. */
|
|
3551
|
+
positions?: v1EarnPosition[];
|
|
3552
|
+
};
|
|
3553
|
+
export type v1ListEarnVaultsRequest = {
|
|
3554
|
+
/** Unique identifier for a given Organization. Annotates which vaults the organization has already enabled. */
|
|
3555
|
+
organizationId: string;
|
|
3556
|
+
/** Optional filter: only return vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
3557
|
+
provider?: v1EarnProvider;
|
|
3558
|
+
/** CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...') to return vaults for. Only vaults whose underlying asset matches are returned; the chain is taken from the CAIP-19 identifier. */
|
|
3559
|
+
caip19: string;
|
|
3560
|
+
/** Pagination over the TVL-sorted catalog. before/after cursors are a vault_address from a prior page. */
|
|
3561
|
+
paginationOptions?: v1Pagination;
|
|
3562
|
+
};
|
|
3563
|
+
export type v1ListEarnVaultsResponse = {
|
|
3564
|
+
/** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass the last vault_address as the pagination after cursor. */
|
|
3565
|
+
vaults?: v1EarnVault[];
|
|
3566
|
+
};
|
|
3567
|
+
export type v1ListEmailEventsRequest = {
|
|
3568
|
+
/** Unique identifier for a given organization */
|
|
3569
|
+
organizationId: string;
|
|
3570
|
+
/** Recipient email address to list email events for */
|
|
3571
|
+
email: string;
|
|
3572
|
+
/** Optional email event type to filter by. Examples include Send, Delivery, Bounce, and DeliveryDelay */
|
|
3573
|
+
eventType?: string;
|
|
3574
|
+
/** Parameters used for cursor-based pagination */
|
|
3575
|
+
paginationOptions?: v1Pagination;
|
|
3576
|
+
};
|
|
3577
|
+
export type v1ListEmailEventsResponse = {
|
|
3578
|
+
/** Email events matching the requested filters, ordered by most recent event first. */
|
|
3579
|
+
emailEvents: v1EmailEvent[];
|
|
3580
|
+
};
|
|
3581
|
+
export type v1ListEthTransactionHistoryRequest = {
|
|
3582
|
+
/** Unique identifier for a given organization. */
|
|
3583
|
+
organizationId: string;
|
|
3584
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
3585
|
+
address: string;
|
|
3586
|
+
/** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
3587
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
|
|
3588
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
3589
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
3590
|
+
};
|
|
3591
|
+
export type v1ListEthTransactionHistoryResponse = {
|
|
3592
|
+
/** EVM transactions for the requested address, ordered by most recent first. */
|
|
3593
|
+
transactions: v1EthTransactionHistoryItem[];
|
|
3594
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
3595
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
3596
|
+
};
|
|
2940
3597
|
export type v1ListFiatOnRampCredentialsRequest = {
|
|
2941
3598
|
/** Unique identifier for a given Organization. */
|
|
2942
3599
|
organizationId: string;
|
|
@@ -2959,11 +3616,27 @@ export type v1ListPrivateKeyTagsResponse = {
|
|
|
2959
3616
|
/** A list of private key tags. */
|
|
2960
3617
|
privateKeyTags: datav1Tag[];
|
|
2961
3618
|
};
|
|
3619
|
+
export type v1ListSolTransactionHistoryRequest = {
|
|
3620
|
+
/** Unique identifier for a given organization. */
|
|
3621
|
+
organizationId: string;
|
|
3622
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
3623
|
+
address: string;
|
|
3624
|
+
/** Solana CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
3625
|
+
caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
|
|
3626
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
3627
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
3628
|
+
};
|
|
3629
|
+
export type v1ListSolTransactionHistoryResponse = {
|
|
3630
|
+
/** Solana transactions for the requested address, ordered by most recent first. */
|
|
3631
|
+
transactions: v1SolTransactionHistoryItem[];
|
|
3632
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
3633
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
3634
|
+
};
|
|
2962
3635
|
export type v1ListSupportedAssetsRequest = {
|
|
2963
3636
|
/** Unique identifier for a given organization. */
|
|
2964
3637
|
organizationId: string;
|
|
2965
3638
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
2966
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "
|
|
3639
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2967
3640
|
};
|
|
2968
3641
|
export type v1ListSupportedAssetsResponse = {
|
|
2969
3642
|
/** List of asset metadata */
|
|
@@ -2984,10 +3657,44 @@ export type v1ListWebhookEndpointsRequest = {
|
|
|
2984
3657
|
export type v1ListWebhookEndpointsResponse = {
|
|
2985
3658
|
webhookEndpoints: v1WebhookEndpointData[];
|
|
2986
3659
|
};
|
|
3660
|
+
export type v1LogLine = {
|
|
3661
|
+
/** One log line, exactly as the application printed it (without the trailing newline) */
|
|
3662
|
+
content: string;
|
|
3663
|
+
/** When the line was logged. Stable across replays, so lines can be chronologically merged across pods */
|
|
3664
|
+
ts?: externaldatav1Timestamp;
|
|
3665
|
+
};
|
|
2987
3666
|
export type v1LoginUsage = {
|
|
2988
3667
|
/** Public key for authentication */
|
|
2989
3668
|
publicKey: string;
|
|
2990
3669
|
};
|
|
3670
|
+
export type v1MfaPolicy = {
|
|
3671
|
+
/** Unique identifier for a given MFA Policy. */
|
|
3672
|
+
mfaPolicyId: string;
|
|
3673
|
+
/** Human-readable name for an MFA Policy. */
|
|
3674
|
+
mfaPolicyName: string;
|
|
3675
|
+
/** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
|
|
3676
|
+
condition: string;
|
|
3677
|
+
/** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
|
|
3678
|
+
requiredAuthenticationMethods: v1RequiredAuthenticationMethod[];
|
|
3679
|
+
/** The order in which this policy is evaluated relative to other MFA policies. */
|
|
3680
|
+
order: number;
|
|
3681
|
+
/** Optional human-readable notes added by a User to describe a particular MFA policy. */
|
|
3682
|
+
notes?: string;
|
|
3683
|
+
createdAt: externaldatav1Timestamp;
|
|
3684
|
+
updatedAt: externaldatav1Timestamp;
|
|
3685
|
+
};
|
|
3686
|
+
export type v1MfaStatus = {
|
|
3687
|
+
/** Unique identifier for a given MFA Policy. */
|
|
3688
|
+
mfaPolicyId: string;
|
|
3689
|
+
/** Unique identifier for a given User. */
|
|
3690
|
+
userId: string;
|
|
3691
|
+
/** Whether the MFA policy requirements are currently satisfied. */
|
|
3692
|
+
satisfied: boolean;
|
|
3693
|
+
/** A list of authentication methods already satisfied for this MFA policy. */
|
|
3694
|
+
satisfiedMethods: v1AuthenticationMethod[];
|
|
3695
|
+
/** An ordered list of authentication requirements needed to satisfy this MFA policy. */
|
|
3696
|
+
requiredMethods: v1RequiredAuthenticationMethod[];
|
|
3697
|
+
};
|
|
2991
3698
|
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
3699
|
export type v1NOOPCodegenAnchorResponse = {
|
|
2993
3700
|
stamp: v1WebAuthnStamp;
|
|
@@ -3063,6 +3770,8 @@ export type v1OauthLoginIntent = {
|
|
|
3063
3770
|
expirationSeconds?: string;
|
|
3064
3771
|
/** Invalidate all other previously generated Login API keys */
|
|
3065
3772
|
invalidateExisting?: boolean;
|
|
3773
|
+
/** 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. */
|
|
3774
|
+
sessionProfileId?: string;
|
|
3066
3775
|
};
|
|
3067
3776
|
export type v1OauthLoginRequest = {
|
|
3068
3777
|
type: "ACTIVITY_TYPE_OAUTH_LOGIN";
|
|
@@ -3151,6 +3860,8 @@ export type v1OtpLoginIntent = {
|
|
|
3151
3860
|
invalidateExisting?: boolean;
|
|
3152
3861
|
/** 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
3862
|
clientSignature?: v1ClientSignature;
|
|
3863
|
+
/** 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. */
|
|
3864
|
+
sessionProfileId?: string;
|
|
3154
3865
|
};
|
|
3155
3866
|
export type v1OtpLoginIntentV2 = {
|
|
3156
3867
|
/** Signed Verification Token containing a unique id, expiry, verification type, contact */
|
|
@@ -3163,12 +3874,14 @@ export type v1OtpLoginIntentV2 = {
|
|
|
3163
3874
|
expirationSeconds?: string;
|
|
3164
3875
|
/** Invalidate all other previously generated Login sessions */
|
|
3165
3876
|
invalidateExisting?: boolean;
|
|
3877
|
+
/** 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. */
|
|
3878
|
+
sessionProfileId?: string;
|
|
3166
3879
|
};
|
|
3167
3880
|
export type v1OtpLoginResult = {
|
|
3168
3881
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
3169
3882
|
session: string;
|
|
3170
3883
|
};
|
|
3171
|
-
export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR";
|
|
3884
|
+
export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS";
|
|
3172
3885
|
export type v1Pagination = {
|
|
3173
3886
|
/** A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
|
|
3174
3887
|
limit?: string;
|
|
@@ -3256,6 +3969,24 @@ export type v1QuorumKeyShareApprovalBundle = {
|
|
|
3256
3969
|
/** Signature from the share set operator approving the manifest */
|
|
3257
3970
|
signature: string;
|
|
3258
3971
|
};
|
|
3972
|
+
export type v1ReEncryptTvcQuorumKeyShareIntent = {
|
|
3973
|
+
/** Base64-encoded attestation document for the TVC deployment provisioning enclave */
|
|
3974
|
+
attestationDocB64: string;
|
|
3975
|
+
/** Base64-encoded manifest for the TVC deployment */
|
|
3976
|
+
manifestB64: string;
|
|
3977
|
+
/** Operator encryption public key used to encrypt the hosted TVC quorum key share */
|
|
3978
|
+
operatorEncryptKey: string;
|
|
3979
|
+
/** Operator signing public key used to approve the TVC manifest */
|
|
3980
|
+
operatorSignKey: string;
|
|
3981
|
+
/** Unique identifier of the TVC deployment receiving the re-encrypted quorum key share */
|
|
3982
|
+
deploymentId: string;
|
|
3983
|
+
/** Quorum key for the TVC application */
|
|
3984
|
+
appQuorumKey: string;
|
|
3985
|
+
};
|
|
3986
|
+
export type v1ReEncryptTvcQuorumKeyShareResult = {
|
|
3987
|
+
/** The unique identifier for the provisioning quorum key share */
|
|
3988
|
+
provisioningShareId: string;
|
|
3989
|
+
};
|
|
3259
3990
|
export type v1RecoverUserIntent = {
|
|
3260
3991
|
/** The new authenticator to register. */
|
|
3261
3992
|
authenticator: v1AuthenticatorParamsV2;
|
|
@@ -3319,6 +4050,14 @@ export type v1RemoveOrganizationFeatureResult = {
|
|
|
3319
4050
|
/** Resulting list of organization features. */
|
|
3320
4051
|
features: v1Feature[];
|
|
3321
4052
|
};
|
|
4053
|
+
export type v1RequiredAuthenticationMethod = {
|
|
4054
|
+
/** 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. */
|
|
4055
|
+
any: v1AuthenticationMethod[];
|
|
4056
|
+
};
|
|
4057
|
+
export type v1RequiredAuthenticationMethodParams = {
|
|
4058
|
+
/** 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. */
|
|
4059
|
+
any: v1AuthenticationMethodParams[];
|
|
4060
|
+
};
|
|
3322
4061
|
export type v1RestoreTvcDeploymentIntent = {
|
|
3323
4062
|
/** The unique identifier of the TVC deployment to restore. */
|
|
3324
4063
|
deploymentId: string;
|
|
@@ -3453,6 +4192,24 @@ export type v1Result = {
|
|
|
3453
4192
|
sparkClaimTransferResult?: v1SparkClaimTransferResult;
|
|
3454
4193
|
sparkPrepareLightningReceiveResult?: v1SparkPrepareLightningReceiveResult;
|
|
3455
4194
|
postTvcQuorumKeyShareResult?: v1PostTvcQuorumKeyShareResult;
|
|
4195
|
+
ethSendTransactionResultV2?: v1EthSendTransactionResultV2;
|
|
4196
|
+
createMfaPolicyResult?: v1CreateMfaPolicyResult;
|
|
4197
|
+
updateMfaPolicyResult?: v1UpdateMfaPolicyResult;
|
|
4198
|
+
deleteMfaPolicyResult?: v1DeleteMfaPolicyResult;
|
|
4199
|
+
createSessionProfileResult?: v1CreateSessionProfileResult;
|
|
4200
|
+
earnDeployWrapperResult?: v1EarnDeployWrapperResult;
|
|
4201
|
+
earnDepositResult?: v1EarnDepositResult;
|
|
4202
|
+
earnWithdrawResult?: v1EarnWithdrawResult;
|
|
4203
|
+
executeSwapResult?: v1ExecuteSwapResult;
|
|
4204
|
+
upsertSwapConfigResult?: v1UpsertSwapConfigResult;
|
|
4205
|
+
createTvcOperatorResult?: v1CreateTvcOperatorResult;
|
|
4206
|
+
createTvcQuorumKeyResult?: v1CreateTvcQuorumKeyResult;
|
|
4207
|
+
reEncryptTvcQuorumKeyShareResult?: v1ReEncryptTvcQuorumKeyShareResult;
|
|
4208
|
+
initImportSecretsResult?: v1InitImportSecretsResult;
|
|
4209
|
+
solSendTransactionResultV2?: v1SolSendTransactionResultV2;
|
|
4210
|
+
claimSwapFeesResult?: v1ClaimSwapFeesResult;
|
|
4211
|
+
earnSetWrapperStateResult?: v1EarnSetWrapperStateResult;
|
|
4212
|
+
claimEarnFeesResult?: v1ClaimEarnFeesResult;
|
|
3456
4213
|
};
|
|
3457
4214
|
export type v1RevertChainEntry = {
|
|
3458
4215
|
/** The contract address where the revert occurred. */
|
|
@@ -3540,6 +4297,20 @@ export type v1SelectorV2 = {
|
|
|
3540
4297
|
operator?: v1Operator;
|
|
3541
4298
|
targets?: string[];
|
|
3542
4299
|
};
|
|
4300
|
+
export type v1SessionProfile = {
|
|
4301
|
+
/** Unique identifier for a given Session Profile. */
|
|
4302
|
+
sessionProfileId: string;
|
|
4303
|
+
/** Human-readable name for a Session Profile. */
|
|
4304
|
+
sessionProfileName: string;
|
|
4305
|
+
/** The specific scope that a session created with this profile is limited to. */
|
|
4306
|
+
scope: string;
|
|
4307
|
+
/** Optional window (in seconds) indicating how long sessions created with this profile should last. */
|
|
4308
|
+
expirationSeconds?: string;
|
|
4309
|
+
/** Optional human-readable notes added by a User to describe a particular Session Profile. */
|
|
4310
|
+
notes?: string;
|
|
4311
|
+
createdAt: externaldatav1Timestamp;
|
|
4312
|
+
updatedAt: externaldatav1Timestamp;
|
|
4313
|
+
};
|
|
3543
4314
|
export type v1SetIpAllowlistIntent = {
|
|
3544
4315
|
/** 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
4316
|
publicKey?: string;
|
|
@@ -3700,19 +4471,61 @@ export type v1SolSendTransactionIntent = {
|
|
|
3700
4471
|
/** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
|
|
3701
4472
|
recentBlockhash?: string;
|
|
3702
4473
|
};
|
|
4474
|
+
export type v1SolSendTransactionIntentV2 = {
|
|
4475
|
+
/** Hex-encoded serialized unsigned Solana transaction (full wire format with zeroed signature placeholders) */
|
|
4476
|
+
unsignedTransaction: string;
|
|
4477
|
+
/** Ordered Solana signer addresses Turnkey signs with. Between 1 and 16 signers. For sponsored transactions this must list every required signer of the transaction in transaction order. */
|
|
4478
|
+
signWiths: string[];
|
|
4479
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
4480
|
+
sponsor?: boolean;
|
|
4481
|
+
/** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
4482
|
+
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
4483
|
+
/** User-provided blockhash for replay protection / deadline control. If provided, it is used as-is, including for sponsored transactions (the transaction is only broadcastable while the blockhash is current). If omitted and sponsor=true, a fresh blockhash is fetched during execution. */
|
|
4484
|
+
recentBlockhash?: string;
|
|
4485
|
+
};
|
|
3703
4486
|
export type v1SolSendTransactionRequest = {
|
|
3704
|
-
type: "
|
|
4487
|
+
type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2";
|
|
3705
4488
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
3706
4489
|
timestampMs: string;
|
|
3707
4490
|
/** Unique identifier for a given Organization. */
|
|
3708
4491
|
organizationId: string;
|
|
3709
|
-
parameters:
|
|
4492
|
+
parameters: v1SolSendTransactionIntentV2;
|
|
3710
4493
|
generateAppProofs?: boolean;
|
|
3711
4494
|
};
|
|
3712
4495
|
export type v1SolSendTransactionResult = {
|
|
3713
4496
|
/** The send_transaction_status ID associated with the transaction submission */
|
|
3714
4497
|
sendTransactionStatusId: string;
|
|
3715
4498
|
};
|
|
4499
|
+
export type v1SolSendTransactionResultV2 = {
|
|
4500
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
4501
|
+
sendTransactionStatusId: string;
|
|
4502
|
+
};
|
|
4503
|
+
export type v1SolTransactionHistoryItem = {
|
|
4504
|
+
/** Solana transaction signature. */
|
|
4505
|
+
signature: string;
|
|
4506
|
+
/** Block metadata for the transaction. */
|
|
4507
|
+
block: v1TransactionHistoryBlock;
|
|
4508
|
+
/** Transaction confirmation status. */
|
|
4509
|
+
status: "CONFIRMED" | "FINALIZED";
|
|
4510
|
+
/** Origin of the transaction. Examples include TURNKEY. */
|
|
4511
|
+
origin: string;
|
|
4512
|
+
/** Address that paid the Solana transaction fee. This is the first signer in the transaction message. */
|
|
4513
|
+
feePayer: string;
|
|
4514
|
+
/** Addresses that signed the Solana transaction, in message order. */
|
|
4515
|
+
signers: v1SolTransactionHistorySigner[];
|
|
4516
|
+
/** Transaction fee information. */
|
|
4517
|
+
fee: v1TransactionHistoryFee;
|
|
4518
|
+
/** Asset transfers associated with the transaction. */
|
|
4519
|
+
transfers: v1TransactionHistoryTransfer[];
|
|
4520
|
+
/** Turnkey-specific metadata for transactions originated by Turnkey. */
|
|
4521
|
+
turnkey?: v1TransactionHistoryTurnkey;
|
|
4522
|
+
};
|
|
4523
|
+
export type v1SolTransactionHistorySigner = {
|
|
4524
|
+
/** Address of the Solana transaction signer. */
|
|
4525
|
+
address: string;
|
|
4526
|
+
/** Whether the signer account was writable in the Solana transaction message. */
|
|
4527
|
+
writable: boolean;
|
|
4528
|
+
};
|
|
3716
4529
|
export type v1SolanaConfig = {
|
|
3717
4530
|
/** Whether Solana rent prefunding is enabled for the organization. When omitted, the existing rent-prefund state is left unchanged. */
|
|
3718
4531
|
rentPrefundEnabled?: boolean;
|
|
@@ -3945,6 +4758,8 @@ export type v1StampLoginIntent = {
|
|
|
3945
4758
|
expirationSeconds?: string;
|
|
3946
4759
|
/** Invalidate all other previously generated Login API keys */
|
|
3947
4760
|
invalidateExisting?: boolean;
|
|
4761
|
+
/** 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. */
|
|
4762
|
+
sessionProfileId?: string;
|
|
3948
4763
|
};
|
|
3949
4764
|
export type v1StampLoginRequest = {
|
|
3950
4765
|
type: "ACTIVITY_TYPE_STAMP_LOGIN";
|
|
@@ -3969,28 +4784,95 @@ export type v1TokenUsage = {
|
|
|
3969
4784
|
login?: v1LoginUsage;
|
|
3970
4785
|
signupV2?: v1SignupUsageV2;
|
|
3971
4786
|
};
|
|
3972
|
-
export type
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
/** Name for this TVC App. */
|
|
4787
|
+
export type v1TransactionHistoryAsset = {
|
|
4788
|
+
/** The CAIP-19 asset identifier. */
|
|
4789
|
+
caip19: string;
|
|
4790
|
+
/** The asset symbol. */
|
|
4791
|
+
symbol: string;
|
|
4792
|
+
/** The asset name. */
|
|
3979
4793
|
name: string;
|
|
3980
|
-
/**
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
/**
|
|
3985
|
-
|
|
3986
|
-
/**
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
4794
|
+
/** The number of decimals this asset uses. */
|
|
4795
|
+
decimals: number;
|
|
4796
|
+
};
|
|
4797
|
+
export type v1TransactionHistoryBlock = {
|
|
4798
|
+
/** Block number containing the transaction. */
|
|
4799
|
+
number: string;
|
|
4800
|
+
/** Block hash containing the transaction. */
|
|
4801
|
+
hash: string;
|
|
4802
|
+
/** Block timestamp in RFC 3339 format. */
|
|
4803
|
+
timestamp: string;
|
|
4804
|
+
};
|
|
4805
|
+
export type v1TransactionHistoryDisplay = {
|
|
4806
|
+
/** Normalized crypto value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
|
|
4807
|
+
crypto?: string;
|
|
4808
|
+
/** USD value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
|
|
4809
|
+
usd?: string;
|
|
4810
|
+
};
|
|
4811
|
+
export type v1TransactionHistoryFee = {
|
|
4812
|
+
/** Fee amount in atomic units. */
|
|
4813
|
+
amount: string;
|
|
4814
|
+
/** The CAIP-19 asset identifier. */
|
|
4815
|
+
caip19: string;
|
|
4816
|
+
};
|
|
4817
|
+
export type v1TransactionHistoryPaginationCursors = {
|
|
4818
|
+
/** Opaque base64-encoded cursor for fetching transactions immediately before the current page in the newest-first result order. Omitted when no such page exists. */
|
|
4819
|
+
before?: string;
|
|
4820
|
+
/** Opaque base64-encoded cursor for fetching transactions immediately after the current page in the newest-first result order. Omitted when no such page exists. */
|
|
4821
|
+
after?: string;
|
|
4822
|
+
};
|
|
4823
|
+
export type v1TransactionHistoryPaginationOptions = {
|
|
4824
|
+
/** Maximum number of transactions to return, between 1 and 100. Defaults to 25. */
|
|
4825
|
+
limit?: string;
|
|
4826
|
+
/** Opaque base64-encoded cursor returned by this API. Fetches transactions immediately before the cursor in the newest-first result order. Must not be constructed or modified by clients. Cannot be used with after. */
|
|
4827
|
+
before?: string;
|
|
4828
|
+
/** Opaque base64-encoded cursor returned by this API. Fetches transactions immediately after the cursor in the newest-first result order. Must not be constructed or modified by clients. Cannot be used with before. */
|
|
4829
|
+
after?: string;
|
|
4830
|
+
};
|
|
4831
|
+
export type v1TransactionHistoryTransfer = {
|
|
4832
|
+
/** Transfer direction relative to the queried address. */
|
|
4833
|
+
direction: "IN" | "OUT";
|
|
4834
|
+
/** Asset metadata for the transfer. Omitted when the asset cannot be determined. */
|
|
4835
|
+
asset?: v1TransactionHistoryAsset;
|
|
4836
|
+
/** Transfer amount in atomic units. */
|
|
4837
|
+
amount: string;
|
|
4838
|
+
/** Counterparty address for the transfer. */
|
|
4839
|
+
counterparty: string;
|
|
4840
|
+
/** Normalized transfer values for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. Use the amount field instead. */
|
|
4841
|
+
display?: v1TransactionHistoryDisplay;
|
|
4842
|
+
};
|
|
4843
|
+
export type v1TransactionHistoryTurnkey = {
|
|
4844
|
+
/** Whether the transaction fee was sponsored by Turnkey. */
|
|
4845
|
+
sponsored: boolean;
|
|
4846
|
+
/** Fingerprint of the Turnkey activity that submitted the transaction. */
|
|
4847
|
+
activityFingerprint?: string;
|
|
4848
|
+
/** Timestamp when Turnkey submitted the transaction, in RFC 3339 format. */
|
|
4849
|
+
submittedAt?: string;
|
|
4850
|
+
};
|
|
4851
|
+
export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
|
|
4852
|
+
export type v1TransportEncryptionSuite = "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1";
|
|
4853
|
+
export type v1TvcApp = {
|
|
4854
|
+
/** Unique Identifier for this TVC App. */
|
|
4855
|
+
id: string;
|
|
4856
|
+
/** Unique Identifier of the Organization for this TVC App */
|
|
4857
|
+
organizationId: string;
|
|
4858
|
+
/** Name for this TVC App. */
|
|
4859
|
+
name: string;
|
|
4860
|
+
/** Public key for the Quorum Key associated with this TVC App */
|
|
4861
|
+
quorumPublicKey: string;
|
|
4862
|
+
/** Manifest Set (people who can approve manifests) */
|
|
4863
|
+
manifestSet: v1TvcOperatorSet;
|
|
4864
|
+
/** Share Set (people who have a share of the Quorum Key) */
|
|
4865
|
+
shareSet: v1TvcOperatorSet;
|
|
4866
|
+
/** Whether or not this TVC App has network egress enabled. */
|
|
4867
|
+
enableEgress: boolean;
|
|
4868
|
+
createdAt: externaldatav1Timestamp;
|
|
4869
|
+
updatedAt: externaldatav1Timestamp;
|
|
3990
4870
|
/** The deployment currently designated to receive traffic. Null if no deployment for this app is deployed. */
|
|
3991
4871
|
liveDeploymentId?: string;
|
|
3992
4872
|
/** The public domain for ingress to this TVC App (in the format "app-<ID>.turnkey.cloud"). */
|
|
3993
4873
|
publicDomain: string;
|
|
4874
|
+
/** 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. */
|
|
4875
|
+
enableDebugModeDeployments: boolean;
|
|
3994
4876
|
};
|
|
3995
4877
|
export type v1TvcContainerSpec = {
|
|
3996
4878
|
/** The URL for this container image. */
|
|
@@ -4031,6 +4913,14 @@ export type v1TvcDeployment = {
|
|
|
4031
4913
|
updatedAt: externaldatav1Timestamp;
|
|
4032
4914
|
/** Whether or not the user wants this deployment deleted from the cluster. */
|
|
4033
4915
|
delete: boolean;
|
|
4916
|
+
/** Whether this deployment is running in debug mode. Debug-mode deployments expose enclave logs and cannot be remotely attested. */
|
|
4917
|
+
debugMode: boolean;
|
|
4918
|
+
};
|
|
4919
|
+
export type v1TvcDeploymentDebugLogEntry = {
|
|
4920
|
+
/** Application log line with its platform timestamp. */
|
|
4921
|
+
line: v1LogLine;
|
|
4922
|
+
/** Public replica label that produced this log line, for example 'replica 2/3'. */
|
|
4923
|
+
replicaLabel: string;
|
|
4034
4924
|
};
|
|
4035
4925
|
export type v1TvcHealthCheckType = "TVC_HEALTH_CHECK_TYPE_HTTP" | "TVC_HEALTH_CHECK_TYPE_GRPC";
|
|
4036
4926
|
export type v1TvcManifest = {
|
|
@@ -4155,6 +5045,8 @@ export type v1UpdateAuthProxyConfigIntent = {
|
|
|
4155
5045
|
verificationTokenRequiredForGetAccountPii?: boolean;
|
|
4156
5046
|
/** Whitelisted OAuth client IDs for social account linking. When a user authenticates via a social provider with an email matching an existing account, the accounts will be linked if the client ID is in this list and the issuer is considered a trusted provider. */
|
|
4157
5047
|
socialLinkingClientIds?: string[];
|
|
5048
|
+
/** Whether captcha verification is required on sign up & otp init. */
|
|
5049
|
+
captchaEnabled?: boolean;
|
|
4158
5050
|
};
|
|
4159
5051
|
export type v1UpdateAuthProxyConfigResult = {
|
|
4160
5052
|
/** Unique identifier for a given User. (representing the turnkey signer user id) */
|
|
@@ -4187,6 +5079,34 @@ export type v1UpdateFiatOnRampCredentialResult = {
|
|
|
4187
5079
|
/** Unique identifier of the Fiat On-Ramp credential that was updated */
|
|
4188
5080
|
fiatOnRampCredentialId: string;
|
|
4189
5081
|
};
|
|
5082
|
+
export type v1UpdateMfaPolicyIntent = {
|
|
5083
|
+
/** The ID of the User to update the MFA Policy for. */
|
|
5084
|
+
userId: string;
|
|
5085
|
+
/** Unique identifier for a given MFA Policy. */
|
|
5086
|
+
mfaPolicyId: string;
|
|
5087
|
+
/** Human-readable name for a Policy. */
|
|
5088
|
+
mfaPolicyName?: string;
|
|
5089
|
+
/** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
|
|
5090
|
+
condition?: string;
|
|
5091
|
+
/** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
|
|
5092
|
+
requiredAuthenticationMethods?: v1RequiredAuthenticationMethodParams[];
|
|
5093
|
+
/** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
|
|
5094
|
+
order?: number;
|
|
5095
|
+
/** Notes for an MFA Policy. */
|
|
5096
|
+
notes?: string;
|
|
5097
|
+
};
|
|
5098
|
+
export type v1UpdateMfaPolicyRequest = {
|
|
5099
|
+
type: "ACTIVITY_TYPE_UPDATE_MFA_POLICY";
|
|
5100
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
5101
|
+
timestampMs: string;
|
|
5102
|
+
/** Unique identifier for a given Organization. */
|
|
5103
|
+
organizationId: string;
|
|
5104
|
+
parameters: v1UpdateMfaPolicyIntent;
|
|
5105
|
+
};
|
|
5106
|
+
export type v1UpdateMfaPolicyResult = {
|
|
5107
|
+
/** Unique identifier for a given MFA Policy. */
|
|
5108
|
+
mfaPolicyId: string;
|
|
5109
|
+
};
|
|
4190
5110
|
export type v1UpdateOauth2CredentialIntent = {
|
|
4191
5111
|
/** The ID of the OAuth 2.0 credential to update */
|
|
4192
5112
|
oauth2CredentialId: string;
|
|
@@ -4496,6 +5416,19 @@ export type v1UpsertGasUsageConfigResult = {
|
|
|
4496
5416
|
/** Unique identifier for the gas usage configuration that was created or updated. */
|
|
4497
5417
|
gasUsageConfigId: string;
|
|
4498
5418
|
};
|
|
5419
|
+
export type v1UpsertSwapConfigIntent = {
|
|
5420
|
+
feeReceiverWalletAddress?: string;
|
|
5421
|
+
/** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
|
|
5422
|
+
feeBps?: string;
|
|
5423
|
+
provider?: string;
|
|
5424
|
+
/** Optional override applied when both swap assets are stablecoins; falls back to fee_bps when unset. */
|
|
5425
|
+
stableFeeBps?: string;
|
|
5426
|
+
};
|
|
5427
|
+
export type v1UpsertSwapConfigResult = {
|
|
5428
|
+
feeReceiverWalletAddress?: string;
|
|
5429
|
+
feeBps?: string;
|
|
5430
|
+
stableFeeBps?: string;
|
|
5431
|
+
};
|
|
4499
5432
|
export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
|
|
4500
5433
|
export type v1User = {
|
|
4501
5434
|
/** Unique identifier for a given User. */
|
|
@@ -4516,6 +5449,8 @@ export type v1User = {
|
|
|
4516
5449
|
oauthProviders: v1OauthProvider[];
|
|
4517
5450
|
createdAt: externaldatav1Timestamp;
|
|
4518
5451
|
updatedAt: externaldatav1Timestamp;
|
|
5452
|
+
/** A list of MFA Policies that define multi-factor authentication requirements for this user. */
|
|
5453
|
+
mfaPolicies: v1MfaPolicy[];
|
|
4519
5454
|
};
|
|
4520
5455
|
export type v1UserParams = {
|
|
4521
5456
|
/** Human-readable name for a User. */
|
|
@@ -4663,6 +5598,8 @@ export type v1WalletAccount = {
|
|
|
4663
5598
|
publicKey?: string;
|
|
4664
5599
|
/** Wallet details for this account. This is only present when include_wallet_details=true. */
|
|
4665
5600
|
walletDetails?: v1Wallet;
|
|
5601
|
+
/** Human-readable name for this Wallet Account, unique within the organization. */
|
|
5602
|
+
name?: string;
|
|
4666
5603
|
};
|
|
4667
5604
|
export type v1WalletKitSettingsParams = {
|
|
4668
5605
|
/** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
|
|
@@ -4787,6 +5724,54 @@ export type TGetBootProofBody = {
|
|
|
4787
5724
|
export type TGetBootProofInput = {
|
|
4788
5725
|
body: TGetBootProofBody;
|
|
4789
5726
|
};
|
|
5727
|
+
export type TGetEarnDeployStatusResponse = {
|
|
5728
|
+
/** Status of the wrapper deployment. */
|
|
5729
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5730
|
+
/** Transaction hash of the deployment, once available. */
|
|
5731
|
+
deployTxHash?: string;
|
|
5732
|
+
/** Reason the deployment transaction failed, when status is FAILED. */
|
|
5733
|
+
error?: string;
|
|
5734
|
+
};
|
|
5735
|
+
export type TGetEarnDeployStatusBody = {
|
|
5736
|
+
organizationId?: string;
|
|
5737
|
+
/** The deploy_request_id returned by EarnDeployWrapper. */
|
|
5738
|
+
deployRequestId: string;
|
|
5739
|
+
};
|
|
5740
|
+
export type TGetEarnDeployStatusInput = {
|
|
5741
|
+
body: TGetEarnDeployStatusBody;
|
|
5742
|
+
};
|
|
5743
|
+
export type TGetEarnDepositStatusResponse = {
|
|
5744
|
+
/** Status of the deposit. */
|
|
5745
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5746
|
+
/** Transaction hash of the deposit, once available. */
|
|
5747
|
+
depositTxHash?: string;
|
|
5748
|
+
/** Reason the deposit transaction failed, when status is FAILED. */
|
|
5749
|
+
error?: string;
|
|
5750
|
+
};
|
|
5751
|
+
export type TGetEarnDepositStatusBody = {
|
|
5752
|
+
organizationId?: string;
|
|
5753
|
+
/** The deposit_request_id returned by EarnDeposit. */
|
|
5754
|
+
depositRequestId: string;
|
|
5755
|
+
};
|
|
5756
|
+
export type TGetEarnDepositStatusInput = {
|
|
5757
|
+
body: TGetEarnDepositStatusBody;
|
|
5758
|
+
};
|
|
5759
|
+
export type TGetEarnWithdrawStatusResponse = {
|
|
5760
|
+
/** Status of the withdrawal. */
|
|
5761
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5762
|
+
/** Transaction hash of the withdrawal, once available. */
|
|
5763
|
+
withdrawTxHash?: string;
|
|
5764
|
+
/** Reason the withdrawal transaction failed, when status is FAILED. */
|
|
5765
|
+
error?: string;
|
|
5766
|
+
};
|
|
5767
|
+
export type TGetEarnWithdrawStatusBody = {
|
|
5768
|
+
organizationId?: string;
|
|
5769
|
+
/** The withdraw_request_id returned by EarnWithdraw. */
|
|
5770
|
+
withdrawRequestId: string;
|
|
5771
|
+
};
|
|
5772
|
+
export type TGetEarnWithdrawStatusInput = {
|
|
5773
|
+
body: TGetEarnWithdrawStatusBody;
|
|
5774
|
+
};
|
|
4790
5775
|
export type TGetGasUsageResponse = {
|
|
4791
5776
|
/** The window duration (in minutes) for the organization or sub-organization. */
|
|
4792
5777
|
windowDurationMinutes: number;
|
|
@@ -4823,6 +5808,46 @@ export type TGetLatestBootProofBody = {
|
|
|
4823
5808
|
export type TGetLatestBootProofInput = {
|
|
4824
5809
|
body: TGetLatestBootProofBody;
|
|
4825
5810
|
};
|
|
5811
|
+
export type TGetMfaPoliciesResponse = {
|
|
5812
|
+
/** A list of multi-factor authentication policies for a user. */
|
|
5813
|
+
mfaPolicies: v1MfaPolicy[];
|
|
5814
|
+
};
|
|
5815
|
+
export type TGetMfaPoliciesBody = {
|
|
5816
|
+
organizationId?: string;
|
|
5817
|
+
/** Unique identifier for a given user. */
|
|
5818
|
+
userId: string;
|
|
5819
|
+
};
|
|
5820
|
+
export type TGetMfaPoliciesInput = {
|
|
5821
|
+
body: TGetMfaPoliciesBody;
|
|
5822
|
+
};
|
|
5823
|
+
export type TGetMfaPolicyResponse = {
|
|
5824
|
+
/** Multi-factor authentication policy for a user. */
|
|
5825
|
+
mfaPolicy: v1MfaPolicy;
|
|
5826
|
+
};
|
|
5827
|
+
export type TGetMfaPolicyBody = {
|
|
5828
|
+
organizationId?: string;
|
|
5829
|
+
/** Unique identifier for a given user. */
|
|
5830
|
+
userId: string;
|
|
5831
|
+
/** Unique identifier for a given MFA policy. */
|
|
5832
|
+
mfaPolicyId: string;
|
|
5833
|
+
};
|
|
5834
|
+
export type TGetMfaPolicyInput = {
|
|
5835
|
+
body: TGetMfaPolicyBody;
|
|
5836
|
+
};
|
|
5837
|
+
export type TGetMfaStatusResponse = {
|
|
5838
|
+
/** A list of MFA statuses for the activity's votes. */
|
|
5839
|
+
mfaStatuses: v1MfaStatus[];
|
|
5840
|
+
};
|
|
5841
|
+
export type TGetMfaStatusBody = {
|
|
5842
|
+
organizationId?: string;
|
|
5843
|
+
/** The unique identifier of the activity to get MFA status for. */
|
|
5844
|
+
activityId: string;
|
|
5845
|
+
/** Optional user ID to filter MFA status for a specific user. */
|
|
5846
|
+
userId?: string;
|
|
5847
|
+
};
|
|
5848
|
+
export type TGetMfaStatusInput = {
|
|
5849
|
+
body: TGetMfaStatusBody;
|
|
5850
|
+
};
|
|
4826
5851
|
export type TGetNoncesResponse = {
|
|
4827
5852
|
/** The standard on-chain nonce for the address, if requested. */
|
|
4828
5853
|
nonce?: string;
|
|
@@ -4834,7 +5859,7 @@ export type TGetNoncesBody = {
|
|
|
4834
5859
|
/** The Ethereum address to query nonces for. */
|
|
4835
5860
|
address: string;
|
|
4836
5861
|
/** 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";
|
|
5862
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
4838
5863
|
/** Whether to fetch the standard on-chain nonce. */
|
|
4839
5864
|
nonce?: boolean;
|
|
4840
5865
|
/** Whether to fetch the gas station nonce used for sponsored transactions. */
|
|
@@ -4945,6 +5970,28 @@ export type TGetSendTransactionStatusBody = {
|
|
|
4945
5970
|
export type TGetSendTransactionStatusInput = {
|
|
4946
5971
|
body: TGetSendTransactionStatusBody;
|
|
4947
5972
|
};
|
|
5973
|
+
export type TGetSessionProfileResponse = {
|
|
5974
|
+
/** Session profile for a user, including details about the user's authenticators, Oauth providers, API keys, and MFA policies. */
|
|
5975
|
+
sessionProfile: v1SessionProfile;
|
|
5976
|
+
};
|
|
5977
|
+
export type TGetSessionProfileBody = {
|
|
5978
|
+
organizationId?: string;
|
|
5979
|
+
/** Unique identifier for a session profile. */
|
|
5980
|
+
sessionProfileId: string;
|
|
5981
|
+
};
|
|
5982
|
+
export type TGetSessionProfileInput = {
|
|
5983
|
+
body: TGetSessionProfileBody;
|
|
5984
|
+
};
|
|
5985
|
+
export type TGetSessionProfilesResponse = {
|
|
5986
|
+
/** A list of session profiles for users in the organization. */
|
|
5987
|
+
sessionProfiles: v1SessionProfile[];
|
|
5988
|
+
};
|
|
5989
|
+
export type TGetSessionProfilesBody = {
|
|
5990
|
+
organizationId?: string;
|
|
5991
|
+
};
|
|
5992
|
+
export type TGetSessionProfilesInput = {
|
|
5993
|
+
body: TGetSessionProfilesBody;
|
|
5994
|
+
};
|
|
4948
5995
|
export type TGetSmartContractInterfaceResponse = {
|
|
4949
5996
|
/** Object to be used in conjunction with policies to guard transaction signing. */
|
|
4950
5997
|
smartContractInterface: externaldatav1SmartContractInterface;
|
|
@@ -4981,6 +6028,22 @@ export type TGetTvcDeploymentBody = {
|
|
|
4981
6028
|
export type TGetTvcDeploymentInput = {
|
|
4982
6029
|
body: TGetTvcDeploymentBody;
|
|
4983
6030
|
};
|
|
6031
|
+
export type TGetTvcDeploymentDebugLogsResponse = {
|
|
6032
|
+
/** Application log entries sorted by platform timestamp. */
|
|
6033
|
+
entries: v1TvcDeploymentDebugLogEntry[];
|
|
6034
|
+
};
|
|
6035
|
+
export type TGetTvcDeploymentDebugLogsBody = {
|
|
6036
|
+
organizationId?: string;
|
|
6037
|
+
/** Unique identifier for a given TVC Deployment. The deployment must be running in debug mode. */
|
|
6038
|
+
deploymentId: string;
|
|
6039
|
+
/** Limit returned history to the last N lines per replica. If unset or zero, no tail-line limit is applied. */
|
|
6040
|
+
tailLines?: number;
|
|
6041
|
+
/** 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. */
|
|
6042
|
+
sinceSeconds?: string;
|
|
6043
|
+
};
|
|
6044
|
+
export type TGetTvcDeploymentDebugLogsInput = {
|
|
6045
|
+
body: TGetTvcDeploymentDebugLogsBody;
|
|
6046
|
+
};
|
|
4984
6047
|
export type TGetUserResponse = {
|
|
4985
6048
|
/** Web and/or API user within your organization. */
|
|
4986
6049
|
user: v1User;
|
|
@@ -5030,7 +6093,7 @@ export type TGetWalletAddressBalancesBody = {
|
|
|
5030
6093
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
5031
6094
|
address: string;
|
|
5032
6095
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
5033
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
6096
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
5034
6097
|
};
|
|
5035
6098
|
export type TGetWalletAddressBalancesInput = {
|
|
5036
6099
|
body: TGetWalletAddressBalancesBody;
|
|
@@ -5062,6 +6125,82 @@ export type TGetAppProofsBody = {
|
|
|
5062
6125
|
export type TGetAppProofsInput = {
|
|
5063
6126
|
body: TGetAppProofsBody;
|
|
5064
6127
|
};
|
|
6128
|
+
export type TListEarnEnabledVaultsResponse = {
|
|
6129
|
+
/** The organization's deployed wrappers. */
|
|
6130
|
+
enabledVaults?: v1EarnEnabledVault[];
|
|
6131
|
+
};
|
|
6132
|
+
export type TListEarnEnabledVaultsBody = {
|
|
6133
|
+
organizationId?: string;
|
|
6134
|
+
/** Optional filter: only return enabled vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
6135
|
+
provider?: v1EarnProvider;
|
|
6136
|
+
/** Optional filter: only return enabled vaults whose underlying asset matches this CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...'). The chain is taken from the CAIP-19 identifier. */
|
|
6137
|
+
caip19?: string;
|
|
6138
|
+
};
|
|
6139
|
+
export type TListEarnEnabledVaultsInput = {
|
|
6140
|
+
body: TListEarnEnabledVaultsBody;
|
|
6141
|
+
};
|
|
6142
|
+
export type TListEarnPositionsResponse = {
|
|
6143
|
+
/** The wallet's active Earn positions. */
|
|
6144
|
+
positions?: v1EarnPosition[];
|
|
6145
|
+
};
|
|
6146
|
+
export type TListEarnPositionsBody = {
|
|
6147
|
+
organizationId?: string;
|
|
6148
|
+
/** The wallet address to return positions for. */
|
|
6149
|
+
walletAddress: string;
|
|
6150
|
+
};
|
|
6151
|
+
export type TListEarnPositionsInput = {
|
|
6152
|
+
body: TListEarnPositionsBody;
|
|
6153
|
+
};
|
|
6154
|
+
export type TListEarnVaultsResponse = {
|
|
6155
|
+
/** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass the last vault_address as the pagination after cursor. */
|
|
6156
|
+
vaults?: v1EarnVault[];
|
|
6157
|
+
};
|
|
6158
|
+
export type TListEarnVaultsBody = {
|
|
6159
|
+
organizationId?: string;
|
|
6160
|
+
/** Optional filter: only return vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
6161
|
+
provider?: v1EarnProvider;
|
|
6162
|
+
/** CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...') to return vaults for. Only vaults whose underlying asset matches are returned; the chain is taken from the CAIP-19 identifier. */
|
|
6163
|
+
caip19: string;
|
|
6164
|
+
/** Pagination over the TVL-sorted catalog. before/after cursors are a vault_address from a prior page. */
|
|
6165
|
+
paginationOptions?: v1Pagination;
|
|
6166
|
+
};
|
|
6167
|
+
export type TListEarnVaultsInput = {
|
|
6168
|
+
body: TListEarnVaultsBody;
|
|
6169
|
+
};
|
|
6170
|
+
export type TListEmailEventsResponse = {
|
|
6171
|
+
/** Email events matching the requested filters, ordered by most recent event first. */
|
|
6172
|
+
emailEvents: v1EmailEvent[];
|
|
6173
|
+
};
|
|
6174
|
+
export type TListEmailEventsBody = {
|
|
6175
|
+
organizationId?: string;
|
|
6176
|
+
/** Recipient email address to list email events for */
|
|
6177
|
+
email: string;
|
|
6178
|
+
/** Optional email event type to filter by. Examples include Send, Delivery, Bounce, and DeliveryDelay */
|
|
6179
|
+
eventType?: string;
|
|
6180
|
+
/** Parameters used for cursor-based pagination */
|
|
6181
|
+
paginationOptions?: v1Pagination;
|
|
6182
|
+
};
|
|
6183
|
+
export type TListEmailEventsInput = {
|
|
6184
|
+
body: TListEmailEventsBody;
|
|
6185
|
+
};
|
|
6186
|
+
export type TListEthTransactionHistoryResponse = {
|
|
6187
|
+
/** EVM transactions for the requested address, ordered by most recent first. */
|
|
6188
|
+
transactions: v1EthTransactionHistoryItem[];
|
|
6189
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
6190
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
6191
|
+
};
|
|
6192
|
+
export type TListEthTransactionHistoryBody = {
|
|
6193
|
+
organizationId?: string;
|
|
6194
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
6195
|
+
address: string;
|
|
6196
|
+
/** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
6197
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
|
|
6198
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
6199
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
6200
|
+
};
|
|
6201
|
+
export type TListEthTransactionHistoryInput = {
|
|
6202
|
+
body: TListEthTransactionHistoryBody;
|
|
6203
|
+
};
|
|
5065
6204
|
export type TListFiatOnRampCredentialsResponse = {
|
|
5066
6205
|
fiatOnRampCredentials: v1FiatOnRampCredential[];
|
|
5067
6206
|
};
|
|
@@ -5120,6 +6259,24 @@ export type TGetSmartContractInterfacesBody = {
|
|
|
5120
6259
|
export type TGetSmartContractInterfacesInput = {
|
|
5121
6260
|
body: TGetSmartContractInterfacesBody;
|
|
5122
6261
|
};
|
|
6262
|
+
export type TListSolTransactionHistoryResponse = {
|
|
6263
|
+
/** Solana transactions for the requested address, ordered by most recent first. */
|
|
6264
|
+
transactions: v1SolTransactionHistoryItem[];
|
|
6265
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
6266
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
6267
|
+
};
|
|
6268
|
+
export type TListSolTransactionHistoryBody = {
|
|
6269
|
+
organizationId?: string;
|
|
6270
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
6271
|
+
address: string;
|
|
6272
|
+
/** Solana CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
6273
|
+
caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
|
|
6274
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
6275
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
6276
|
+
};
|
|
6277
|
+
export type TListSolTransactionHistoryInput = {
|
|
6278
|
+
body: TListSolTransactionHistoryBody;
|
|
6279
|
+
};
|
|
5123
6280
|
export type TGetSubOrgIdsResponse = {
|
|
5124
6281
|
/** List of unique identifiers for the matching sub-organizations. */
|
|
5125
6282
|
organizationIds: string[];
|
|
@@ -5143,7 +6300,7 @@ export type TListSupportedAssetsResponse = {
|
|
|
5143
6300
|
export type TListSupportedAssetsBody = {
|
|
5144
6301
|
organizationId?: string;
|
|
5145
6302
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet or 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
5146
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "
|
|
6303
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
5147
6304
|
};
|
|
5148
6305
|
export type TListSupportedAssetsInput = {
|
|
5149
6306
|
body: TListSupportedAssetsBody;
|
|
@@ -5284,6 +6441,21 @@ export type TApproveActivityBody = {
|
|
|
5284
6441
|
export type TApproveActivityInput = {
|
|
5285
6442
|
body: TApproveActivityBody;
|
|
5286
6443
|
};
|
|
6444
|
+
export type TClaimEarnFeesResponse = {
|
|
6445
|
+
activity: v1Activity;
|
|
6446
|
+
/** Identifier to poll claim status and tx hash via GetClaimEarnFeesStatus. */
|
|
6447
|
+
claimRequestId: string;
|
|
6448
|
+
};
|
|
6449
|
+
export type TClaimEarnFeesBody = {
|
|
6450
|
+
timestampMs?: string;
|
|
6451
|
+
organizationId?: string;
|
|
6452
|
+
/** Address of the deployed Earn wrapper to claim fees for. Must be one of the org's deployed wrappers. */
|
|
6453
|
+
wrapperAddress: string;
|
|
6454
|
+
generateAppProofs?: boolean;
|
|
6455
|
+
};
|
|
6456
|
+
export type TClaimEarnFeesInput = {
|
|
6457
|
+
body: TClaimEarnFeesBody;
|
|
6458
|
+
};
|
|
5287
6459
|
export type TCreateApiKeysResponse = {
|
|
5288
6460
|
activity: v1Activity;
|
|
5289
6461
|
/** A list of API Key IDs. */
|
|
@@ -5358,6 +6530,30 @@ export type TCreateInvitationsBody = {
|
|
|
5358
6530
|
export type TCreateInvitationsInput = {
|
|
5359
6531
|
body: TCreateInvitationsBody;
|
|
5360
6532
|
};
|
|
6533
|
+
export type TCreateMfaPolicyResponse = {
|
|
6534
|
+
activity: v1Activity;
|
|
6535
|
+
/** Unique identifier for a given MFA Policy. */
|
|
6536
|
+
mfaPolicyId: string;
|
|
6537
|
+
};
|
|
6538
|
+
export type TCreateMfaPolicyBody = {
|
|
6539
|
+
timestampMs?: string;
|
|
6540
|
+
organizationId?: string;
|
|
6541
|
+
/** The ID of the User to add the MFA Policy to. */
|
|
6542
|
+
userId: string;
|
|
6543
|
+
/** Human-readable name for a Policy. */
|
|
6544
|
+
mfaPolicyName: string;
|
|
6545
|
+
/** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
|
|
6546
|
+
condition: string;
|
|
6547
|
+
/** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
|
|
6548
|
+
requiredAuthenticationMethods: v1RequiredAuthenticationMethodParams[];
|
|
6549
|
+
/** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
|
|
6550
|
+
order: number;
|
|
6551
|
+
/** Notes for an MFA Policy. */
|
|
6552
|
+
notes?: string;
|
|
6553
|
+
};
|
|
6554
|
+
export type TCreateMfaPolicyInput = {
|
|
6555
|
+
body: TCreateMfaPolicyBody;
|
|
6556
|
+
};
|
|
5361
6557
|
export type TCreateOauth2CredentialResponse = {
|
|
5362
6558
|
activity: v1Activity;
|
|
5363
6559
|
/** Unique identifier of the OAuth 2.0 credential that was created */
|
|
@@ -5522,6 +6718,26 @@ export type TCreateReadWriteSessionBody = {
|
|
|
5522
6718
|
export type TCreateReadWriteSessionInput = {
|
|
5523
6719
|
body: TCreateReadWriteSessionBody;
|
|
5524
6720
|
};
|
|
6721
|
+
export type TCreateSessionProfileResponse = {
|
|
6722
|
+
activity: v1Activity;
|
|
6723
|
+
/** Unique identifier for a given Session Profile. */
|
|
6724
|
+
sessionProfileId: string;
|
|
6725
|
+
};
|
|
6726
|
+
export type TCreateSessionProfileBody = {
|
|
6727
|
+
timestampMs?: string;
|
|
6728
|
+
organizationId?: string;
|
|
6729
|
+
/** Human-readable name for a Session Profile. */
|
|
6730
|
+
sessionProfileName: string;
|
|
6731
|
+
/** The scope string that defines the permissions for this Session Profile. */
|
|
6732
|
+
scope: string;
|
|
6733
|
+
/** 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. */
|
|
6734
|
+
expirationSeconds?: string;
|
|
6735
|
+
/** Notes for a Session Profile. */
|
|
6736
|
+
notes?: string;
|
|
6737
|
+
};
|
|
6738
|
+
export type TCreateSessionProfileInput = {
|
|
6739
|
+
body: TCreateSessionProfileBody;
|
|
6740
|
+
};
|
|
5525
6741
|
export type TCreateSmartContractInterfaceResponse = {
|
|
5526
6742
|
activity: v1Activity;
|
|
5527
6743
|
/** The ID of the created Smart Contract Interface. */
|
|
@@ -5606,6 +6822,8 @@ export type TCreateTvcAppBody = {
|
|
|
5606
6822
|
shareSetParams?: v1TvcOperatorSetParams;
|
|
5607
6823
|
/** Enables network egress for this TVC app. Default if not provided: false. */
|
|
5608
6824
|
enableEgress?: boolean;
|
|
6825
|
+
/** 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. */
|
|
6826
|
+
enableDebugModeDeployments?: boolean;
|
|
5609
6827
|
};
|
|
5610
6828
|
export type TCreateTvcAppInput = {
|
|
5611
6829
|
body: TCreateTvcAppBody;
|
|
@@ -5644,6 +6862,8 @@ export type TCreateTvcDeploymentBody = {
|
|
|
5644
6862
|
healthCheckPort: number;
|
|
5645
6863
|
/** Port to use for public ingress. */
|
|
5646
6864
|
publicIngressPort: number;
|
|
6865
|
+
/** Optional desired replica count for this deployment. */
|
|
6866
|
+
replicas?: number;
|
|
5647
6867
|
};
|
|
5648
6868
|
export type TCreateTvcDeploymentInput = {
|
|
5649
6869
|
body: TCreateTvcDeploymentBody;
|
|
@@ -5823,6 +7043,22 @@ export type TDeleteInvitationBody = {
|
|
|
5823
7043
|
export type TDeleteInvitationInput = {
|
|
5824
7044
|
body: TDeleteInvitationBody;
|
|
5825
7045
|
};
|
|
7046
|
+
export type TDeleteMfaPolicyResponse = {
|
|
7047
|
+
activity: v1Activity;
|
|
7048
|
+
/** Unique identifier for a given MFA Policy. */
|
|
7049
|
+
mfaPolicyId: string;
|
|
7050
|
+
};
|
|
7051
|
+
export type TDeleteMfaPolicyBody = {
|
|
7052
|
+
timestampMs?: string;
|
|
7053
|
+
organizationId?: string;
|
|
7054
|
+
/** The ID of the User to delete the MFA Policy from. */
|
|
7055
|
+
userId: string;
|
|
7056
|
+
/** Unique identifier for a given MFA Policy. */
|
|
7057
|
+
mfaPolicyId: string;
|
|
7058
|
+
};
|
|
7059
|
+
export type TDeleteMfaPolicyInput = {
|
|
7060
|
+
body: TDeleteMfaPolicyBody;
|
|
7061
|
+
};
|
|
5826
7062
|
export type TDeleteOauth2CredentialResponse = {
|
|
5827
7063
|
activity: v1Activity;
|
|
5828
7064
|
/** Unique identifier of the OAuth 2.0 credential that was deleted */
|
|
@@ -6060,6 +7296,96 @@ export type TDeleteWebhookEndpointBody = {
|
|
|
6060
7296
|
export type TDeleteWebhookEndpointInput = {
|
|
6061
7297
|
body: TDeleteWebhookEndpointBody;
|
|
6062
7298
|
};
|
|
7299
|
+
export type TEarnDeployWrapperResponse = {
|
|
7300
|
+
activity: v1Activity;
|
|
7301
|
+
/** Address of the deployed fee wrapper (the deposit target). */
|
|
7302
|
+
wrapperAddress: string;
|
|
7303
|
+
/** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
|
|
7304
|
+
splitterAddress: string;
|
|
7305
|
+
/** Identifier to poll deploy status. */
|
|
7306
|
+
deployRequestId: string;
|
|
7307
|
+
};
|
|
7308
|
+
export type TEarnDeployWrapperBody = {
|
|
7309
|
+
timestampMs?: string;
|
|
7310
|
+
organizationId?: string;
|
|
7311
|
+
/** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
|
|
7312
|
+
vaultAddress: string;
|
|
7313
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
7314
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
7315
|
+
/** Your performance fee on gross yield, in basis points (e.g., '2000' for 20%). Your fee plus Turnkey's fee cannot exceed 50% of yield. */
|
|
7316
|
+
clientFeeBps: string;
|
|
7317
|
+
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
7318
|
+
clientFeeWallet: string;
|
|
7319
|
+
generateAppProofs?: boolean;
|
|
7320
|
+
};
|
|
7321
|
+
export type TEarnDeployWrapperInput = {
|
|
7322
|
+
body: TEarnDeployWrapperBody;
|
|
7323
|
+
};
|
|
7324
|
+
export type TEarnDepositResponse = {
|
|
7325
|
+
activity: v1Activity;
|
|
7326
|
+
/** Identifier to poll deposit status and tx hash via GetEarnDepositStatus. */
|
|
7327
|
+
depositRequestId: string;
|
|
7328
|
+
};
|
|
7329
|
+
export type TEarnDepositBody = {
|
|
7330
|
+
timestampMs?: string;
|
|
7331
|
+
organizationId?: string;
|
|
7332
|
+
/** Address of the deployed Earn wrapper to deposit into, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
7333
|
+
wrapperAddress: string;
|
|
7334
|
+
/** A Wallet account address or Private Key address to deposit from and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
|
|
7335
|
+
signWith: string;
|
|
7336
|
+
/** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
|
|
7337
|
+
assets: string;
|
|
7338
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
7339
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
7340
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
7341
|
+
sponsor?: boolean;
|
|
7342
|
+
generateAppProofs?: boolean;
|
|
7343
|
+
};
|
|
7344
|
+
export type TEarnDepositInput = {
|
|
7345
|
+
body: TEarnDepositBody;
|
|
7346
|
+
};
|
|
7347
|
+
export type TEarnSetWrapperStateResponse = {
|
|
7348
|
+
activity: v1Activity;
|
|
7349
|
+
/** Address of the updated Earn wrapper. */
|
|
7350
|
+
wrapperAddress: string;
|
|
7351
|
+
/** The wrapper's deposit state after this activity. */
|
|
7352
|
+
depositsDisabled: boolean;
|
|
7353
|
+
};
|
|
7354
|
+
export type TEarnSetWrapperStateBody = {
|
|
7355
|
+
timestampMs?: string;
|
|
7356
|
+
organizationId?: string;
|
|
7357
|
+
/** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
7358
|
+
wrapperAddress: string;
|
|
7359
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Set to false to re-enable deposits. */
|
|
7360
|
+
depositsDisabled: boolean;
|
|
7361
|
+
generateAppProofs?: boolean;
|
|
7362
|
+
};
|
|
7363
|
+
export type TEarnSetWrapperStateInput = {
|
|
7364
|
+
body: TEarnSetWrapperStateBody;
|
|
7365
|
+
};
|
|
7366
|
+
export type TEarnWithdrawResponse = {
|
|
7367
|
+
activity: v1Activity;
|
|
7368
|
+
/** Identifier to poll withdrawal status and tx hash via GetEarnWithdrawStatus. */
|
|
7369
|
+
withdrawRequestId: string;
|
|
7370
|
+
};
|
|
7371
|
+
export type TEarnWithdrawBody = {
|
|
7372
|
+
timestampMs?: string;
|
|
7373
|
+
organizationId?: string;
|
|
7374
|
+
/** Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
7375
|
+
wrapperAddress: string;
|
|
7376
|
+
/** A Wallet account address or Private Key address to withdraw to and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
|
|
7377
|
+
signWith: string;
|
|
7378
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
7379
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
7380
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
7381
|
+
sponsor?: boolean;
|
|
7382
|
+
/** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
|
|
7383
|
+
amountValue: string;
|
|
7384
|
+
generateAppProofs?: boolean;
|
|
7385
|
+
};
|
|
7386
|
+
export type TEarnWithdrawInput = {
|
|
7387
|
+
body: TEarnWithdrawBody;
|
|
7388
|
+
};
|
|
6063
7389
|
export type TEmailAuthResponse = {
|
|
6064
7390
|
activity: v1Activity;
|
|
6065
7391
|
/** Unique identifier for the authenticating User. */
|
|
@@ -6093,43 +7419,6 @@ export type TEmailAuthBody = {
|
|
|
6093
7419
|
export type TEmailAuthInput = {
|
|
6094
7420
|
body: TEmailAuthBody;
|
|
6095
7421
|
};
|
|
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
7422
|
export type TExportPrivateKeyResponse = {
|
|
6134
7423
|
activity: v1Activity;
|
|
6135
7424
|
/** Unique identifier for a given Private Key. */
|
|
@@ -6477,6 +7766,8 @@ export type TOauthLoginBody = {
|
|
|
6477
7766
|
expirationSeconds?: string;
|
|
6478
7767
|
/** Invalidate all other previously generated Login API keys */
|
|
6479
7768
|
invalidateExisting?: boolean;
|
|
7769
|
+
/** 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. */
|
|
7770
|
+
sessionProfileId?: string;
|
|
6480
7771
|
generateAppProofs?: boolean;
|
|
6481
7772
|
};
|
|
6482
7773
|
export type TOauthLoginInput = {
|
|
@@ -6529,6 +7820,8 @@ export type TOtpLoginBody = {
|
|
|
6529
7820
|
expirationSeconds?: string;
|
|
6530
7821
|
/** Invalidate all other previously generated Login sessions */
|
|
6531
7822
|
invalidateExisting?: boolean;
|
|
7823
|
+
/** 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. */
|
|
7824
|
+
sessionProfileId?: string;
|
|
6532
7825
|
generateAppProofs?: boolean;
|
|
6533
7826
|
};
|
|
6534
7827
|
export type TOtpLoginInput = {
|
|
@@ -6718,29 +8011,6 @@ export type TSignTransactionBody = {
|
|
|
6718
8011
|
export type TSignTransactionInput = {
|
|
6719
8012
|
body: TSignTransactionBody;
|
|
6720
8013
|
};
|
|
6721
|
-
export type TSolSendTransactionResponse = {
|
|
6722
|
-
activity: v1Activity;
|
|
6723
|
-
/** The send_transaction_status ID associated with the transaction submission */
|
|
6724
|
-
sendTransactionStatusId: string;
|
|
6725
|
-
};
|
|
6726
|
-
export type TSolSendTransactionBody = {
|
|
6727
|
-
timestampMs?: string;
|
|
6728
|
-
organizationId?: string;
|
|
6729
|
-
/** Base64-encoded serialized unsigned Solana transaction */
|
|
6730
|
-
unsignedTransaction: string;
|
|
6731
|
-
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
6732
|
-
signWith: string;
|
|
6733
|
-
/** Whether to sponsor this transaction via Gas Station. */
|
|
6734
|
-
sponsor?: boolean;
|
|
6735
|
-
/** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
6736
|
-
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
6737
|
-
/** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
|
|
6738
|
-
recentBlockhash?: string;
|
|
6739
|
-
generateAppProofs?: boolean;
|
|
6740
|
-
};
|
|
6741
|
-
export type TSolSendTransactionInput = {
|
|
6742
|
-
body: TSolSendTransactionBody;
|
|
6743
|
-
};
|
|
6744
8014
|
export type TSparkClaimTransferResponse = {
|
|
6745
8015
|
activity: v1Activity;
|
|
6746
8016
|
/** Per-operator ECIES-encrypted packages. */
|
|
@@ -6827,6 +8097,8 @@ export type TStampLoginBody = {
|
|
|
6827
8097
|
expirationSeconds?: string;
|
|
6828
8098
|
/** Invalidate all other previously generated Login API keys */
|
|
6829
8099
|
invalidateExisting?: boolean;
|
|
8100
|
+
/** 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. */
|
|
8101
|
+
sessionProfileId?: string;
|
|
6830
8102
|
generateAppProofs?: boolean;
|
|
6831
8103
|
};
|
|
6832
8104
|
export type TStampLoginInput = {
|
|
@@ -6857,6 +8129,32 @@ export type TUpdateFiatOnRampCredentialBody = {
|
|
|
6857
8129
|
export type TUpdateFiatOnRampCredentialInput = {
|
|
6858
8130
|
body: TUpdateFiatOnRampCredentialBody;
|
|
6859
8131
|
};
|
|
8132
|
+
export type TUpdateMfaPolicyResponse = {
|
|
8133
|
+
activity: v1Activity;
|
|
8134
|
+
/** Unique identifier for a given MFA Policy. */
|
|
8135
|
+
mfaPolicyId: string;
|
|
8136
|
+
};
|
|
8137
|
+
export type TUpdateMfaPolicyBody = {
|
|
8138
|
+
timestampMs?: string;
|
|
8139
|
+
organizationId?: string;
|
|
8140
|
+
/** The ID of the User to update the MFA Policy for. */
|
|
8141
|
+
userId: string;
|
|
8142
|
+
/** Unique identifier for a given MFA Policy. */
|
|
8143
|
+
mfaPolicyId: string;
|
|
8144
|
+
/** Human-readable name for a Policy. */
|
|
8145
|
+
mfaPolicyName?: string;
|
|
8146
|
+
/** A condition expression that evaluates to true or false, determining when this MFA policy applies. */
|
|
8147
|
+
condition?: string;
|
|
8148
|
+
/** An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA. */
|
|
8149
|
+
requiredAuthenticationMethods?: v1RequiredAuthenticationMethodParams[];
|
|
8150
|
+
/** The order in which this MFA policy is evaluated, starting from 0, relative to other MFA policies. Lower order values are evaluated first. */
|
|
8151
|
+
order?: number;
|
|
8152
|
+
/** Notes for an MFA Policy. */
|
|
8153
|
+
notes?: string;
|
|
8154
|
+
};
|
|
8155
|
+
export type TUpdateMfaPolicyInput = {
|
|
8156
|
+
body: TUpdateMfaPolicyBody;
|
|
8157
|
+
};
|
|
6860
8158
|
export type TUpdateOauth2CredentialResponse = {
|
|
6861
8159
|
activity: v1Activity;
|
|
6862
8160
|
/** Unique identifier of the OAuth 2.0 credential that was updated */
|
|
@@ -7117,6 +8415,122 @@ export type TVerifyOtpInput = {
|
|
|
7117
8415
|
export type TNOOPCodegenAnchorResponse = {
|
|
7118
8416
|
activity: v1Activity;
|
|
7119
8417
|
};
|
|
8418
|
+
export type TEthSendTransactionResponse = {
|
|
8419
|
+
activity: v1Activity;
|
|
8420
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
8421
|
+
sendTransactionStatusId: string;
|
|
8422
|
+
};
|
|
8423
|
+
export type TEthSendTransactionBody = {
|
|
8424
|
+
timestampMs?: string;
|
|
8425
|
+
organizationId?: string;
|
|
8426
|
+
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
8427
|
+
from: string;
|
|
8428
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
8429
|
+
sponsor?: boolean;
|
|
8430
|
+
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
8431
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
8432
|
+
/** Recipient address as a hex string with 0x prefix. */
|
|
8433
|
+
to: string;
|
|
8434
|
+
/** Amount of native asset to send in wei. */
|
|
8435
|
+
value?: string;
|
|
8436
|
+
/** Hex-encoded call data for contract interactions. */
|
|
8437
|
+
data?: string;
|
|
8438
|
+
/** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
|
|
8439
|
+
nonce?: string;
|
|
8440
|
+
/** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
|
|
8441
|
+
gasLimit?: string;
|
|
8442
|
+
/** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
|
|
8443
|
+
maxFeePerGas?: string;
|
|
8444
|
+
/** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
|
|
8445
|
+
maxPriorityFeePerGas?: string;
|
|
8446
|
+
/** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
|
|
8447
|
+
deadline?: string;
|
|
8448
|
+
/** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
|
|
8449
|
+
gasStationNonce?: string;
|
|
8450
|
+
generateAppProofs?: boolean;
|
|
8451
|
+
};
|
|
8452
|
+
export type TEthSendTransactionInput = {
|
|
8453
|
+
body: TEthSendTransactionBody;
|
|
8454
|
+
};
|
|
8455
|
+
export type TEthSendTransactionV2Response = {
|
|
8456
|
+
activity: v1Activity;
|
|
8457
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
8458
|
+
sendTransactionStatusId: string;
|
|
8459
|
+
};
|
|
8460
|
+
export type TEthSendTransactionV2Body = {
|
|
8461
|
+
timestampMs?: string;
|
|
8462
|
+
organizationId?: string;
|
|
8463
|
+
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
8464
|
+
from: string;
|
|
8465
|
+
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
8466
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614";
|
|
8467
|
+
/** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
|
|
8468
|
+
sponsor?: boolean;
|
|
8469
|
+
/** Outer transaction nonce. Omit to auto-fetch. */
|
|
8470
|
+
nonce?: string;
|
|
8471
|
+
/** Maximum amount of gas for the outer transaction. Omit to auto-estimate. */
|
|
8472
|
+
gasLimit?: string;
|
|
8473
|
+
/** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
|
|
8474
|
+
maxFeePerGas?: string;
|
|
8475
|
+
/** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
|
|
8476
|
+
maxPriorityFeePerGas?: string;
|
|
8477
|
+
/** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
|
|
8478
|
+
deadline?: string;
|
|
8479
|
+
/** The gas station delegate contract nonce. Only used when sponsor=true. Omit to auto-fetch. */
|
|
8480
|
+
gasStationNonce?: string;
|
|
8481
|
+
/** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
|
|
8482
|
+
calls: v1EthCallParams[];
|
|
8483
|
+
generateAppProofs?: boolean;
|
|
8484
|
+
};
|
|
8485
|
+
export type TEthSendTransactionV2Input = {
|
|
8486
|
+
body: TEthSendTransactionV2Body;
|
|
8487
|
+
};
|
|
8488
|
+
export type TSolSendTransactionResponse = {
|
|
8489
|
+
activity: v1Activity;
|
|
8490
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
8491
|
+
sendTransactionStatusId: string;
|
|
8492
|
+
};
|
|
8493
|
+
export type TSolSendTransactionBody = {
|
|
8494
|
+
timestampMs?: string;
|
|
8495
|
+
organizationId?: string;
|
|
8496
|
+
/** Base64-encoded serialized unsigned Solana transaction */
|
|
8497
|
+
unsignedTransaction: string;
|
|
8498
|
+
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
8499
|
+
signWith: string;
|
|
8500
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
8501
|
+
sponsor?: boolean;
|
|
8502
|
+
/** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
8503
|
+
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
8504
|
+
/** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
|
|
8505
|
+
recentBlockhash?: string;
|
|
8506
|
+
generateAppProofs?: boolean;
|
|
8507
|
+
};
|
|
8508
|
+
export type TSolSendTransactionInput = {
|
|
8509
|
+
body: TSolSendTransactionBody;
|
|
8510
|
+
};
|
|
8511
|
+
export type TSolSendTransactionV2Response = {
|
|
8512
|
+
activity: v1Activity;
|
|
8513
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
8514
|
+
sendTransactionStatusId: string;
|
|
8515
|
+
};
|
|
8516
|
+
export type TSolSendTransactionV2Body = {
|
|
8517
|
+
timestampMs?: string;
|
|
8518
|
+
organizationId?: string;
|
|
8519
|
+
/** Hex-encoded serialized unsigned Solana transaction (full wire format with zeroed signature placeholders) */
|
|
8520
|
+
unsignedTransaction: string;
|
|
8521
|
+
/** Ordered Solana signer addresses Turnkey signs with. Between 1 and 16 signers. For sponsored transactions this must list every required signer of the transaction in transaction order. */
|
|
8522
|
+
signWiths: string[];
|
|
8523
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
8524
|
+
sponsor?: boolean;
|
|
8525
|
+
/** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
|
|
8526
|
+
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
8527
|
+
/** User-provided blockhash for replay protection / deadline control. If provided, it is used as-is, including for sponsored transactions (the transaction is only broadcastable while the blockhash is current). If omitted and sponsor=true, a fresh blockhash is fetched during execution. */
|
|
8528
|
+
recentBlockhash?: string;
|
|
8529
|
+
generateAppProofs?: boolean;
|
|
8530
|
+
};
|
|
8531
|
+
export type TSolSendTransactionV2Input = {
|
|
8532
|
+
body: TSolSendTransactionV2Body;
|
|
8533
|
+
};
|
|
7120
8534
|
export type ProxyTGetAccountResponse = {
|
|
7121
8535
|
organizationId?: string;
|
|
7122
8536
|
};
|
|
@@ -7329,6 +8743,14 @@ export type ProxyTSignupV2Body = {
|
|
|
7329
8743
|
export type ProxyTSignupV2Input = {
|
|
7330
8744
|
body: ProxyTSignupV2Body;
|
|
7331
8745
|
};
|
|
8746
|
+
export type ProxyTGetWalletKitClientParamsResponse = {
|
|
8747
|
+
/** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
|
|
8748
|
+
turnstileSiteKey?: string;
|
|
8749
|
+
};
|
|
8750
|
+
export type ProxyTGetWalletKitClientParamsBody = {};
|
|
8751
|
+
export type ProxyTGetWalletKitClientParamsInput = {
|
|
8752
|
+
body: ProxyTGetWalletKitClientParamsBody;
|
|
8753
|
+
};
|
|
7332
8754
|
export type ProxyTGetWalletKitConfigResponse = {
|
|
7333
8755
|
/** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
|
|
7334
8756
|
enabledProviders: string[];
|