@turnkey/http 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +75 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +126 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +126 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +21386 -8202
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +121 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +112 -2
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +410 -19
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +4 -4
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export type paths = {
|
|
6
|
+
"/public/v1/query/get_active_policies": {
|
|
7
|
+
/** For each policy in an organization, report whether it is currently active based on the enclave's trusted timestamp and the policy's time window (if any). Policies without a time field are always active. */
|
|
8
|
+
post: operations["PublicApiService_GetActivePolicies"];
|
|
9
|
+
};
|
|
6
10
|
"/public/v1/query/get_activity": {
|
|
7
11
|
/** Get details about an activity. */
|
|
8
12
|
post: operations["PublicApiService_GetActivity"];
|
|
@@ -151,6 +155,10 @@ export type paths = {
|
|
|
151
155
|
/** Get details about a user. */
|
|
152
156
|
post: operations["PublicApiService_GetUser"];
|
|
153
157
|
};
|
|
158
|
+
"/public/v1/query/get_velocity_control": {
|
|
159
|
+
/** Get details about a velocity control. */
|
|
160
|
+
post: operations["PublicApiService_GetVelocityControl"];
|
|
161
|
+
};
|
|
154
162
|
"/public/v1/query/get_wallet": {
|
|
155
163
|
/** Get details about a wallet. */
|
|
156
164
|
post: operations["PublicApiService_GetWallet"];
|
|
@@ -247,6 +255,10 @@ export type paths = {
|
|
|
247
255
|
/** List all users within an organization. */
|
|
248
256
|
post: operations["PublicApiService_GetUsers"];
|
|
249
257
|
};
|
|
258
|
+
"/public/v1/query/list_velocity_controls": {
|
|
259
|
+
/** List all velocity controls within an organization. */
|
|
260
|
+
post: operations["PublicApiService_ListVelocityControls"];
|
|
261
|
+
};
|
|
250
262
|
"/public/v1/query/list_verified_suborgs": {
|
|
251
263
|
/** Get all email or phone verified suborg IDs associated given a parent org ID. */
|
|
252
264
|
post: operations["PublicApiService_GetVerifiedSubOrgIds"];
|
|
@@ -383,6 +395,10 @@ export type paths = {
|
|
|
383
395
|
/** Create users in an existing organization. Each user must have at least one valid credential: an API key, an authenticator, an OAuth provider, or an email or phone number with a login method enabled on the organization (email, email OTP, or SMS). */
|
|
384
396
|
post: operations["PublicApiService_CreateUsers"];
|
|
385
397
|
};
|
|
398
|
+
"/public/v1/submit/create_velocity_control": {
|
|
399
|
+
/** Create a new velocity control. */
|
|
400
|
+
post: operations["PublicApiService_CreateVelocityControl"];
|
|
401
|
+
};
|
|
386
402
|
"/public/v1/submit/create_wallet": {
|
|
387
403
|
/** Create a wallet and derive addresses. */
|
|
388
404
|
post: operations["PublicApiService_CreateWallet"];
|
|
@@ -463,6 +479,10 @@ export type paths = {
|
|
|
463
479
|
/** Delete users within an organization. */
|
|
464
480
|
post: operations["PublicApiService_DeleteUsers"];
|
|
465
481
|
};
|
|
482
|
+
"/public/v1/submit/delete_velocity_control": {
|
|
483
|
+
/** Delete an existing velocity control. */
|
|
484
|
+
post: operations["PublicApiService_DeleteVelocityControl"];
|
|
485
|
+
};
|
|
466
486
|
"/public/v1/submit/delete_wallet_accounts": {
|
|
467
487
|
/** Delete wallet accounts for an organization. */
|
|
468
488
|
post: operations["PublicApiService_DeleteWalletAccounts"];
|
|
@@ -795,6 +815,14 @@ export type definitions = {
|
|
|
795
815
|
/** @description The email address associated with the payment method. */
|
|
796
816
|
cardHolderEmail: string;
|
|
797
817
|
};
|
|
818
|
+
billingUpdatePaymentMethodIntent: {
|
|
819
|
+
/** @description The email that will receive invoices for the payment method. */
|
|
820
|
+
paymentEmail: string;
|
|
821
|
+
};
|
|
822
|
+
billingUpdatePaymentMethodResult: {
|
|
823
|
+
/** @description The email address associated with the payment method. */
|
|
824
|
+
paymentEmail: string;
|
|
825
|
+
};
|
|
798
826
|
datav1Tag: {
|
|
799
827
|
/** @description Unique identifier for a given Tag. */
|
|
800
828
|
tagId: string;
|
|
@@ -904,6 +932,18 @@ export type definitions = {
|
|
|
904
932
|
};
|
|
905
933
|
/** @enum {string} */
|
|
906
934
|
v1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
|
|
935
|
+
v1ActivePolicyStatus: {
|
|
936
|
+
/** @description Unique identifier for the organization the policy belongs to. */
|
|
937
|
+
organizationId: string;
|
|
938
|
+
/** @description Unique identifier for a given policy. */
|
|
939
|
+
policyId: string;
|
|
940
|
+
/** @description Whether the policy is currently active. A policy without a time window is always active. */
|
|
941
|
+
active: boolean;
|
|
942
|
+
/** @description The policy's time expression, absent when the policy has no time window. */
|
|
943
|
+
timeExpr?: string;
|
|
944
|
+
/** @description Set when the policy's time expression could not be evaluated; the policy is reported inactive. */
|
|
945
|
+
error?: string;
|
|
946
|
+
};
|
|
907
947
|
v1Activity: {
|
|
908
948
|
/** @description Unique identifier for a given Activity object. */
|
|
909
949
|
id: string;
|
|
@@ -937,7 +977,7 @@ export type definitions = {
|
|
|
937
977
|
/** @enum {string} */
|
|
938
978
|
v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED" | "ACTIVITY_STATUS_AUTHENTICATORS_NEEDED";
|
|
939
979
|
/** @enum {string} */
|
|
940
|
-
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";
|
|
980
|
+
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_CONTROL" | "ACTIVITY_TYPE_UPDATE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V2" | "ACTIVITY_TYPE_EXECUTE_SWAP_V3";
|
|
941
981
|
/** @enum {string} */
|
|
942
982
|
v1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP" | "ADDRESS_FORMAT_SPARK_MAINNET" | "ADDRESS_FORMAT_SPARK_REGTEST";
|
|
943
983
|
v1ApiKey: {
|
|
@@ -1048,6 +1088,8 @@ export type definitions = {
|
|
|
1048
1088
|
name?: string;
|
|
1049
1089
|
/** @description Whether this asset is on Turnkey's stablecoin list (used for stablepair swap fee pricing). */
|
|
1050
1090
|
stable?: boolean;
|
|
1091
|
+
/** @description Earn yield providers with vaults denominated in this asset. Empty when the asset is not supported by Earn. */
|
|
1092
|
+
earnProviders?: definitions["v1EarnProvider"][];
|
|
1051
1093
|
};
|
|
1052
1094
|
v1Attestation: {
|
|
1053
1095
|
/** @description The cbor encoded then base64 url encoded id of the credential. */
|
|
@@ -1851,6 +1893,20 @@ export type definitions = {
|
|
|
1851
1893
|
/** @description 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. */
|
|
1852
1894
|
slippageBps?: string;
|
|
1853
1895
|
};
|
|
1896
|
+
v1CreateSwapQuoteIntentV2: {
|
|
1897
|
+
/** @description Wallet account address used to price the executable provider quote. Private Key identifiers are not supported. */
|
|
1898
|
+
signWith: string;
|
|
1899
|
+
/** @description CAIP-19 asset ID for the input asset. The chain is derived from this value. */
|
|
1900
|
+
inputToken: string;
|
|
1901
|
+
/** @description CAIP-19 asset ID for the output asset. */
|
|
1902
|
+
outputToken: string;
|
|
1903
|
+
/** @description Base-unit amount of the input asset. */
|
|
1904
|
+
inputAmount: string;
|
|
1905
|
+
/** @description 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. */
|
|
1906
|
+
slippageBps?: string;
|
|
1907
|
+
/** @description 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. */
|
|
1908
|
+
destinationAddress?: string;
|
|
1909
|
+
};
|
|
1854
1910
|
v1CreateSwapQuoteRequest: {
|
|
1855
1911
|
/** @enum {string} */
|
|
1856
1912
|
type: "ACTIVITY_TYPE_CREATE_SWAP_QUOTE";
|
|
@@ -2097,6 +2153,29 @@ export type definitions = {
|
|
|
2097
2153
|
/** @description A list of User IDs. */
|
|
2098
2154
|
userIds: string[];
|
|
2099
2155
|
};
|
|
2156
|
+
v1CreateVelocityControlIntent: {
|
|
2157
|
+
/** @description Human-readable name for the Velocity Control. */
|
|
2158
|
+
name: string;
|
|
2159
|
+
/** @description Data source for the Velocity Control. */
|
|
2160
|
+
dataSource: definitions["v1VelocityControlDataSource"];
|
|
2161
|
+
/** @description Aggregation expression that the Velocity Control evaluates. */
|
|
2162
|
+
aggregation: definitions["v1VelocityControlAggregation"];
|
|
2163
|
+
/** @description Identifier for the Velocity Control. Policies reference it as `controls.<identifier>`. It must be unique within the Organization. */
|
|
2164
|
+
identifier: string;
|
|
2165
|
+
};
|
|
2166
|
+
v1CreateVelocityControlRequest: {
|
|
2167
|
+
/** @enum {string} */
|
|
2168
|
+
type: "ACTIVITY_TYPE_CREATE_VELOCITY_CONTROL";
|
|
2169
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2170
|
+
timestampMs: string;
|
|
2171
|
+
/** @description Unique identifier for a given Organization. */
|
|
2172
|
+
organizationId: string;
|
|
2173
|
+
parameters: definitions["v1CreateVelocityControlIntent"];
|
|
2174
|
+
generateAppProofs?: boolean;
|
|
2175
|
+
};
|
|
2176
|
+
v1CreateVelocityControlResult: {
|
|
2177
|
+
velocityControlId: string;
|
|
2178
|
+
};
|
|
2100
2179
|
v1CreateWalletAccountsIntent: {
|
|
2101
2180
|
/** @description Unique identifier for a given Wallet. */
|
|
2102
2181
|
walletId: string;
|
|
@@ -2510,6 +2589,22 @@ export type definitions = {
|
|
|
2510
2589
|
/** @description A list of User IDs. */
|
|
2511
2590
|
userIds: string[];
|
|
2512
2591
|
};
|
|
2592
|
+
v1DeleteVelocityControlIntent: {
|
|
2593
|
+
velocityControlId: string;
|
|
2594
|
+
};
|
|
2595
|
+
v1DeleteVelocityControlRequest: {
|
|
2596
|
+
/** @enum {string} */
|
|
2597
|
+
type: "ACTIVITY_TYPE_DELETE_VELOCITY_CONTROL";
|
|
2598
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2599
|
+
timestampMs: string;
|
|
2600
|
+
/** @description Unique identifier for a given Organization. */
|
|
2601
|
+
organizationId: string;
|
|
2602
|
+
parameters: definitions["v1DeleteVelocityControlIntent"];
|
|
2603
|
+
generateAppProofs?: boolean;
|
|
2604
|
+
};
|
|
2605
|
+
v1DeleteVelocityControlResult: {
|
|
2606
|
+
velocityControlId: string;
|
|
2607
|
+
};
|
|
2513
2608
|
v1DeleteWalletAccountsIntent: {
|
|
2514
2609
|
/** @description List of unique identifiers for wallet accounts within an organization */
|
|
2515
2610
|
walletAccountIds: string[];
|
|
@@ -2583,6 +2678,8 @@ export type definitions = {
|
|
|
2583
2678
|
desiredReplicas: number;
|
|
2584
2679
|
/** @description Last time this deployment was updated */
|
|
2585
2680
|
lastUpdatedTime: definitions["externaldatav1Timestamp"];
|
|
2681
|
+
/** @description Current quorum-key provisioning state for this deployment */
|
|
2682
|
+
provisioningState?: definitions["v1ProvisioningState"];
|
|
2586
2683
|
};
|
|
2587
2684
|
v1DisableAuthProxyIntent: {
|
|
2588
2685
|
[key: string]: unknown;
|
|
@@ -2689,6 +2786,12 @@ export type definitions = {
|
|
|
2689
2786
|
claimableClientFeeDisplay?: definitions["v1EarnValueDisplay"];
|
|
2690
2787
|
/** @description The wallet address that receives the client's fee payouts on-chain. Unset when a sub-org queries. */
|
|
2691
2788
|
clientFeeWallet?: string;
|
|
2789
|
+
/** @description Assets currently withdrawable from the underlying vault without a reallocation, in raw on-chain units of the underlying asset. This is the vault's liquidity, not the wrapper's balance. Empty when the provider does not report it. */
|
|
2790
|
+
liquidity?: string;
|
|
2791
|
+
/** @description Normalized liquidity values for display purposes only (usd + crypto). Do not do arithmetic with these; use liquidity instead. */
|
|
2792
|
+
liquidityDisplay?: definitions["v1EarnValueDisplay"];
|
|
2793
|
+
/** @description The underlying markets the vault allocates into, ranked by supplied amount descending. Only populated when the request sets include_exposure, and only for providers that expose an allocation breakdown (Morpho). */
|
|
2794
|
+
exposures?: definitions["v1EarnVaultExposure"][];
|
|
2692
2795
|
};
|
|
2693
2796
|
v1EarnPosition: {
|
|
2694
2797
|
/** @description Address of the underlying yield vault. */
|
|
@@ -2773,6 +2876,26 @@ export type definitions = {
|
|
|
2773
2876
|
name?: string;
|
|
2774
2877
|
/** @description Vault curator name(s), comma-separated when a vault has multiple. Empty for providers without curators (e.g. Aave). */
|
|
2775
2878
|
curator?: string;
|
|
2879
|
+
/** @description Assets currently withdrawable from the vault without a reallocation, in raw on-chain units of the underlying asset. Empty when the provider does not report it. */
|
|
2880
|
+
liquidity?: string;
|
|
2881
|
+
/** @description Normalized liquidity values for display purposes only (usd + crypto). Do not do arithmetic with these; use liquidity instead. */
|
|
2882
|
+
liquidityDisplay?: definitions["v1EarnValueDisplay"];
|
|
2883
|
+
};
|
|
2884
|
+
v1EarnVaultExposure: {
|
|
2885
|
+
/** @description Provider-specific identifier for the market (the Morpho Blue market id). */
|
|
2886
|
+
marketId?: string;
|
|
2887
|
+
/** @description Symbol of the market's collateral asset (e.g. 'cbBTC'). Empty for an idle/uncollateralized market. */
|
|
2888
|
+
collateralSymbol?: string;
|
|
2889
|
+
/** @description CAIP-19 asset ID of the market's collateral asset. Empty for an idle/uncollateralized market. */
|
|
2890
|
+
collateralCaip19?: string;
|
|
2891
|
+
/** @description The market's liquidation loan-to-value, expressed as a decimal fraction (e.g. '0.86' for 86%). */
|
|
2892
|
+
lltvPct?: string;
|
|
2893
|
+
/** @description Assets the vault supplies to this market, in raw on-chain units of the underlying asset. */
|
|
2894
|
+
supplied?: string;
|
|
2895
|
+
/** @description Normalized supplied values for display purposes only (usd + crypto). Do not do arithmetic with these; use supplied instead. */
|
|
2896
|
+
display?: definitions["v1EarnValueDisplay"];
|
|
2897
|
+
/** @description This market's share of the vault's supplied assets, as a decimal fraction (e.g. '0.997' for 99.7%). */
|
|
2898
|
+
sharePct?: string;
|
|
2776
2899
|
};
|
|
2777
2900
|
v1EarnWithdrawIntent: {
|
|
2778
2901
|
/** @description Address of the deployed Earn wrapper holding the position to withdraw from, from ListEarnPositions. Must be one of the org's deployed wrappers. */
|
|
@@ -2982,7 +3105,7 @@ export type definitions = {
|
|
|
2982
3105
|
* @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
|
|
2983
3106
|
* @enum {string}
|
|
2984
3107
|
*/
|
|
2985
|
-
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";
|
|
3108
|
+
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";
|
|
2986
3109
|
};
|
|
2987
3110
|
v1EthSendRawTransactionRequest: {
|
|
2988
3111
|
/** @enum {string} */
|
|
@@ -3007,7 +3130,7 @@ export type definitions = {
|
|
|
3007
3130
|
* @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
|
|
3008
3131
|
* @enum {string}
|
|
3009
3132
|
*/
|
|
3010
|
-
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";
|
|
3133
|
+
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";
|
|
3011
3134
|
/** @description Recipient address as a hex string with 0x prefix. */
|
|
3012
3135
|
to: string;
|
|
3013
3136
|
/** @description Amount of native asset to send in wei. */
|
|
@@ -3034,7 +3157,7 @@ export type definitions = {
|
|
|
3034
3157
|
* @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
|
|
3035
3158
|
* @enum {string}
|
|
3036
3159
|
*/
|
|
3037
|
-
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";
|
|
3160
|
+
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";
|
|
3038
3161
|
/** @description Whether to sponsor this transaction via Gas Station. If false or unset, the EOA pays gas. A single call uses EIP-1559; multiple calls use EIP-7702 batch execution via Gas Station. */
|
|
3039
3162
|
sponsor?: boolean;
|
|
3040
3163
|
/** @description Outer transaction nonce. Omit to auto-fetch. */
|
|
@@ -3104,7 +3227,7 @@ export type definitions = {
|
|
|
3104
3227
|
* @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
|
|
3105
3228
|
* @enum {string}
|
|
3106
3229
|
*/
|
|
3107
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:421614";
|
|
3230
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:421614" | "eip155:4663" | "eip155:46630";
|
|
3108
3231
|
/** @description Outer transaction nonce. Omit to auto-fetch. */
|
|
3109
3232
|
nonce?: string;
|
|
3110
3233
|
/** @description Maximum amount of gas for the undelegation transaction. Omit to use the fixed undelegation gas limit. */
|
|
@@ -3168,6 +3291,30 @@ export type definitions = {
|
|
|
3168
3291
|
/** @description Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
3169
3292
|
gasStationNonce?: string;
|
|
3170
3293
|
};
|
|
3294
|
+
v1ExecuteSwapIntentV3: {
|
|
3295
|
+
/** @description Quote identifier returned by create_swap_quote. Execution is bound to this quote; the signer is derived from the quote and must not be resupplied. */
|
|
3296
|
+
quoteId: string;
|
|
3297
|
+
/** @description CAIP-19 asset ID for the input asset. */
|
|
3298
|
+
inputToken: string;
|
|
3299
|
+
/** @description Exact base-unit amount of the input asset committed by the quote. */
|
|
3300
|
+
inputAmount: string;
|
|
3301
|
+
/** @description CAIP-19 asset ID for the output asset. */
|
|
3302
|
+
outputToken: string;
|
|
3303
|
+
/** @description Exact quoted base-unit output amount committed by the quote. */
|
|
3304
|
+
quotedOutputAmount: string;
|
|
3305
|
+
/** @description Exact minimum base-unit output committed by the quote. */
|
|
3306
|
+
minOutputAmount: string;
|
|
3307
|
+
/** @description Whether the quoted transaction is sponsored. */
|
|
3308
|
+
sponsor: boolean;
|
|
3309
|
+
/** @description Exact EVM sender (EOA account) nonce. Valid only for a non-sponsored EVM swap. Honored for already-delegated (Type-2) batch swaps and single-call swaps; ignored for not-yet-delegated EIP-7702 (Type-4) batches where the outer nonce is derived from the authorization. Prefer gas_station_nonce for batch replay protection and use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
3310
|
+
evmNonce?: string;
|
|
3311
|
+
/** @description Exact Solana recent blockhash. Valid only for a Solana swap, including sponsored swaps. Omit to auto-fetch. */
|
|
3312
|
+
recentBlockhash?: string;
|
|
3313
|
+
/** @description Exact gas station delegate contract nonce used in the BatchExecution EIP-712 message. Valid for sponsored EVM swaps and non-sponsored EVM swaps that execute as a multi-call batch (for example ERC-20 approve + swap). This is the replay-protection nonce for gas-station batches; use the nonces endpoint to fetch it. Omit to auto-fetch. */
|
|
3314
|
+
gasStationNonce?: string;
|
|
3315
|
+
/** @description 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. */
|
|
3316
|
+
destinationAddress?: string;
|
|
3317
|
+
};
|
|
3171
3318
|
v1ExecuteSwapRequest: {
|
|
3172
3319
|
/** @enum {string} */
|
|
3173
3320
|
type: "ACTIVITY_TYPE_EXECUTE_SWAP_V2";
|
|
@@ -3315,6 +3462,19 @@ export type definitions = {
|
|
|
3315
3462
|
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";
|
|
3316
3463
|
/** @enum {string} */
|
|
3317
3464
|
v1FiatOnRampProvider: "FIAT_ON_RAMP_PROVIDER_COINBASE" | "FIAT_ON_RAMP_PROVIDER_MOONPAY";
|
|
3465
|
+
v1GetActivePoliciesRequest: {
|
|
3466
|
+
/** @description Unique identifier for a given organization. */
|
|
3467
|
+
organizationId: string;
|
|
3468
|
+
};
|
|
3469
|
+
v1GetActivePoliciesResponse: {
|
|
3470
|
+
/** @description The active/inactive status of every policy in the organization. */
|
|
3471
|
+
statuses: definitions["v1ActivePolicyStatus"][];
|
|
3472
|
+
/**
|
|
3473
|
+
* Format: uint64
|
|
3474
|
+
* @description The enclave's trusted timestamp (Unix epoch milliseconds) used to evaluate every policy.
|
|
3475
|
+
*/
|
|
3476
|
+
evaluatedAtMs: string;
|
|
3477
|
+
};
|
|
3318
3478
|
v1GetActivitiesRequest: {
|
|
3319
3479
|
/** @description Unique identifier for a given organization. */
|
|
3320
3480
|
organizationId: string;
|
|
@@ -3541,7 +3701,7 @@ export type definitions = {
|
|
|
3541
3701
|
* @description CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
|
|
3542
3702
|
* @enum {string}
|
|
3543
3703
|
*/
|
|
3544
|
-
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";
|
|
3704
|
+
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";
|
|
3545
3705
|
/** @description Whether to fetch the standard on-chain nonce. */
|
|
3546
3706
|
nonce?: boolean;
|
|
3547
3707
|
/** @description Whether to fetch the gas station nonce used for sponsored transactions. */
|
|
@@ -3808,14 +3968,16 @@ export type definitions = {
|
|
|
3808
3968
|
v1GetTvcDeploymentProvisioningDetailsResponse: {
|
|
3809
3969
|
/**
|
|
3810
3970
|
* Format: byte
|
|
3811
|
-
* @description The attestation document of the provisioning enclave
|
|
3971
|
+
* @description The attestation document of the provisioning enclave. Present only when a deployment is awaiting provisioning.
|
|
3812
3972
|
*/
|
|
3813
|
-
attestationDocument
|
|
3973
|
+
attestationDocument?: string;
|
|
3814
3974
|
/**
|
|
3815
3975
|
* Format: byte
|
|
3816
|
-
* @description The manifest envelope containing the TVC deployment's manifest and signatures.
|
|
3976
|
+
* @description The manifest envelope containing the TVC deployment's manifest and signatures. Present only when a deployment is awaiting provisioning.
|
|
3817
3977
|
*/
|
|
3818
|
-
manifestEnvelope
|
|
3978
|
+
manifestEnvelope?: string;
|
|
3979
|
+
/** @description Current provisioning state. */
|
|
3980
|
+
provisioningState?: definitions["v1ProvisioningState"];
|
|
3819
3981
|
};
|
|
3820
3982
|
v1GetTvcDeploymentRequest: {
|
|
3821
3983
|
/** @description Unique identifier for a given organization. */
|
|
@@ -3855,6 +4017,13 @@ export type definitions = {
|
|
|
3855
4017
|
/** @description A list of users. */
|
|
3856
4018
|
users: definitions["v1User"][];
|
|
3857
4019
|
};
|
|
4020
|
+
v1GetVelocityControlRequest: {
|
|
4021
|
+
organizationId: string;
|
|
4022
|
+
velocityControlId: string;
|
|
4023
|
+
};
|
|
4024
|
+
v1GetVelocityControlResponse: {
|
|
4025
|
+
velocityControl: definitions["v1VelocityControl"];
|
|
4026
|
+
};
|
|
3858
4027
|
v1GetVerifiedSubOrgIdsRequest: {
|
|
3859
4028
|
/** @description Unique identifier for the parent organization. This is used to find sub-organizations within it. */
|
|
3860
4029
|
organizationId: string;
|
|
@@ -3906,7 +4075,7 @@ export type definitions = {
|
|
|
3906
4075
|
* @description 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.
|
|
3907
4076
|
* @enum {string}
|
|
3908
4077
|
*/
|
|
3909
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
4078
|
+
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" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
3910
4079
|
};
|
|
3911
4080
|
v1GetWalletAddressBalancesResponse: {
|
|
3912
4081
|
/** @description List of asset balances */
|
|
@@ -4130,7 +4299,7 @@ export type definitions = {
|
|
|
4130
4299
|
importBundle: string;
|
|
4131
4300
|
};
|
|
4132
4301
|
v1InitOtpAuthIntent: {
|
|
4133
|
-
/** @description Enum to specify whether to send OTP via SMS or
|
|
4302
|
+
/** @description Enum to specify whether to send OTP via SMS, email, or WhatsApp */
|
|
4134
4303
|
otpType: string;
|
|
4135
4304
|
/** @description Email or phone number to send the OTP code to */
|
|
4136
4305
|
contact: string;
|
|
@@ -4148,7 +4317,7 @@ export type definitions = {
|
|
|
4148
4317
|
replyToEmailAddress?: string;
|
|
4149
4318
|
};
|
|
4150
4319
|
v1InitOtpAuthIntentV2: {
|
|
4151
|
-
/** @description Enum to specify whether to send OTP via SMS or
|
|
4320
|
+
/** @description Enum to specify whether to send OTP via SMS, email, or WhatsApp */
|
|
4152
4321
|
otpType: string;
|
|
4153
4322
|
/** @description Email or phone number to send the OTP code to */
|
|
4154
4323
|
contact: string;
|
|
@@ -4173,7 +4342,7 @@ export type definitions = {
|
|
|
4173
4342
|
replyToEmailAddress?: string;
|
|
4174
4343
|
};
|
|
4175
4344
|
v1InitOtpAuthIntentV3: {
|
|
4176
|
-
/** @description Whether to send OTP via SMS or
|
|
4345
|
+
/** @description Whether to send OTP via SMS, email, or WhatsApp. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL, OTP_TYPE_WHATSAPP */
|
|
4177
4346
|
otpType: string;
|
|
4178
4347
|
/** @description Email or phone number to send the OTP code to */
|
|
4179
4348
|
contact: string;
|
|
@@ -4220,7 +4389,7 @@ export type definitions = {
|
|
|
4220
4389
|
otpId: string;
|
|
4221
4390
|
};
|
|
4222
4391
|
v1InitOtpIntent: {
|
|
4223
|
-
/** @description Whether to send OTP via SMS or
|
|
4392
|
+
/** @description Whether to send OTP via SMS, email, or WhatsApp. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL, OTP_TYPE_WHATSAPP */
|
|
4224
4393
|
otpType: string;
|
|
4225
4394
|
/** @description Email or phone number to send the OTP code to */
|
|
4226
4395
|
contact: string;
|
|
@@ -4247,7 +4416,7 @@ export type definitions = {
|
|
|
4247
4416
|
replyToEmailAddress?: string;
|
|
4248
4417
|
};
|
|
4249
4418
|
v1InitOtpIntentV2: {
|
|
4250
|
-
/** @description Whether to send OTP via SMS or
|
|
4419
|
+
/** @description Whether to send OTP via SMS, email, or WhatsApp. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL, OTP_TYPE_WHATSAPP */
|
|
4251
4420
|
otpType: string;
|
|
4252
4421
|
/** @description Email or phone number to send the OTP code to */
|
|
4253
4422
|
contact: string;
|
|
@@ -4276,7 +4445,7 @@ export type definitions = {
|
|
|
4276
4445
|
replyToEmailAddress?: string;
|
|
4277
4446
|
};
|
|
4278
4447
|
v1InitOtpIntentV3: {
|
|
4279
|
-
/** @description Whether to send OTP via SMS or
|
|
4448
|
+
/** @description Whether to send OTP via SMS, email, or WhatsApp. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL, OTP_TYPE_WHATSAPP */
|
|
4280
4449
|
otpType: string;
|
|
4281
4450
|
/** @description Email or phone number to send the OTP code to */
|
|
4282
4451
|
contact: string;
|
|
@@ -4533,6 +4702,11 @@ export type definitions = {
|
|
|
4533
4702
|
createSwapQuoteIntent?: definitions["v1CreateSwapQuoteIntent"];
|
|
4534
4703
|
importSecretsIntent?: definitions["v1ImportSecretsIntent"];
|
|
4535
4704
|
exportSecretsIntent?: definitions["v1ExportSecretsIntent"];
|
|
4705
|
+
createVelocityControlIntent?: definitions["v1CreateVelocityControlIntent"];
|
|
4706
|
+
deleteVelocityControlIntent?: definitions["v1DeleteVelocityControlIntent"];
|
|
4707
|
+
updatePaymentMethodIntent?: definitions["billingUpdatePaymentMethodIntent"];
|
|
4708
|
+
createSwapQuoteIntentV2?: definitions["v1CreateSwapQuoteIntentV2"];
|
|
4709
|
+
executeSwapIntentV3?: definitions["v1ExecuteSwapIntentV3"];
|
|
4536
4710
|
};
|
|
4537
4711
|
v1Invitation: {
|
|
4538
4712
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -4603,6 +4777,8 @@ export type definitions = {
|
|
|
4603
4777
|
provider?: definitions["v1EarnProvider"];
|
|
4604
4778
|
/** @description Optional filter: only return enabled vaults whose underlying asset matches this CAIP-19 asset ID (e.g. 'eip155:8453/erc20:0x833589...'). The chain is taken from the CAIP-19 identifier. */
|
|
4605
4779
|
caip19?: string;
|
|
4780
|
+
/** @description When true, populate each vault's exposures (the underlying markets it allocates into). This costs an extra provider query per vault, so leave it off for list views. */
|
|
4781
|
+
includeExposure?: boolean;
|
|
4606
4782
|
};
|
|
4607
4783
|
v1ListEarnEnabledVaultsResponse: {
|
|
4608
4784
|
/** @description The organization's deployed wrappers. */
|
|
@@ -4657,7 +4833,7 @@ export type definitions = {
|
|
|
4657
4833
|
* @description EVM CAIP-2 chain ID (e.g., 'eip155:1' for Ethereum mainnet).
|
|
4658
4834
|
* @enum {string}
|
|
4659
4835
|
*/
|
|
4660
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97";
|
|
4836
|
+
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "eip155:56" | "eip155:97" | "eip155:4663" | "eip155:46630";
|
|
4661
4837
|
/** @description Cursor-based pagination options. Cursors are opaque and valid only for the same address and CAIP-2 query. */
|
|
4662
4838
|
paginationOptions?: definitions["v1Pagination"];
|
|
4663
4839
|
};
|
|
@@ -4723,7 +4899,7 @@ export type definitions = {
|
|
|
4723
4899
|
* @description 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.
|
|
4724
4900
|
* @enum {string}
|
|
4725
4901
|
*/
|
|
4726
|
-
caip2: "eip155:1" | "eip155:11155111" | "eip155:8453" | "eip155:84532" | "eip155:137" | "eip155:80002" | "eip155:56" | "eip155:97" | "eip155:10" | "eip155:11155420" | "eip155:143" | "eip155:10143" | "eip155:42161" | "eip155:4217" | "eip155:42431" | "eip155:421614" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
4902
|
+
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" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
4727
4903
|
};
|
|
4728
4904
|
v1ListSupportedAssetsResponse: {
|
|
4729
4905
|
/** @description List of asset metadata */
|
|
@@ -4737,6 +4913,14 @@ export type definitions = {
|
|
|
4737
4913
|
/** @description A list of user tags. */
|
|
4738
4914
|
userTags: definitions["datav1Tag"][];
|
|
4739
4915
|
};
|
|
4916
|
+
v1ListVelocityControlsRequest: {
|
|
4917
|
+
organizationId: string;
|
|
4918
|
+
paginationOptions?: definitions["v1Pagination"];
|
|
4919
|
+
};
|
|
4920
|
+
v1ListVelocityControlsResponse: {
|
|
4921
|
+
velocityControls: definitions["v1VelocityControl"][];
|
|
4922
|
+
pageInfo: definitions["v1PageInfo"];
|
|
4923
|
+
};
|
|
4740
4924
|
v1ListWebhookEndpointsRequest: {
|
|
4741
4925
|
/** @description Unique identifier for a given Organization. */
|
|
4742
4926
|
organizationId: string;
|
|
@@ -5120,6 +5304,8 @@ export type definitions = {
|
|
|
5120
5304
|
privateKeyId?: string;
|
|
5121
5305
|
addresses?: definitions["immutableactivityv1Address"][];
|
|
5122
5306
|
};
|
|
5307
|
+
/** @enum {string} */
|
|
5308
|
+
v1ProvisioningState: "PROVISIONING_STATE_PENDING" | "PROVISIONING_STATE_AWAITING_PROVISION" | "PROVISIONING_STATE_PROVISIONED";
|
|
5123
5309
|
v1PublicKeyCredentialWithAttestation: {
|
|
5124
5310
|
id: string;
|
|
5125
5311
|
/** @enum {string} */
|
|
@@ -5407,6 +5593,9 @@ export type definitions = {
|
|
|
5407
5593
|
createSwapQuoteResult?: definitions["v1CreateSwapQuoteResult"];
|
|
5408
5594
|
importSecretsResult?: definitions["v1ImportSecretsResult"];
|
|
5409
5595
|
exportSecretsResult?: definitions["v1ExportSecretsResult"];
|
|
5596
|
+
createVelocityControlResult?: definitions["v1CreateVelocityControlResult"];
|
|
5597
|
+
deleteVelocityControlResult?: definitions["v1DeleteVelocityControlResult"];
|
|
5598
|
+
updatePaymentMethodResult?: definitions["billingUpdatePaymentMethodResult"];
|
|
5410
5599
|
};
|
|
5411
5600
|
v1RevertChainEntry: {
|
|
5412
5601
|
/** @description The contract address where the revert occurred. */
|
|
@@ -6911,6 +7100,118 @@ export type definitions = {
|
|
|
6911
7100
|
v1ValidateTvcImageResponse: {
|
|
6912
7101
|
resolvedImageDigest?: string;
|
|
6913
7102
|
};
|
|
7103
|
+
v1VelocityControl: {
|
|
7104
|
+
/** @description Unique identifier for the Velocity Control. */
|
|
7105
|
+
velocityControlId: string;
|
|
7106
|
+
/** @description Identifier of the Organization that owns the Velocity Control. */
|
|
7107
|
+
organizationId: string;
|
|
7108
|
+
/** @description Human-readable name for the Velocity Control. */
|
|
7109
|
+
name: string;
|
|
7110
|
+
/** @description Data source for the Velocity Control. */
|
|
7111
|
+
dataSource: definitions["v1VelocityControlDataSource"];
|
|
7112
|
+
/** @description Aggregation expression that the Velocity Control evaluates. */
|
|
7113
|
+
aggregation: definitions["v1VelocityControlAggregation"];
|
|
7114
|
+
/** @description Time when the Velocity Control was created. */
|
|
7115
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
7116
|
+
/** @description Time when the Velocity Control was last updated. */
|
|
7117
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
7118
|
+
/** @description Identifier for the Velocity Control. Policies reference it as `controls.<identifier>`. It must be unique within the Organization. */
|
|
7119
|
+
identifier: string;
|
|
7120
|
+
};
|
|
7121
|
+
v1VelocityControlAggregation: {
|
|
7122
|
+
/** @description Method that aggregates matching data points. */
|
|
7123
|
+
method: definitions["v1VelocityControlAggregationMethod"];
|
|
7124
|
+
/** @description Comparison between the aggregate and the threshold. */
|
|
7125
|
+
operator: definitions["v1VelocityControlAggregationOperator"];
|
|
7126
|
+
/** @description Non-negative base-10 decimal string with at most 38 total digits and 18 fractional digits. */
|
|
7127
|
+
threshold: string;
|
|
7128
|
+
/** @description Time window for the aggregation. */
|
|
7129
|
+
window: definitions["v1VelocityControlAggregationWindow"];
|
|
7130
|
+
/** @description Scope that partitions matching data before aggregation. */
|
|
7131
|
+
groupBy: definitions["v1VelocityControlAggregationGroupBy"];
|
|
7132
|
+
};
|
|
7133
|
+
v1VelocityControlAggregationGroupBy: {
|
|
7134
|
+
/** @description Uses one shared bucket for the Organization. */
|
|
7135
|
+
organization?: definitions["v1VelocityControlAggregationGroupByOrganization"];
|
|
7136
|
+
/** @description Uses one bucket for each User. */
|
|
7137
|
+
user?: definitions["v1VelocityControlAggregationGroupByUser"];
|
|
7138
|
+
/** @description Uses one bucket for each Wallet. */
|
|
7139
|
+
wallet?: definitions["v1VelocityControlAggregationGroupByWallet"];
|
|
7140
|
+
};
|
|
7141
|
+
v1VelocityControlAggregationGroupByOrganization: {
|
|
7142
|
+
[key: string]: unknown;
|
|
7143
|
+
};
|
|
7144
|
+
v1VelocityControlAggregationGroupByUser: {
|
|
7145
|
+
[key: string]: unknown;
|
|
7146
|
+
};
|
|
7147
|
+
v1VelocityControlAggregationGroupByWallet: {
|
|
7148
|
+
[key: string]: unknown;
|
|
7149
|
+
};
|
|
7150
|
+
/** @enum {string} */
|
|
7151
|
+
v1VelocityControlAggregationMethod: "VELOCITY_CONTROL_AGGREGATION_METHOD_SUM" | "VELOCITY_CONTROL_AGGREGATION_METHOD_COUNT";
|
|
7152
|
+
/** @enum {string} */
|
|
7153
|
+
v1VelocityControlAggregationOperator: "VELOCITY_CONTROL_AGGREGATION_OPERATOR_LESS_THAN" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_LESS_THAN_OR_EQUAL" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_EQUAL" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN_OR_EQUAL" | "VELOCITY_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN";
|
|
7154
|
+
v1VelocityControlAggregationWindow: {
|
|
7155
|
+
/** @description Uses a rolling time window. */
|
|
7156
|
+
rolling?: definitions["v1VelocityControlAggregationWindowRolling"];
|
|
7157
|
+
/** @description Uses all matching data without a time limit. */
|
|
7158
|
+
infinite?: definitions["v1VelocityControlAggregationWindowInfinite"];
|
|
7159
|
+
};
|
|
7160
|
+
v1VelocityControlAggregationWindowInfinite: {
|
|
7161
|
+
[key: string]: unknown;
|
|
7162
|
+
};
|
|
7163
|
+
v1VelocityControlAggregationWindowRolling: {
|
|
7164
|
+
/** @description Duration of the rolling window, in seconds, as a base-10 integer string. */
|
|
7165
|
+
duration: string;
|
|
7166
|
+
};
|
|
7167
|
+
v1VelocityControlDataSource: {
|
|
7168
|
+
/** @description Uses transfers of the listed on-chain assets as input data. */
|
|
7169
|
+
chainAssetTransfer?: definitions["v1VelocityControlDataSourceChainAssetTransfer"];
|
|
7170
|
+
/** @description Uses executed Turnkey activities as input data. */
|
|
7171
|
+
activityExecution?: definitions["v1VelocityControlDataSourceActivityExecution"];
|
|
7172
|
+
};
|
|
7173
|
+
v1VelocityControlDataSourceActivityExecution: {
|
|
7174
|
+
/** @description Filters activity executions by type. */
|
|
7175
|
+
filter?: definitions["v1VelocityControlDataSourceActivityExecutionFilter"];
|
|
7176
|
+
};
|
|
7177
|
+
v1VelocityControlDataSourceActivityExecutionFilter: {
|
|
7178
|
+
/** @description Activity types whose executions are included. */
|
|
7179
|
+
activity?: definitions["v1VelocityControlDataSourceFilterActivity"][];
|
|
7180
|
+
};
|
|
7181
|
+
v1VelocityControlDataSourceChainAssetTransfer: {
|
|
7182
|
+
/** @description Assets whose transfers are included in the data source. */
|
|
7183
|
+
definition: definitions["v1VelocityControlDataSourceChainAssetTransferDefinition"][];
|
|
7184
|
+
/** @description Filters asset transfers by activity type. */
|
|
7185
|
+
filter?: definitions["v1VelocityControlDataSourceChainAssetTransferFilter"];
|
|
7186
|
+
/** @description Selects when to measure an asset transfer. */
|
|
7187
|
+
phase?: definitions["v1VelocityControlDataSourcePhase"];
|
|
7188
|
+
};
|
|
7189
|
+
v1VelocityControlDataSourceChainAssetTransferDefinition: {
|
|
7190
|
+
/** @description CAIP-19 identifier for the asset. */
|
|
7191
|
+
caip19: string;
|
|
7192
|
+
/** @description Base-10 integer string from 0 through 255 that specifies the number of decimal places for the asset. */
|
|
7193
|
+
decimals: string;
|
|
7194
|
+
};
|
|
7195
|
+
v1VelocityControlDataSourceChainAssetTransferFilter: {
|
|
7196
|
+
/** @description Activity types whose asset transfers are included. */
|
|
7197
|
+
activity?: definitions["v1VelocityControlDataSourceFilterActivity"][];
|
|
7198
|
+
};
|
|
7199
|
+
v1VelocityControlDataSourceFilterActivity: {
|
|
7200
|
+
/** @description Name of an activity type to include, such as `ACTIVITY_TYPE_SOL_SEND_TRANSACTION`. */
|
|
7201
|
+
activityType: string;
|
|
7202
|
+
};
|
|
7203
|
+
v1VelocityControlDataSourcePhase: {
|
|
7204
|
+
/** @description Measures the transfer when Turnkey signs the transaction and returns it to the user. */
|
|
7205
|
+
signature?: definitions["v1VelocityControlDataSourcePhaseSignature"];
|
|
7206
|
+
/** @description Reserved for future use. Measures the transfer after the transaction lands on chain. */
|
|
7207
|
+
submission?: definitions["v1VelocityControlDataSourcePhaseSubmission"];
|
|
7208
|
+
};
|
|
7209
|
+
v1VelocityControlDataSourcePhaseSignature: {
|
|
7210
|
+
[key: string]: unknown;
|
|
7211
|
+
};
|
|
7212
|
+
v1VelocityControlDataSourcePhaseSubmission: {
|
|
7213
|
+
[key: string]: unknown;
|
|
7214
|
+
};
|
|
6914
7215
|
v1VerifyOtpIntent: {
|
|
6915
7216
|
/** @description ID representing the result of an init OTP activity. */
|
|
6916
7217
|
otpId: string;
|
|
@@ -7085,6 +7386,24 @@ export type definitions = {
|
|
|
7085
7386
|
};
|
|
7086
7387
|
};
|
|
7087
7388
|
export type operations = {
|
|
7389
|
+
/** For each policy in an organization, report whether it is currently active based on the enclave's trusted timestamp and the policy's time window (if any). Policies without a time field are always active. */
|
|
7390
|
+
PublicApiService_GetActivePolicies: {
|
|
7391
|
+
parameters: {
|
|
7392
|
+
body: {
|
|
7393
|
+
body: definitions["v1GetActivePoliciesRequest"];
|
|
7394
|
+
};
|
|
7395
|
+
};
|
|
7396
|
+
responses: {
|
|
7397
|
+
/** A successful response. */
|
|
7398
|
+
200: {
|
|
7399
|
+
schema: definitions["v1GetActivePoliciesResponse"];
|
|
7400
|
+
};
|
|
7401
|
+
/** An unexpected error response. */
|
|
7402
|
+
default: {
|
|
7403
|
+
schema: definitions["rpcStatus"];
|
|
7404
|
+
};
|
|
7405
|
+
};
|
|
7406
|
+
};
|
|
7088
7407
|
/** Get details about an activity. */
|
|
7089
7408
|
PublicApiService_GetActivity: {
|
|
7090
7409
|
parameters: {
|
|
@@ -7751,6 +8070,24 @@ export type operations = {
|
|
|
7751
8070
|
};
|
|
7752
8071
|
};
|
|
7753
8072
|
};
|
|
8073
|
+
/** Get details about a velocity control. */
|
|
8074
|
+
PublicApiService_GetVelocityControl: {
|
|
8075
|
+
parameters: {
|
|
8076
|
+
body: {
|
|
8077
|
+
body: definitions["v1GetVelocityControlRequest"];
|
|
8078
|
+
};
|
|
8079
|
+
};
|
|
8080
|
+
responses: {
|
|
8081
|
+
/** A successful response. */
|
|
8082
|
+
200: {
|
|
8083
|
+
schema: definitions["v1GetVelocityControlResponse"];
|
|
8084
|
+
};
|
|
8085
|
+
/** An unexpected error response. */
|
|
8086
|
+
default: {
|
|
8087
|
+
schema: definitions["rpcStatus"];
|
|
8088
|
+
};
|
|
8089
|
+
};
|
|
8090
|
+
};
|
|
7754
8091
|
/** Get details about a wallet. */
|
|
7755
8092
|
PublicApiService_GetWallet: {
|
|
7756
8093
|
parameters: {
|
|
@@ -8183,6 +8520,24 @@ export type operations = {
|
|
|
8183
8520
|
};
|
|
8184
8521
|
};
|
|
8185
8522
|
};
|
|
8523
|
+
/** List all velocity controls within an organization. */
|
|
8524
|
+
PublicApiService_ListVelocityControls: {
|
|
8525
|
+
parameters: {
|
|
8526
|
+
body: {
|
|
8527
|
+
body: definitions["v1ListVelocityControlsRequest"];
|
|
8528
|
+
};
|
|
8529
|
+
};
|
|
8530
|
+
responses: {
|
|
8531
|
+
/** A successful response. */
|
|
8532
|
+
200: {
|
|
8533
|
+
schema: definitions["v1ListVelocityControlsResponse"];
|
|
8534
|
+
};
|
|
8535
|
+
/** An unexpected error response. */
|
|
8536
|
+
default: {
|
|
8537
|
+
schema: definitions["rpcStatus"];
|
|
8538
|
+
};
|
|
8539
|
+
};
|
|
8540
|
+
};
|
|
8186
8541
|
/** Get all email or phone verified suborg IDs associated given a parent org ID. */
|
|
8187
8542
|
PublicApiService_GetVerifiedSubOrgIds: {
|
|
8188
8543
|
parameters: {
|
|
@@ -8795,6 +9150,24 @@ export type operations = {
|
|
|
8795
9150
|
};
|
|
8796
9151
|
};
|
|
8797
9152
|
};
|
|
9153
|
+
/** Create a new velocity control. */
|
|
9154
|
+
PublicApiService_CreateVelocityControl: {
|
|
9155
|
+
parameters: {
|
|
9156
|
+
body: {
|
|
9157
|
+
body: definitions["v1CreateVelocityControlRequest"];
|
|
9158
|
+
};
|
|
9159
|
+
};
|
|
9160
|
+
responses: {
|
|
9161
|
+
/** A successful response. */
|
|
9162
|
+
200: {
|
|
9163
|
+
schema: definitions["v1ActivityResponse"];
|
|
9164
|
+
};
|
|
9165
|
+
/** An unexpected error response. */
|
|
9166
|
+
default: {
|
|
9167
|
+
schema: definitions["rpcStatus"];
|
|
9168
|
+
};
|
|
9169
|
+
};
|
|
9170
|
+
};
|
|
8798
9171
|
/** Create a wallet and derive addresses. */
|
|
8799
9172
|
PublicApiService_CreateWallet: {
|
|
8800
9173
|
parameters: {
|
|
@@ -9155,6 +9528,24 @@ export type operations = {
|
|
|
9155
9528
|
};
|
|
9156
9529
|
};
|
|
9157
9530
|
};
|
|
9531
|
+
/** Delete an existing velocity control. */
|
|
9532
|
+
PublicApiService_DeleteVelocityControl: {
|
|
9533
|
+
parameters: {
|
|
9534
|
+
body: {
|
|
9535
|
+
body: definitions["v1DeleteVelocityControlRequest"];
|
|
9536
|
+
};
|
|
9537
|
+
};
|
|
9538
|
+
responses: {
|
|
9539
|
+
/** A successful response. */
|
|
9540
|
+
200: {
|
|
9541
|
+
schema: definitions["v1ActivityResponse"];
|
|
9542
|
+
};
|
|
9543
|
+
/** An unexpected error response. */
|
|
9544
|
+
default: {
|
|
9545
|
+
schema: definitions["rpcStatus"];
|
|
9546
|
+
};
|
|
9547
|
+
};
|
|
9548
|
+
};
|
|
9158
9549
|
/** Delete wallet accounts for an organization. */
|
|
9159
9550
|
PublicApiService_DeleteWalletAccounts: {
|
|
9160
9551
|
parameters: {
|