@turnkey/sdk-types 1.2.0 → 1.4.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') */
|
|
@@ -485,7 +490,7 @@ export type v1ActivityResponse = {
|
|
|
485
490
|
activity: v1Activity;
|
|
486
491
|
};
|
|
487
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";
|
|
488
|
-
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "
|
|
493
|
+
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES" | "ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME" | "ACTIVITY_TYPE_ETH_UNDELEGATE_7702" | "ACTIVITY_TYPE_EXECUTE_SWAP_V2" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
|
|
489
494
|
export type v1ApiKey = {
|
|
490
495
|
/** A User credential that can be used to authenticate to Turnkey. */
|
|
491
496
|
credential: externaldatav1Credential;
|
|
@@ -560,6 +565,8 @@ export type v1AssetMetadata = {
|
|
|
560
565
|
logoUrl?: string;
|
|
561
566
|
/** The asset name */
|
|
562
567
|
name?: string;
|
|
568
|
+
/** Whether this asset is on Turnkey's stablecoin list (used for stablepair swap fee pricing). */
|
|
569
|
+
stable?: boolean;
|
|
563
570
|
};
|
|
564
571
|
export type v1AuthenticationMethod = {
|
|
565
572
|
/** The type of authenticator (e.g., AUTHENTICATION_TYPE_EMAIL, AUTHENTICATION_TYPE_SESSION) required for this MFA step. */
|
|
@@ -630,6 +637,37 @@ export type v1BootProof = {
|
|
|
630
637
|
export type v1BootProofResponse = {
|
|
631
638
|
bootProof: v1BootProof;
|
|
632
639
|
};
|
|
640
|
+
export type v1ClaimEarnFeesIntent = {
|
|
641
|
+
/** Address of the deployed Earn wrapper to claim fees for. Must be one of the org's deployed wrappers. */
|
|
642
|
+
wrapperAddress: string;
|
|
643
|
+
};
|
|
644
|
+
export type v1ClaimEarnFeesRequest = {
|
|
645
|
+
type: "ACTIVITY_TYPE_CLAIM_EARN_FEES";
|
|
646
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
647
|
+
timestampMs: string;
|
|
648
|
+
/** Unique identifier for a given Organization. */
|
|
649
|
+
organizationId: string;
|
|
650
|
+
parameters: v1ClaimEarnFeesIntent;
|
|
651
|
+
generateAppProofs?: boolean;
|
|
652
|
+
};
|
|
653
|
+
export type v1ClaimEarnFeesResult = {
|
|
654
|
+
/** Identifier to poll claim status and tx hash via GetClaimEarnFeesStatus. */
|
|
655
|
+
claimRequestId: string;
|
|
656
|
+
};
|
|
657
|
+
export type v1ClaimSwapFeesIntent = {};
|
|
658
|
+
export type v1ClaimSwapFeesRequest = {
|
|
659
|
+
type: "ACTIVITY_TYPE_CLAIM_SWAP_FEES";
|
|
660
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
661
|
+
timestampMs: string;
|
|
662
|
+
/** Unique identifier for a given Organization. */
|
|
663
|
+
organizationId: string;
|
|
664
|
+
parameters: v1ClaimSwapFeesIntent;
|
|
665
|
+
generateAppProofs?: boolean;
|
|
666
|
+
};
|
|
667
|
+
export type v1ClaimSwapFeesResult = {
|
|
668
|
+
/** Relay claim request ID submitted through the permit endpoint. */
|
|
669
|
+
requestId: string;
|
|
670
|
+
};
|
|
633
671
|
export type v1Config = {
|
|
634
672
|
features?: v1Feature[];
|
|
635
673
|
quorum?: externaldatav1Quorum;
|
|
@@ -882,6 +920,8 @@ export type v1CreatePolicyIntentV3 = {
|
|
|
882
920
|
consensus?: string;
|
|
883
921
|
/** Notes for a Policy. */
|
|
884
922
|
notes: string;
|
|
923
|
+
/** The time expression that triggers the Effect */
|
|
924
|
+
time?: string;
|
|
885
925
|
};
|
|
886
926
|
export type v1CreatePolicyRequest = {
|
|
887
927
|
type: "ACTIVITY_TYPE_CREATE_POLICY_V3";
|
|
@@ -1225,6 +1265,22 @@ export type v1CreateSubOrganizationResultV8 = {
|
|
|
1225
1265
|
wallet?: v1WalletResult;
|
|
1226
1266
|
rootUserIds?: string[];
|
|
1227
1267
|
};
|
|
1268
|
+
export type v1CreateSwapQuoteIntent = {
|
|
1269
|
+
/** Wallet account or Private Key address used to price the executable provider quote. Private Key identifiers are not supported. */
|
|
1270
|
+
signWith: string;
|
|
1271
|
+
/** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
|
|
1272
|
+
inputToken: string;
|
|
1273
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
1274
|
+
outputToken: string;
|
|
1275
|
+
/** Base-unit amount of the input asset. */
|
|
1276
|
+
inputAmount: string;
|
|
1277
|
+
/** Provider-neutral maximum allowed slippage in basis points. Turnkey converts this value to each provider's request format. When omitted, each provider applies its default slippage behavior. */
|
|
1278
|
+
slippageBps?: string;
|
|
1279
|
+
};
|
|
1280
|
+
export type v1CreateSwapQuoteResult = {
|
|
1281
|
+
/** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap_v2 to bind execution. */
|
|
1282
|
+
quotes: v1SwapQuote[];
|
|
1283
|
+
};
|
|
1228
1284
|
export type v1CreateTvcAppIntent = {
|
|
1229
1285
|
/** The name of the new TVC application */
|
|
1230
1286
|
name: string;
|
|
@@ -1260,6 +1316,12 @@ export type v1CreateTvcAppResult = {
|
|
|
1260
1316
|
manifestSetOperatorIds: string[];
|
|
1261
1317
|
/** The required number of approvals for the manifest set */
|
|
1262
1318
|
manifestSetThreshold: number;
|
|
1319
|
+
/** The unique identifier for the TVC share set */
|
|
1320
|
+
shareSetId: string;
|
|
1321
|
+
/** The unique identifiers of the share set operators */
|
|
1322
|
+
shareSetOperatorIds: string[];
|
|
1323
|
+
/** The required number of approvals for the share set */
|
|
1324
|
+
shareSetThreshold: number;
|
|
1263
1325
|
};
|
|
1264
1326
|
export type v1CreateTvcDeploymentIntent = {
|
|
1265
1327
|
/** The unique identifier of the to-be-deployed TVC application */
|
|
@@ -1286,6 +1348,8 @@ export type v1CreateTvcDeploymentIntent = {
|
|
|
1286
1348
|
healthCheckPort: number;
|
|
1287
1349
|
/** Port to use for public ingress. */
|
|
1288
1350
|
publicIngressPort: number;
|
|
1351
|
+
/** Optional desired replica count for this deployment. */
|
|
1352
|
+
replicas?: number;
|
|
1289
1353
|
};
|
|
1290
1354
|
export type v1CreateTvcDeploymentRequest = {
|
|
1291
1355
|
type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
|
|
@@ -1866,22 +1930,35 @@ export type v1DisablePrivateKeyResult = {
|
|
|
1866
1930
|
privateKeyId: string;
|
|
1867
1931
|
};
|
|
1868
1932
|
export type v1EarnDeployWrapperIntent = {
|
|
1869
|
-
/** Address of the underlying yield vault to wrap (from the
|
|
1933
|
+
/** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
|
|
1870
1934
|
vaultAddress: string;
|
|
1871
1935
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
1872
1936
|
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
1937
|
+
/** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
|
|
1938
|
+
clientFeeBps: string;
|
|
1939
|
+
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
1940
|
+
clientFeeWallet: string;
|
|
1941
|
+
};
|
|
1942
|
+
export type v1EarnDeployWrapperRequest = {
|
|
1943
|
+
type: "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER";
|
|
1944
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1945
|
+
timestampMs: string;
|
|
1946
|
+
/** Unique identifier for a given Organization. */
|
|
1947
|
+
organizationId: string;
|
|
1948
|
+
parameters: v1EarnDeployWrapperIntent;
|
|
1949
|
+
generateAppProofs?: boolean;
|
|
1873
1950
|
};
|
|
1874
1951
|
export type v1EarnDeployWrapperResult = {
|
|
1875
1952
|
/** Address of the deployed fee wrapper (the deposit target). */
|
|
1876
1953
|
wrapperAddress: string;
|
|
1877
1954
|
/** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
|
|
1878
1955
|
splitterAddress: string;
|
|
1879
|
-
/**
|
|
1880
|
-
|
|
1956
|
+
/** Identifier to poll deploy status. */
|
|
1957
|
+
deployRequestId: string;
|
|
1881
1958
|
};
|
|
1882
1959
|
export type v1EarnDepositIntent = {
|
|
1883
|
-
/** Address of the
|
|
1884
|
-
|
|
1960
|
+
/** Address of the deployed Earn wrapper to deposit into, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
1961
|
+
wrapperAddress: string;
|
|
1885
1962
|
/** A Wallet account address or Private Key address to deposit from and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
|
|
1886
1963
|
signWith: string;
|
|
1887
1964
|
/** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
|
|
@@ -1891,39 +1968,157 @@ export type v1EarnDepositIntent = {
|
|
|
1891
1968
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
1892
1969
|
sponsor?: boolean;
|
|
1893
1970
|
};
|
|
1971
|
+
export type v1EarnDepositRequest = {
|
|
1972
|
+
type: "ACTIVITY_TYPE_EARN_DEPOSIT";
|
|
1973
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1974
|
+
timestampMs: string;
|
|
1975
|
+
/** Unique identifier for a given Organization. */
|
|
1976
|
+
organizationId: string;
|
|
1977
|
+
parameters: v1EarnDepositIntent;
|
|
1978
|
+
generateAppProofs?: boolean;
|
|
1979
|
+
};
|
|
1894
1980
|
export type v1EarnDepositResult = {
|
|
1895
|
-
/**
|
|
1896
|
-
depositTxHash: string;
|
|
1897
|
-
/** Number of wrapper shares minted to the depositor, in raw on-chain units. */
|
|
1898
|
-
sharesMinted: string;
|
|
1899
|
-
/** Address of the fee wrapper the deposit was routed to. */
|
|
1900
|
-
wrapperAddress: string;
|
|
1901
|
-
/** Identifier to poll deposit status via EarnDepositStatus (for the async/sponsored path). */
|
|
1981
|
+
/** Identifier to poll deposit status and tx hash via GetEarnDepositStatus. */
|
|
1902
1982
|
depositRequestId: string;
|
|
1903
1983
|
};
|
|
1984
|
+
export type v1EarnEnabledVault = {
|
|
1985
|
+
/** Address of the underlying yield vault. */
|
|
1986
|
+
vaultAddress?: string;
|
|
1987
|
+
/** Address of the deployed fee wrapper (the deposit target). */
|
|
1988
|
+
wrapperAddress?: string;
|
|
1989
|
+
/** Yield provider for the vault. */
|
|
1990
|
+
provider?: v1EarnProvider;
|
|
1991
|
+
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
1992
|
+
caip19?: string;
|
|
1993
|
+
/** Gross annual percentage yield, expressed as a decimal fraction (before fees). */
|
|
1994
|
+
apyPct?: string;
|
|
1995
|
+
/** Total deposited through this wrapper (wrapper TVL), in raw on-chain units of the underlying asset. */
|
|
1996
|
+
totalDeposited?: string;
|
|
1997
|
+
/** Normalized total-deposited values for display only (usd + crypto). Do not do arithmetic with these; use total_deposited instead. */
|
|
1998
|
+
display?: v1EarnValueDisplay;
|
|
1999
|
+
/** Annual percentage yield net of fees, expressed as a decimal fraction. */
|
|
2000
|
+
netApyPct?: string;
|
|
2001
|
+
/** Client fee taken on yield, in basis points. */
|
|
2002
|
+
clientFeeBps?: string;
|
|
2003
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
|
|
2004
|
+
depositsDisabled?: boolean;
|
|
2005
|
+
/** Human-readable vault name from the provider (e.g. 'Steakhouse Prime USDC' for Morpho; the reserve symbol for Aave). */
|
|
2006
|
+
name?: string;
|
|
2007
|
+
/** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
|
|
2008
|
+
curator?: string;
|
|
2009
|
+
/** The client's claimable fee (releasable now), in raw on-chain units of the underlying asset (the caip19 asset). Turnkey's fee is excluded. Only returned to the parent org; unset when a sub-org queries. */
|
|
2010
|
+
claimableClientFee?: string;
|
|
2011
|
+
/** 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. */
|
|
2012
|
+
claimableClientFeeDisplay?: v1EarnValueDisplay;
|
|
2013
|
+
/** The wallet address that receives the client's fee payouts on-chain. Unset when a sub-org queries. */
|
|
2014
|
+
clientFeeWallet?: string;
|
|
2015
|
+
};
|
|
2016
|
+
export type v1EarnPosition = {
|
|
2017
|
+
/** Address of the underlying yield vault. */
|
|
2018
|
+
vaultAddress?: string;
|
|
2019
|
+
/** Address of the fee wrapper holding the position. */
|
|
2020
|
+
wrapperAddress?: string;
|
|
2021
|
+
/** Yield provider for the vault. */
|
|
2022
|
+
provider?: v1EarnProvider;
|
|
2023
|
+
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
2024
|
+
caip19?: string;
|
|
2025
|
+
/** Current value of the position in the underlying asset, in raw on-chain units (already net of the wrapper fee). */
|
|
2026
|
+
currentValue?: string;
|
|
2027
|
+
/** Lifetime total deposited into this position, in raw on-chain units. */
|
|
2028
|
+
totalDeposited?: string;
|
|
2029
|
+
/** Lifetime total withdrawn from this position, in raw on-chain units. */
|
|
2030
|
+
totalWithdrawn?: string;
|
|
2031
|
+
/** USD + crypto renderings for display only. Do not do arithmetic with these. */
|
|
2032
|
+
display?: v1EarnPositionDisplay;
|
|
2033
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Toggled via EarnSetWrapperState. */
|
|
2034
|
+
depositsDisabled?: boolean;
|
|
2035
|
+
};
|
|
2036
|
+
export type v1EarnPositionDisplay = {
|
|
2037
|
+
/** Current value in USD, for display only. */
|
|
2038
|
+
currentValueUsd?: string;
|
|
2039
|
+
/** Total deposited in USD, for display only. */
|
|
2040
|
+
totalDepositedUsd?: string;
|
|
2041
|
+
/** Total withdrawn in USD, for display only. */
|
|
2042
|
+
totalWithdrawnUsd?: string;
|
|
2043
|
+
/** Current value in the asset's own units, for display only. */
|
|
2044
|
+
currentValueCrypto?: string;
|
|
2045
|
+
/** Total deposited in the asset's own units, for display only. */
|
|
2046
|
+
totalDepositedCrypto?: string;
|
|
2047
|
+
/** Total withdrawn in the asset's own units, for display only. */
|
|
2048
|
+
totalWithdrawnCrypto?: string;
|
|
2049
|
+
};
|
|
2050
|
+
export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE";
|
|
2051
|
+
export type v1EarnSetWrapperStateIntent = {
|
|
2052
|
+
/** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
2053
|
+
wrapperAddress: string;
|
|
2054
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Set to false to re-enable deposits. */
|
|
2055
|
+
depositsDisabled: boolean;
|
|
2056
|
+
};
|
|
2057
|
+
export type v1EarnSetWrapperStateRequest = {
|
|
2058
|
+
type: "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE";
|
|
2059
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2060
|
+
timestampMs: string;
|
|
2061
|
+
/** Unique identifier for a given Organization. */
|
|
2062
|
+
organizationId: string;
|
|
2063
|
+
parameters: v1EarnSetWrapperStateIntent;
|
|
2064
|
+
generateAppProofs?: boolean;
|
|
2065
|
+
};
|
|
2066
|
+
export type v1EarnSetWrapperStateResult = {
|
|
2067
|
+
/** Address of the updated Earn wrapper. */
|
|
2068
|
+
wrapperAddress: string;
|
|
2069
|
+
/** The wrapper's deposit state after this activity. */
|
|
2070
|
+
depositsDisabled: boolean;
|
|
2071
|
+
};
|
|
2072
|
+
export type v1EarnValueDisplay = {
|
|
2073
|
+
/** USD value, for display only. */
|
|
2074
|
+
usd?: string;
|
|
2075
|
+
/** Normalized amount in the asset's own units, for display only. */
|
|
2076
|
+
crypto?: string;
|
|
2077
|
+
};
|
|
2078
|
+
export type v1EarnVault = {
|
|
2079
|
+
/** Address of the underlying yield vault. */
|
|
2080
|
+
vaultAddress?: string;
|
|
2081
|
+
/** Yield provider for the vault. */
|
|
2082
|
+
provider?: v1EarnProvider;
|
|
2083
|
+
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
2084
|
+
caip19?: string;
|
|
2085
|
+
/** 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. */
|
|
2086
|
+
tvl?: string;
|
|
2087
|
+
/** Current annual percentage yield, expressed as a decimal fraction (e.g., '0.0812' for 8.12%). */
|
|
2088
|
+
apyPct?: string;
|
|
2089
|
+
/** Whether the organization has enabled this vault. */
|
|
2090
|
+
enabled?: boolean;
|
|
2091
|
+
/** Normalized TVL values for display purposes only (usd + crypto). Do not do arithmetic with these; use tvl instead. */
|
|
2092
|
+
display?: v1EarnValueDisplay;
|
|
2093
|
+
/** Human-readable vault name from the provider (e.g. 'Steakhouse Prime USDC' for Morpho; the reserve symbol for Aave). */
|
|
2094
|
+
name?: string;
|
|
2095
|
+
/** Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
|
|
2096
|
+
curator?: string;
|
|
2097
|
+
};
|
|
1904
2098
|
export type v1EarnWithdrawIntent = {
|
|
1905
|
-
/** Address of the
|
|
1906
|
-
|
|
2099
|
+
/** Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
2100
|
+
wrapperAddress: string;
|
|
1907
2101
|
/** A Wallet account address or Private Key address to withdraw to and sign with. Must be an on-chain address; Private Key identifiers are not supported. */
|
|
1908
2102
|
signWith: string;
|
|
1909
2103
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
1910
2104
|
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
1911
2105
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
1912
2106
|
sponsor?: boolean;
|
|
1913
|
-
/**
|
|
1914
|
-
amountType: "SHARES" | "ASSETS";
|
|
1915
|
-
/** The amount to withdraw, in raw on-chain units, interpreted according to amount_type. */
|
|
2107
|
+
/** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
|
|
1916
2108
|
amountValue: string;
|
|
1917
2109
|
};
|
|
2110
|
+
export type v1EarnWithdrawRequest = {
|
|
2111
|
+
type: "ACTIVITY_TYPE_EARN_WITHDRAW";
|
|
2112
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2113
|
+
timestampMs: string;
|
|
2114
|
+
/** Unique identifier for a given Organization. */
|
|
2115
|
+
organizationId: string;
|
|
2116
|
+
parameters: v1EarnWithdrawIntent;
|
|
2117
|
+
generateAppProofs?: boolean;
|
|
2118
|
+
};
|
|
1918
2119
|
export type v1EarnWithdrawResult = {
|
|
1919
|
-
/**
|
|
1920
|
-
withdrawTxHash: string;
|
|
1921
|
-
/** Identifier to poll withdrawal status via EarnWithdrawStatus. */
|
|
2120
|
+
/** Identifier to poll withdrawal status and tx hash via GetEarnWithdrawStatus. */
|
|
1922
2121
|
withdrawRequestId: string;
|
|
1923
|
-
/** Amount of the underlying asset received, in raw on-chain units. */
|
|
1924
|
-
assetsReceived: string;
|
|
1925
|
-
/** Number of wrapper shares burned, in raw on-chain units. */
|
|
1926
|
-
sharesBurned: string;
|
|
1927
2122
|
};
|
|
1928
2123
|
export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
|
|
1929
2124
|
export type v1EmailAuthCustomizationParams = {
|
|
@@ -2070,6 +2265,8 @@ export type v1EmailEventDetails = {
|
|
|
2070
2265
|
deliveryProcessingTimeMillis?: string;
|
|
2071
2266
|
/** Delay type for DeliveryDelay events */
|
|
2072
2267
|
deliveryDelayType?: string;
|
|
2268
|
+
/** Feedback type for Complaint events */
|
|
2269
|
+
complaintFeedbackType?: string;
|
|
2073
2270
|
};
|
|
2074
2271
|
export type v1EnableAuthProxyIntent = {};
|
|
2075
2272
|
export type v1EnableAuthProxyResult = {
|
|
@@ -2092,7 +2289,7 @@ export type v1EthSendRawTransactionIntent = {
|
|
|
2092
2289
|
/** The raw, signed transaction to be sent. */
|
|
2093
2290
|
signedTransaction: string;
|
|
2094
2291
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
2095
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
2292
|
+
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";
|
|
2096
2293
|
};
|
|
2097
2294
|
export type v1EthSendRawTransactionResult = {
|
|
2098
2295
|
/** The transaction hash of the sent transaction */
|
|
@@ -2104,7 +2301,7 @@ export type v1EthSendTransactionIntent = {
|
|
|
2104
2301
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
2105
2302
|
sponsor?: boolean;
|
|
2106
2303
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
2107
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
2304
|
+
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";
|
|
2108
2305
|
/** Recipient address as a hex string with 0x prefix. */
|
|
2109
2306
|
to: string;
|
|
2110
2307
|
/** Amount of native asset to send in wei. */
|
|
@@ -2128,7 +2325,7 @@ export type v1EthSendTransactionIntentV2 = {
|
|
|
2128
2325
|
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
2129
2326
|
from: string;
|
|
2130
2327
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
2131
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
2328
|
+
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";
|
|
2132
2329
|
/** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
|
|
2133
2330
|
sponsor?: boolean;
|
|
2134
2331
|
/** Outer transaction nonce. Omit to auto-fetch. */
|
|
@@ -2141,7 +2338,7 @@ export type v1EthSendTransactionIntentV2 = {
|
|
|
2141
2338
|
maxPriorityFeePerGas?: string;
|
|
2142
2339
|
/** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
|
|
2143
2340
|
deadline?: string;
|
|
2144
|
-
/** The gas station delegate contract nonce.
|
|
2341
|
+
/** The gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored transactions and non-sponsored multi-call batches. Omit to auto-fetch. Use the nonces endpoint for replay protection. */
|
|
2145
2342
|
gasStationNonce?: string;
|
|
2146
2343
|
/** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
|
|
2147
2344
|
calls: v1EthCallParams[];
|
|
@@ -2167,6 +2364,53 @@ export type v1EthSendTransactionStatus = {
|
|
|
2167
2364
|
/** The Ethereum transaction hash, if available. */
|
|
2168
2365
|
txHash?: string;
|
|
2169
2366
|
};
|
|
2367
|
+
export type v1EthTransactionHistoryItem = {
|
|
2368
|
+
/** EVM transaction hash. */
|
|
2369
|
+
transactionHash: string;
|
|
2370
|
+
/** Block metadata for the transaction. */
|
|
2371
|
+
block: v1TransactionHistoryBlock;
|
|
2372
|
+
/** Transaction confirmation status. */
|
|
2373
|
+
status: "CONFIRMED" | "FINALIZED";
|
|
2374
|
+
/** Origin of the transaction. Examples include TURNKEY. */
|
|
2375
|
+
origin: string;
|
|
2376
|
+
/** EVM sender address for the transaction. */
|
|
2377
|
+
from: string;
|
|
2378
|
+
/** 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. */
|
|
2379
|
+
to?: string;
|
|
2380
|
+
/** Transaction fee information. */
|
|
2381
|
+
fee: v1TransactionHistoryFee;
|
|
2382
|
+
/** Asset transfers associated with the transaction. */
|
|
2383
|
+
transfers: v1TransactionHistoryTransfer[];
|
|
2384
|
+
/** Turnkey-specific metadata for transactions originated by Turnkey. */
|
|
2385
|
+
turnkey?: v1TransactionHistoryTurnkey;
|
|
2386
|
+
};
|
|
2387
|
+
export type v1EthUndelegate7702Intent = {
|
|
2388
|
+
/** A wallet or private key address to undelegate. This does not support private key IDs. */
|
|
2389
|
+
from: string;
|
|
2390
|
+
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
2391
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:421614";
|
|
2392
|
+
/** Outer transaction nonce. Omit to auto-fetch. */
|
|
2393
|
+
nonce?: string;
|
|
2394
|
+
/** Maximum amount of gas for the undelegation transaction. Omit to use the fixed undelegation gas limit. */
|
|
2395
|
+
gasLimit?: string;
|
|
2396
|
+
/** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
|
|
2397
|
+
maxFeePerGas?: string;
|
|
2398
|
+
/** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
|
|
2399
|
+
maxPriorityFeePerGas?: string;
|
|
2400
|
+
};
|
|
2401
|
+
export type v1EthUndelegate7702Request = {
|
|
2402
|
+
type: "ACTIVITY_TYPE_ETH_UNDELEGATE_7702";
|
|
2403
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2404
|
+
timestampMs: string;
|
|
2405
|
+
/** Unique identifier for a given Organization. */
|
|
2406
|
+
organizationId: string;
|
|
2407
|
+
parameters: v1EthUndelegate7702Intent;
|
|
2408
|
+
generateAppProofs?: boolean;
|
|
2409
|
+
};
|
|
2410
|
+
export type v1EthUndelegate7702Result = {
|
|
2411
|
+
/** The send_transaction_status ID associated with the undelegation transaction submission */
|
|
2412
|
+
sendTransactionStatusId: string;
|
|
2413
|
+
};
|
|
2170
2414
|
export type v1ExecuteSwapIntent = {
|
|
2171
2415
|
/** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
|
|
2172
2416
|
inputToken: string;
|
|
@@ -2180,12 +2424,36 @@ export type v1ExecuteSwapIntent = {
|
|
|
2180
2424
|
sponsor?: boolean;
|
|
2181
2425
|
/** Maximum allowed slippage in basis points. */
|
|
2182
2426
|
slippage?: string;
|
|
2183
|
-
/** Swap provider to execute with, as returned by
|
|
2427
|
+
/** Swap provider to execute with, as returned by create_swap_quote. When omitted, execution uses the default provider. */
|
|
2184
2428
|
provider?: string;
|
|
2429
|
+
/** 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. */
|
|
2430
|
+
minOutputAmount: string;
|
|
2431
|
+
};
|
|
2432
|
+
export type v1ExecuteSwapIntentV2 = {
|
|
2433
|
+
/** Quote identifier returned by create_swap_quote. Execution is bound to this quote; the signer is derived from the quote and must not be resupplied. */
|
|
2434
|
+
quoteId: string;
|
|
2435
|
+
/** CAIP-19 asset ID for the input asset. */
|
|
2436
|
+
inputToken: string;
|
|
2437
|
+
/** Exact base-unit amount of the input asset committed by the quote. */
|
|
2438
|
+
inputAmount: string;
|
|
2439
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
2440
|
+
outputToken: string;
|
|
2441
|
+
/** Exact quoted base-unit output amount committed by the quote. */
|
|
2442
|
+
quotedOutputAmount: string;
|
|
2443
|
+
/** Exact minimum base-unit output committed by the quote. */
|
|
2444
|
+
minOutputAmount: string;
|
|
2445
|
+
/** Whether the quoted transaction is sponsored. */
|
|
2446
|
+
sponsor: boolean;
|
|
2447
|
+
/** Exact EVM sender (EOA account) nonce. Valid only for a non-sponsored EVM swap. Honored for already-delegated (Type-2) batch swaps and single-call swaps; ignored for not-yet-delegated EIP-7702 (Type-4) batches where the outer nonce is derived from the authorization. Prefer gas_station_nonce for batch replay protection and use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
2448
|
+
evmNonce?: string;
|
|
2449
|
+
/** Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
|
|
2450
|
+
recentBlockhash?: string;
|
|
2451
|
+
/** Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
2452
|
+
gasStationNonce?: string;
|
|
2185
2453
|
};
|
|
2186
2454
|
export type v1ExecuteSwapResult = {
|
|
2187
|
-
/**
|
|
2188
|
-
|
|
2455
|
+
/** Identifier to poll swap status via GetSwapStatus. */
|
|
2456
|
+
swapRequestId: string;
|
|
2189
2457
|
/** Swap provider used to build the transaction. */
|
|
2190
2458
|
provider?: string;
|
|
2191
2459
|
/** Quote identifier used for execution, if any. */
|
|
@@ -2371,6 +2639,62 @@ export type v1GetBootProofRequest = {
|
|
|
2371
2639
|
/** Hex encoded ephemeral public key. */
|
|
2372
2640
|
ephemeralKey: string;
|
|
2373
2641
|
};
|
|
2642
|
+
export type v1GetClaimEarnFeesStatusRequest = {
|
|
2643
|
+
/** Unique identifier for a given Organization. */
|
|
2644
|
+
organizationId: string;
|
|
2645
|
+
/** The claim_request_id returned by ClaimEarnFees. */
|
|
2646
|
+
claimRequestId: string;
|
|
2647
|
+
};
|
|
2648
|
+
export type v1GetClaimEarnFeesStatusResponse = {
|
|
2649
|
+
/** Status of the fee claim. */
|
|
2650
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2651
|
+
/** Transaction hash of the fee claim, once available. */
|
|
2652
|
+
claimTxHash?: string;
|
|
2653
|
+
/** Reason the fee claim transaction failed, when status is FAILED. */
|
|
2654
|
+
error?: string;
|
|
2655
|
+
};
|
|
2656
|
+
export type v1GetEarnDeployStatusRequest = {
|
|
2657
|
+
/** Unique identifier for a given Organization. */
|
|
2658
|
+
organizationId: string;
|
|
2659
|
+
/** The deploy_request_id returned by EarnDeployWrapper. */
|
|
2660
|
+
deployRequestId: string;
|
|
2661
|
+
};
|
|
2662
|
+
export type v1GetEarnDeployStatusResponse = {
|
|
2663
|
+
/** Status of the wrapper deployment. */
|
|
2664
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2665
|
+
/** Transaction hash of the deployment, once available. */
|
|
2666
|
+
deployTxHash?: string;
|
|
2667
|
+
/** Reason the deployment transaction failed, when status is FAILED. */
|
|
2668
|
+
error?: string;
|
|
2669
|
+
};
|
|
2670
|
+
export type v1GetEarnDepositStatusRequest = {
|
|
2671
|
+
/** Unique identifier for a given Organization. */
|
|
2672
|
+
organizationId: string;
|
|
2673
|
+
/** The deposit_request_id returned by EarnDeposit. */
|
|
2674
|
+
depositRequestId: string;
|
|
2675
|
+
};
|
|
2676
|
+
export type v1GetEarnDepositStatusResponse = {
|
|
2677
|
+
/** Status of the deposit. */
|
|
2678
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2679
|
+
/** Transaction hash of the deposit, once available. */
|
|
2680
|
+
depositTxHash?: string;
|
|
2681
|
+
/** Reason the deposit transaction failed, when status is FAILED. */
|
|
2682
|
+
error?: string;
|
|
2683
|
+
};
|
|
2684
|
+
export type v1GetEarnWithdrawStatusRequest = {
|
|
2685
|
+
/** Unique identifier for a given Organization. */
|
|
2686
|
+
organizationId: string;
|
|
2687
|
+
/** The withdraw_request_id returned by EarnWithdraw. */
|
|
2688
|
+
withdrawRequestId: string;
|
|
2689
|
+
};
|
|
2690
|
+
export type v1GetEarnWithdrawStatusResponse = {
|
|
2691
|
+
/** Status of the withdrawal. */
|
|
2692
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2693
|
+
/** Transaction hash of the withdrawal, once available. */
|
|
2694
|
+
withdrawTxHash?: string;
|
|
2695
|
+
/** Reason the withdrawal transaction failed, when status is FAILED. */
|
|
2696
|
+
error?: string;
|
|
2697
|
+
};
|
|
2374
2698
|
export type v1GetGasUsageRequest = {
|
|
2375
2699
|
/** Unique identifier for a given Organization. */
|
|
2376
2700
|
organizationId: string;
|
|
@@ -2395,7 +2719,7 @@ export type v1GetIpAllowlistResponse = {
|
|
|
2395
2719
|
export type v1GetLatestBootProofRequest = {
|
|
2396
2720
|
/** Unique identifier for a given Organization. */
|
|
2397
2721
|
organizationId: string;
|
|
2398
|
-
/**
|
|
2722
|
+
/** Unique identifier (UUID) of the enclave app. */
|
|
2399
2723
|
appName: string;
|
|
2400
2724
|
};
|
|
2401
2725
|
export type v1GetMfaPoliciesRequest = {
|
|
@@ -2438,7 +2762,7 @@ export type v1GetNoncesRequest = {
|
|
|
2438
2762
|
/** The Ethereum address to query nonces for. */
|
|
2439
2763
|
address: string;
|
|
2440
2764
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
2441
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
2765
|
+
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";
|
|
2442
2766
|
/** Whether to fetch the standard on-chain nonce. */
|
|
2443
2767
|
nonce?: boolean;
|
|
2444
2768
|
/** Whether to fetch the gas station nonce used for sponsored transactions. */
|
|
@@ -2602,6 +2926,38 @@ export type v1GetSubOrgIdsResponse = {
|
|
|
2602
2926
|
/** List of unique identifiers for the matching sub-organizations. */
|
|
2603
2927
|
organizationIds: string[];
|
|
2604
2928
|
};
|
|
2929
|
+
export type v1GetSwapStatusRequest = {
|
|
2930
|
+
/** Unique identifier for a given Organization. */
|
|
2931
|
+
organizationId: string;
|
|
2932
|
+
/** The swap_request_id returned by ExecuteSwap. */
|
|
2933
|
+
swapRequestId: string;
|
|
2934
|
+
};
|
|
2935
|
+
export type v1GetSwapStatusResponse = {
|
|
2936
|
+
/** Normalized swap status. One of PENDING, COMPLETED, FAILED. */
|
|
2937
|
+
status: string;
|
|
2938
|
+
/** SAME_CHAIN or CROSS_CHAIN. */
|
|
2939
|
+
swapKind: string;
|
|
2940
|
+
/** Swap provider that executed the swap. */
|
|
2941
|
+
provider: string;
|
|
2942
|
+
/** CAIP-19 asset ID for the input asset. */
|
|
2943
|
+
inputToken: string;
|
|
2944
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
2945
|
+
outputToken: string;
|
|
2946
|
+
/** Base-unit amount of the input asset. */
|
|
2947
|
+
inputAmount: string;
|
|
2948
|
+
/** Final included origin-chain transaction hash, when known. */
|
|
2949
|
+
originTxHash?: string;
|
|
2950
|
+
/** Provider-reported destination-chain transaction hashes; cross-chain COMPLETED only. */
|
|
2951
|
+
destinationTxHashes?: string[];
|
|
2952
|
+
/** Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
|
|
2953
|
+
outputAmount?: string;
|
|
2954
|
+
/** Asset and amount returned to the user after a failed swap, when recoverable. Present only on FAILED. */
|
|
2955
|
+
refund?: v1SwapRefund;
|
|
2956
|
+
/** Timestamp of the last swap status change, as millisecond epoch string. */
|
|
2957
|
+
updatedAt: string;
|
|
2958
|
+
/** Normalized failure details, present whenever status is FAILED. */
|
|
2959
|
+
error?: v1SwapError;
|
|
2960
|
+
};
|
|
2605
2961
|
export type v1GetTvcAppDeploymentsRequest = {
|
|
2606
2962
|
/** Unique identifier for a given organization. */
|
|
2607
2963
|
organizationId: string;
|
|
@@ -2720,7 +3076,7 @@ export type v1GetWalletAddressBalancesRequest = {
|
|
|
2720
3076
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
2721
3077
|
address: string;
|
|
2722
3078
|
/** 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. */
|
|
2723
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:
|
|
3079
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2724
3080
|
};
|
|
2725
3081
|
export type v1GetWalletAddressBalancesResponse = {
|
|
2726
3082
|
/** List of asset balances */
|
|
@@ -2869,6 +3225,16 @@ export type v1InitImportPrivateKeyResult = {
|
|
|
2869
3225
|
/** Import bundle containing a public key and signature to use for importing client data. */
|
|
2870
3226
|
importBundle: string;
|
|
2871
3227
|
};
|
|
3228
|
+
export type v1InitImportSecretsIntent = {
|
|
3229
|
+
/** Transport encryption suite used for ingress secrets. */
|
|
3230
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
3231
|
+
/** The number of secrets the user intends to import. */
|
|
3232
|
+
numSecrets: number;
|
|
3233
|
+
};
|
|
3234
|
+
export type v1InitImportSecretsResult = {
|
|
3235
|
+
/** Enclave ingress target keys along with metadata specific to the encryption suite. For enclave encrypt v1 this will be ServerTargetMsgV1. */
|
|
3236
|
+
enclaveTargetMessages: string[];
|
|
3237
|
+
};
|
|
2872
3238
|
export type v1InitImportWalletIntent = {
|
|
2873
3239
|
/** The ID of the User importing a Wallet. */
|
|
2874
3240
|
userId: string;
|
|
@@ -3247,12 +3613,20 @@ export type v1Intent = {
|
|
|
3247
3613
|
earnDeployWrapperIntent?: v1EarnDeployWrapperIntent;
|
|
3248
3614
|
earnDepositIntent?: v1EarnDepositIntent;
|
|
3249
3615
|
earnWithdrawIntent?: v1EarnWithdrawIntent;
|
|
3250
|
-
upsertEarnClientFeeConfigIntent?: v1UpsertEarnClientFeeConfigIntent;
|
|
3251
3616
|
executeSwapIntent?: v1ExecuteSwapIntent;
|
|
3252
3617
|
upsertSwapConfigIntent?: v1UpsertSwapConfigIntent;
|
|
3253
3618
|
createTvcOperatorIntent?: v1CreateTvcOperatorIntent;
|
|
3254
3619
|
createTvcQuorumKeyIntent?: v1CreateTvcQuorumKeyIntent;
|
|
3255
3620
|
reEncryptTvcQuorumKeyShareIntent?: v1ReEncryptTvcQuorumKeyShareIntent;
|
|
3621
|
+
initImportSecretsIntent?: v1InitImportSecretsIntent;
|
|
3622
|
+
solSendTransactionIntentV2?: v1SolSendTransactionIntentV2;
|
|
3623
|
+
claimSwapFeesIntent?: v1ClaimSwapFeesIntent;
|
|
3624
|
+
earnSetWrapperStateIntent?: v1EarnSetWrapperStateIntent;
|
|
3625
|
+
claimEarnFeesIntent?: v1ClaimEarnFeesIntent;
|
|
3626
|
+
updateWalletAccountNameIntent?: v1UpdateWalletAccountNameIntent;
|
|
3627
|
+
ethUndelegate7702Intent?: v1EthUndelegate7702Intent;
|
|
3628
|
+
executeSwapIntentV2?: v1ExecuteSwapIntentV2;
|
|
3629
|
+
createSwapQuoteIntent?: v1CreateSwapQuoteIntent;
|
|
3256
3630
|
};
|
|
3257
3631
|
export type v1InvitationParams = {
|
|
3258
3632
|
/** The name of the intended Invitation recipient. */
|
|
@@ -3292,6 +3666,44 @@ export type v1IpAllowlistRule = {
|
|
|
3292
3666
|
/** Creation timestamp as millisecond epoch string. */
|
|
3293
3667
|
createdAt?: string;
|
|
3294
3668
|
};
|
|
3669
|
+
export type v1ListEarnEnabledVaultsRequest = {
|
|
3670
|
+
/** Unique identifier for a given Organization. */
|
|
3671
|
+
organizationId: string;
|
|
3672
|
+
/** Optional filter: only return enabled vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
3673
|
+
provider?: v1EarnProvider;
|
|
3674
|
+
/** 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. */
|
|
3675
|
+
caip19?: string;
|
|
3676
|
+
};
|
|
3677
|
+
export type v1ListEarnEnabledVaultsResponse = {
|
|
3678
|
+
/** The organization's deployed wrappers. */
|
|
3679
|
+
enabledVaults?: v1EarnEnabledVault[];
|
|
3680
|
+
};
|
|
3681
|
+
export type v1ListEarnPositionsRequest = {
|
|
3682
|
+
/** Unique identifier for a given Organization. */
|
|
3683
|
+
organizationId: string;
|
|
3684
|
+
/** The wallet address to return positions for. */
|
|
3685
|
+
walletAddress: string;
|
|
3686
|
+
};
|
|
3687
|
+
export type v1ListEarnPositionsResponse = {
|
|
3688
|
+
/** The wallet's active Earn positions. */
|
|
3689
|
+
positions?: v1EarnPosition[];
|
|
3690
|
+
};
|
|
3691
|
+
export type v1ListEarnVaultsRequest = {
|
|
3692
|
+
/** Unique identifier for a given Organization. Annotates which vaults the organization has already enabled. */
|
|
3693
|
+
organizationId: string;
|
|
3694
|
+
/** Optional filter: only return vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
3695
|
+
provider?: v1EarnProvider;
|
|
3696
|
+
/** 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. */
|
|
3697
|
+
caip19: string;
|
|
3698
|
+
/** Pagination over the TVL-sorted catalog. before/after cursors are a vault_address from a prior page. */
|
|
3699
|
+
paginationOptions?: v1Pagination;
|
|
3700
|
+
};
|
|
3701
|
+
export type v1ListEarnVaultsResponse = {
|
|
3702
|
+
/** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass page_info.end_cursor as the pagination after cursor. */
|
|
3703
|
+
vaults?: v1EarnVault[];
|
|
3704
|
+
/** Pagination metadata for the returned page. Pass end_cursor as the next request's after cursor (or start_cursor as the before cursor) to page through the catalog. Cursors are opaque; do not parse them. */
|
|
3705
|
+
pageInfo?: v1PageInfo;
|
|
3706
|
+
};
|
|
3295
3707
|
export type v1ListEmailEventsRequest = {
|
|
3296
3708
|
/** Unique identifier for a given organization */
|
|
3297
3709
|
organizationId: string;
|
|
@@ -3306,6 +3718,22 @@ export type v1ListEmailEventsResponse = {
|
|
|
3306
3718
|
/** Email events matching the requested filters, ordered by most recent event first. */
|
|
3307
3719
|
emailEvents: v1EmailEvent[];
|
|
3308
3720
|
};
|
|
3721
|
+
export type v1ListEthTransactionHistoryRequest = {
|
|
3722
|
+
/** Unique identifier for a given organization. */
|
|
3723
|
+
organizationId: string;
|
|
3724
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
3725
|
+
address: string;
|
|
3726
|
+
/** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
3727
|
+
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";
|
|
3728
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
3729
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
3730
|
+
};
|
|
3731
|
+
export type v1ListEthTransactionHistoryResponse = {
|
|
3732
|
+
/** EVM transactions for the requested address, ordered by most recent first. */
|
|
3733
|
+
transactions: v1EthTransactionHistoryItem[];
|
|
3734
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
3735
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
3736
|
+
};
|
|
3309
3737
|
export type v1ListFiatOnRampCredentialsRequest = {
|
|
3310
3738
|
/** Unique identifier for a given Organization. */
|
|
3311
3739
|
organizationId: string;
|
|
@@ -3328,11 +3756,27 @@ export type v1ListPrivateKeyTagsResponse = {
|
|
|
3328
3756
|
/** A list of private key tags. */
|
|
3329
3757
|
privateKeyTags: datav1Tag[];
|
|
3330
3758
|
};
|
|
3759
|
+
export type v1ListSolTransactionHistoryRequest = {
|
|
3760
|
+
/** Unique identifier for a given organization. */
|
|
3761
|
+
organizationId: string;
|
|
3762
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
3763
|
+
address: string;
|
|
3764
|
+
/** 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. */
|
|
3765
|
+
caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
|
|
3766
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
3767
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
3768
|
+
};
|
|
3769
|
+
export type v1ListSolTransactionHistoryResponse = {
|
|
3770
|
+
/** Solana transactions for the requested address, ordered by most recent first. */
|
|
3771
|
+
transactions: v1SolTransactionHistoryItem[];
|
|
3772
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
3773
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
3774
|
+
};
|
|
3331
3775
|
export type v1ListSupportedAssetsRequest = {
|
|
3332
3776
|
/** Unique identifier for a given organization. */
|
|
3333
3777
|
organizationId: string;
|
|
3334
3778
|
/** 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. */
|
|
3335
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:
|
|
3779
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
3336
3780
|
};
|
|
3337
3781
|
export type v1ListSupportedAssetsResponse = {
|
|
3338
3782
|
/** List of asset metadata */
|
|
@@ -3577,7 +4021,13 @@ export type v1OtpLoginResult = {
|
|
|
3577
4021
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
3578
4022
|
session: string;
|
|
3579
4023
|
};
|
|
3580
|
-
export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS";
|
|
4024
|
+
export type v1Outcome = "OUTCOME_ALLOW" | "OUTCOME_DENY_EXPLICIT" | "OUTCOME_DENY_IMPLICIT" | "OUTCOME_REQUIRES_CONSENSUS" | "OUTCOME_REJECTED" | "OUTCOME_ERROR" | "OUTCOME_REQUIRES_AUTHENTICATORS" | "OUTCOME_TIME_INACTIVE";
|
|
4025
|
+
export type v1PageInfo = {
|
|
4026
|
+
hasNextPage?: boolean;
|
|
4027
|
+
hasPreviousPage?: boolean;
|
|
4028
|
+
startCursor?: string;
|
|
4029
|
+
endCursor?: string;
|
|
4030
|
+
};
|
|
3581
4031
|
export type v1Pagination = {
|
|
3582
4032
|
/** A limit of the number of object to be returned, between 1 and 100. Defaults to 10. */
|
|
3583
4033
|
limit?: string;
|
|
@@ -3602,6 +4052,8 @@ export type v1Policy = {
|
|
|
3602
4052
|
consensus: string;
|
|
3603
4053
|
/** A condition expression that evalutes to true or false. */
|
|
3604
4054
|
condition: string;
|
|
4055
|
+
/** A time expression that evalutes to true or false. */
|
|
4056
|
+
time?: string;
|
|
3605
4057
|
};
|
|
3606
4058
|
export type v1PostTvcQuorumKeyShareIntent = {
|
|
3607
4059
|
/** Unique identifier of the TVC deployment receiving quorum key share */
|
|
@@ -3896,12 +4348,19 @@ export type v1Result = {
|
|
|
3896
4348
|
earnDeployWrapperResult?: v1EarnDeployWrapperResult;
|
|
3897
4349
|
earnDepositResult?: v1EarnDepositResult;
|
|
3898
4350
|
earnWithdrawResult?: v1EarnWithdrawResult;
|
|
3899
|
-
upsertEarnClientFeeConfigResult?: v1UpsertEarnClientFeeConfigResult;
|
|
3900
4351
|
executeSwapResult?: v1ExecuteSwapResult;
|
|
3901
4352
|
upsertSwapConfigResult?: v1UpsertSwapConfigResult;
|
|
3902
4353
|
createTvcOperatorResult?: v1CreateTvcOperatorResult;
|
|
3903
4354
|
createTvcQuorumKeyResult?: v1CreateTvcQuorumKeyResult;
|
|
3904
4355
|
reEncryptTvcQuorumKeyShareResult?: v1ReEncryptTvcQuorumKeyShareResult;
|
|
4356
|
+
initImportSecretsResult?: v1InitImportSecretsResult;
|
|
4357
|
+
solSendTransactionResultV2?: v1SolSendTransactionResultV2;
|
|
4358
|
+
claimSwapFeesResult?: v1ClaimSwapFeesResult;
|
|
4359
|
+
earnSetWrapperStateResult?: v1EarnSetWrapperStateResult;
|
|
4360
|
+
claimEarnFeesResult?: v1ClaimEarnFeesResult;
|
|
4361
|
+
updateWalletAccountNameResult?: v1UpdateWalletAccountNameResult;
|
|
4362
|
+
ethUndelegate7702Result?: v1EthUndelegate7702Result;
|
|
4363
|
+
createSwapQuoteResult?: v1CreateSwapQuoteResult;
|
|
3905
4364
|
};
|
|
3906
4365
|
export type v1RevertChainEntry = {
|
|
3907
4366
|
/** The contract address where the revert occurred. */
|
|
@@ -4163,19 +4622,61 @@ export type v1SolSendTransactionIntent = {
|
|
|
4163
4622
|
/** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
|
|
4164
4623
|
recentBlockhash?: string;
|
|
4165
4624
|
};
|
|
4625
|
+
export type v1SolSendTransactionIntentV2 = {
|
|
4626
|
+
/** Hex-encoded serialized unsigned Solana transaction (full wire format with zeroed signature placeholders) */
|
|
4627
|
+
unsignedTransaction: string;
|
|
4628
|
+
/** 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. */
|
|
4629
|
+
signWiths: string[];
|
|
4630
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
4631
|
+
sponsor?: boolean;
|
|
4632
|
+
/** 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. */
|
|
4633
|
+
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
4634
|
+
/** 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. */
|
|
4635
|
+
recentBlockhash?: string;
|
|
4636
|
+
};
|
|
4166
4637
|
export type v1SolSendTransactionRequest = {
|
|
4167
|
-
type: "
|
|
4638
|
+
type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2";
|
|
4168
4639
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
4169
4640
|
timestampMs: string;
|
|
4170
4641
|
/** Unique identifier for a given Organization. */
|
|
4171
4642
|
organizationId: string;
|
|
4172
|
-
parameters:
|
|
4643
|
+
parameters: v1SolSendTransactionIntentV2;
|
|
4173
4644
|
generateAppProofs?: boolean;
|
|
4174
4645
|
};
|
|
4175
4646
|
export type v1SolSendTransactionResult = {
|
|
4176
4647
|
/** The send_transaction_status ID associated with the transaction submission */
|
|
4177
4648
|
sendTransactionStatusId: string;
|
|
4178
4649
|
};
|
|
4650
|
+
export type v1SolSendTransactionResultV2 = {
|
|
4651
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
4652
|
+
sendTransactionStatusId: string;
|
|
4653
|
+
};
|
|
4654
|
+
export type v1SolTransactionHistoryItem = {
|
|
4655
|
+
/** Solana transaction signature. */
|
|
4656
|
+
signature: string;
|
|
4657
|
+
/** Block metadata for the transaction. */
|
|
4658
|
+
block: v1TransactionHistoryBlock;
|
|
4659
|
+
/** Transaction confirmation status. */
|
|
4660
|
+
status: "CONFIRMED" | "FINALIZED";
|
|
4661
|
+
/** Origin of the transaction. Examples include TURNKEY. */
|
|
4662
|
+
origin: string;
|
|
4663
|
+
/** Address that paid the Solana transaction fee. This is the first signer in the transaction message. */
|
|
4664
|
+
feePayer: string;
|
|
4665
|
+
/** Addresses that signed the Solana transaction, in message order. */
|
|
4666
|
+
signers: v1SolTransactionHistorySigner[];
|
|
4667
|
+
/** Transaction fee information. */
|
|
4668
|
+
fee: v1TransactionHistoryFee;
|
|
4669
|
+
/** Asset transfers associated with the transaction. */
|
|
4670
|
+
transfers: v1TransactionHistoryTransfer[];
|
|
4671
|
+
/** Turnkey-specific metadata for transactions originated by Turnkey. */
|
|
4672
|
+
turnkey?: v1TransactionHistoryTurnkey;
|
|
4673
|
+
};
|
|
4674
|
+
export type v1SolTransactionHistorySigner = {
|
|
4675
|
+
/** Address of the Solana transaction signer. */
|
|
4676
|
+
address: string;
|
|
4677
|
+
/** Whether the signer account was writable in the Solana transaction message. */
|
|
4678
|
+
writable: boolean;
|
|
4679
|
+
};
|
|
4179
4680
|
export type v1SolanaConfig = {
|
|
4180
4681
|
/** Whether Solana rent prefunding is enabled for the organization. When omitted, the existing rent-prefund state is left unchanged. */
|
|
4181
4682
|
rentPrefundEnabled?: boolean;
|
|
@@ -4424,6 +4925,40 @@ export type v1StampLoginResult = {
|
|
|
4424
4925
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
4425
4926
|
session: string;
|
|
4426
4927
|
};
|
|
4928
|
+
export type v1SwapError = {
|
|
4929
|
+
/** Stable machine-readable failure reason. One of ORIGIN_TRANSACTION_FAILED or PROVIDER_FILL_FAILED. */
|
|
4930
|
+
reason: string;
|
|
4931
|
+
/** Human-readable description of the swap failure. */
|
|
4932
|
+
message: string;
|
|
4933
|
+
/** Origin-chain transaction failure details, present when reason is ORIGIN_TRANSACTION_FAILED and details are available. */
|
|
4934
|
+
originTxError?: v1TxError;
|
|
4935
|
+
};
|
|
4936
|
+
export type v1SwapQuote = {
|
|
4937
|
+
/** Identifier for this provider quote. Pass this value to execute_swap_v2 to bind execution to this exact quote. The signer is derived from the quote; clients do not resupply sign_with on execute. */
|
|
4938
|
+
quoteId: string;
|
|
4939
|
+
/** Swap provider that produced this quote. */
|
|
4940
|
+
provider: string;
|
|
4941
|
+
/** Estimated base-unit amount of the output asset. */
|
|
4942
|
+
outputAmount: string;
|
|
4943
|
+
/** Minimum acceptable base-unit amount of the output asset after slippage. */
|
|
4944
|
+
minOutputAmount: string;
|
|
4945
|
+
/** Quote expiration as a millisecond epoch string. */
|
|
4946
|
+
expiresAt: string;
|
|
4947
|
+
/** Provider-neutral maximum allowed slippage in basis points, echoed from the quote request when set. */
|
|
4948
|
+
slippageBps?: string;
|
|
4949
|
+
/** Client fee in basis points applied for this pair. Informational only; already reflected in output_amount and min_output_amount. */
|
|
4950
|
+
clientFeeBps: string;
|
|
4951
|
+
/** Provider-estimated completion time in seconds, when available. */
|
|
4952
|
+
estimatedTimeSeconds?: string;
|
|
4953
|
+
};
|
|
4954
|
+
export type v1SwapRefund = {
|
|
4955
|
+
/** CAIP-19 asset returned to the user after a failed swap. */
|
|
4956
|
+
asset: string;
|
|
4957
|
+
/** Base-unit amount of the refunded asset. */
|
|
4958
|
+
amount: string;
|
|
4959
|
+
/** Transaction that delivered the refunded funds, when applicable. */
|
|
4960
|
+
txHash?: string;
|
|
4961
|
+
};
|
|
4427
4962
|
export type v1TagType = "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
|
|
4428
4963
|
export type v1TokenUsage = {
|
|
4429
4964
|
/** Type of token usage */
|
|
@@ -4434,7 +4969,72 @@ export type v1TokenUsage = {
|
|
|
4434
4969
|
login?: v1LoginUsage;
|
|
4435
4970
|
signupV2?: v1SignupUsageV2;
|
|
4436
4971
|
};
|
|
4972
|
+
export type v1TransactionHistoryAsset = {
|
|
4973
|
+
/** The CAIP-19 asset identifier. */
|
|
4974
|
+
caip19: string;
|
|
4975
|
+
/** The asset symbol. */
|
|
4976
|
+
symbol: string;
|
|
4977
|
+
/** The asset name. */
|
|
4978
|
+
name: string;
|
|
4979
|
+
/** The number of decimals this asset uses. */
|
|
4980
|
+
decimals: number;
|
|
4981
|
+
};
|
|
4982
|
+
export type v1TransactionHistoryBlock = {
|
|
4983
|
+
/** Block number containing the transaction. */
|
|
4984
|
+
number: string;
|
|
4985
|
+
/** Block hash containing the transaction. */
|
|
4986
|
+
hash: string;
|
|
4987
|
+
/** Block timestamp in RFC 3339 format. */
|
|
4988
|
+
timestamp: string;
|
|
4989
|
+
};
|
|
4990
|
+
export type v1TransactionHistoryDisplay = {
|
|
4991
|
+
/** Normalized crypto value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
|
|
4992
|
+
crypto?: string;
|
|
4993
|
+
/** USD value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
|
|
4994
|
+
usd?: string;
|
|
4995
|
+
};
|
|
4996
|
+
export type v1TransactionHistoryFee = {
|
|
4997
|
+
/** Fee amount in atomic units. */
|
|
4998
|
+
amount: string;
|
|
4999
|
+
/** The CAIP-19 asset identifier. */
|
|
5000
|
+
caip19: string;
|
|
5001
|
+
};
|
|
5002
|
+
export type v1TransactionHistoryPaginationCursors = {
|
|
5003
|
+
/** Opaque base64-encoded cursor for fetching transactions immediately before the current page in the newest-first result order. Omitted when no such page exists. */
|
|
5004
|
+
before?: string;
|
|
5005
|
+
/** Opaque base64-encoded cursor for fetching transactions immediately after the current page in the newest-first result order. Omitted when no such page exists. */
|
|
5006
|
+
after?: string;
|
|
5007
|
+
};
|
|
5008
|
+
export type v1TransactionHistoryPaginationOptions = {
|
|
5009
|
+
/** Maximum number of transactions to return, between 1 and 100. Defaults to 25. */
|
|
5010
|
+
limit?: string;
|
|
5011
|
+
/** 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. */
|
|
5012
|
+
before?: string;
|
|
5013
|
+
/** 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. */
|
|
5014
|
+
after?: string;
|
|
5015
|
+
};
|
|
5016
|
+
export type v1TransactionHistoryTransfer = {
|
|
5017
|
+
/** Transfer direction relative to the queried address. */
|
|
5018
|
+
direction: "IN" | "OUT";
|
|
5019
|
+
/** Asset metadata for the transfer. Omitted when the asset cannot be determined. */
|
|
5020
|
+
asset?: v1TransactionHistoryAsset;
|
|
5021
|
+
/** Transfer amount in atomic units. */
|
|
5022
|
+
amount: string;
|
|
5023
|
+
/** Counterparty address for the transfer. */
|
|
5024
|
+
counterparty: string;
|
|
5025
|
+
/** 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. */
|
|
5026
|
+
display?: v1TransactionHistoryDisplay;
|
|
5027
|
+
};
|
|
5028
|
+
export type v1TransactionHistoryTurnkey = {
|
|
5029
|
+
/** Whether the transaction fee was sponsored by Turnkey. */
|
|
5030
|
+
sponsored: boolean;
|
|
5031
|
+
/** Fingerprint of the Turnkey activity that submitted the transaction. */
|
|
5032
|
+
activityFingerprint?: string;
|
|
5033
|
+
/** Timestamp when Turnkey submitted the transaction, in RFC 3339 format. */
|
|
5034
|
+
submittedAt?: string;
|
|
5035
|
+
};
|
|
4437
5036
|
export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
|
|
5037
|
+
export type v1TransportEncryptionSuite = "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1";
|
|
4438
5038
|
export type v1TvcApp = {
|
|
4439
5039
|
/** Unique Identifier for this TVC App. */
|
|
4440
5040
|
id: string;
|
|
@@ -4630,6 +5230,8 @@ export type v1UpdateAuthProxyConfigIntent = {
|
|
|
4630
5230
|
verificationTokenRequiredForGetAccountPii?: boolean;
|
|
4631
5231
|
/** 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. */
|
|
4632
5232
|
socialLinkingClientIds?: string[];
|
|
5233
|
+
/** Whether captcha verification is required on sign up & otp init. */
|
|
5234
|
+
captchaEnabled?: boolean;
|
|
4633
5235
|
};
|
|
4634
5236
|
export type v1UpdateAuthProxyConfigResult = {
|
|
4635
5237
|
/** Unique identifier for a given User. (representing the turnkey signer user id) */
|
|
@@ -4759,6 +5361,8 @@ export type v1UpdatePolicyIntentV2 = {
|
|
|
4759
5361
|
policyConsensus?: string;
|
|
4760
5362
|
/** Accompanying notes for a Policy (optional). */
|
|
4761
5363
|
policyNotes?: string;
|
|
5364
|
+
/** The time expression that triggers the Effect (optional). */
|
|
5365
|
+
time?: string;
|
|
4762
5366
|
};
|
|
4763
5367
|
export type v1UpdatePolicyRequest = {
|
|
4764
5368
|
type: "ACTIVITY_TYPE_UPDATE_POLICY_V2";
|
|
@@ -4939,6 +5543,16 @@ export type v1UpdateUserTagResult = {
|
|
|
4939
5543
|
/** Unique identifier for a given User Tag. */
|
|
4940
5544
|
userTagId: string;
|
|
4941
5545
|
};
|
|
5546
|
+
export type v1UpdateWalletAccountNameIntent = {
|
|
5547
|
+
/** Unique identifier for a given Wallet Account. */
|
|
5548
|
+
walletAccountId: string;
|
|
5549
|
+
/** Human-readable name for this Wallet Account. */
|
|
5550
|
+
name: string;
|
|
5551
|
+
};
|
|
5552
|
+
export type v1UpdateWalletAccountNameResult = {
|
|
5553
|
+
/** Unique identifier for a given Wallet Account. */
|
|
5554
|
+
walletAccountId: string;
|
|
5555
|
+
};
|
|
4942
5556
|
export type v1UpdateWalletIntent = {
|
|
4943
5557
|
/** Unique identifier for a given Wallet. */
|
|
4944
5558
|
walletId: string;
|
|
@@ -4983,16 +5597,6 @@ export type v1UpdateWebhookEndpointResult = {
|
|
|
4983
5597
|
/** The updated webhook endpoint data. */
|
|
4984
5598
|
webhookEndpoint: v1WebhookEndpointData;
|
|
4985
5599
|
};
|
|
4986
|
-
export type v1UpsertEarnClientFeeConfigIntent = {
|
|
4987
|
-
/** Your performance fee on gross yield, in basis points (e.g., '2000' for 20%). Your fee plus Turnkey's fee cannot exceed 50% of yield. */
|
|
4988
|
-
clientFeeBps: string;
|
|
4989
|
-
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
4990
|
-
clientFeeWallet: string;
|
|
4991
|
-
};
|
|
4992
|
-
export type v1UpsertEarnClientFeeConfigResult = {
|
|
4993
|
-
/** Transaction hash of the fee configuration update. */
|
|
4994
|
-
feeUpdateTxHash: string;
|
|
4995
|
-
};
|
|
4996
5600
|
export type v1UpsertGasUsageConfigIntent = {
|
|
4997
5601
|
/** Gas sponsorship USD limit for the billing organization window. */
|
|
4998
5602
|
orgWindowLimitUsd: string;
|
|
@@ -5011,12 +5615,24 @@ export type v1UpsertGasUsageConfigResult = {
|
|
|
5011
5615
|
};
|
|
5012
5616
|
export type v1UpsertSwapConfigIntent = {
|
|
5013
5617
|
feeReceiverWalletAddress?: string;
|
|
5618
|
+
/** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
|
|
5014
5619
|
feeBps?: string;
|
|
5015
|
-
|
|
5620
|
+
/** Optional Enterprise-only override applied when both swap assets are stablecoins; falls back to fee_bps when unset. Non-Enterprise orgs may only set fee_bps. */
|
|
5621
|
+
stableFeeBps?: string;
|
|
5622
|
+
};
|
|
5623
|
+
export type v1UpsertSwapConfigRequest = {
|
|
5624
|
+
type: "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG";
|
|
5625
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
5626
|
+
timestampMs: string;
|
|
5627
|
+
/** Unique identifier for a given Organization. */
|
|
5628
|
+
organizationId: string;
|
|
5629
|
+
parameters: v1UpsertSwapConfigIntent;
|
|
5630
|
+
generateAppProofs?: boolean;
|
|
5016
5631
|
};
|
|
5017
5632
|
export type v1UpsertSwapConfigResult = {
|
|
5018
5633
|
feeReceiverWalletAddress?: string;
|
|
5019
5634
|
feeBps?: string;
|
|
5635
|
+
stableFeeBps?: string;
|
|
5020
5636
|
};
|
|
5021
5637
|
export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
|
|
5022
5638
|
export type v1User = {
|
|
@@ -5313,6 +5929,70 @@ export type TGetBootProofBody = {
|
|
|
5313
5929
|
export type TGetBootProofInput = {
|
|
5314
5930
|
body: TGetBootProofBody;
|
|
5315
5931
|
};
|
|
5932
|
+
export type TGetClaimEarnFeesStatusResponse = {
|
|
5933
|
+
/** Status of the fee claim. */
|
|
5934
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5935
|
+
/** Transaction hash of the fee claim, once available. */
|
|
5936
|
+
claimTxHash?: string;
|
|
5937
|
+
/** Reason the fee claim transaction failed, when status is FAILED. */
|
|
5938
|
+
error?: string;
|
|
5939
|
+
};
|
|
5940
|
+
export type TGetClaimEarnFeesStatusBody = {
|
|
5941
|
+
organizationId?: string;
|
|
5942
|
+
/** The claim_request_id returned by ClaimEarnFees. */
|
|
5943
|
+
claimRequestId: string;
|
|
5944
|
+
};
|
|
5945
|
+
export type TGetClaimEarnFeesStatusInput = {
|
|
5946
|
+
body: TGetClaimEarnFeesStatusBody;
|
|
5947
|
+
};
|
|
5948
|
+
export type TGetEarnDeployStatusResponse = {
|
|
5949
|
+
/** Status of the wrapper deployment. */
|
|
5950
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5951
|
+
/** Transaction hash of the deployment, once available. */
|
|
5952
|
+
deployTxHash?: string;
|
|
5953
|
+
/** Reason the deployment transaction failed, when status is FAILED. */
|
|
5954
|
+
error?: string;
|
|
5955
|
+
};
|
|
5956
|
+
export type TGetEarnDeployStatusBody = {
|
|
5957
|
+
organizationId?: string;
|
|
5958
|
+
/** The deploy_request_id returned by EarnDeployWrapper. */
|
|
5959
|
+
deployRequestId: string;
|
|
5960
|
+
};
|
|
5961
|
+
export type TGetEarnDeployStatusInput = {
|
|
5962
|
+
body: TGetEarnDeployStatusBody;
|
|
5963
|
+
};
|
|
5964
|
+
export type TGetEarnDepositStatusResponse = {
|
|
5965
|
+
/** Status of the deposit. */
|
|
5966
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5967
|
+
/** Transaction hash of the deposit, once available. */
|
|
5968
|
+
depositTxHash?: string;
|
|
5969
|
+
/** Reason the deposit transaction failed, when status is FAILED. */
|
|
5970
|
+
error?: string;
|
|
5971
|
+
};
|
|
5972
|
+
export type TGetEarnDepositStatusBody = {
|
|
5973
|
+
organizationId?: string;
|
|
5974
|
+
/** The deposit_request_id returned by EarnDeposit. */
|
|
5975
|
+
depositRequestId: string;
|
|
5976
|
+
};
|
|
5977
|
+
export type TGetEarnDepositStatusInput = {
|
|
5978
|
+
body: TGetEarnDepositStatusBody;
|
|
5979
|
+
};
|
|
5980
|
+
export type TGetEarnWithdrawStatusResponse = {
|
|
5981
|
+
/** Status of the withdrawal. */
|
|
5982
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
5983
|
+
/** Transaction hash of the withdrawal, once available. */
|
|
5984
|
+
withdrawTxHash?: string;
|
|
5985
|
+
/** Reason the withdrawal transaction failed, when status is FAILED. */
|
|
5986
|
+
error?: string;
|
|
5987
|
+
};
|
|
5988
|
+
export type TGetEarnWithdrawStatusBody = {
|
|
5989
|
+
organizationId?: string;
|
|
5990
|
+
/** The withdraw_request_id returned by EarnWithdraw. */
|
|
5991
|
+
withdrawRequestId: string;
|
|
5992
|
+
};
|
|
5993
|
+
export type TGetEarnWithdrawStatusInput = {
|
|
5994
|
+
body: TGetEarnWithdrawStatusBody;
|
|
5995
|
+
};
|
|
5316
5996
|
export type TGetGasUsageResponse = {
|
|
5317
5997
|
/** The window duration (in minutes) for the organization or sub-organization. */
|
|
5318
5998
|
windowDurationMinutes: number;
|
|
@@ -5343,7 +6023,7 @@ export type TGetLatestBootProofResponse = {
|
|
|
5343
6023
|
};
|
|
5344
6024
|
export type TGetLatestBootProofBody = {
|
|
5345
6025
|
organizationId?: string;
|
|
5346
|
-
/**
|
|
6026
|
+
/** Unique identifier (UUID) of the enclave app. */
|
|
5347
6027
|
appName: string;
|
|
5348
6028
|
};
|
|
5349
6029
|
export type TGetLatestBootProofInput = {
|
|
@@ -5400,7 +6080,7 @@ export type TGetNoncesBody = {
|
|
|
5400
6080
|
/** The Ethereum address to query nonces for. */
|
|
5401
6081
|
address: string;
|
|
5402
6082
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
5403
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
6083
|
+
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";
|
|
5404
6084
|
/** Whether to fetch the standard on-chain nonce. */
|
|
5405
6085
|
nonce?: boolean;
|
|
5406
6086
|
/** Whether to fetch the gas station nonce used for sponsored transactions. */
|
|
@@ -5545,6 +6225,40 @@ export type TGetSmartContractInterfaceBody = {
|
|
|
5545
6225
|
export type TGetSmartContractInterfaceInput = {
|
|
5546
6226
|
body: TGetSmartContractInterfaceBody;
|
|
5547
6227
|
};
|
|
6228
|
+
export type TGetSwapStatusResponse = {
|
|
6229
|
+
/** Normalized swap status. One of PENDING, COMPLETED, FAILED. */
|
|
6230
|
+
status: string;
|
|
6231
|
+
/** SAME_CHAIN or CROSS_CHAIN. */
|
|
6232
|
+
swapKind: string;
|
|
6233
|
+
/** Swap provider that executed the swap. */
|
|
6234
|
+
provider: string;
|
|
6235
|
+
/** CAIP-19 asset ID for the input asset. */
|
|
6236
|
+
inputToken: string;
|
|
6237
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
6238
|
+
outputToken: string;
|
|
6239
|
+
/** Base-unit amount of the input asset. */
|
|
6240
|
+
inputAmount: string;
|
|
6241
|
+
/** Final included origin-chain transaction hash, when known. */
|
|
6242
|
+
originTxHash?: string;
|
|
6243
|
+
/** Provider-reported destination-chain transaction hashes; cross-chain COMPLETED only. */
|
|
6244
|
+
destinationTxHashes?: string[];
|
|
6245
|
+
/** Actual base-unit output amount on COMPLETED, when known. Unset on FAILED. */
|
|
6246
|
+
outputAmount?: string;
|
|
6247
|
+
/** Asset and amount returned to the user after a failed swap, when recoverable. Present only on FAILED. */
|
|
6248
|
+
refund?: v1SwapRefund;
|
|
6249
|
+
/** Timestamp of the last swap status change, as millisecond epoch string. */
|
|
6250
|
+
updatedAt: string;
|
|
6251
|
+
/** Normalized failure details, present whenever status is FAILED. */
|
|
6252
|
+
error?: v1SwapError;
|
|
6253
|
+
};
|
|
6254
|
+
export type TGetSwapStatusBody = {
|
|
6255
|
+
organizationId?: string;
|
|
6256
|
+
/** The swap_request_id returned by ExecuteSwap. */
|
|
6257
|
+
swapRequestId: string;
|
|
6258
|
+
};
|
|
6259
|
+
export type TGetSwapStatusInput = {
|
|
6260
|
+
body: TGetSwapStatusBody;
|
|
6261
|
+
};
|
|
5548
6262
|
export type TGetTvcAppResponse = {
|
|
5549
6263
|
/** Details about a single TVC App */
|
|
5550
6264
|
tvcApp: v1TvcApp;
|
|
@@ -5634,7 +6348,7 @@ export type TGetWalletAddressBalancesBody = {
|
|
|
5634
6348
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
5635
6349
|
address: string;
|
|
5636
6350
|
/** 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. */
|
|
5637
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:
|
|
6351
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
5638
6352
|
};
|
|
5639
6353
|
export type TGetWalletAddressBalancesInput = {
|
|
5640
6354
|
body: TGetWalletAddressBalancesBody;
|
|
@@ -5666,6 +6380,50 @@ export type TGetAppProofsBody = {
|
|
|
5666
6380
|
export type TGetAppProofsInput = {
|
|
5667
6381
|
body: TGetAppProofsBody;
|
|
5668
6382
|
};
|
|
6383
|
+
export type TListEarnEnabledVaultsResponse = {
|
|
6384
|
+
/** The organization's deployed wrappers. */
|
|
6385
|
+
enabledVaults?: v1EarnEnabledVault[];
|
|
6386
|
+
};
|
|
6387
|
+
export type TListEarnEnabledVaultsBody = {
|
|
6388
|
+
organizationId?: string;
|
|
6389
|
+
/** Optional filter: only return enabled vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
6390
|
+
provider?: v1EarnProvider;
|
|
6391
|
+
/** 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. */
|
|
6392
|
+
caip19?: string;
|
|
6393
|
+
};
|
|
6394
|
+
export type TListEarnEnabledVaultsInput = {
|
|
6395
|
+
body: TListEarnEnabledVaultsBody;
|
|
6396
|
+
};
|
|
6397
|
+
export type TListEarnPositionsResponse = {
|
|
6398
|
+
/** The wallet's active Earn positions. */
|
|
6399
|
+
positions?: v1EarnPosition[];
|
|
6400
|
+
};
|
|
6401
|
+
export type TListEarnPositionsBody = {
|
|
6402
|
+
organizationId?: string;
|
|
6403
|
+
/** The wallet address to return positions for. */
|
|
6404
|
+
walletAddress: string;
|
|
6405
|
+
};
|
|
6406
|
+
export type TListEarnPositionsInput = {
|
|
6407
|
+
body: TListEarnPositionsBody;
|
|
6408
|
+
};
|
|
6409
|
+
export type TListEarnVaultsResponse = {
|
|
6410
|
+
/** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass page_info.end_cursor as the pagination after cursor. */
|
|
6411
|
+
vaults?: v1EarnVault[];
|
|
6412
|
+
/** Pagination metadata for the returned page. Pass end_cursor as the next request's after cursor (or start_cursor as the before cursor) to page through the catalog. Cursors are opaque; do not parse them. */
|
|
6413
|
+
pageInfo?: v1PageInfo;
|
|
6414
|
+
};
|
|
6415
|
+
export type TListEarnVaultsBody = {
|
|
6416
|
+
organizationId?: string;
|
|
6417
|
+
/** Optional filter: only return vaults from this provider. Leave EARN_PROVIDER_UNSPECIFIED to return all providers. */
|
|
6418
|
+
provider?: v1EarnProvider;
|
|
6419
|
+
/** 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. */
|
|
6420
|
+
caip19: string;
|
|
6421
|
+
/** Pagination over the TVL-sorted catalog. before/after cursors are a vault_address from a prior page. */
|
|
6422
|
+
paginationOptions?: v1Pagination;
|
|
6423
|
+
};
|
|
6424
|
+
export type TListEarnVaultsInput = {
|
|
6425
|
+
body: TListEarnVaultsBody;
|
|
6426
|
+
};
|
|
5669
6427
|
export type TListEmailEventsResponse = {
|
|
5670
6428
|
/** Email events matching the requested filters, ordered by most recent event first. */
|
|
5671
6429
|
emailEvents: v1EmailEvent[];
|
|
@@ -5682,6 +6440,24 @@ export type TListEmailEventsBody = {
|
|
|
5682
6440
|
export type TListEmailEventsInput = {
|
|
5683
6441
|
body: TListEmailEventsBody;
|
|
5684
6442
|
};
|
|
6443
|
+
export type TListEthTransactionHistoryResponse = {
|
|
6444
|
+
/** EVM transactions for the requested address, ordered by most recent first. */
|
|
6445
|
+
transactions: v1EthTransactionHistoryItem[];
|
|
6446
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
6447
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
6448
|
+
};
|
|
6449
|
+
export type TListEthTransactionHistoryBody = {
|
|
6450
|
+
organizationId?: string;
|
|
6451
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
6452
|
+
address: string;
|
|
6453
|
+
/** EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
6454
|
+
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";
|
|
6455
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
6456
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
6457
|
+
};
|
|
6458
|
+
export type TListEthTransactionHistoryInput = {
|
|
6459
|
+
body: TListEthTransactionHistoryBody;
|
|
6460
|
+
};
|
|
5685
6461
|
export type TListFiatOnRampCredentialsResponse = {
|
|
5686
6462
|
fiatOnRampCredentials: v1FiatOnRampCredential[];
|
|
5687
6463
|
};
|
|
@@ -5740,6 +6516,24 @@ export type TGetSmartContractInterfacesBody = {
|
|
|
5740
6516
|
export type TGetSmartContractInterfacesInput = {
|
|
5741
6517
|
body: TGetSmartContractInterfacesBody;
|
|
5742
6518
|
};
|
|
6519
|
+
export type TListSolTransactionHistoryResponse = {
|
|
6520
|
+
/** Solana transactions for the requested address, ordered by most recent first. */
|
|
6521
|
+
transactions: v1SolTransactionHistoryItem[];
|
|
6522
|
+
/** Opaque pagination cursors for fetching adjacent transaction-history pages. */
|
|
6523
|
+
paginationCursors: v1TransactionHistoryPaginationCursors;
|
|
6524
|
+
};
|
|
6525
|
+
export type TListSolTransactionHistoryBody = {
|
|
6526
|
+
organizationId?: string;
|
|
6527
|
+
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
6528
|
+
address: string;
|
|
6529
|
+
/** 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. */
|
|
6530
|
+
caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:mainnet" | "solana:devnet";
|
|
6531
|
+
/** Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
6532
|
+
paginationOptions?: v1TransactionHistoryPaginationOptions;
|
|
6533
|
+
};
|
|
6534
|
+
export type TListSolTransactionHistoryInput = {
|
|
6535
|
+
body: TListSolTransactionHistoryBody;
|
|
6536
|
+
};
|
|
5743
6537
|
export type TGetSubOrgIdsResponse = {
|
|
5744
6538
|
/** List of unique identifiers for the matching sub-organizations. */
|
|
5745
6539
|
organizationIds: string[];
|
|
@@ -5763,7 +6557,7 @@ export type TListSupportedAssetsResponse = {
|
|
|
5763
6557
|
export type TListSupportedAssetsBody = {
|
|
5764
6558
|
organizationId?: string;
|
|
5765
6559
|
/** 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. */
|
|
5766
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:
|
|
6560
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
5767
6561
|
};
|
|
5768
6562
|
export type TListSupportedAssetsInput = {
|
|
5769
6563
|
body: TListSupportedAssetsBody;
|
|
@@ -5904,6 +6698,34 @@ export type TApproveActivityBody = {
|
|
|
5904
6698
|
export type TApproveActivityInput = {
|
|
5905
6699
|
body: TApproveActivityBody;
|
|
5906
6700
|
};
|
|
6701
|
+
export type TClaimEarnFeesResponse = {
|
|
6702
|
+
activity: v1Activity;
|
|
6703
|
+
/** Identifier to poll claim status and tx hash via GetClaimEarnFeesStatus. */
|
|
6704
|
+
claimRequestId: string;
|
|
6705
|
+
};
|
|
6706
|
+
export type TClaimEarnFeesBody = {
|
|
6707
|
+
timestampMs?: string;
|
|
6708
|
+
organizationId?: string;
|
|
6709
|
+
/** Address of the deployed Earn wrapper to claim fees for. Must be one of the org's deployed wrappers. */
|
|
6710
|
+
wrapperAddress: string;
|
|
6711
|
+
generateAppProofs?: boolean;
|
|
6712
|
+
};
|
|
6713
|
+
export type TClaimEarnFeesInput = {
|
|
6714
|
+
body: TClaimEarnFeesBody;
|
|
6715
|
+
};
|
|
6716
|
+
export type TClaimSwapFeesResponse = {
|
|
6717
|
+
activity: v1Activity;
|
|
6718
|
+
/** Relay claim request ID submitted through the permit endpoint. */
|
|
6719
|
+
requestId: string;
|
|
6720
|
+
};
|
|
6721
|
+
export type TClaimSwapFeesBody = {
|
|
6722
|
+
timestampMs?: string;
|
|
6723
|
+
organizationId?: string;
|
|
6724
|
+
generateAppProofs?: boolean;
|
|
6725
|
+
};
|
|
6726
|
+
export type TClaimSwapFeesInput = {
|
|
6727
|
+
body: TClaimSwapFeesBody;
|
|
6728
|
+
};
|
|
5907
6729
|
export type TCreateApiKeysResponse = {
|
|
5908
6730
|
activity: v1Activity;
|
|
5909
6731
|
/** A list of API Key IDs. */
|
|
@@ -6071,6 +6893,8 @@ export type TCreatePolicyBody = {
|
|
|
6071
6893
|
consensus?: string;
|
|
6072
6894
|
/** Notes for a Policy. */
|
|
6073
6895
|
notes: string;
|
|
6896
|
+
/** The time expression that triggers the Effect */
|
|
6897
|
+
time?: string;
|
|
6074
6898
|
generateAppProofs?: boolean;
|
|
6075
6899
|
};
|
|
6076
6900
|
export type TCreatePolicyInput = {
|
|
@@ -6252,6 +7076,12 @@ export type TCreateTvcAppResponse = {
|
|
|
6252
7076
|
manifestSetOperatorIds: string[];
|
|
6253
7077
|
/** The required number of approvals for the manifest set */
|
|
6254
7078
|
manifestSetThreshold: number;
|
|
7079
|
+
/** The unique identifier for the TVC share set */
|
|
7080
|
+
shareSetId: string;
|
|
7081
|
+
/** The unique identifiers of the share set operators */
|
|
7082
|
+
shareSetOperatorIds: string[];
|
|
7083
|
+
/** The required number of approvals for the share set */
|
|
7084
|
+
shareSetThreshold: number;
|
|
6255
7085
|
};
|
|
6256
7086
|
export type TCreateTvcAppBody = {
|
|
6257
7087
|
timestampMs?: string;
|
|
@@ -6310,6 +7140,8 @@ export type TCreateTvcDeploymentBody = {
|
|
|
6310
7140
|
healthCheckPort: number;
|
|
6311
7141
|
/** Port to use for public ingress. */
|
|
6312
7142
|
publicIngressPort: number;
|
|
7143
|
+
/** Optional desired replica count for this deployment. */
|
|
7144
|
+
replicas?: number;
|
|
6313
7145
|
};
|
|
6314
7146
|
export type TCreateTvcDeploymentInput = {
|
|
6315
7147
|
body: TCreateTvcDeploymentBody;
|
|
@@ -6742,6 +7574,96 @@ export type TDeleteWebhookEndpointBody = {
|
|
|
6742
7574
|
export type TDeleteWebhookEndpointInput = {
|
|
6743
7575
|
body: TDeleteWebhookEndpointBody;
|
|
6744
7576
|
};
|
|
7577
|
+
export type TEarnDeployWrapperResponse = {
|
|
7578
|
+
activity: v1Activity;
|
|
7579
|
+
/** Address of the deployed fee wrapper (the deposit target). */
|
|
7580
|
+
wrapperAddress: string;
|
|
7581
|
+
/** Address of the deployed fee splitter (PaymentSplitter for Morpho, RevenueSplitterOwner for Aave). */
|
|
7582
|
+
splitterAddress: string;
|
|
7583
|
+
/** Identifier to poll deploy status. */
|
|
7584
|
+
deployRequestId: string;
|
|
7585
|
+
};
|
|
7586
|
+
export type TEarnDeployWrapperBody = {
|
|
7587
|
+
timestampMs?: string;
|
|
7588
|
+
organizationId?: string;
|
|
7589
|
+
/** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
|
|
7590
|
+
vaultAddress: string;
|
|
7591
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
7592
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
7593
|
+
/** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
|
|
7594
|
+
clientFeeBps: string;
|
|
7595
|
+
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
7596
|
+
clientFeeWallet: string;
|
|
7597
|
+
generateAppProofs?: boolean;
|
|
7598
|
+
};
|
|
7599
|
+
export type TEarnDeployWrapperInput = {
|
|
7600
|
+
body: TEarnDeployWrapperBody;
|
|
7601
|
+
};
|
|
7602
|
+
export type TEarnDepositResponse = {
|
|
7603
|
+
activity: v1Activity;
|
|
7604
|
+
/** Identifier to poll deposit status and tx hash via GetEarnDepositStatus. */
|
|
7605
|
+
depositRequestId: string;
|
|
7606
|
+
};
|
|
7607
|
+
export type TEarnDepositBody = {
|
|
7608
|
+
timestampMs?: string;
|
|
7609
|
+
organizationId?: string;
|
|
7610
|
+
/** Address of the deployed Earn wrapper to deposit into, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
7611
|
+
wrapperAddress: string;
|
|
7612
|
+
/** 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. */
|
|
7613
|
+
signWith: string;
|
|
7614
|
+
/** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
|
|
7615
|
+
assets: string;
|
|
7616
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
7617
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
7618
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
7619
|
+
sponsor?: boolean;
|
|
7620
|
+
generateAppProofs?: boolean;
|
|
7621
|
+
};
|
|
7622
|
+
export type TEarnDepositInput = {
|
|
7623
|
+
body: TEarnDepositBody;
|
|
7624
|
+
};
|
|
7625
|
+
export type TEarnSetWrapperStateResponse = {
|
|
7626
|
+
activity: v1Activity;
|
|
7627
|
+
/** Address of the updated Earn wrapper. */
|
|
7628
|
+
wrapperAddress: string;
|
|
7629
|
+
/** The wrapper's deposit state after this activity. */
|
|
7630
|
+
depositsDisabled: boolean;
|
|
7631
|
+
};
|
|
7632
|
+
export type TEarnSetWrapperStateBody = {
|
|
7633
|
+
timestampMs?: string;
|
|
7634
|
+
organizationId?: string;
|
|
7635
|
+
/** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
7636
|
+
wrapperAddress: string;
|
|
7637
|
+
/** When true, deposits to this wrapper are rejected; withdrawals are unaffected. Set to false to re-enable deposits. */
|
|
7638
|
+
depositsDisabled: boolean;
|
|
7639
|
+
generateAppProofs?: boolean;
|
|
7640
|
+
};
|
|
7641
|
+
export type TEarnSetWrapperStateInput = {
|
|
7642
|
+
body: TEarnSetWrapperStateBody;
|
|
7643
|
+
};
|
|
7644
|
+
export type TEarnWithdrawResponse = {
|
|
7645
|
+
activity: v1Activity;
|
|
7646
|
+
/** Identifier to poll withdrawal status and tx hash via GetEarnWithdrawStatus. */
|
|
7647
|
+
withdrawRequestId: string;
|
|
7648
|
+
};
|
|
7649
|
+
export type TEarnWithdrawBody = {
|
|
7650
|
+
timestampMs?: string;
|
|
7651
|
+
organizationId?: string;
|
|
7652
|
+
/** Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
7653
|
+
wrapperAddress: string;
|
|
7654
|
+
/** 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. */
|
|
7655
|
+
signWith: string;
|
|
7656
|
+
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
7657
|
+
chainCaip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217";
|
|
7658
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
7659
|
+
sponsor?: boolean;
|
|
7660
|
+
/** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
|
|
7661
|
+
amountValue: string;
|
|
7662
|
+
generateAppProofs?: boolean;
|
|
7663
|
+
};
|
|
7664
|
+
export type TEarnWithdrawInput = {
|
|
7665
|
+
body: TEarnWithdrawBody;
|
|
7666
|
+
};
|
|
6745
7667
|
export type TEmailAuthResponse = {
|
|
6746
7668
|
activity: v1Activity;
|
|
6747
7669
|
/** Unique identifier for the authenticating User. */
|
|
@@ -6775,6 +7697,31 @@ export type TEmailAuthBody = {
|
|
|
6775
7697
|
export type TEmailAuthInput = {
|
|
6776
7698
|
body: TEmailAuthBody;
|
|
6777
7699
|
};
|
|
7700
|
+
export type TEthUndelegate7702Response = {
|
|
7701
|
+
activity: v1Activity;
|
|
7702
|
+
/** The send_transaction_status ID associated with the undelegation transaction submission */
|
|
7703
|
+
sendTransactionStatusId: string;
|
|
7704
|
+
};
|
|
7705
|
+
export type TEthUndelegate7702Body = {
|
|
7706
|
+
timestampMs?: string;
|
|
7707
|
+
organizationId?: string;
|
|
7708
|
+
/** A wallet or private key address to undelegate. This does not support private key IDs. */
|
|
7709
|
+
from: string;
|
|
7710
|
+
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
7711
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:421614";
|
|
7712
|
+
/** Outer transaction nonce. Omit to auto-fetch. */
|
|
7713
|
+
nonce?: string;
|
|
7714
|
+
/** Maximum amount of gas for the undelegation transaction. Omit to use the fixed undelegation gas limit. */
|
|
7715
|
+
gasLimit?: string;
|
|
7716
|
+
/** Maximum total fee per gas unit (base fee + priority fee) in wei. Omit to auto-estimate. */
|
|
7717
|
+
maxFeePerGas?: string;
|
|
7718
|
+
/** Maximum priority fee (tip) per gas unit in wei. Omit to auto-estimate. */
|
|
7719
|
+
maxPriorityFeePerGas?: string;
|
|
7720
|
+
generateAppProofs?: boolean;
|
|
7721
|
+
};
|
|
7722
|
+
export type TEthUndelegate7702Input = {
|
|
7723
|
+
body: TEthUndelegate7702Body;
|
|
7724
|
+
};
|
|
6778
7725
|
export type TExportPrivateKeyResponse = {
|
|
6779
7726
|
activity: v1Activity;
|
|
6780
7727
|
/** Unique identifier for a given Private Key. */
|
|
@@ -7367,29 +8314,6 @@ export type TSignTransactionBody = {
|
|
|
7367
8314
|
export type TSignTransactionInput = {
|
|
7368
8315
|
body: TSignTransactionBody;
|
|
7369
8316
|
};
|
|
7370
|
-
export type TSolSendTransactionResponse = {
|
|
7371
|
-
activity: v1Activity;
|
|
7372
|
-
/** The send_transaction_status ID associated with the transaction submission */
|
|
7373
|
-
sendTransactionStatusId: string;
|
|
7374
|
-
};
|
|
7375
|
-
export type TSolSendTransactionBody = {
|
|
7376
|
-
timestampMs?: string;
|
|
7377
|
-
organizationId?: string;
|
|
7378
|
-
/** Base64-encoded serialized unsigned Solana transaction */
|
|
7379
|
-
unsignedTransaction: string;
|
|
7380
|
-
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
7381
|
-
signWith: string;
|
|
7382
|
-
/** Whether to sponsor this transaction via Gas Station. */
|
|
7383
|
-
sponsor?: boolean;
|
|
7384
|
-
/** 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. */
|
|
7385
|
-
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
7386
|
-
/** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
|
|
7387
|
-
recentBlockhash?: string;
|
|
7388
|
-
generateAppProofs?: boolean;
|
|
7389
|
-
};
|
|
7390
|
-
export type TSolSendTransactionInput = {
|
|
7391
|
-
body: TSolSendTransactionBody;
|
|
7392
|
-
};
|
|
7393
8317
|
export type TSparkClaimTransferResponse = {
|
|
7394
8318
|
activity: v1Activity;
|
|
7395
8319
|
/** Per-operator ECIES-encrypted packages. */
|
|
@@ -7592,6 +8516,8 @@ export type TUpdatePolicyBody = {
|
|
|
7592
8516
|
policyConsensus?: string;
|
|
7593
8517
|
/** Accompanying notes for a Policy (optional). */
|
|
7594
8518
|
policyNotes?: string;
|
|
8519
|
+
/** The time expression that triggers the Effect (optional). */
|
|
8520
|
+
time?: string;
|
|
7595
8521
|
generateAppProofs?: boolean;
|
|
7596
8522
|
};
|
|
7597
8523
|
export type TUpdatePolicyInput = {
|
|
@@ -7772,6 +8698,25 @@ export type TUpdateWebhookEndpointBody = {
|
|
|
7772
8698
|
export type TUpdateWebhookEndpointInput = {
|
|
7773
8699
|
body: TUpdateWebhookEndpointBody;
|
|
7774
8700
|
};
|
|
8701
|
+
export type TUpsertSwapConfigResponse = {
|
|
8702
|
+
activity: v1Activity;
|
|
8703
|
+
feeReceiverWalletAddress?: string;
|
|
8704
|
+
feeBps?: string;
|
|
8705
|
+
stableFeeBps?: string;
|
|
8706
|
+
};
|
|
8707
|
+
export type TUpsertSwapConfigBody = {
|
|
8708
|
+
timestampMs?: string;
|
|
8709
|
+
organizationId?: string;
|
|
8710
|
+
feeReceiverWalletAddress?: string;
|
|
8711
|
+
/** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
|
|
8712
|
+
feeBps?: string;
|
|
8713
|
+
/** Optional Enterprise-only override applied when both swap assets are stablecoins; falls back to fee_bps when unset. Non-Enterprise orgs may only set fee_bps. */
|
|
8714
|
+
stableFeeBps?: string;
|
|
8715
|
+
generateAppProofs?: boolean;
|
|
8716
|
+
};
|
|
8717
|
+
export type TUpsertSwapConfigInput = {
|
|
8718
|
+
body: TUpsertSwapConfigBody;
|
|
8719
|
+
};
|
|
7775
8720
|
export type TVerifyOtpResponse = {
|
|
7776
8721
|
activity: v1Activity;
|
|
7777
8722
|
/** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
|
|
@@ -7807,7 +8752,7 @@ export type TEthSendTransactionBody = {
|
|
|
7807
8752
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
7808
8753
|
sponsor?: boolean;
|
|
7809
8754
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
7810
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
8755
|
+
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";
|
|
7811
8756
|
/** Recipient address as a hex string with 0x prefix. */
|
|
7812
8757
|
to: string;
|
|
7813
8758
|
/** Amount of native asset to send in wei. */
|
|
@@ -7842,7 +8787,7 @@ export type TEthSendTransactionV2Body = {
|
|
|
7842
8787
|
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
7843
8788
|
from: string;
|
|
7844
8789
|
/** CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet). */
|
|
7845
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97";
|
|
8790
|
+
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";
|
|
7846
8791
|
/** Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
|
|
7847
8792
|
sponsor?: boolean;
|
|
7848
8793
|
/** Outer transaction nonce. Omit to auto-fetch. */
|
|
@@ -7855,7 +8800,7 @@ export type TEthSendTransactionV2Body = {
|
|
|
7855
8800
|
maxPriorityFeePerGas?: string;
|
|
7856
8801
|
/** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
|
|
7857
8802
|
deadline?: string;
|
|
7858
|
-
/** The gas station delegate contract nonce.
|
|
8803
|
+
/** The gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored transactions and non-sponsored multi-call batches. Omit to auto-fetch. Use the nonces endpoint for replay protection. */
|
|
7859
8804
|
gasStationNonce?: string;
|
|
7860
8805
|
/** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
|
|
7861
8806
|
calls: v1EthCallParams[];
|
|
@@ -7864,6 +8809,52 @@ export type TEthSendTransactionV2Body = {
|
|
|
7864
8809
|
export type TEthSendTransactionV2Input = {
|
|
7865
8810
|
body: TEthSendTransactionV2Body;
|
|
7866
8811
|
};
|
|
8812
|
+
export type TSolSendTransactionResponse = {
|
|
8813
|
+
activity: v1Activity;
|
|
8814
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
8815
|
+
sendTransactionStatusId: string;
|
|
8816
|
+
};
|
|
8817
|
+
export type TSolSendTransactionBody = {
|
|
8818
|
+
timestampMs?: string;
|
|
8819
|
+
organizationId?: string;
|
|
8820
|
+
/** Base64-encoded serialized unsigned Solana transaction */
|
|
8821
|
+
unsignedTransaction: string;
|
|
8822
|
+
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
8823
|
+
signWith: string;
|
|
8824
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
8825
|
+
sponsor?: boolean;
|
|
8826
|
+
/** 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. */
|
|
8827
|
+
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
8828
|
+
/** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
|
|
8829
|
+
recentBlockhash?: string;
|
|
8830
|
+
generateAppProofs?: boolean;
|
|
8831
|
+
};
|
|
8832
|
+
export type TSolSendTransactionInput = {
|
|
8833
|
+
body: TSolSendTransactionBody;
|
|
8834
|
+
};
|
|
8835
|
+
export type TSolSendTransactionV2Response = {
|
|
8836
|
+
activity: v1Activity;
|
|
8837
|
+
/** The send_transaction_status ID associated with the transaction submission */
|
|
8838
|
+
sendTransactionStatusId: string;
|
|
8839
|
+
};
|
|
8840
|
+
export type TSolSendTransactionV2Body = {
|
|
8841
|
+
timestampMs?: string;
|
|
8842
|
+
organizationId?: string;
|
|
8843
|
+
/** Hex-encoded serialized unsigned Solana transaction (full wire format with zeroed signature placeholders) */
|
|
8844
|
+
unsignedTransaction: string;
|
|
8845
|
+
/** 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. */
|
|
8846
|
+
signWiths: string[];
|
|
8847
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
8848
|
+
sponsor?: boolean;
|
|
8849
|
+
/** 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. */
|
|
8850
|
+
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
8851
|
+
/** 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. */
|
|
8852
|
+
recentBlockhash?: string;
|
|
8853
|
+
generateAppProofs?: boolean;
|
|
8854
|
+
};
|
|
8855
|
+
export type TSolSendTransactionV2Input = {
|
|
8856
|
+
body: TSolSendTransactionV2Body;
|
|
8857
|
+
};
|
|
7867
8858
|
export type ProxyTGetAccountResponse = {
|
|
7868
8859
|
organizationId?: string;
|
|
7869
8860
|
};
|
|
@@ -8076,6 +9067,14 @@ export type ProxyTSignupV2Body = {
|
|
|
8076
9067
|
export type ProxyTSignupV2Input = {
|
|
8077
9068
|
body: ProxyTSignupV2Body;
|
|
8078
9069
|
};
|
|
9070
|
+
export type ProxyTGetWalletKitClientParamsResponse = {
|
|
9071
|
+
/** Site key for Turnstile, used to protect WalletKit flows with bot detection. */
|
|
9072
|
+
turnstileSiteKey?: string;
|
|
9073
|
+
};
|
|
9074
|
+
export type ProxyTGetWalletKitClientParamsBody = {};
|
|
9075
|
+
export type ProxyTGetWalletKitClientParamsInput = {
|
|
9076
|
+
body: ProxyTGetWalletKitClientParamsBody;
|
|
9077
|
+
};
|
|
8079
9078
|
export type ProxyTGetWalletKitConfigResponse = {
|
|
8080
9079
|
/** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
|
|
8081
9080
|
enabledProviders: string[];
|