@turnkey/sdk-types 1.9.0 → 1.11.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.
- package/CHANGELOG.md +17 -0
- package/dist/__generated__/types.d.ts +653 -83
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +739 -147
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -70,9 +70,13 @@ export type v1GetAccountRequest = {
|
|
|
70
70
|
verificationToken?: string;
|
|
71
71
|
/** OIDC token to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. Needed for social linking when verification_token is not available. */
|
|
72
72
|
oidcToken?: string;
|
|
73
|
+
/** Whether to include requires_social_linking in the response. Only applies when filter_type is 'OIDC_TOKEN'. */
|
|
74
|
+
includeRequiresSocialLinking?: boolean;
|
|
73
75
|
};
|
|
74
76
|
export type v1GetAccountResponse = {
|
|
75
77
|
organizationId?: string;
|
|
78
|
+
/** True when the organization was matched by verified email and the OIDC token is not yet a registered identity on it. */
|
|
79
|
+
requiresSocialLinking?: boolean;
|
|
76
80
|
};
|
|
77
81
|
export type v1GetWalletKitClientParamsRequest = {};
|
|
78
82
|
export type v1GetWalletKitClientParamsResponse = {
|
|
@@ -510,7 +514,7 @@ export type v1ActivityResponse = {
|
|
|
510
514
|
activity: v1Activity;
|
|
511
515
|
};
|
|
512
516
|
export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
|
|
513
|
-
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES" | "ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME" | "ACTIVITY_TYPE_ETH_UNDELEGATE_7702" | "ACTIVITY_TYPE_EXECUTE_SWAP_V2" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE" | "ACTIVITY_TYPE_IMPORT_SECRETS" | "ACTIVITY_TYPE_EXPORT_SECRETS" | "ACTIVITY_TYPE_CREATE_VELOCITY_CONTROL" | "
|
|
517
|
+
export type v1ActivityType = "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CREATE_MFA_POLICY" | "ACTIVITY_TYPE_UPDATE_MFA_POLICY" | "ACTIVITY_TYPE_DELETE_MFA_POLICY" | "ACTIVITY_TYPE_CREATE_SESSION_PROFILE" | "ACTIVITY_TYPE_EARN_DEPLOY_WRAPPER" | "ACTIVITY_TYPE_EARN_DEPOSIT" | "ACTIVITY_TYPE_EARN_WITHDRAW" | "ACTIVITY_TYPE_EXECUTE_SWAP" | "ACTIVITY_TYPE_UPSERT_SWAP_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_OPERATOR" | "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY" | "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE" | "ACTIVITY_TYPE_INIT_IMPORT_SECRETS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2" | "ACTIVITY_TYPE_CLAIM_SWAP_FEES" | "ACTIVITY_TYPE_EARN_SET_WRAPPER_STATE" | "ACTIVITY_TYPE_CLAIM_EARN_FEES" | "ACTIVITY_TYPE_UPDATE_WALLET_ACCOUNT_NAME" | "ACTIVITY_TYPE_ETH_UNDELEGATE_7702" | "ACTIVITY_TYPE_EXECUTE_SWAP_V2" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE" | "ACTIVITY_TYPE_IMPORT_SECRETS" | "ACTIVITY_TYPE_EXPORT_SECRETS" | "ACTIVITY_TYPE_CREATE_VELOCITY_CONTROL" | "ACTIVITY_TYPE_DELETE_VELOCITY_CONTROLS" | "ACTIVITY_TYPE_UPDATE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V2" | "ACTIVITY_TYPE_EXECUTE_SWAP_V3" | "ACTIVITY_TYPE_DELETE_SECRETS" | "ACTIVITY_TYPE_EARN_CLAIM_REWARDS" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V3" | "ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG" | "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_SESSION";
|
|
514
518
|
export type v1ApiKey = {
|
|
515
519
|
/** A User credential that can be used to authenticate to Turnkey. */
|
|
516
520
|
credential: externaldatav1Credential;
|
|
@@ -567,6 +571,8 @@ export type v1AssetBalance = {
|
|
|
567
571
|
display?: v1AssetBalanceDisplay;
|
|
568
572
|
/** The asset name */
|
|
569
573
|
name?: string;
|
|
574
|
+
/** Solana token program address that owns this mint, inferred from getTokenAccountsByOwner. TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA for classic SPL Token, TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb for Token-2022. Empty for native SOL and non-Solana assets. */
|
|
575
|
+
tokenProgram?: string;
|
|
570
576
|
};
|
|
571
577
|
export type v1AssetBalanceDisplay = {
|
|
572
578
|
/** USD value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise. */
|
|
@@ -779,6 +785,18 @@ export type v1CreateFiatOnRampCredentialResult = {
|
|
|
779
785
|
/** Unique identifier of the Fiat On-Ramp credential that was created */
|
|
780
786
|
fiatOnRampCredentialId: string;
|
|
781
787
|
};
|
|
788
|
+
export type v1CreateFiatOnRampSessionIntent = {
|
|
789
|
+
/** Identifier of a saved fiat on-ramp quote. Returned by GetFiatOnRampQuote. */
|
|
790
|
+
quoteId: string;
|
|
791
|
+
/** Destination wallet address for the buy transaction. */
|
|
792
|
+
walletAddress: string;
|
|
793
|
+
};
|
|
794
|
+
export type v1CreateFiatOnRampSessionResult = {
|
|
795
|
+
/** URL of the fiat on-ramp session for the saved quote. */
|
|
796
|
+
onRampUrl: string;
|
|
797
|
+
/** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
|
|
798
|
+
onRampTransactionId: string;
|
|
799
|
+
};
|
|
782
800
|
export type v1CreateInvitationsIntent = {
|
|
783
801
|
/** A list of Invitations. */
|
|
784
802
|
invitations: v1InvitationParams[];
|
|
@@ -986,6 +1004,8 @@ export type v1CreatePrivateKeysIntent = {
|
|
|
986
1004
|
export type v1CreatePrivateKeysIntentV2 = {
|
|
987
1005
|
/** A list of Private Keys. */
|
|
988
1006
|
privateKeys: v1PrivateKeyParams[];
|
|
1007
|
+
/** The public key of the external signer to use for creating the private keys. */
|
|
1008
|
+
externalSignerPubkey?: string;
|
|
989
1009
|
};
|
|
990
1010
|
export type v1CreatePrivateKeysRequest = {
|
|
991
1011
|
type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2";
|
|
@@ -1313,19 +1333,41 @@ export type v1CreateSwapQuoteIntentV2 = {
|
|
|
1313
1333
|
/** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
|
|
1314
1334
|
destinationAddress?: string;
|
|
1315
1335
|
};
|
|
1336
|
+
export type v1CreateSwapQuoteIntentV3 = {
|
|
1337
|
+
/** Wallet account address used to price the executable provider quote. Private Key identifiers are not supported. */
|
|
1338
|
+
signWith: string;
|
|
1339
|
+
/** CAIP-19 asset ID for the input asset. The chain is derived from this value. */
|
|
1340
|
+
inputToken: string;
|
|
1341
|
+
/** CAIP-19 asset ID for the output asset. */
|
|
1342
|
+
outputToken: string;
|
|
1343
|
+
/** Base-unit amount of the input asset. */
|
|
1344
|
+
inputAmount: string;
|
|
1345
|
+
/** 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. */
|
|
1346
|
+
slippageBps?: string;
|
|
1347
|
+
/** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
|
|
1348
|
+
destinationAddress?: string;
|
|
1349
|
+
/** When true, Turnkey pays the provider fees for this swap and invoices them to the billing parent organization. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
|
|
1350
|
+
feeSponsorship?: boolean;
|
|
1351
|
+
/** When true, requests a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
|
|
1352
|
+
fixedRate?: boolean;
|
|
1353
|
+
};
|
|
1316
1354
|
export type v1CreateSwapQuoteRequest = {
|
|
1317
|
-
type: "
|
|
1355
|
+
type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V3";
|
|
1318
1356
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1319
1357
|
timestampMs: string;
|
|
1320
1358
|
/** Unique identifier for a given Organization. */
|
|
1321
1359
|
organizationId: string;
|
|
1322
|
-
parameters:
|
|
1360
|
+
parameters: v1CreateSwapQuoteIntentV3;
|
|
1323
1361
|
generateAppProofs?: boolean;
|
|
1324
1362
|
};
|
|
1325
1363
|
export type v1CreateSwapQuoteResult = {
|
|
1326
1364
|
/** 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. */
|
|
1327
1365
|
quotes: v1SwapQuote[];
|
|
1328
1366
|
};
|
|
1367
|
+
export type v1CreateSwapQuoteResultV2 = {
|
|
1368
|
+
/** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap to bind execution. */
|
|
1369
|
+
quotes: v1SwapQuoteV2[];
|
|
1370
|
+
};
|
|
1329
1371
|
export type v1CreateTvcAppIntent = {
|
|
1330
1372
|
/** The name of the new TVC application */
|
|
1331
1373
|
name: string;
|
|
@@ -1395,6 +1437,10 @@ export type v1CreateTvcDeploymentIntent = {
|
|
|
1395
1437
|
publicIngressPort: number;
|
|
1396
1438
|
/** Optional desired replica count for this deployment. */
|
|
1397
1439
|
replicas?: number;
|
|
1440
|
+
/** Optional desired instance cpu count. */
|
|
1441
|
+
instanceSizeCpus?: number;
|
|
1442
|
+
/** Optional desired instance memory size in GiB. */
|
|
1443
|
+
instanceSizeRam?: number;
|
|
1398
1444
|
};
|
|
1399
1445
|
export type v1CreateTvcDeploymentRequest = {
|
|
1400
1446
|
type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
|
|
@@ -1438,6 +1484,15 @@ export type v1CreateTvcOperatorIntent = {
|
|
|
1438
1484
|
/** Human-readable name for this new TVC operator */
|
|
1439
1485
|
operatorName: string;
|
|
1440
1486
|
};
|
|
1487
|
+
export type v1CreateTvcOperatorRequest = {
|
|
1488
|
+
type: "ACTIVITY_TYPE_CREATE_TVC_OPERATOR";
|
|
1489
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1490
|
+
timestampMs: string;
|
|
1491
|
+
/** Unique identifier for a given Organization. */
|
|
1492
|
+
organizationId: string;
|
|
1493
|
+
parameters: v1CreateTvcOperatorIntent;
|
|
1494
|
+
generateAppProofs?: boolean;
|
|
1495
|
+
};
|
|
1441
1496
|
export type v1CreateTvcOperatorResult = {
|
|
1442
1497
|
/** The unique identifier for the wallet containing TVC operator accounts */
|
|
1443
1498
|
walletId: string;
|
|
@@ -1454,6 +1509,15 @@ export type v1CreateTvcQuorumKeyIntent = {
|
|
|
1454
1509
|
/** Operator public keys used to encrypt and later approve the generated TVC quorum key shares */
|
|
1455
1510
|
operatorEncryptKeys: string[];
|
|
1456
1511
|
};
|
|
1512
|
+
export type v1CreateTvcQuorumKeyRequest = {
|
|
1513
|
+
type: "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY";
|
|
1514
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1515
|
+
timestampMs: string;
|
|
1516
|
+
/** Unique identifier for a given Organization. */
|
|
1517
|
+
organizationId: string;
|
|
1518
|
+
parameters: v1CreateTvcQuorumKeyIntent;
|
|
1519
|
+
generateAppProofs?: boolean;
|
|
1520
|
+
};
|
|
1457
1521
|
export type v1CreateTvcQuorumKeyResult = {
|
|
1458
1522
|
/** The unique identifier for the TVC quorum key */
|
|
1459
1523
|
quorumKeyId: string;
|
|
@@ -1928,11 +1992,13 @@ export type v1DeleteUsersResult = {
|
|
|
1928
1992
|
/** A list of User IDs. */
|
|
1929
1993
|
userIds: string[];
|
|
1930
1994
|
};
|
|
1931
|
-
export type
|
|
1932
|
-
|
|
1995
|
+
export type v1DeleteVelocityControlsIntent = {
|
|
1996
|
+
/** List of 1 to 32 unique identifiers for Velocity Controls within an Organization. */
|
|
1997
|
+
velocityControlIds: string[];
|
|
1933
1998
|
};
|
|
1934
|
-
export type
|
|
1935
|
-
|
|
1999
|
+
export type v1DeleteVelocityControlsResult = {
|
|
2000
|
+
/** A list of unique identifiers for the deleted Velocity Controls. */
|
|
2001
|
+
velocityControlIds: string[];
|
|
1936
2002
|
};
|
|
1937
2003
|
export type v1DeleteWalletAccountsIntent = {
|
|
1938
2004
|
/** List of unique identifiers for wallet accounts within an organization */
|
|
@@ -1999,7 +2065,7 @@ export type v1DeploymentStatus = {
|
|
|
1999
2065
|
/** Last time this deployment was updated */
|
|
2000
2066
|
lastUpdatedTime: externaldatav1Timestamp;
|
|
2001
2067
|
/** Current quorum-key provisioning state for this deployment */
|
|
2002
|
-
provisioningState
|
|
2068
|
+
provisioningState: v1ProvisioningState;
|
|
2003
2069
|
};
|
|
2004
2070
|
export type v1DisableAuthProxyIntent = {};
|
|
2005
2071
|
export type v1DisableAuthProxyResult = {};
|
|
@@ -2011,11 +2077,32 @@ export type v1DisablePrivateKeyResult = {
|
|
|
2011
2077
|
/** Unique identifier for a given Private Key. */
|
|
2012
2078
|
privateKeyId: string;
|
|
2013
2079
|
};
|
|
2080
|
+
export type v1EarnClaimRewardsIntent = {
|
|
2081
|
+
/** A Turnkey-managed wallet address the rewards are attributed to. The claim transaction is signed by this wallet and the Merkl Distributor transfers every reward token to it. */
|
|
2082
|
+
signWith: string;
|
|
2083
|
+
/** CAIP-2 chain to claim rewards on (e.g. 'eip155:8453'). Rewards accrue per chain; see ListEarnRewards. */
|
|
2084
|
+
caip2: string;
|
|
2085
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
2086
|
+
sponsor?: boolean;
|
|
2087
|
+
};
|
|
2088
|
+
export type v1EarnClaimRewardsRequest = {
|
|
2089
|
+
type: "ACTIVITY_TYPE_EARN_CLAIM_REWARDS";
|
|
2090
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2091
|
+
timestampMs: string;
|
|
2092
|
+
/** Unique identifier for a given Organization. */
|
|
2093
|
+
organizationId: string;
|
|
2094
|
+
parameters: v1EarnClaimRewardsIntent;
|
|
2095
|
+
generateAppProofs?: boolean;
|
|
2096
|
+
};
|
|
2097
|
+
export type v1EarnClaimRewardsResult = {
|
|
2098
|
+
/** Identifier to poll claim status and tx hash via GetEarnClaimRewardsStatus. */
|
|
2099
|
+
claimRequestId: string;
|
|
2100
|
+
};
|
|
2014
2101
|
export type v1EarnDeployWrapperIntent = {
|
|
2015
2102
|
/** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
|
|
2016
2103
|
vaultAddress: string;
|
|
2017
2104
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
2018
|
-
|
|
2105
|
+
caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2019
2106
|
/** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
|
|
2020
2107
|
clientFeeBps: string;
|
|
2021
2108
|
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
@@ -2046,7 +2133,7 @@ export type v1EarnDepositIntent = {
|
|
|
2046
2133
|
/** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
|
|
2047
2134
|
assets: string;
|
|
2048
2135
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
2049
|
-
|
|
2136
|
+
caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2050
2137
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
2051
2138
|
sponsor?: boolean;
|
|
2052
2139
|
};
|
|
@@ -2145,7 +2232,39 @@ export type v1EarnPositionDisplay = {
|
|
|
2145
2232
|
/** Total withdrawn in the asset's own units, for display only. */
|
|
2146
2233
|
totalWithdrawnCrypto?: string;
|
|
2147
2234
|
};
|
|
2148
|
-
export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE";
|
|
2235
|
+
export type v1EarnProvider = "EARN_PROVIDER_MORPHO" | "EARN_PROVIDER_AAVE" | "EARN_PROVIDER_KAMINO";
|
|
2236
|
+
export type v1EarnReward = {
|
|
2237
|
+
/** CAIP-2 chain the reward is claimable on (e.g. 'eip155:8453'). */
|
|
2238
|
+
caip2?: string;
|
|
2239
|
+
/** CAIP-19 asset ID of the reward token (e.g. 'eip155:8453/erc20:0xBAa5...'). Reward tokens are campaign-specific and unrelated to the position's underlying asset. */
|
|
2240
|
+
caip19?: string;
|
|
2241
|
+
/** Symbol of the reward token (e.g. 'MORPHO'), as reported by Merkl. */
|
|
2242
|
+
symbol?: string;
|
|
2243
|
+
/** Decimals of the reward token. */
|
|
2244
|
+
decimals?: number;
|
|
2245
|
+
/** Amount claimable now, in raw on-chain units of the reward token. */
|
|
2246
|
+
claimable?: string;
|
|
2247
|
+
/** Lifetime amount already claimed, in raw on-chain units of the reward token. */
|
|
2248
|
+
claimed?: string;
|
|
2249
|
+
/** Amount accrued but not yet claimable (not yet in a live on-chain merkle root; roots update roughly every 8 hours), in raw on-chain units of the reward token. */
|
|
2250
|
+
pending?: string;
|
|
2251
|
+
/** USD + crypto renderings for display only. Do not do arithmetic with these. */
|
|
2252
|
+
display?: v1EarnRewardDisplay;
|
|
2253
|
+
};
|
|
2254
|
+
export type v1EarnRewardDisplay = {
|
|
2255
|
+
/** Claimable amount in USD, for display only. Empty when the token is unpriced. */
|
|
2256
|
+
claimableUsd?: string;
|
|
2257
|
+
/** Claimable amount in the reward token's own units, for display only. */
|
|
2258
|
+
claimableCrypto?: string;
|
|
2259
|
+
/** Lifetime claimed amount in USD, for display only. Empty when the token is unpriced. */
|
|
2260
|
+
claimedUsd?: string;
|
|
2261
|
+
/** Lifetime claimed amount in the reward token's own units, for display only. */
|
|
2262
|
+
claimedCrypto?: string;
|
|
2263
|
+
/** Pending amount in USD, for display only. Empty when the token is unpriced. */
|
|
2264
|
+
pendingUsd?: string;
|
|
2265
|
+
/** Pending amount in the reward token's own units, for display only. */
|
|
2266
|
+
pendingCrypto?: string;
|
|
2267
|
+
};
|
|
2149
2268
|
export type v1EarnSetWrapperStateIntent = {
|
|
2150
2269
|
/** Address of the deployed Earn wrapper to update, from ListEarnVaults/ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
2151
2270
|
wrapperAddress: string;
|
|
@@ -2223,7 +2342,7 @@ export type v1EarnWithdrawIntent = {
|
|
|
2223
2342
|
/** 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. */
|
|
2224
2343
|
signWith: string;
|
|
2225
2344
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
2226
|
-
|
|
2345
|
+
caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
2227
2346
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
2228
2347
|
sponsor?: boolean;
|
|
2229
2348
|
/** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
|
|
@@ -2600,12 +2719,12 @@ export type v1ExecuteSwapIntentV3 = {
|
|
|
2600
2719
|
destinationAddress?: string;
|
|
2601
2720
|
};
|
|
2602
2721
|
export type v1ExecuteSwapRequest = {
|
|
2603
|
-
type: "
|
|
2722
|
+
type: "ACTIVITY_TYPE_EXECUTE_SWAP_V3";
|
|
2604
2723
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2605
2724
|
timestampMs: string;
|
|
2606
2725
|
/** Unique identifier for a given Organization. */
|
|
2607
2726
|
organizationId: string;
|
|
2608
|
-
parameters:
|
|
2727
|
+
parameters: v1ExecuteSwapIntentV3;
|
|
2609
2728
|
generateAppProofs?: boolean;
|
|
2610
2729
|
};
|
|
2611
2730
|
export type v1ExecuteSwapResult = {
|
|
@@ -2711,8 +2830,8 @@ export type v1Feature = {
|
|
|
2711
2830
|
name?: v1FeatureName;
|
|
2712
2831
|
value?: string;
|
|
2713
2832
|
};
|
|
2714
|
-
export type v1FeatureName = "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | "FEATURE_NAME_WEBHOOK" | "FEATURE_NAME_SMS_AUTH" | "FEATURE_NAME_OTP_EMAIL_AUTH" | "FEATURE_NAME_AUTH_PROXY" | "FEATURE_NAME_SOLANA_RENT_PREFUND_ENABLED" | "FEATURE_NAME_SWAP_CONFIG" | "FEATURE_NAME_EARN_CONFIG";
|
|
2715
|
-
export type v1FiatOnRampBlockchainNetwork = "
|
|
2833
|
+
export type v1FeatureName = "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY" | "FEATURE_NAME_WEBAUTHN_ORIGINS" | "FEATURE_NAME_EMAIL_AUTH" | "FEATURE_NAME_EMAIL_RECOVERY" | "FEATURE_NAME_WEBHOOK" | "FEATURE_NAME_SMS_AUTH" | "FEATURE_NAME_OTP_EMAIL_AUTH" | "FEATURE_NAME_AUTH_PROXY" | "FEATURE_NAME_SOLANA_RENT_PREFUND_ENABLED" | "FEATURE_NAME_SWAP_CONFIG" | "FEATURE_NAME_EARN_CONFIG" | "FEATURE_NAME_SWAP_FEE_SPONSORSHIP" | "FEATURE_NAME_SWAP_FIXED_RATE";
|
|
2834
|
+
export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
|
|
2716
2835
|
export type v1FiatOnRampCredential = {
|
|
2717
2836
|
/** Unique identifier for a given Fiat On-Ramp Credential. */
|
|
2718
2837
|
fiatOnrampCredentialId: string;
|
|
@@ -2738,7 +2857,7 @@ export type v1FiatOnRampCurrency = "FIAT_ON_RAMP_CURRENCY_AUD" | "FIAT_ON_RAMP_C
|
|
|
2738
2857
|
export type v1FiatOnRampPaymentMethod = "FIAT_ON_RAMP_PAYMENT_METHOD_CREDIT_DEBIT_CARD" | "FIAT_ON_RAMP_PAYMENT_METHOD_APPLE_PAY" | "FIAT_ON_RAMP_PAYMENT_METHOD_GBP_BANK_TRANSFER" | "FIAT_ON_RAMP_PAYMENT_METHOD_GBP_OPEN_BANKING_PAYMENT" | "FIAT_ON_RAMP_PAYMENT_METHOD_GOOGLE_PAY" | "FIAT_ON_RAMP_PAYMENT_METHOD_SEPA_BANK_TRANSFER" | "FIAT_ON_RAMP_PAYMENT_METHOD_PIX_INSTANT_PAYMENT" | "FIAT_ON_RAMP_PAYMENT_METHOD_PAYPAL" | "FIAT_ON_RAMP_PAYMENT_METHOD_VENMO" | "FIAT_ON_RAMP_PAYMENT_METHOD_MOONPAY_BALANCE" | "FIAT_ON_RAMP_PAYMENT_METHOD_CRYPTO_ACCOUNT" | "FIAT_ON_RAMP_PAYMENT_METHOD_FIAT_WALLET" | "FIAT_ON_RAMP_PAYMENT_METHOD_ACH_BANK_ACCOUNT";
|
|
2739
2858
|
export type v1FiatOnRampProvider = "FIAT_ON_RAMP_PROVIDER_COINBASE" | "FIAT_ON_RAMP_PROVIDER_MOONPAY";
|
|
2740
2859
|
export type v1GetActivePoliciesRequest = {
|
|
2741
|
-
/** Unique identifier for a given
|
|
2860
|
+
/** Unique identifier for a given Organization. */
|
|
2742
2861
|
organizationId: string;
|
|
2743
2862
|
};
|
|
2744
2863
|
export type v1GetActivePoliciesResponse = {
|
|
@@ -2748,7 +2867,7 @@ export type v1GetActivePoliciesResponse = {
|
|
|
2748
2867
|
evaluatedAtMs: string;
|
|
2749
2868
|
};
|
|
2750
2869
|
export type v1GetActivitiesRequest = {
|
|
2751
|
-
/** Unique identifier for a given
|
|
2870
|
+
/** Unique identifier for a given Organization. */
|
|
2752
2871
|
organizationId: string;
|
|
2753
2872
|
/** Array of activity statuses filtering which activities will be listed in the response. */
|
|
2754
2873
|
filterByStatus?: v1ActivityStatus[];
|
|
@@ -2762,13 +2881,13 @@ export type v1GetActivitiesResponse = {
|
|
|
2762
2881
|
activities: v1Activity[];
|
|
2763
2882
|
};
|
|
2764
2883
|
export type v1GetActivityRequest = {
|
|
2765
|
-
/** Unique identifier for a given
|
|
2884
|
+
/** Unique identifier for a given Organization. */
|
|
2766
2885
|
organizationId: string;
|
|
2767
2886
|
/** Unique identifier for a given activity object. */
|
|
2768
2887
|
activityId: string;
|
|
2769
2888
|
};
|
|
2770
2889
|
export type v1GetApiKeyRequest = {
|
|
2771
|
-
/** Unique identifier for a given
|
|
2890
|
+
/** Unique identifier for a given Organization. */
|
|
2772
2891
|
organizationId: string;
|
|
2773
2892
|
/** Unique identifier for a given API key. */
|
|
2774
2893
|
apiKeyId: string;
|
|
@@ -2778,7 +2897,7 @@ export type v1GetApiKeyResponse = {
|
|
|
2778
2897
|
apiKey: v1ApiKey;
|
|
2779
2898
|
};
|
|
2780
2899
|
export type v1GetApiKeysRequest = {
|
|
2781
|
-
/** Unique identifier for a given
|
|
2900
|
+
/** Unique identifier for a given Organization. */
|
|
2782
2901
|
organizationId: string;
|
|
2783
2902
|
/** Unique identifier for a given user. */
|
|
2784
2903
|
userId?: string;
|
|
@@ -2807,7 +2926,7 @@ export type v1GetAppStatusResponse = {
|
|
|
2807
2926
|
appStatus: v1AppStatus;
|
|
2808
2927
|
};
|
|
2809
2928
|
export type v1GetAuthenticatorRequest = {
|
|
2810
|
-
/** Unique identifier for a given
|
|
2929
|
+
/** Unique identifier for a given Organization. */
|
|
2811
2930
|
organizationId: string;
|
|
2812
2931
|
/** Unique identifier for a given authenticator. */
|
|
2813
2932
|
authenticatorId: string;
|
|
@@ -2817,7 +2936,7 @@ export type v1GetAuthenticatorResponse = {
|
|
|
2817
2936
|
authenticator: v1Authenticator;
|
|
2818
2937
|
};
|
|
2819
2938
|
export type v1GetAuthenticatorsRequest = {
|
|
2820
|
-
/** Unique identifier for a given
|
|
2939
|
+
/** Unique identifier for a given Organization. */
|
|
2821
2940
|
organizationId: string;
|
|
2822
2941
|
/** Unique identifier for a given user. */
|
|
2823
2942
|
userId: string;
|
|
@@ -2846,6 +2965,20 @@ export type v1GetClaimEarnFeesStatusResponse = {
|
|
|
2846
2965
|
/** Reason the fee claim transaction failed, when status is FAILED. */
|
|
2847
2966
|
error?: string;
|
|
2848
2967
|
};
|
|
2968
|
+
export type v1GetEarnClaimRewardsStatusRequest = {
|
|
2969
|
+
/** Unique identifier for a given Organization. */
|
|
2970
|
+
organizationId: string;
|
|
2971
|
+
/** The claim_request_id returned by EarnClaimRewards. */
|
|
2972
|
+
claimRequestId: string;
|
|
2973
|
+
};
|
|
2974
|
+
export type v1GetEarnClaimRewardsStatusResponse = {
|
|
2975
|
+
/** Status of the rewards claim. */
|
|
2976
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
2977
|
+
/** Transaction hash of the rewards claim, once available. */
|
|
2978
|
+
claimTxHash?: string;
|
|
2979
|
+
/** Reason the rewards claim transaction failed, when status is FAILED. */
|
|
2980
|
+
error?: string;
|
|
2981
|
+
};
|
|
2849
2982
|
export type v1GetEarnDeployStatusRequest = {
|
|
2850
2983
|
/** Unique identifier for a given Organization. */
|
|
2851
2984
|
organizationId: string;
|
|
@@ -2901,7 +3034,7 @@ export type v1GetGasUsageResponse = {
|
|
|
2901
3034
|
usageUsd: string;
|
|
2902
3035
|
};
|
|
2903
3036
|
export type v1GetIpAllowlistRequest = {
|
|
2904
|
-
/** Unique identifier for a given
|
|
3037
|
+
/** Unique identifier for a given Organization. */
|
|
2905
3038
|
organizationId: string;
|
|
2906
3039
|
/** If provided, return only the allowlist for this specific API key. */
|
|
2907
3040
|
publicKey?: string;
|
|
@@ -2916,7 +3049,7 @@ export type v1GetLatestBootProofRequest = {
|
|
|
2916
3049
|
appName: string;
|
|
2917
3050
|
};
|
|
2918
3051
|
export type v1GetMfaPoliciesRequest = {
|
|
2919
|
-
/** Unique identifier for a given
|
|
3052
|
+
/** Unique identifier for a given Organization. */
|
|
2920
3053
|
organizationId: string;
|
|
2921
3054
|
/** Unique identifier for a given user. */
|
|
2922
3055
|
userId: string;
|
|
@@ -2926,7 +3059,7 @@ export type v1GetMfaPoliciesResponse = {
|
|
|
2926
3059
|
mfaPolicies: v1MfaPolicy[];
|
|
2927
3060
|
};
|
|
2928
3061
|
export type v1GetMfaPolicyRequest = {
|
|
2929
|
-
/** Unique identifier for a given
|
|
3062
|
+
/** Unique identifier for a given Organization. */
|
|
2930
3063
|
organizationId: string;
|
|
2931
3064
|
/** Unique identifier for a given user. */
|
|
2932
3065
|
userId: string;
|
|
@@ -2938,7 +3071,7 @@ export type v1GetMfaPolicyResponse = {
|
|
|
2938
3071
|
mfaPolicy: v1MfaPolicy;
|
|
2939
3072
|
};
|
|
2940
3073
|
export type v1GetMfaStatusRequest = {
|
|
2941
|
-
/** Unique identifier for a given
|
|
3074
|
+
/** Unique identifier for a given Organization. */
|
|
2942
3075
|
organizationId: string;
|
|
2943
3076
|
/** The unique identifier of the activity to get MFA status for. */
|
|
2944
3077
|
activityId: string;
|
|
@@ -2977,7 +3110,7 @@ export type v1GetOauth2CredentialResponse = {
|
|
|
2977
3110
|
oauth2Credential: v1Oauth2Credential;
|
|
2978
3111
|
};
|
|
2979
3112
|
export type v1GetOauthProvidersRequest = {
|
|
2980
|
-
/** Unique identifier for a given
|
|
3113
|
+
/** Unique identifier for a given Organization. */
|
|
2981
3114
|
organizationId: string;
|
|
2982
3115
|
/** Unique identifier for a given user. */
|
|
2983
3116
|
userId?: string;
|
|
@@ -2987,7 +3120,7 @@ export type v1GetOauthProvidersResponse = {
|
|
|
2987
3120
|
oauthProviders: v1OauthProvider[];
|
|
2988
3121
|
};
|
|
2989
3122
|
export type v1GetOnRampTransactionStatusRequest = {
|
|
2990
|
-
/** Unique identifier for a given
|
|
3123
|
+
/** Unique identifier for a given Organization. */
|
|
2991
3124
|
organizationId: string;
|
|
2992
3125
|
/** The unique identifier for the fiat on ramp transaction. */
|
|
2993
3126
|
transactionId: string;
|
|
@@ -2999,7 +3132,7 @@ export type v1GetOnRampTransactionStatusResponse = {
|
|
|
2999
3132
|
transactionStatus: string;
|
|
3000
3133
|
};
|
|
3001
3134
|
export type v1GetOrganizationConfigsRequest = {
|
|
3002
|
-
/** Unique identifier for a given
|
|
3135
|
+
/** Unique identifier for a given Organization. */
|
|
3003
3136
|
organizationId: string;
|
|
3004
3137
|
};
|
|
3005
3138
|
export type v1GetOrganizationConfigsResponse = {
|
|
@@ -3007,7 +3140,7 @@ export type v1GetOrganizationConfigsResponse = {
|
|
|
3007
3140
|
configs: v1Config;
|
|
3008
3141
|
};
|
|
3009
3142
|
export type v1GetPoliciesRequest = {
|
|
3010
|
-
/** Unique identifier for a given
|
|
3143
|
+
/** Unique identifier for a given Organization. */
|
|
3011
3144
|
organizationId: string;
|
|
3012
3145
|
};
|
|
3013
3146
|
export type v1GetPoliciesResponse = {
|
|
@@ -3015,7 +3148,7 @@ export type v1GetPoliciesResponse = {
|
|
|
3015
3148
|
policies: v1Policy[];
|
|
3016
3149
|
};
|
|
3017
3150
|
export type v1GetPolicyEvaluationsRequest = {
|
|
3018
|
-
/** Unique identifier for a given
|
|
3151
|
+
/** Unique identifier for a given Organization. */
|
|
3019
3152
|
organizationId: string;
|
|
3020
3153
|
/** Unique identifier for a given activity. */
|
|
3021
3154
|
activityId: string;
|
|
@@ -3024,7 +3157,7 @@ export type v1GetPolicyEvaluationsResponse = {
|
|
|
3024
3157
|
policyEvaluations: externalactivityv1PolicyEvaluation[];
|
|
3025
3158
|
};
|
|
3026
3159
|
export type v1GetPolicyRequest = {
|
|
3027
|
-
/** Unique identifier for a given
|
|
3160
|
+
/** Unique identifier for a given Organization. */
|
|
3028
3161
|
organizationId: string;
|
|
3029
3162
|
/** Unique identifier for a given policy. */
|
|
3030
3163
|
policyId: string;
|
|
@@ -3034,7 +3167,7 @@ export type v1GetPolicyResponse = {
|
|
|
3034
3167
|
policy: v1Policy;
|
|
3035
3168
|
};
|
|
3036
3169
|
export type v1GetPrivateKeyRequest = {
|
|
3037
|
-
/** Unique identifier for a given
|
|
3170
|
+
/** Unique identifier for a given Organization. */
|
|
3038
3171
|
organizationId: string;
|
|
3039
3172
|
/** Unique identifier for a given private key. */
|
|
3040
3173
|
privateKeyId: string;
|
|
@@ -3044,7 +3177,7 @@ export type v1GetPrivateKeyResponse = {
|
|
|
3044
3177
|
privateKey: v1PrivateKey;
|
|
3045
3178
|
};
|
|
3046
3179
|
export type v1GetPrivateKeysRequest = {
|
|
3047
|
-
/** Unique identifier for a given
|
|
3180
|
+
/** Unique identifier for a given Organization. */
|
|
3048
3181
|
organizationId: string;
|
|
3049
3182
|
};
|
|
3050
3183
|
export type v1GetPrivateKeysResponse = {
|
|
@@ -3052,7 +3185,7 @@ export type v1GetPrivateKeysResponse = {
|
|
|
3052
3185
|
privateKeys: v1PrivateKey[];
|
|
3053
3186
|
};
|
|
3054
3187
|
export type v1GetSendTransactionStatusRequest = {
|
|
3055
|
-
/** Unique identifier for a given
|
|
3188
|
+
/** Unique identifier for a given Organization. */
|
|
3056
3189
|
organizationId: string;
|
|
3057
3190
|
/** The unique identifier of a send transaction request. */
|
|
3058
3191
|
sendTransactionStatusId: string;
|
|
@@ -3070,7 +3203,7 @@ export type v1GetSendTransactionStatusResponse = {
|
|
|
3070
3203
|
error?: v1TxError;
|
|
3071
3204
|
};
|
|
3072
3205
|
export type v1GetSessionProfileRequest = {
|
|
3073
|
-
/** Unique identifier for a given
|
|
3206
|
+
/** Unique identifier for a given Organization. */
|
|
3074
3207
|
organizationId: string;
|
|
3075
3208
|
/** Unique identifier for a session profile. */
|
|
3076
3209
|
sessionProfileId: string;
|
|
@@ -3080,7 +3213,7 @@ export type v1GetSessionProfileResponse = {
|
|
|
3080
3213
|
sessionProfile: v1SessionProfile;
|
|
3081
3214
|
};
|
|
3082
3215
|
export type v1GetSessionProfilesRequest = {
|
|
3083
|
-
/** Unique identifier for a given
|
|
3216
|
+
/** Unique identifier for a given Organization. */
|
|
3084
3217
|
organizationId: string;
|
|
3085
3218
|
};
|
|
3086
3219
|
export type v1GetSessionProfilesResponse = {
|
|
@@ -3088,7 +3221,7 @@ export type v1GetSessionProfilesResponse = {
|
|
|
3088
3221
|
sessionProfiles: v1SessionProfile[];
|
|
3089
3222
|
};
|
|
3090
3223
|
export type v1GetSmartContractInterfaceRequest = {
|
|
3091
|
-
/** Unique identifier for a given
|
|
3224
|
+
/** Unique identifier for a given Organization. */
|
|
3092
3225
|
organizationId: string;
|
|
3093
3226
|
/** Unique identifier for a given smart contract interface. */
|
|
3094
3227
|
smartContractInterfaceId: string;
|
|
@@ -3098,7 +3231,7 @@ export type v1GetSmartContractInterfaceResponse = {
|
|
|
3098
3231
|
smartContractInterface: externaldatav1SmartContractInterface;
|
|
3099
3232
|
};
|
|
3100
3233
|
export type v1GetSmartContractInterfacesRequest = {
|
|
3101
|
-
/** Unique identifier for a given
|
|
3234
|
+
/** Unique identifier for a given Organization. */
|
|
3102
3235
|
organizationId: string;
|
|
3103
3236
|
};
|
|
3104
3237
|
export type v1GetSmartContractInterfacesResponse = {
|
|
@@ -3119,6 +3252,14 @@ export type v1GetSubOrgIdsResponse = {
|
|
|
3119
3252
|
/** List of unique identifiers for the matching sub-organizations. */
|
|
3120
3253
|
organizationIds: string[];
|
|
3121
3254
|
};
|
|
3255
|
+
export type v1GetSwapSponsorshipUsageRequest = {
|
|
3256
|
+
/** Unique identifier for a given organization. */
|
|
3257
|
+
organizationId: string;
|
|
3258
|
+
};
|
|
3259
|
+
export type v1GetSwapSponsorshipUsageResponse = {
|
|
3260
|
+
feeSponsorship: v1SwapSponsorshipFeature;
|
|
3261
|
+
fixedRate: v1SwapSponsorshipFeature;
|
|
3262
|
+
};
|
|
3122
3263
|
export type v1GetSwapStatusRequest = {
|
|
3123
3264
|
/** Unique identifier for a given Organization. */
|
|
3124
3265
|
organizationId: string;
|
|
@@ -3154,7 +3295,7 @@ export type v1GetSwapStatusResponse = {
|
|
|
3154
3295
|
destinationAddress?: string;
|
|
3155
3296
|
};
|
|
3156
3297
|
export type v1GetTvcAppDeploymentsRequest = {
|
|
3157
|
-
/** Unique identifier for a given
|
|
3298
|
+
/** Unique identifier for a given Organization. */
|
|
3158
3299
|
organizationId: string;
|
|
3159
3300
|
/** Unique identifier for a given TVC App. */
|
|
3160
3301
|
appId: string;
|
|
@@ -3164,7 +3305,7 @@ export type v1GetTvcAppDeploymentsResponse = {
|
|
|
3164
3305
|
tvcDeployments: v1TvcDeployment[];
|
|
3165
3306
|
};
|
|
3166
3307
|
export type v1GetTvcAppRequest = {
|
|
3167
|
-
/** Unique identifier for a given
|
|
3308
|
+
/** Unique identifier for a given Organization. */
|
|
3168
3309
|
organizationId: string;
|
|
3169
3310
|
/** Unique identifier for a given TVC App. */
|
|
3170
3311
|
tvcAppId: string;
|
|
@@ -3174,8 +3315,10 @@ export type v1GetTvcAppResponse = {
|
|
|
3174
3315
|
tvcApp: v1TvcApp;
|
|
3175
3316
|
};
|
|
3176
3317
|
export type v1GetTvcAppsRequest = {
|
|
3177
|
-
/** Unique identifier for a given
|
|
3318
|
+
/** Unique identifier for a given Organization. */
|
|
3178
3319
|
organizationId: string;
|
|
3320
|
+
/** Filter TVC Apps by whether they have a live deployment. If omitted, all TVC Apps are returned. */
|
|
3321
|
+
isLive?: boolean;
|
|
3179
3322
|
};
|
|
3180
3323
|
export type v1GetTvcAppsResponse = {
|
|
3181
3324
|
/** A list of TVC Apps. */
|
|
@@ -3195,8 +3338,22 @@ export type v1GetTvcDeploymentDebugLogsResponse = {
|
|
|
3195
3338
|
/** Application log entries sorted by platform timestamp. */
|
|
3196
3339
|
entries: v1TvcDeploymentDebugLogEntry[];
|
|
3197
3340
|
};
|
|
3341
|
+
export type v1GetTvcDeploymentProvisioningDetailsRequest = {
|
|
3342
|
+
/** Unique identifier for a given Organization. */
|
|
3343
|
+
organizationId: string;
|
|
3344
|
+
/** Unique identifier for a given TVC Deployment. */
|
|
3345
|
+
deploymentId: string;
|
|
3346
|
+
};
|
|
3347
|
+
export type v1GetTvcDeploymentProvisioningDetailsResponse = {
|
|
3348
|
+
/** The attestation document of the provisioning enclave. Present only when a deployment is awaiting provisioning. */
|
|
3349
|
+
attestationDocument?: string;
|
|
3350
|
+
/** The manifest envelope containing the TVC deployment's manifest and signatures. Present only when a deployment is awaiting provisioning. */
|
|
3351
|
+
manifestEnvelope?: string;
|
|
3352
|
+
/** Current provisioning state. */
|
|
3353
|
+
provisioningState: v1ProvisioningState;
|
|
3354
|
+
};
|
|
3198
3355
|
export type v1GetTvcDeploymentRequest = {
|
|
3199
|
-
/** Unique identifier for a given
|
|
3356
|
+
/** Unique identifier for a given Organization. */
|
|
3200
3357
|
organizationId: string;
|
|
3201
3358
|
/** Unique identifier for a given TVC Deployment. */
|
|
3202
3359
|
deploymentId: string;
|
|
@@ -3205,6 +3362,13 @@ export type v1GetTvcDeploymentResponse = {
|
|
|
3205
3362
|
/** Details about a single TVC Deployment */
|
|
3206
3363
|
tvcDeployment: v1TvcDeployment;
|
|
3207
3364
|
};
|
|
3365
|
+
export type v1GetTvcOperatorsRequest = {
|
|
3366
|
+
/** Unique identifier for a given Organization. */
|
|
3367
|
+
organizationId: string;
|
|
3368
|
+
};
|
|
3369
|
+
export type v1GetTvcOperatorsResponse = {
|
|
3370
|
+
tvcOperators: v1TvcOperator[];
|
|
3371
|
+
};
|
|
3208
3372
|
export type v1GetTvcQosVersionsRequest = {
|
|
3209
3373
|
/** Unique identifier for a given Organization. */
|
|
3210
3374
|
organizationId: string;
|
|
@@ -3215,8 +3379,15 @@ export type v1GetTvcQosVersionsResponse = {
|
|
|
3215
3379
|
/** Latest recommended QOS version for new TVC deployments. */
|
|
3216
3380
|
latestVersion: string;
|
|
3217
3381
|
};
|
|
3382
|
+
export type v1GetTvcQuorumKeysRequest = {
|
|
3383
|
+
/** Unique identifier for a given Organization. */
|
|
3384
|
+
organizationId: string;
|
|
3385
|
+
};
|
|
3386
|
+
export type v1GetTvcQuorumKeysResponse = {
|
|
3387
|
+
tvcQuorumKeys: v1TvcQuorumKey[];
|
|
3388
|
+
};
|
|
3218
3389
|
export type v1GetUserRequest = {
|
|
3219
|
-
/** Unique identifier for a given
|
|
3390
|
+
/** Unique identifier for a given Organization. */
|
|
3220
3391
|
organizationId: string;
|
|
3221
3392
|
/** Unique identifier for a given user. */
|
|
3222
3393
|
userId: string;
|
|
@@ -3226,7 +3397,7 @@ export type v1GetUserResponse = {
|
|
|
3226
3397
|
user: v1User;
|
|
3227
3398
|
};
|
|
3228
3399
|
export type v1GetUsersRequest = {
|
|
3229
|
-
/** Unique identifier for a given
|
|
3400
|
+
/** Unique identifier for a given Organization. */
|
|
3230
3401
|
organizationId: string;
|
|
3231
3402
|
};
|
|
3232
3403
|
export type v1GetUsersResponse = {
|
|
@@ -3236,7 +3407,7 @@ export type v1GetUsersResponse = {
|
|
|
3236
3407
|
export type v1GetVerifiedSubOrgIdsRequest = {
|
|
3237
3408
|
/** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
|
|
3238
3409
|
organizationId: string;
|
|
3239
|
-
/** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER'
|
|
3410
|
+
/** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', or 'PUBLIC_KEY' */
|
|
3240
3411
|
filterType?: string;
|
|
3241
3412
|
/** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
|
|
3242
3413
|
filterValue?: string;
|
|
@@ -3248,7 +3419,7 @@ export type v1GetVerifiedSubOrgIdsResponse = {
|
|
|
3248
3419
|
organizationIds: string[];
|
|
3249
3420
|
};
|
|
3250
3421
|
export type v1GetWalletAccountRequest = {
|
|
3251
|
-
/** Unique identifier for a given
|
|
3422
|
+
/** Unique identifier for a given Organization. */
|
|
3252
3423
|
organizationId: string;
|
|
3253
3424
|
/** Unique identifier for a given wallet. */
|
|
3254
3425
|
walletId: string;
|
|
@@ -3262,7 +3433,7 @@ export type v1GetWalletAccountResponse = {
|
|
|
3262
3433
|
account: v1WalletAccount;
|
|
3263
3434
|
};
|
|
3264
3435
|
export type v1GetWalletAccountsRequest = {
|
|
3265
|
-
/** Unique identifier for a given
|
|
3436
|
+
/** Unique identifier for a given Organization. */
|
|
3266
3437
|
organizationId: string;
|
|
3267
3438
|
/** Unique identifier for a given wallet. If not provided, all accounts for the organization will be returned. */
|
|
3268
3439
|
walletId?: string;
|
|
@@ -3276,7 +3447,7 @@ export type v1GetWalletAccountsResponse = {
|
|
|
3276
3447
|
accounts: v1WalletAccount[];
|
|
3277
3448
|
};
|
|
3278
3449
|
export type v1GetWalletAddressBalancesRequest = {
|
|
3279
|
-
/** Unique identifier for a given
|
|
3450
|
+
/** Unique identifier for a given Organization. */
|
|
3280
3451
|
organizationId: string;
|
|
3281
3452
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
3282
3453
|
address: string;
|
|
@@ -3288,7 +3459,7 @@ export type v1GetWalletAddressBalancesResponse = {
|
|
|
3288
3459
|
balances?: v1AssetBalance[];
|
|
3289
3460
|
};
|
|
3290
3461
|
export type v1GetWalletRequest = {
|
|
3291
|
-
/** Unique identifier for a given
|
|
3462
|
+
/** Unique identifier for a given Organization. */
|
|
3292
3463
|
organizationId: string;
|
|
3293
3464
|
/** Unique identifier for a given wallet. */
|
|
3294
3465
|
walletId: string;
|
|
@@ -3298,7 +3469,7 @@ export type v1GetWalletResponse = {
|
|
|
3298
3469
|
wallet: v1Wallet;
|
|
3299
3470
|
};
|
|
3300
3471
|
export type v1GetWalletsRequest = {
|
|
3301
|
-
/** Unique identifier for a given
|
|
3472
|
+
/** Unique identifier for a given Organization. */
|
|
3302
3473
|
organizationId: string;
|
|
3303
3474
|
};
|
|
3304
3475
|
export type v1GetWalletsResponse = {
|
|
@@ -3310,7 +3481,7 @@ export type v1GetWhoamiRequest = {
|
|
|
3310
3481
|
organizationId: string;
|
|
3311
3482
|
};
|
|
3312
3483
|
export type v1GetWhoamiResponse = {
|
|
3313
|
-
/** Unique identifier for a given
|
|
3484
|
+
/** Unique identifier for a given Organization. */
|
|
3314
3485
|
organizationId: string;
|
|
3315
3486
|
/** Human-readable name for an organization. */
|
|
3316
3487
|
organizationName: string;
|
|
@@ -3871,11 +4042,16 @@ export type v1Intent = {
|
|
|
3871
4042
|
importSecretsIntent?: v1ImportSecretsIntent;
|
|
3872
4043
|
exportSecretsIntent?: v1ExportSecretsIntent;
|
|
3873
4044
|
createVelocityControlIntent?: v1CreateVelocityControlIntent;
|
|
3874
|
-
|
|
4045
|
+
deleteVelocityControlsIntent?: v1DeleteVelocityControlsIntent;
|
|
3875
4046
|
updatePaymentMethodIntent?: billingUpdatePaymentMethodIntent;
|
|
3876
4047
|
createSwapQuoteIntentV2?: v1CreateSwapQuoteIntentV2;
|
|
3877
4048
|
executeSwapIntentV3?: v1ExecuteSwapIntentV3;
|
|
3878
4049
|
deleteSecretsIntent?: v1DeleteSecretsIntent;
|
|
4050
|
+
earnClaimRewardsIntent?: v1EarnClaimRewardsIntent;
|
|
4051
|
+
createSwapQuoteIntentV3?: v1CreateSwapQuoteIntentV3;
|
|
4052
|
+
upsertSwapFeeSponsorshipLimitConfigIntent?: v1UpsertSwapFeeSponsorshipLimitConfigIntent;
|
|
4053
|
+
upsertSwapFixedRateLimitConfigIntent?: v1UpsertSwapFixedRateLimitConfigIntent;
|
|
4054
|
+
createFiatOnRampSessionIntent?: v1CreateFiatOnRampSessionIntent;
|
|
3879
4055
|
};
|
|
3880
4056
|
export type v1InvitationParams = {
|
|
3881
4057
|
/** The name of the intended Invitation recipient. */
|
|
@@ -3943,6 +4119,18 @@ export type v1ListEarnPositionsResponse = {
|
|
|
3943
4119
|
/** The wallet's active Earn positions. */
|
|
3944
4120
|
positions?: v1EarnPosition[];
|
|
3945
4121
|
};
|
|
4122
|
+
export type v1ListEarnRewardsRequest = {
|
|
4123
|
+
/** Unique identifier for a given Organization. */
|
|
4124
|
+
organizationId: string;
|
|
4125
|
+
/** The wallet address to return rewards for. */
|
|
4126
|
+
walletAddress: string;
|
|
4127
|
+
/** Optional filter: only return rewards on this chain (e.g. 'eip155:8453'). When unset, every chain the organization has deployed Earn wrappers on is queried. */
|
|
4128
|
+
caip2?: string;
|
|
4129
|
+
};
|
|
4130
|
+
export type v1ListEarnRewardsResponse = {
|
|
4131
|
+
/** The wallet's rewards, one entry per (chain, reward token), sorted by chain then token. Entries where every amount is zero are omitted. */
|
|
4132
|
+
rewards?: v1EarnReward[];
|
|
4133
|
+
};
|
|
3946
4134
|
export type v1ListEarnVaultsRequest = {
|
|
3947
4135
|
/** Unique identifier for a given Organization. Annotates which vaults the organization has already enabled. */
|
|
3948
4136
|
organizationId: string;
|
|
@@ -3974,7 +4162,7 @@ export type v1ListEmailEventsResponse = {
|
|
|
3974
4162
|
emailEvents: v1EmailEvent[];
|
|
3975
4163
|
};
|
|
3976
4164
|
export type v1ListEthTransactionHistoryRequest = {
|
|
3977
|
-
/** Unique identifier for a given
|
|
4165
|
+
/** Unique identifier for a given Organization. */
|
|
3978
4166
|
organizationId: string;
|
|
3979
4167
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
3980
4168
|
address: string;
|
|
@@ -4003,7 +4191,7 @@ export type v1ListOauth2CredentialsResponse = {
|
|
|
4003
4191
|
oauth2Credentials: v1Oauth2Credential[];
|
|
4004
4192
|
};
|
|
4005
4193
|
export type v1ListPrivateKeyTagsRequest = {
|
|
4006
|
-
/** Unique identifier for a given
|
|
4194
|
+
/** Unique identifier for a given Organization. */
|
|
4007
4195
|
organizationId: string;
|
|
4008
4196
|
};
|
|
4009
4197
|
export type v1ListPrivateKeyTagsResponse = {
|
|
@@ -4021,7 +4209,7 @@ export type v1ListSecretsResponse = {
|
|
|
4021
4209
|
secrets: v1SecretMetadata[];
|
|
4022
4210
|
};
|
|
4023
4211
|
export type v1ListSolTransactionHistoryRequest = {
|
|
4024
|
-
/** Unique identifier for a given
|
|
4212
|
+
/** Unique identifier for a given Organization. */
|
|
4025
4213
|
organizationId: string;
|
|
4026
4214
|
/** Address corresponding to a wallet account. Private key addresses are not supported. */
|
|
4027
4215
|
address: string;
|
|
@@ -4036,7 +4224,7 @@ export type v1ListSolTransactionHistoryResponse = {
|
|
|
4036
4224
|
pageInfo?: v1PageInfo;
|
|
4037
4225
|
};
|
|
4038
4226
|
export type v1ListSupportedAssetsRequest = {
|
|
4039
|
-
/** Unique identifier for a given
|
|
4227
|
+
/** Unique identifier for a given Organization. */
|
|
4040
4228
|
organizationId: string;
|
|
4041
4229
|
/** 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. */
|
|
4042
4230
|
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:4663" | "eip155:46630" | "eip155:5042" | "eip155:5042002" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
@@ -4046,7 +4234,7 @@ export type v1ListSupportedAssetsResponse = {
|
|
|
4046
4234
|
assets?: v1AssetMetadata[];
|
|
4047
4235
|
};
|
|
4048
4236
|
export type v1ListUserTagsRequest = {
|
|
4049
|
-
/** Unique identifier for a given
|
|
4237
|
+
/** Unique identifier for a given Organization. */
|
|
4050
4238
|
organizationId: string;
|
|
4051
4239
|
};
|
|
4052
4240
|
export type v1ListUserTagsResponse = {
|
|
@@ -4326,6 +4514,14 @@ export type v1PostTvcQuorumKeyShareIntent = {
|
|
|
4326
4514
|
/** Re-encrypted quorum key share and approval */
|
|
4327
4515
|
shareApprovalBundle: v1QuorumKeyShareApprovalBundle;
|
|
4328
4516
|
};
|
|
4517
|
+
export type v1PostTvcQuorumKeyShareRequest = {
|
|
4518
|
+
type: "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE";
|
|
4519
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
4520
|
+
timestampMs: string;
|
|
4521
|
+
/** Unique identifier for a given Organization. */
|
|
4522
|
+
organizationId: string;
|
|
4523
|
+
parameters: v1PostTvcQuorumKeyShareIntent;
|
|
4524
|
+
};
|
|
4329
4525
|
export type v1PostTvcQuorumKeyShareResult = {
|
|
4330
4526
|
/** The unique identifier for the provisioning quorum key share */
|
|
4331
4527
|
provisioningShareId: string;
|
|
@@ -4395,6 +4591,15 @@ export type v1ReEncryptTvcQuorumKeyShareIntent = {
|
|
|
4395
4591
|
/** Quorum key for the TVC application */
|
|
4396
4592
|
appQuorumKey: string;
|
|
4397
4593
|
};
|
|
4594
|
+
export type v1ReEncryptTvcQuorumKeyShareRequest = {
|
|
4595
|
+
type: "ACTIVITY_TYPE_RE_ENCRYPT_TVC_QUORUM_KEY_SHARE";
|
|
4596
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
4597
|
+
timestampMs: string;
|
|
4598
|
+
/** Unique identifier for a given Organization. */
|
|
4599
|
+
organizationId: string;
|
|
4600
|
+
parameters: v1ReEncryptTvcQuorumKeyShareIntent;
|
|
4601
|
+
generateAppProofs?: boolean;
|
|
4602
|
+
};
|
|
4398
4603
|
export type v1ReEncryptTvcQuorumKeyShareResult = {
|
|
4399
4604
|
/** The unique identifier for the provisioning quorum key share */
|
|
4400
4605
|
provisioningShareId: string;
|
|
@@ -4628,9 +4833,14 @@ export type v1Result = {
|
|
|
4628
4833
|
importSecretsResult?: v1ImportSecretsResult;
|
|
4629
4834
|
exportSecretsResult?: v1ExportSecretsResult;
|
|
4630
4835
|
createVelocityControlResult?: v1CreateVelocityControlResult;
|
|
4631
|
-
|
|
4836
|
+
deleteVelocityControlsResult?: v1DeleteVelocityControlsResult;
|
|
4632
4837
|
updatePaymentMethodResult?: billingUpdatePaymentMethodResult;
|
|
4633
4838
|
deleteSecretsResult?: v1DeleteSecretsResult;
|
|
4839
|
+
earnClaimRewardsResult?: v1EarnClaimRewardsResult;
|
|
4840
|
+
createSwapQuoteResultV2?: v1CreateSwapQuoteResultV2;
|
|
4841
|
+
upsertSwapFeeSponsorshipLimitConfigResult?: v1UpsertSwapFeeSponsorshipLimitConfigResult;
|
|
4842
|
+
upsertSwapFixedRateLimitConfigResult?: v1UpsertSwapFixedRateLimitConfigResult;
|
|
4843
|
+
createFiatOnRampSessionResult?: v1CreateFiatOnRampSessionResult;
|
|
4634
4844
|
};
|
|
4635
4845
|
export type v1RevertChainEntry = {
|
|
4636
4846
|
/** The contract address where the revert occurred. */
|
|
@@ -4800,6 +5010,8 @@ export type v1SignRawPayloadIntentV2 = {
|
|
|
4800
5010
|
encoding: v1PayloadEncoding;
|
|
4801
5011
|
/** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
|
|
4802
5012
|
hashFunction: v1HashFunction;
|
|
5013
|
+
/** The public key of the external signer to use for signing the payload. */
|
|
5014
|
+
externalSignerPubkey?: string;
|
|
4803
5015
|
};
|
|
4804
5016
|
export type v1SignRawPayloadRequest = {
|
|
4805
5017
|
type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2";
|
|
@@ -4811,11 +5023,11 @@ export type v1SignRawPayloadRequest = {
|
|
|
4811
5023
|
generateAppProofs?: boolean;
|
|
4812
5024
|
};
|
|
4813
5025
|
export type v1SignRawPayloadResult = {
|
|
4814
|
-
/** Component of
|
|
5026
|
+
/** Component of a cryptographic signature, meaning varies based on signing scheme. */
|
|
4815
5027
|
r: string;
|
|
4816
|
-
/** Component of
|
|
5028
|
+
/** Component of a cryptographic signature, meaning varies based on signing scheme. */
|
|
4817
5029
|
s: string;
|
|
4818
|
-
/**
|
|
5030
|
+
/** Recovery ID for ECDSA signatures, "00" otherwise. */
|
|
4819
5031
|
v: string;
|
|
4820
5032
|
};
|
|
4821
5033
|
export type v1SignRawPayloadsIntent = {
|
|
@@ -4827,6 +5039,8 @@ export type v1SignRawPayloadsIntent = {
|
|
|
4827
5039
|
encoding: v1PayloadEncoding;
|
|
4828
5040
|
/** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
|
|
4829
5041
|
hashFunction: v1HashFunction;
|
|
5042
|
+
/** The public key of the external signer to use for signing the payloads. */
|
|
5043
|
+
externalSignerPubkey?: string;
|
|
4830
5044
|
};
|
|
4831
5045
|
export type v1SignRawPayloadsRequest = {
|
|
4832
5046
|
type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS";
|
|
@@ -4853,6 +5067,8 @@ export type v1SignTransactionIntentV2 = {
|
|
|
4853
5067
|
/** Raw unsigned transaction to be signed */
|
|
4854
5068
|
unsignedTransaction: string;
|
|
4855
5069
|
type: v1TransactionType;
|
|
5070
|
+
/** The public key of the external signer to use for signing this transaction. */
|
|
5071
|
+
externalSignerPubkey?: string;
|
|
4856
5072
|
};
|
|
4857
5073
|
export type v1SignTransactionRequest = {
|
|
4858
5074
|
type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2";
|
|
@@ -4891,7 +5107,7 @@ export type v1SmsCustomizationParams = {
|
|
|
4891
5107
|
template?: string;
|
|
4892
5108
|
};
|
|
4893
5109
|
export type v1SolSendTransactionIntent = {
|
|
4894
|
-
/**
|
|
5110
|
+
/** Hex-encoded serialized unsigned Solana transaction in full wire format. Legacy/V0 transactions allow 1232 bytes. V1 allows 4096 bytes with up to 12 trailing 64-byte signature slots, including the paymaster for sponsored transactions. Fill unsigned slots with zeroes. */
|
|
4895
5111
|
unsignedTransaction: string;
|
|
4896
5112
|
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
4897
5113
|
signWith: string;
|
|
@@ -4903,9 +5119,9 @@ export type v1SolSendTransactionIntent = {
|
|
|
4903
5119
|
recentBlockhash?: string;
|
|
4904
5120
|
};
|
|
4905
5121
|
export type v1SolSendTransactionIntentV2 = {
|
|
4906
|
-
/** Hex-encoded serialized unsigned Solana transaction
|
|
5122
|
+
/** Hex-encoded serialized unsigned Solana transaction in full wire format. Legacy/V0 transactions allow 1232 bytes. V1 allows 4096 bytes with up to 12 trailing 64-byte signature slots, including the paymaster for sponsored transactions. Fill unsigned slots with zeroes. */
|
|
4907
5123
|
unsignedTransaction: string;
|
|
4908
|
-
/** 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. */
|
|
5124
|
+
/** Ordered Solana signer addresses Turnkey signs with. Between 1 and 16 signers for legacy/V0, or up to 12 for V1 (11 when sponsored). For sponsored transactions this must list every required signer of the transaction in transaction order. */
|
|
4909
5125
|
signWiths: string[];
|
|
4910
5126
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
4911
5127
|
sponsor?: boolean;
|
|
@@ -5235,6 +5451,30 @@ export type v1SwapQuote = {
|
|
|
5235
5451
|
/** Provider-estimated completion time in seconds, when available. */
|
|
5236
5452
|
estimatedTimeSeconds?: string;
|
|
5237
5453
|
};
|
|
5454
|
+
export type v1SwapQuoteV2 = {
|
|
5455
|
+
/** 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. */
|
|
5456
|
+
quoteId: string;
|
|
5457
|
+
/** Swap provider that produced this quote. */
|
|
5458
|
+
provider: string;
|
|
5459
|
+
/** Estimated base-unit amount of the output asset. */
|
|
5460
|
+
outputAmount: string;
|
|
5461
|
+
/** Minimum acceptable base-unit amount of the output asset after slippage. */
|
|
5462
|
+
minOutputAmount: string;
|
|
5463
|
+
/** Quote expiration as a millisecond epoch string. */
|
|
5464
|
+
expiresAt: string;
|
|
5465
|
+
/** Effective total slippage tolerance in basis points for this quote, taken from the provider response when present. When the request omits input slippage_bps, the provider may calculate this value. */
|
|
5466
|
+
slippageBps?: string;
|
|
5467
|
+
/** Client fee in basis points applied for this pair. Informational only; already reflected in output_amount and min_output_amount. */
|
|
5468
|
+
clientFeeBps: string;
|
|
5469
|
+
/** Provider-estimated completion time in seconds, when available. */
|
|
5470
|
+
estimatedTimeSeconds?: string;
|
|
5471
|
+
/** Whether Turnkey pays the provider fees for this quote. */
|
|
5472
|
+
feeSponsorship: boolean;
|
|
5473
|
+
/** Whether this quote uses a 1:1 fixed rate. */
|
|
5474
|
+
fixedRate: boolean;
|
|
5475
|
+
/** Estimated USD adjustment for the fixed rate. Present only for fixed-rate quotes. Positive is a cost billed to you; negative is an earning credited against your transaction management charges at the end of the billing period. Informational; the final amount is settled after execution. */
|
|
5476
|
+
estimatedFixedRateAdjustmentUsd?: string;
|
|
5477
|
+
};
|
|
5238
5478
|
export type v1SwapRefund = {
|
|
5239
5479
|
/** CAIP-19 asset returned by the swap provider after a failed cross-chain fill. */
|
|
5240
5480
|
asset: string;
|
|
@@ -5243,6 +5483,26 @@ export type v1SwapRefund = {
|
|
|
5243
5483
|
/** Transaction that delivered the provider refund, when applicable. */
|
|
5244
5484
|
txHash?: string;
|
|
5245
5485
|
};
|
|
5486
|
+
export type v1SwapSpendingWindow = {
|
|
5487
|
+
/** Rolling window duration in minutes. */
|
|
5488
|
+
windowDurationMinutes: number;
|
|
5489
|
+
/** The parent's window limit, or the per-child limit when queried by a sub-organization. */
|
|
5490
|
+
windowLimitUsd: string;
|
|
5491
|
+
/** Settled spending in the current window. Fixed-rate earnings offset fixed-rate costs, and usage never goes below zero. Fixed-rate usage stays zero until final fixed-rate costs are recorded. */
|
|
5492
|
+
usageUsd: string;
|
|
5493
|
+
/** Remaining spending capacity, clamped to zero. For children, also capped by remaining parent capacity. Zero when the window is disabled. This is not a reservation or a guarantee of feature eligibility. */
|
|
5494
|
+
remainingUsd: string;
|
|
5495
|
+
/** Whether the saved spending window permits new swaps. */
|
|
5496
|
+
enabled: boolean;
|
|
5497
|
+
/** Configured per-child limit. Returned only when querying the billing parent. */
|
|
5498
|
+
subOrgWindowLimitUsd?: string;
|
|
5499
|
+
};
|
|
5500
|
+
export type v1SwapSponsorshipFeature = {
|
|
5501
|
+
/** Whether the billing parent holds this feature's signed permission. Quotes can use the feature only when it is permitted and its window is enabled. */
|
|
5502
|
+
permitted: boolean;
|
|
5503
|
+
/** Absent until the billing parent saves a spending window. */
|
|
5504
|
+
window?: v1SwapSpendingWindow;
|
|
5505
|
+
};
|
|
5246
5506
|
export type v1TagType = "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
|
|
5247
5507
|
export type v1TokenUsage = {
|
|
5248
5508
|
/** Type of token usage */
|
|
@@ -5370,6 +5630,10 @@ export type v1TvcDeployment = {
|
|
|
5370
5630
|
delete: boolean;
|
|
5371
5631
|
/** Whether this deployment is running in debug mode. Debug-mode deployments expose enclave logs and cannot be remotely attested. */
|
|
5372
5632
|
debugMode: boolean;
|
|
5633
|
+
/** The instance cpu count for this enclave. */
|
|
5634
|
+
instanceSizeCpus?: number;
|
|
5635
|
+
/** The instance memory size in GiB for this enclave. */
|
|
5636
|
+
instanceSizeRam?: number;
|
|
5373
5637
|
};
|
|
5374
5638
|
export type v1TvcDeploymentDebugLogEntry = {
|
|
5375
5639
|
/** Application log line with its platform timestamp. */
|
|
@@ -5401,6 +5665,12 @@ export type v1TvcOperator = {
|
|
|
5401
5665
|
publicKey: string;
|
|
5402
5666
|
createdAt: externaldatav1Timestamp;
|
|
5403
5667
|
updatedAt: externaldatav1Timestamp;
|
|
5668
|
+
/** Encryption public key for this TVC Operator. */
|
|
5669
|
+
encryptPublicKey: string;
|
|
5670
|
+
/** Signing public key for this TVC Operator. */
|
|
5671
|
+
signPublicKey: string;
|
|
5672
|
+
/** Source of the operator keys: EXTERNAL_KEY or ORG_WALLET_ACCOUNT. Absent for legacy operators whose source was not recorded. */
|
|
5673
|
+
keySource?: string;
|
|
5404
5674
|
};
|
|
5405
5675
|
export type v1TvcOperatorApproval = {
|
|
5406
5676
|
/** Unique ID for this approval */
|
|
@@ -5444,6 +5714,14 @@ export type v1TvcOperatorSetParams = {
|
|
|
5444
5714
|
/** The threshold of operators needed to reach consensus in this new Operator Set */
|
|
5445
5715
|
threshold: number;
|
|
5446
5716
|
};
|
|
5717
|
+
export type v1TvcQuorumKey = {
|
|
5718
|
+
id: string;
|
|
5719
|
+
publicKey: string;
|
|
5720
|
+
threshold: number;
|
|
5721
|
+
operatorIds: string[];
|
|
5722
|
+
createdAt: externaldatav1Timestamp;
|
|
5723
|
+
updatedAt: externaldatav1Timestamp;
|
|
5724
|
+
};
|
|
5447
5725
|
export type v1TxError = {
|
|
5448
5726
|
/** Human-readable error message describing what went wrong. */
|
|
5449
5727
|
message?: string;
|
|
@@ -5884,6 +6162,7 @@ export type v1UpsertGasUsageConfigResult = {
|
|
|
5884
6162
|
gasUsageConfigId: string;
|
|
5885
6163
|
};
|
|
5886
6164
|
export type v1UpsertSwapConfigIntent = {
|
|
6165
|
+
/** Organization-owned wallet account that receives swap fees. Required when fee_bps is set. Omit together with fee_bps to clear swap fees. */
|
|
5887
6166
|
feeReceiverWalletAddress?: string;
|
|
5888
6167
|
/** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
|
|
5889
6168
|
feeBps?: string;
|
|
@@ -5904,6 +6183,50 @@ export type v1UpsertSwapConfigResult = {
|
|
|
5904
6183
|
feeBps?: string;
|
|
5905
6184
|
stableFeeBps?: string;
|
|
5906
6185
|
};
|
|
6186
|
+
export type v1UpsertSwapFeeSponsorshipLimitConfigIntent = {
|
|
6187
|
+
/** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
|
|
6188
|
+
orgWindowLimitUsd: string;
|
|
6189
|
+
/** Positive USD limit for each sub-organization, no greater than the parent limit. */
|
|
6190
|
+
subOrgWindowLimitUsd: string;
|
|
6191
|
+
/** Positive rolling window duration in minutes, at most 153722867. */
|
|
6192
|
+
windowDurationMinutes: string;
|
|
6193
|
+
/** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
|
|
6194
|
+
enabled: boolean;
|
|
6195
|
+
};
|
|
6196
|
+
export type v1UpsertSwapFeeSponsorshipLimitConfigRequest = {
|
|
6197
|
+
type: "ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG";
|
|
6198
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
6199
|
+
timestampMs: string;
|
|
6200
|
+
/** Unique identifier for a given Organization. */
|
|
6201
|
+
organizationId: string;
|
|
6202
|
+
parameters: v1UpsertSwapFeeSponsorshipLimitConfigIntent;
|
|
6203
|
+
};
|
|
6204
|
+
export type v1UpsertSwapFeeSponsorshipLimitConfigResult = {
|
|
6205
|
+
/** Unique identifier of the organization the limit config was saved for. */
|
|
6206
|
+
organizationId: string;
|
|
6207
|
+
};
|
|
6208
|
+
export type v1UpsertSwapFixedRateLimitConfigIntent = {
|
|
6209
|
+
/** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
|
|
6210
|
+
orgWindowLimitUsd: string;
|
|
6211
|
+
/** Positive USD limit for each sub-organization, no greater than the parent limit. */
|
|
6212
|
+
subOrgWindowLimitUsd: string;
|
|
6213
|
+
/** Positive rolling window duration in minutes, at most 153722867. */
|
|
6214
|
+
windowDurationMinutes: string;
|
|
6215
|
+
/** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
|
|
6216
|
+
enabled: boolean;
|
|
6217
|
+
};
|
|
6218
|
+
export type v1UpsertSwapFixedRateLimitConfigRequest = {
|
|
6219
|
+
type: "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG";
|
|
6220
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
6221
|
+
timestampMs: string;
|
|
6222
|
+
/** Unique identifier for a given Organization. */
|
|
6223
|
+
organizationId: string;
|
|
6224
|
+
parameters: v1UpsertSwapFixedRateLimitConfigIntent;
|
|
6225
|
+
};
|
|
6226
|
+
export type v1UpsertSwapFixedRateLimitConfigResult = {
|
|
6227
|
+
/** Unique identifier of the organization the limit config was saved for. */
|
|
6228
|
+
organizationId: string;
|
|
6229
|
+
};
|
|
5907
6230
|
export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
|
|
5908
6231
|
export type v1User = {
|
|
5909
6232
|
/** Unique identifier for a given User. */
|
|
@@ -6029,8 +6352,8 @@ export type v1VelocityControlAggregationWindow = {
|
|
|
6029
6352
|
};
|
|
6030
6353
|
export type v1VelocityControlAggregationWindowInfinite = {};
|
|
6031
6354
|
export type v1VelocityControlAggregationWindowRolling = {
|
|
6032
|
-
/** Duration of the rolling window, in seconds
|
|
6033
|
-
duration:
|
|
6355
|
+
/** Duration of the rolling window, in seconds. */
|
|
6356
|
+
duration: number;
|
|
6034
6357
|
};
|
|
6035
6358
|
export type v1VelocityControlDataSource = {
|
|
6036
6359
|
/** Uses transfers of the listed on-chain assets as input data. */
|
|
@@ -6057,8 +6380,8 @@ export type v1VelocityControlDataSourceChainAssetTransfer = {
|
|
|
6057
6380
|
export type v1VelocityControlDataSourceChainAssetTransferDefinition = {
|
|
6058
6381
|
/** CAIP-19 identifier for the asset. */
|
|
6059
6382
|
caip19: string;
|
|
6060
|
-
/**
|
|
6061
|
-
decimals:
|
|
6383
|
+
/** Integer between 0 and 255 (inclusive) that specifies the number of decimal places for the asset. */
|
|
6384
|
+
decimals: number;
|
|
6062
6385
|
};
|
|
6063
6386
|
export type v1VelocityControlDataSourceChainAssetTransferFilter = {
|
|
6064
6387
|
/** Activity types whose asset transfers are included. */
|
|
@@ -6309,6 +6632,22 @@ export type TGetClaimEarnFeesStatusBody = {
|
|
|
6309
6632
|
export type TGetClaimEarnFeesStatusInput = {
|
|
6310
6633
|
body: TGetClaimEarnFeesStatusBody;
|
|
6311
6634
|
};
|
|
6635
|
+
export type TGetEarnClaimRewardsStatusResponse = {
|
|
6636
|
+
/** Status of the rewards claim. */
|
|
6637
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
6638
|
+
/** Transaction hash of the rewards claim, once available. */
|
|
6639
|
+
claimTxHash?: string;
|
|
6640
|
+
/** Reason the rewards claim transaction failed, when status is FAILED. */
|
|
6641
|
+
error?: string;
|
|
6642
|
+
};
|
|
6643
|
+
export type TGetEarnClaimRewardsStatusBody = {
|
|
6644
|
+
organizationId?: string;
|
|
6645
|
+
/** The claim_request_id returned by EarnClaimRewards. */
|
|
6646
|
+
claimRequestId: string;
|
|
6647
|
+
};
|
|
6648
|
+
export type TGetEarnClaimRewardsStatusInput = {
|
|
6649
|
+
body: TGetEarnClaimRewardsStatusBody;
|
|
6650
|
+
};
|
|
6312
6651
|
export type TGetEarnDeployStatusResponse = {
|
|
6313
6652
|
/** Status of the wrapper deployment. */
|
|
6314
6653
|
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
@@ -6589,6 +6928,16 @@ export type TGetSmartContractInterfaceBody = {
|
|
|
6589
6928
|
export type TGetSmartContractInterfaceInput = {
|
|
6590
6929
|
body: TGetSmartContractInterfaceBody;
|
|
6591
6930
|
};
|
|
6931
|
+
export type TGetSwapSponsorshipUsageResponse = {
|
|
6932
|
+
feeSponsorship: v1SwapSponsorshipFeature;
|
|
6933
|
+
fixedRate: v1SwapSponsorshipFeature;
|
|
6934
|
+
};
|
|
6935
|
+
export type TGetSwapSponsorshipUsageBody = {
|
|
6936
|
+
organizationId?: string;
|
|
6937
|
+
};
|
|
6938
|
+
export type TGetSwapSponsorshipUsageInput = {
|
|
6939
|
+
body: TGetSwapSponsorshipUsageBody;
|
|
6940
|
+
};
|
|
6592
6941
|
export type TGetSwapStatusResponse = {
|
|
6593
6942
|
/** Normalized swap status. One of PENDING, COMPLETED, FAILED. */
|
|
6594
6943
|
status: string;
|
|
@@ -6665,6 +7014,22 @@ export type TGetTvcDeploymentDebugLogsBody = {
|
|
|
6665
7014
|
export type TGetTvcDeploymentDebugLogsInput = {
|
|
6666
7015
|
body: TGetTvcDeploymentDebugLogsBody;
|
|
6667
7016
|
};
|
|
7017
|
+
export type TGetTvcDeploymentProvisioningDetailsResponse = {
|
|
7018
|
+
/** The attestation document of the provisioning enclave. Present only when a deployment is awaiting provisioning. */
|
|
7019
|
+
attestationDocument?: string;
|
|
7020
|
+
/** The manifest envelope containing the TVC deployment's manifest and signatures. Present only when a deployment is awaiting provisioning. */
|
|
7021
|
+
manifestEnvelope?: string;
|
|
7022
|
+
/** Current provisioning state. */
|
|
7023
|
+
provisioningState: v1ProvisioningState;
|
|
7024
|
+
};
|
|
7025
|
+
export type TGetTvcDeploymentProvisioningDetailsBody = {
|
|
7026
|
+
organizationId?: string;
|
|
7027
|
+
/** Unique identifier for a given TVC Deployment. */
|
|
7028
|
+
deploymentId: string;
|
|
7029
|
+
};
|
|
7030
|
+
export type TGetTvcDeploymentProvisioningDetailsInput = {
|
|
7031
|
+
body: TGetTvcDeploymentProvisioningDetailsBody;
|
|
7032
|
+
};
|
|
6668
7033
|
export type TGetTvcQosVersionsResponse = {
|
|
6669
7034
|
/** QOS versions supported for new TVC deployments. */
|
|
6670
7035
|
availableVersions: string[];
|
|
@@ -6786,6 +7151,20 @@ export type TListEarnPositionsBody = {
|
|
|
6786
7151
|
export type TListEarnPositionsInput = {
|
|
6787
7152
|
body: TListEarnPositionsBody;
|
|
6788
7153
|
};
|
|
7154
|
+
export type TListEarnRewardsResponse = {
|
|
7155
|
+
/** The wallet's rewards, one entry per (chain, reward token), sorted by chain then token. Entries where every amount is zero are omitted. */
|
|
7156
|
+
rewards?: v1EarnReward[];
|
|
7157
|
+
};
|
|
7158
|
+
export type TListEarnRewardsBody = {
|
|
7159
|
+
organizationId?: string;
|
|
7160
|
+
/** The wallet address to return rewards for. */
|
|
7161
|
+
walletAddress: string;
|
|
7162
|
+
/** Optional filter: only return rewards on this chain (e.g. 'eip155:8453'). When unset, every chain the organization has deployed Earn wrappers on is queried. */
|
|
7163
|
+
caip2?: string;
|
|
7164
|
+
};
|
|
7165
|
+
export type TListEarnRewardsInput = {
|
|
7166
|
+
body: TListEarnRewardsBody;
|
|
7167
|
+
};
|
|
6789
7168
|
export type TListEarnVaultsResponse = {
|
|
6790
7169
|
/** The catalog of wrappable vaults, sorted by TVL (USD) descending. To page, pass page_info.end_cursor as the pagination after cursor. */
|
|
6791
7170
|
vaults?: v1EarnVault[];
|
|
@@ -6970,10 +7349,30 @@ export type TGetTvcAppsResponse = {
|
|
|
6970
7349
|
};
|
|
6971
7350
|
export type TGetTvcAppsBody = {
|
|
6972
7351
|
organizationId?: string;
|
|
7352
|
+
/** Filter TVC Apps by whether they have a live deployment. If omitted, all TVC Apps are returned. */
|
|
7353
|
+
isLive?: boolean;
|
|
6973
7354
|
};
|
|
6974
7355
|
export type TGetTvcAppsInput = {
|
|
6975
7356
|
body: TGetTvcAppsBody;
|
|
6976
7357
|
};
|
|
7358
|
+
export type TGetTvcOperatorsResponse = {
|
|
7359
|
+
tvcOperators: v1TvcOperator[];
|
|
7360
|
+
};
|
|
7361
|
+
export type TGetTvcOperatorsBody = {
|
|
7362
|
+
organizationId?: string;
|
|
7363
|
+
};
|
|
7364
|
+
export type TGetTvcOperatorsInput = {
|
|
7365
|
+
body: TGetTvcOperatorsBody;
|
|
7366
|
+
};
|
|
7367
|
+
export type TGetTvcQuorumKeysResponse = {
|
|
7368
|
+
tvcQuorumKeys: v1TvcQuorumKey[];
|
|
7369
|
+
};
|
|
7370
|
+
export type TGetTvcQuorumKeysBody = {
|
|
7371
|
+
organizationId?: string;
|
|
7372
|
+
};
|
|
7373
|
+
export type TGetTvcQuorumKeysInput = {
|
|
7374
|
+
body: TGetTvcQuorumKeysBody;
|
|
7375
|
+
};
|
|
6977
7376
|
export type TListUserTagsResponse = {
|
|
6978
7377
|
/** A list of user tags. */
|
|
6979
7378
|
userTags: datav1Tag[];
|
|
@@ -7000,7 +7399,7 @@ export type TGetVerifiedSubOrgIdsResponse = {
|
|
|
7000
7399
|
};
|
|
7001
7400
|
export type TGetVerifiedSubOrgIdsBody = {
|
|
7002
7401
|
organizationId?: string;
|
|
7003
|
-
/** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER'
|
|
7402
|
+
/** Specifies the type of filter to apply, i.e 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN', 'OAUTH_CLAIM', or 'PUBLIC_KEY' */
|
|
7004
7403
|
filterType?: string;
|
|
7005
7404
|
/** The value of the filter to apply for the specified type. For example, a specific email or phone number string. */
|
|
7006
7405
|
filterValue?: string;
|
|
@@ -7060,7 +7459,7 @@ export type TValidateTvcImageInput = {
|
|
|
7060
7459
|
body: TValidateTvcImageBody;
|
|
7061
7460
|
};
|
|
7062
7461
|
export type TGetWhoamiResponse = {
|
|
7063
|
-
/** Unique identifier for a given
|
|
7462
|
+
/** Unique identifier for a given Organization. */
|
|
7064
7463
|
organizationId: string;
|
|
7065
7464
|
/** Human-readable name for an organization. */
|
|
7066
7465
|
organizationName: string;
|
|
@@ -7319,6 +7718,8 @@ export type TCreatePrivateKeysBody = {
|
|
|
7319
7718
|
organizationId?: string;
|
|
7320
7719
|
/** A list of Private Keys. */
|
|
7321
7720
|
privateKeys: v1PrivateKeyParams[];
|
|
7721
|
+
/** The public key of the external signer to use for creating the private keys. */
|
|
7722
|
+
externalSignerPubkey?: string;
|
|
7322
7723
|
generateAppProofs?: boolean;
|
|
7323
7724
|
};
|
|
7324
7725
|
export type TCreatePrivateKeysInput = {
|
|
@@ -7458,8 +7859,8 @@ export type TCreateSubOrganizationInput = {
|
|
|
7458
7859
|
};
|
|
7459
7860
|
export type TCreateSwapQuoteResponse = {
|
|
7460
7861
|
activity: v1Activity;
|
|
7461
|
-
/** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to
|
|
7462
|
-
quotes:
|
|
7862
|
+
/** One or more provider quotes for this request. Today this contains a single Relay quote; pass quotes[i].quoteId to execute_swap to bind execution. */
|
|
7863
|
+
quotes: v1SwapQuoteV2[];
|
|
7463
7864
|
};
|
|
7464
7865
|
export type TCreateSwapQuoteBody = {
|
|
7465
7866
|
timestampMs?: string;
|
|
@@ -7476,6 +7877,10 @@ export type TCreateSwapQuoteBody = {
|
|
|
7476
7877
|
slippageBps?: string;
|
|
7477
7878
|
/** Raw public address that receives the output asset. Required for cross-protocol swaps. The address must match the output token protocol. Wallet account IDs, private key IDs, and CAIP account or asset identifiers are not supported. */
|
|
7478
7879
|
destinationAddress?: string;
|
|
7880
|
+
/** When true, Turnkey pays the provider fees for this swap and invoices them to the billing parent organization. Requires the FEATURE_NAME_SWAP_FEE_SPONSORSHIP organization feature. Defaults to false. */
|
|
7881
|
+
feeSponsorship?: boolean;
|
|
7882
|
+
/** When true, requests a 1:1 conversion before fees between supported stablecoins. Requires the FEATURE_NAME_SWAP_FIXED_RATE organization feature. Defaults to false. */
|
|
7883
|
+
fixedRate?: boolean;
|
|
7479
7884
|
generateAppProofs?: boolean;
|
|
7480
7885
|
};
|
|
7481
7886
|
export type TCreateSwapQuoteInput = {
|
|
@@ -7557,6 +7962,10 @@ export type TCreateTvcDeploymentBody = {
|
|
|
7557
7962
|
publicIngressPort: number;
|
|
7558
7963
|
/** Optional desired replica count for this deployment. */
|
|
7559
7964
|
replicas?: number;
|
|
7965
|
+
/** Optional desired instance cpu count. */
|
|
7966
|
+
instanceSizeCpus?: number;
|
|
7967
|
+
/** Optional desired instance memory size in GiB. */
|
|
7968
|
+
instanceSizeRam?: number;
|
|
7560
7969
|
};
|
|
7561
7970
|
export type TCreateTvcDeploymentInput = {
|
|
7562
7971
|
body: TCreateTvcDeploymentBody;
|
|
@@ -7577,6 +7986,54 @@ export type TCreateTvcManifestApprovalsBody = {
|
|
|
7577
7986
|
export type TCreateTvcManifestApprovalsInput = {
|
|
7578
7987
|
body: TCreateTvcManifestApprovalsBody;
|
|
7579
7988
|
};
|
|
7989
|
+
export type TCreateTvcOperatorResponse = {
|
|
7990
|
+
activity: v1Activity;
|
|
7991
|
+
/** The unique identifier for the wallet containing TVC operator accounts */
|
|
7992
|
+
walletId: string;
|
|
7993
|
+
/** The unique identifier for the TVC operator */
|
|
7994
|
+
operatorId: string;
|
|
7995
|
+
/** Public encryption key for this TVC operator */
|
|
7996
|
+
encryptPublicKey: string;
|
|
7997
|
+
/** Public signing key for this TVC operator */
|
|
7998
|
+
signPublicKey: string;
|
|
7999
|
+
};
|
|
8000
|
+
export type TCreateTvcOperatorBody = {
|
|
8001
|
+
timestampMs?: string;
|
|
8002
|
+
organizationId?: string;
|
|
8003
|
+
/** Human-readable name for a new wallet created for this TVC operator */
|
|
8004
|
+
walletName?: string;
|
|
8005
|
+
/** Unique identifier for an existing wallet to reuse for this TVC operator */
|
|
8006
|
+
walletId?: string;
|
|
8007
|
+
/** Base derivation path for creating TVC operator wallet accounts */
|
|
8008
|
+
path: string;
|
|
8009
|
+
/** Human-readable name for this new TVC operator */
|
|
8010
|
+
operatorName: string;
|
|
8011
|
+
generateAppProofs?: boolean;
|
|
8012
|
+
};
|
|
8013
|
+
export type TCreateTvcOperatorInput = {
|
|
8014
|
+
body: TCreateTvcOperatorBody;
|
|
8015
|
+
};
|
|
8016
|
+
export type TCreateTvcQuorumKeyResponse = {
|
|
8017
|
+
activity: v1Activity;
|
|
8018
|
+
/** The unique identifier for the TVC quorum key */
|
|
8019
|
+
quorumKeyId: string;
|
|
8020
|
+
/** Public key for the generated TVC quorum key */
|
|
8021
|
+
quorumPublicKey: string;
|
|
8022
|
+
/** The unique identifier(s) for the generated TVC quorum key shares */
|
|
8023
|
+
shareIds: string[];
|
|
8024
|
+
};
|
|
8025
|
+
export type TCreateTvcQuorumKeyBody = {
|
|
8026
|
+
timestampMs?: string;
|
|
8027
|
+
organizationId?: string;
|
|
8028
|
+
/** The threshold of operators needed to reassemble this TVC quorum key */
|
|
8029
|
+
threshold: number;
|
|
8030
|
+
/** Operator public keys used to encrypt and later approve the generated TVC quorum key shares */
|
|
8031
|
+
operatorEncryptKeys: string[];
|
|
8032
|
+
generateAppProofs?: boolean;
|
|
8033
|
+
};
|
|
8034
|
+
export type TCreateTvcQuorumKeyInput = {
|
|
8035
|
+
body: TCreateTvcQuorumKeyBody;
|
|
8036
|
+
};
|
|
7580
8037
|
export type TCreateUserTagResponse = {
|
|
7581
8038
|
activity: v1Activity;
|
|
7582
8039
|
/** Unique identifier for a given User Tag. */
|
|
@@ -8003,6 +8460,25 @@ export type TDeleteWebhookEndpointBody = {
|
|
|
8003
8460
|
export type TDeleteWebhookEndpointInput = {
|
|
8004
8461
|
body: TDeleteWebhookEndpointBody;
|
|
8005
8462
|
};
|
|
8463
|
+
export type TEarnClaimRewardsResponse = {
|
|
8464
|
+
activity: v1Activity;
|
|
8465
|
+
/** Identifier to poll claim status and tx hash via GetEarnClaimRewardsStatus. */
|
|
8466
|
+
claimRequestId: string;
|
|
8467
|
+
};
|
|
8468
|
+
export type TEarnClaimRewardsBody = {
|
|
8469
|
+
timestampMs?: string;
|
|
8470
|
+
organizationId?: string;
|
|
8471
|
+
/** A Turnkey-managed wallet address the rewards are attributed to. The claim transaction is signed by this wallet and the Merkl Distributor transfers every reward token to it. */
|
|
8472
|
+
signWith: string;
|
|
8473
|
+
/** CAIP-2 chain to claim rewards on (e.g. 'eip155:8453'). Rewards accrue per chain; see ListEarnRewards. */
|
|
8474
|
+
caip2: string;
|
|
8475
|
+
/** Whether to sponsor this transaction via Gas Station. */
|
|
8476
|
+
sponsor?: boolean;
|
|
8477
|
+
generateAppProofs?: boolean;
|
|
8478
|
+
};
|
|
8479
|
+
export type TEarnClaimRewardsInput = {
|
|
8480
|
+
body: TEarnClaimRewardsBody;
|
|
8481
|
+
};
|
|
8006
8482
|
export type TEarnDeployWrapperResponse = {
|
|
8007
8483
|
activity: v1Activity;
|
|
8008
8484
|
/** Address of the deployed fee wrapper (the deposit target). */
|
|
@@ -8018,7 +8494,7 @@ export type TEarnDeployWrapperBody = {
|
|
|
8018
8494
|
/** Address of the underlying yield vault to wrap (from the ListEarnVaults catalog). */
|
|
8019
8495
|
vaultAddress: string;
|
|
8020
8496
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
8021
|
-
|
|
8497
|
+
caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
8022
8498
|
/** Your fee on gross yield, in basis points (e.g., '2000' for 20%). Maximum is 4000 (40%). */
|
|
8023
8499
|
clientFeeBps: string;
|
|
8024
8500
|
/** The wallet address that receives the client's fee payouts on-chain. Must be a Turnkey-managed wallet address. */
|
|
@@ -8043,7 +8519,7 @@ export type TEarnDepositBody = {
|
|
|
8043
8519
|
/** Amount of the underlying asset to deposit, in raw on-chain units (e.g., '1000000' for 1 USDC at 6 decimals). */
|
|
8044
8520
|
assets: string;
|
|
8045
8521
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
8046
|
-
|
|
8522
|
+
caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
8047
8523
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
8048
8524
|
sponsor?: boolean;
|
|
8049
8525
|
generateAppProofs?: boolean;
|
|
@@ -8083,7 +8559,7 @@ export type TEarnWithdrawBody = {
|
|
|
8083
8559
|
/** 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. */
|
|
8084
8560
|
signWith: string;
|
|
8085
8561
|
/** CAIP-2 chain ID the vault lives on (e.g., 'eip155:8453' for Base). */
|
|
8086
|
-
|
|
8562
|
+
caip2: "eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:137" | "eip155:56" | "eip155:4217" | "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
8087
8563
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
8088
8564
|
sponsor?: boolean;
|
|
8089
8565
|
/** The amount of the underlying asset to withdraw, in raw on-chain units. Pass 'MAX' to withdraw the entire position. */
|
|
@@ -8642,6 +9118,49 @@ export type TOtpLoginBody = {
|
|
|
8642
9118
|
export type TOtpLoginInput = {
|
|
8643
9119
|
body: TOtpLoginBody;
|
|
8644
9120
|
};
|
|
9121
|
+
export type TPostTvcQuorumKeyShareResponse = {
|
|
9122
|
+
activity: v1Activity;
|
|
9123
|
+
/** The unique identifier for the provisioning quorum key share */
|
|
9124
|
+
provisioningShareId: string;
|
|
9125
|
+
};
|
|
9126
|
+
export type TPostTvcQuorumKeyShareBody = {
|
|
9127
|
+
timestampMs?: string;
|
|
9128
|
+
organizationId?: string;
|
|
9129
|
+
/** Unique identifier of the TVC deployment receiving quorum key share */
|
|
9130
|
+
deploymentId: string;
|
|
9131
|
+
/** Hex-encoded ephemeral public key used to encrypt the quorum key share */
|
|
9132
|
+
ephemeralPublicKeyHex: string;
|
|
9133
|
+
/** Re-encrypted quorum key share and approval */
|
|
9134
|
+
shareApprovalBundle: v1QuorumKeyShareApprovalBundle;
|
|
9135
|
+
};
|
|
9136
|
+
export type TPostTvcQuorumKeyShareInput = {
|
|
9137
|
+
body: TPostTvcQuorumKeyShareBody;
|
|
9138
|
+
};
|
|
9139
|
+
export type TReEncryptTvcQuorumKeyShareResponse = {
|
|
9140
|
+
activity: v1Activity;
|
|
9141
|
+
/** The unique identifier for the provisioning quorum key share */
|
|
9142
|
+
provisioningShareId: string;
|
|
9143
|
+
};
|
|
9144
|
+
export type TReEncryptTvcQuorumKeyShareBody = {
|
|
9145
|
+
timestampMs?: string;
|
|
9146
|
+
organizationId?: string;
|
|
9147
|
+
/** Base64-encoded attestation document for the TVC deployment provisioning enclave */
|
|
9148
|
+
attestationDocB64: string;
|
|
9149
|
+
/** Base64-encoded manifest for the TVC deployment */
|
|
9150
|
+
manifestB64: string;
|
|
9151
|
+
/** Operator encryption public key used to encrypt the hosted TVC quorum key share */
|
|
9152
|
+
operatorEncryptKey: string;
|
|
9153
|
+
/** Operator signing public key used to approve the TVC manifest */
|
|
9154
|
+
operatorSignKey: string;
|
|
9155
|
+
/** Unique identifier of the TVC deployment receiving the re-encrypted quorum key share */
|
|
9156
|
+
deploymentId: string;
|
|
9157
|
+
/** Quorum key for the TVC application */
|
|
9158
|
+
appQuorumKey: string;
|
|
9159
|
+
generateAppProofs?: boolean;
|
|
9160
|
+
};
|
|
9161
|
+
export type TReEncryptTvcQuorumKeyShareInput = {
|
|
9162
|
+
body: TReEncryptTvcQuorumKeyShareBody;
|
|
9163
|
+
};
|
|
8645
9164
|
export type TRecoverUserResponse = {
|
|
8646
9165
|
activity: v1Activity;
|
|
8647
9166
|
/** ID of the authenticator created. */
|
|
@@ -8766,11 +9285,11 @@ export type TUpdateTvcAppLiveDeploymentInput = {
|
|
|
8766
9285
|
};
|
|
8767
9286
|
export type TSignRawPayloadResponse = {
|
|
8768
9287
|
activity: v1Activity;
|
|
8769
|
-
/** Component of
|
|
9288
|
+
/** Component of a cryptographic signature, meaning varies based on signing scheme. */
|
|
8770
9289
|
r: string;
|
|
8771
|
-
/** Component of
|
|
9290
|
+
/** Component of a cryptographic signature, meaning varies based on signing scheme. */
|
|
8772
9291
|
s: string;
|
|
8773
|
-
/**
|
|
9292
|
+
/** Recovery ID for ECDSA signatures, "00" otherwise. */
|
|
8774
9293
|
v: string;
|
|
8775
9294
|
};
|
|
8776
9295
|
export type TSignRawPayloadBody = {
|
|
@@ -8784,6 +9303,8 @@ export type TSignRawPayloadBody = {
|
|
|
8784
9303
|
encoding: v1PayloadEncoding;
|
|
8785
9304
|
/** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
|
|
8786
9305
|
hashFunction: v1HashFunction;
|
|
9306
|
+
/** The public key of the external signer to use for signing the payload. */
|
|
9307
|
+
externalSignerPubkey?: string;
|
|
8787
9308
|
generateAppProofs?: boolean;
|
|
8788
9309
|
};
|
|
8789
9310
|
export type TSignRawPayloadInput = {
|
|
@@ -8804,6 +9325,8 @@ export type TSignRawPayloadsBody = {
|
|
|
8804
9325
|
encoding: v1PayloadEncoding;
|
|
8805
9326
|
/** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
|
|
8806
9327
|
hashFunction: v1HashFunction;
|
|
9328
|
+
/** The public key of the external signer to use for signing the payloads. */
|
|
9329
|
+
externalSignerPubkey?: string;
|
|
8807
9330
|
generateAppProofs?: boolean;
|
|
8808
9331
|
};
|
|
8809
9332
|
export type TSignRawPayloadsInput = {
|
|
@@ -8821,6 +9344,8 @@ export type TSignTransactionBody = {
|
|
|
8821
9344
|
/** Raw unsigned transaction to be signed */
|
|
8822
9345
|
unsignedTransaction: string;
|
|
8823
9346
|
type: v1TransactionType;
|
|
9347
|
+
/** The public key of the external signer to use for signing this transaction. */
|
|
9348
|
+
externalSignerPubkey?: string;
|
|
8824
9349
|
generateAppProofs?: boolean;
|
|
8825
9350
|
};
|
|
8826
9351
|
export type TSignTransactionInput = {
|
|
@@ -9219,6 +9744,7 @@ export type TUpsertSwapConfigResponse = {
|
|
|
9219
9744
|
export type TUpsertSwapConfigBody = {
|
|
9220
9745
|
timestampMs?: string;
|
|
9221
9746
|
organizationId?: string;
|
|
9747
|
+
/** Organization-owned wallet account that receives swap fees. Required when fee_bps is set. Omit together with fee_bps to clear swap fees. */
|
|
9222
9748
|
feeReceiverWalletAddress?: string;
|
|
9223
9749
|
/** Client fee in basis points applied to swaps; used for all pairs unless stable_fee_bps is set. */
|
|
9224
9750
|
feeBps?: string;
|
|
@@ -9229,6 +9755,46 @@ export type TUpsertSwapConfigBody = {
|
|
|
9229
9755
|
export type TUpsertSwapConfigInput = {
|
|
9230
9756
|
body: TUpsertSwapConfigBody;
|
|
9231
9757
|
};
|
|
9758
|
+
export type TUpsertSwapFeeSponsorshipLimitConfigResponse = {
|
|
9759
|
+
activity: v1Activity;
|
|
9760
|
+
/** Unique identifier of the organization the limit config was saved for. */
|
|
9761
|
+
organizationId: string;
|
|
9762
|
+
};
|
|
9763
|
+
export type TUpsertSwapFeeSponsorshipLimitConfigBody = {
|
|
9764
|
+
timestampMs?: string;
|
|
9765
|
+
organizationId?: string;
|
|
9766
|
+
/** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
|
|
9767
|
+
orgWindowLimitUsd: string;
|
|
9768
|
+
/** Positive USD limit for each sub-organization, no greater than the parent limit. */
|
|
9769
|
+
subOrgWindowLimitUsd: string;
|
|
9770
|
+
/** Positive rolling window duration in minutes, at most 153722867. */
|
|
9771
|
+
windowDurationMinutes: string;
|
|
9772
|
+
/** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
|
|
9773
|
+
enabled: boolean;
|
|
9774
|
+
};
|
|
9775
|
+
export type TUpsertSwapFeeSponsorshipLimitConfigInput = {
|
|
9776
|
+
body: TUpsertSwapFeeSponsorshipLimitConfigBody;
|
|
9777
|
+
};
|
|
9778
|
+
export type TUpsertSwapFixedRateLimitConfigResponse = {
|
|
9779
|
+
activity: v1Activity;
|
|
9780
|
+
/** Unique identifier of the organization the limit config was saved for. */
|
|
9781
|
+
organizationId: string;
|
|
9782
|
+
};
|
|
9783
|
+
export type TUpsertSwapFixedRateLimitConfigBody = {
|
|
9784
|
+
timestampMs?: string;
|
|
9785
|
+
organizationId?: string;
|
|
9786
|
+
/** Positive USD limit shared by the billing parent and its sub-organizations. At most 18 integer and 12 fractional digits. */
|
|
9787
|
+
orgWindowLimitUsd: string;
|
|
9788
|
+
/** Positive USD limit for each sub-organization, no greater than the parent limit. */
|
|
9789
|
+
subOrgWindowLimitUsd: string;
|
|
9790
|
+
/** Positive rolling window duration in minutes, at most 153722867. */
|
|
9791
|
+
windowDurationMinutes: string;
|
|
9792
|
+
/** Whether this spending window permits new swaps. Setting false only turns the saved window off and keeps its limits; it doesn't require the signed permission. This does not grant or remove the signed organization permission. */
|
|
9793
|
+
enabled: boolean;
|
|
9794
|
+
};
|
|
9795
|
+
export type TUpsertSwapFixedRateLimitConfigInput = {
|
|
9796
|
+
body: TUpsertSwapFixedRateLimitConfigBody;
|
|
9797
|
+
};
|
|
9232
9798
|
export type TVerifyOtpResponse = {
|
|
9233
9799
|
activity: v1Activity;
|
|
9234
9800
|
/** 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) */
|
|
@@ -9329,7 +9895,7 @@ export type TSolSendTransactionResponse = {
|
|
|
9329
9895
|
export type TSolSendTransactionBody = {
|
|
9330
9896
|
timestampMs?: string;
|
|
9331
9897
|
organizationId?: string;
|
|
9332
|
-
/**
|
|
9898
|
+
/** Hex-encoded serialized unsigned Solana transaction in full wire format. Legacy/V0 transactions allow 1232 bytes. V1 allows 4096 bytes with up to 12 trailing 64-byte signature slots, including the paymaster for sponsored transactions. Fill unsigned slots with zeroes. */
|
|
9333
9899
|
unsignedTransaction: string;
|
|
9334
9900
|
/** A wallet or private key address to sign with. This does not support private key IDs. */
|
|
9335
9901
|
signWith: string;
|
|
@@ -9352,9 +9918,9 @@ export type TSolSendTransactionV2Response = {
|
|
|
9352
9918
|
export type TSolSendTransactionV2Body = {
|
|
9353
9919
|
timestampMs?: string;
|
|
9354
9920
|
organizationId?: string;
|
|
9355
|
-
/** Hex-encoded serialized unsigned Solana transaction
|
|
9921
|
+
/** Hex-encoded serialized unsigned Solana transaction in full wire format. Legacy/V0 transactions allow 1232 bytes. V1 allows 4096 bytes with up to 12 trailing 64-byte signature slots, including the paymaster for sponsored transactions. Fill unsigned slots with zeroes. */
|
|
9356
9922
|
unsignedTransaction: string;
|
|
9357
|
-
/** 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. */
|
|
9923
|
+
/** Ordered Solana signer addresses Turnkey signs with. Between 1 and 16 signers for legacy/V0, or up to 12 for V1 (11 when sponsored). For sponsored transactions this must list every required signer of the transaction in transaction order. */
|
|
9358
9924
|
signWiths: string[];
|
|
9359
9925
|
/** Whether to sponsor this transaction via Gas Station. */
|
|
9360
9926
|
sponsor?: boolean;
|
|
@@ -9369,6 +9935,8 @@ export type TSolSendTransactionV2Input = {
|
|
|
9369
9935
|
};
|
|
9370
9936
|
export type ProxyTGetAccountResponse = {
|
|
9371
9937
|
organizationId?: string;
|
|
9938
|
+
/** True when the organization was matched by verified email and the OIDC token is not yet a registered identity on it. */
|
|
9939
|
+
requiresSocialLinking?: boolean;
|
|
9372
9940
|
};
|
|
9373
9941
|
export type ProxyTGetAccountBody = {
|
|
9374
9942
|
/** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN' or 'PUBLIC_KEY' */
|
|
@@ -9379,6 +9947,8 @@ export type ProxyTGetAccountBody = {
|
|
|
9379
9947
|
verificationToken?: string;
|
|
9380
9948
|
/** OIDC token to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. Needed for social linking when verification_token is not available. */
|
|
9381
9949
|
oidcToken?: string;
|
|
9950
|
+
/** Whether to include requires_social_linking in the response. Only applies when filter_type is 'OIDC_TOKEN'. */
|
|
9951
|
+
includeRequiresSocialLinking?: boolean;
|
|
9382
9952
|
};
|
|
9383
9953
|
export type ProxyTGetAccountInput = {
|
|
9384
9954
|
body: ProxyTGetAccountBody;
|