@turnkey/sdk-types 1.13.0 → 1.14.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 +59 -0
- package/dist/__generated__/types.d.ts +140 -15
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__generated__/types.js.map +1 -1
- package/dist/__generated__/types.mjs.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +84 -3
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @turnkey/sdk-types
|
|
2
2
|
|
|
3
|
+
## 1.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1664](https://github.com/tkhq/sdk/pull/1664) [`f51f973`](https://github.com/tkhq/sdk/commit/f51f973acbe765da1f9e272b8d95ed6a56a733b4) Author [@actype](https://github.com/actype) - OAuth 2.0 authentication for X and Discord now encrypts the authorization code, PKCE verifier, redirect URI, and nonce to Turnkey's TLS Fetcher enclave, so neither the auth proxy nor the API sees them in plaintext. The React and React Native wallet kits use the new flow automatically.
|
|
8
|
+
- `exchangeOauth2Code` on the `@turnkey/core` client and the wallet kit providers exchanges an authorization code for a Turnkey OIDC token.
|
|
9
|
+
- Its failures use the new `TurnkeyErrorCodes.OAUTH2_AUTHENTICATE_ERROR`.
|
|
10
|
+
- `encryptOauth2ToBundle` in `@turnkey/crypto` verifies an `init_oauth2_authenticate` target and encrypts the inputs to it.
|
|
11
|
+
- `initOauth2Authenticate` and the auth proxy's `proxyInitOAuth2AuthenticateV2` and `proxyOAuth2AuthenticateV2` are new.
|
|
12
|
+
- Also syncs the latest public API: notification domains, static egress IPs for TVC apps, and external signer public keys on send transaction intents.
|
|
13
|
+
|
|
14
|
+
**Breaking:** the generated `oauth2Authenticate` API method (on `@turnkey/http`, `@turnkey/sdk-browser`, `@turnkey/sdk-server`, and the core `httpClient`) now submits `ACTIVITY_TYPE_OAUTH2_AUTHENTICATE_V2`, which takes an encrypted message in place of the plaintext inputs. Initialize a target and encrypt with `encryptOauth2ToBundle` before submitting:
|
|
15
|
+
|
|
16
|
+
Before:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const { oidcToken } = await turnkeyClient.apiClient().oauth2Authenticate({
|
|
20
|
+
oauth2CredentialId,
|
|
21
|
+
authCode,
|
|
22
|
+
redirectUri,
|
|
23
|
+
codeVerifier,
|
|
24
|
+
nonce,
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
After:
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import { encryptOauth2ToBundle } from "@turnkey/crypto";
|
|
32
|
+
|
|
33
|
+
const client = turnkeyClient.apiClient();
|
|
34
|
+
const { enclaveTargetMessage } = await client.initOauth2Authenticate({
|
|
35
|
+
organizationId,
|
|
36
|
+
oauth2CredentialId,
|
|
37
|
+
encryptionSuite: "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V2",
|
|
38
|
+
});
|
|
39
|
+
const { encryptedMessage, targetPublicKey } = await encryptOauth2ToBundle({
|
|
40
|
+
bundle: {
|
|
41
|
+
organizationId,
|
|
42
|
+
oauth2CredentialId,
|
|
43
|
+
provider: "OAUTH2_PROVIDER_X",
|
|
44
|
+
clientId,
|
|
45
|
+
authCode,
|
|
46
|
+
redirectUri,
|
|
47
|
+
codeVerifier,
|
|
48
|
+
nonce,
|
|
49
|
+
},
|
|
50
|
+
enclaveTargetMessage,
|
|
51
|
+
});
|
|
52
|
+
const { oidcToken } = await client.oauth2Authenticate({
|
|
53
|
+
organizationId,
|
|
54
|
+
oauth2CredentialId,
|
|
55
|
+
encryptedMessage,
|
|
56
|
+
targetPublicKey,
|
|
57
|
+
});
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The wallet kits no longer call the plaintext `proxyOAuth2Authenticate`. If you call it directly, replace `httpClient.proxyOAuth2Authenticate(...)` with `client.exchangeOauth2Code(...)`, which takes the same inputs and returns the OIDC token. The OAuth 2.0 credential for `clientId` must belong to the client's `organizationId`.
|
|
61
|
+
|
|
3
62
|
## 1.13.0
|
|
4
63
|
|
|
5
64
|
### Minor Changes
|
|
@@ -98,6 +98,18 @@ export type v1GetWalletKitConfigResponse = {
|
|
|
98
98
|
otpAlphanumeric?: boolean;
|
|
99
99
|
otpLength?: string;
|
|
100
100
|
};
|
|
101
|
+
export type v1InitOAuth2AuthenticateV2Request = {
|
|
102
|
+
/** The client ID registered with the OAuth 2.0 provider. */
|
|
103
|
+
clientId: string;
|
|
104
|
+
/** The transport encryption suite to use for the authentication inputs. */
|
|
105
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
106
|
+
};
|
|
107
|
+
export type v1InitOAuth2AuthenticateV2Response = {
|
|
108
|
+
/** The credential ID to include in the encrypted payload and subsequent authentication request. */
|
|
109
|
+
oauth2CredentialId: string;
|
|
110
|
+
/** The enclave target message used to encrypt the OAuth authentication payload. */
|
|
111
|
+
enclaveTargetMessage: string;
|
|
112
|
+
};
|
|
101
113
|
export type v1InitOtpRequest = {
|
|
102
114
|
type: "ACTIVITY_TYPE_INIT_OTP_V3";
|
|
103
115
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
@@ -143,6 +155,18 @@ export type v1OAuth2AuthenticateResponse = {
|
|
|
143
155
|
/** A Turnkey issued OIDC token to be used with the LoginWithOAuth activity */
|
|
144
156
|
oidcToken: string;
|
|
145
157
|
};
|
|
158
|
+
export type v1OAuth2AuthenticateV2Request = {
|
|
159
|
+
/** The OAuth credential ID returned by InitOAuth2AuthenticateV2. */
|
|
160
|
+
oauth2CredentialId: string;
|
|
161
|
+
/** Encryption suite specific ciphertext of a JSON object containing organization_id, oauth2_credential_id, client_id, provider, auth_code, code_verifier, redirect_uri, nonce, and optional bearer_token_target_public_key. For enclave encrypt v1 this is a JSON-encoded ClientSendMsg encrypted to target_public_key. Use the expected organization, client ID, and provider from the client configuration. */
|
|
162
|
+
encryptedMessage: string;
|
|
163
|
+
/** Targeted transport encryption public key, from the enclave target message returned by InitOAuth2AuthenticateV2. */
|
|
164
|
+
targetPublicKey: string;
|
|
165
|
+
};
|
|
166
|
+
export type v1OAuth2AuthenticateV2Response = {
|
|
167
|
+
/** A Turnkey OIDC token bound to the nonce in the encrypted authentication payload. */
|
|
168
|
+
oidcToken: string;
|
|
169
|
+
};
|
|
146
170
|
export type v1OAuthLoginRequest = {
|
|
147
171
|
/** Base64 encoded OIDC token */
|
|
148
172
|
oidcToken: string;
|
|
@@ -297,6 +321,7 @@ export type v1SignupV3Response = {
|
|
|
297
321
|
/** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
|
|
298
322
|
appProofs?: v1AppProof[];
|
|
299
323
|
};
|
|
324
|
+
export type v1TransportEncryptionSuite = "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1" | "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V2";
|
|
300
325
|
export type v1VerifyOtpRequest = {
|
|
301
326
|
type: "ACTIVITY_TYPE_VERIFY_OTP_V2";
|
|
302
327
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
@@ -567,7 +592,12 @@ export type v1ActivityResponse = {
|
|
|
567
592
|
activity: v1Activity;
|
|
568
593
|
};
|
|
569
594
|
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";
|
|
570
|
-
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_USAGE_CONTROL" | "ACTIVITY_TYPE_DELETE_USAGE_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_CREATE_SUB_ORGANIZATION_V9" | "ACTIVITY_TYPE_VERIFY_WALLET_AUTHENTICATOR" | "ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG" | "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_SESSION" | "ACTIVITY_TYPE_CREATE_FIAT_OFF_RAMP_SESSION" | "ACTIVITY_TYPE_ENABLE_SMS_FOR_COUNTRIES" | "ACTIVITY_TYPE_DISABLE_SMS_FOR_COUNTRIES" | "ACTIVITY_TYPE_EXECUTE_SWAP_V4" | "ACTIVITY_TYPE_CREATE_WALLET_AUTHENTICATORS" | "ACTIVITY_TYPE_DELETE_WALLET_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_FIAT_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_CREATE_EXTERNAL_SIGNER_V1" | "ACTIVITY_TYPE_DELETE_EXTERNAL_SIGNER_V1" | "ACTIVITY_TYPE_MINT_JWT";
|
|
595
|
+
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_USAGE_CONTROL" | "ACTIVITY_TYPE_DELETE_USAGE_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_CREATE_SUB_ORGANIZATION_V9" | "ACTIVITY_TYPE_VERIFY_WALLET_AUTHENTICATOR" | "ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG" | "ACTIVITY_TYPE_UPSERT_SWAP_FIXED_RATE_LIMIT_CONFIG" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_SESSION" | "ACTIVITY_TYPE_CREATE_FIAT_OFF_RAMP_SESSION" | "ACTIVITY_TYPE_ENABLE_SMS_FOR_COUNTRIES" | "ACTIVITY_TYPE_DISABLE_SMS_FOR_COUNTRIES" | "ACTIVITY_TYPE_EXECUTE_SWAP_V4" | "ACTIVITY_TYPE_CREATE_WALLET_AUTHENTICATORS" | "ACTIVITY_TYPE_DELETE_WALLET_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_FIAT_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_CREATE_EXTERNAL_SIGNER_V1" | "ACTIVITY_TYPE_DELETE_EXTERNAL_SIGNER_V1" | "ACTIVITY_TYPE_MINT_JWT" | "ACTIVITY_TYPE_ADD_NOTIFICATION_DOMAINS" | "ACTIVITY_TYPE_DELETE_NOTIFICATION_DOMAINS" | "ACTIVITY_TYPE_INIT_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE_V2";
|
|
596
|
+
export type v1AddNotificationDomainsIntent = {
|
|
597
|
+
/** Bare domains to allow in notification links, such as example.com. Between 1 and 50. */
|
|
598
|
+
domains: string[];
|
|
599
|
+
};
|
|
600
|
+
export type v1AddNotificationDomainsResult = {};
|
|
571
601
|
export type v1ApiKey = {
|
|
572
602
|
/** A User credential that can be used to authenticate to Turnkey. */
|
|
573
603
|
credential: externaldatav1Credential;
|
|
@@ -714,6 +744,8 @@ export type v1BootProof = {
|
|
|
714
744
|
createdAt: externaldatav1Timestamp;
|
|
715
745
|
/** QOS manifest schema version. */
|
|
716
746
|
qosManifestVersion?: string;
|
|
747
|
+
/** Hex-encoded Signer quorum-key signature over the domain-separated AWS attestation document. */
|
|
748
|
+
quorumKeyAttestationSignatureHex?: string;
|
|
717
749
|
};
|
|
718
750
|
export type v1BootProofResponse = {
|
|
719
751
|
bootProof: v1BootProof;
|
|
@@ -1542,6 +1574,8 @@ export type v1CreateTvcAppIntent = {
|
|
|
1542
1574
|
enableDebugModeDeployments?: boolean;
|
|
1543
1575
|
/** AWS region in which to place this TVC application. Allowed values: us-east-1, ap-southeast-1. Default if not provided: us-east-1. */
|
|
1544
1576
|
region?: string;
|
|
1577
|
+
/** Enables static egress IPs for this TVC app. Requires enableEgress to be true. Set at app creation. Default if not provided: false. */
|
|
1578
|
+
enableStaticEgressIps?: boolean;
|
|
1545
1579
|
};
|
|
1546
1580
|
export type v1CreateTvcAppRequest = {
|
|
1547
1581
|
type: "ACTIVITY_TYPE_CREATE_TVC_APP";
|
|
@@ -1952,6 +1986,11 @@ export type v1DeleteMfaPolicyResult = {
|
|
|
1952
1986
|
/** Unique identifier for a given MFA Policy. */
|
|
1953
1987
|
mfaPolicyId: string;
|
|
1954
1988
|
};
|
|
1989
|
+
export type v1DeleteNotificationDomainsIntent = {
|
|
1990
|
+
/** Bare domains to remove from notification links, such as example.com. Between 1 and 50. */
|
|
1991
|
+
domains: string[];
|
|
1992
|
+
};
|
|
1993
|
+
export type v1DeleteNotificationDomainsResult = {};
|
|
1955
1994
|
export type v1DeleteOauth2CredentialIntent = {
|
|
1956
1995
|
/** The ID of the OAuth 2.0 credential to delete */
|
|
1957
1996
|
oauth2CredentialId: string;
|
|
@@ -2812,6 +2851,8 @@ export type v1EthSendTransactionIntentV2 = {
|
|
|
2812
2851
|
gasStationNonce?: string;
|
|
2813
2852
|
/** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
|
|
2814
2853
|
calls: v1EthCallParams[];
|
|
2854
|
+
/** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
|
|
2855
|
+
externalSignerPubkey?: string;
|
|
2815
2856
|
};
|
|
2816
2857
|
export type v1EthSendTransactionRequest = {
|
|
2817
2858
|
type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2";
|
|
@@ -4136,6 +4177,25 @@ export type v1InitImportWalletResult = {
|
|
|
4136
4177
|
/** Import bundle containing a public key and signature to use for importing client data. */
|
|
4137
4178
|
importBundle: string;
|
|
4138
4179
|
};
|
|
4180
|
+
export type v1InitOauth2AuthenticateIntent = {
|
|
4181
|
+
/** The OAuth 2.0 credential whose authentication inputs will be encrypted to the target. */
|
|
4182
|
+
oauth2CredentialId: string;
|
|
4183
|
+
/** The transport encryption suite for the OAuth 2.0 authentication target. */
|
|
4184
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
4185
|
+
};
|
|
4186
|
+
export type v1InitOauth2AuthenticateRequest = {
|
|
4187
|
+
type: "ACTIVITY_TYPE_INIT_OAUTH2_AUTHENTICATE";
|
|
4188
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
4189
|
+
timestampMs: string;
|
|
4190
|
+
/** Unique identifier for a given Organization. */
|
|
4191
|
+
organizationId: string;
|
|
4192
|
+
parameters: v1InitOauth2AuthenticateIntent;
|
|
4193
|
+
generateAppProofs?: boolean;
|
|
4194
|
+
};
|
|
4195
|
+
export type v1InitOauth2AuthenticateResult = {
|
|
4196
|
+
/** The TLS Fetcher-signed encryption target for OAuth 2.0 authentication inputs. */
|
|
4197
|
+
enclaveTargetMessage: string;
|
|
4198
|
+
};
|
|
4139
4199
|
export type v1InitOtpAuthIntent = {
|
|
4140
4200
|
/** Enum to specify whether to send OTP via SMS, email, or WhatsApp */
|
|
4141
4201
|
otpType: string;
|
|
@@ -4537,6 +4597,10 @@ export type v1Intent = {
|
|
|
4537
4597
|
createExternalSignerIntentV1?: v1CreateExternalSignerIntentV1;
|
|
4538
4598
|
deleteExternalSignerIntentV1?: v1DeleteExternalSignerIntentV1;
|
|
4539
4599
|
mintJwtIntent?: v1MintJwtIntent;
|
|
4600
|
+
addNotificationDomainsIntent?: v1AddNotificationDomainsIntent;
|
|
4601
|
+
deleteNotificationDomainsIntent?: v1DeleteNotificationDomainsIntent;
|
|
4602
|
+
initOauth2AuthenticateIntent?: v1InitOauth2AuthenticateIntent;
|
|
4603
|
+
oauth2AuthenticateIntentV2?: v1Oauth2AuthenticateIntentV2;
|
|
4540
4604
|
};
|
|
4541
4605
|
export type v1InvitationParams = {
|
|
4542
4606
|
/** The name of the intended Invitation recipient. */
|
|
@@ -4821,13 +4885,21 @@ export type v1Oauth2AuthenticateIntent = {
|
|
|
4821
4885
|
/** An optional P256 public key to which, if provided, the bearer token will be encrypted and returned via the `encrypted_bearer_token` claim of the OIDC Token */
|
|
4822
4886
|
bearerTokenTargetPublicKey?: string;
|
|
4823
4887
|
};
|
|
4888
|
+
export type v1Oauth2AuthenticateIntentV2 = {
|
|
4889
|
+
/** The OAuth 2.0 credential selected by the client and repeated inside the encrypted payload. */
|
|
4890
|
+
oauth2CredentialId: string;
|
|
4891
|
+
/** Encryption suite specific ciphertext of a JSON object containing organization_id, oauth2_credential_id, client_id, provider, auth_code, code_verifier, redirect_uri, nonce, and optional bearer_token_target_public_key. For enclave encrypt v1 this is a JSON-encoded ClientSendMsg encrypted to target_public_key. */
|
|
4892
|
+
encryptedMessage: string;
|
|
4893
|
+
/** Targeted transport encryption public key, from the enclave target message returned by InitOauth2Authenticate. */
|
|
4894
|
+
targetPublicKey: string;
|
|
4895
|
+
};
|
|
4824
4896
|
export type v1Oauth2AuthenticateRequest = {
|
|
4825
|
-
type: "
|
|
4897
|
+
type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE_V2";
|
|
4826
4898
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
4827
4899
|
timestampMs: string;
|
|
4828
4900
|
/** Unique identifier for a given Organization. */
|
|
4829
4901
|
organizationId: string;
|
|
4830
|
-
parameters:
|
|
4902
|
+
parameters: v1Oauth2AuthenticateIntentV2;
|
|
4831
4903
|
generateAppProofs?: boolean;
|
|
4832
4904
|
};
|
|
4833
4905
|
export type v1Oauth2AuthenticateResult = {
|
|
@@ -5361,6 +5433,9 @@ export type v1Result = {
|
|
|
5361
5433
|
createExternalSignerResultV1?: v1CreateExternalSignerResultV1;
|
|
5362
5434
|
deleteExternalSignerResultV1?: v1DeleteExternalSignerResultV1;
|
|
5363
5435
|
mintJwtResult?: v1MintJwtResult;
|
|
5436
|
+
addNotificationDomainsResult?: v1AddNotificationDomainsResult;
|
|
5437
|
+
deleteNotificationDomainsResult?: v1DeleteNotificationDomainsResult;
|
|
5438
|
+
initOauth2AuthenticateResult?: v1InitOauth2AuthenticateResult;
|
|
5364
5439
|
};
|
|
5365
5440
|
export type v1RevertChainEntry = {
|
|
5366
5441
|
/** The contract address where the revert occurred. */
|
|
@@ -5673,6 +5748,8 @@ export type v1SolSendTransactionIntentV2 = {
|
|
|
5673
5748
|
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
5674
5749
|
/** User-provided blockhash for replay protection / deadline control. If provided, it is used as-is, including for sponsored transactions (the transaction is only broadcastable while the blockhash is current). If omitted and sponsor=true, a fresh blockhash is fetched during execution. */
|
|
5675
5750
|
recentBlockhash?: string;
|
|
5751
|
+
/** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
|
|
5752
|
+
externalSignerPubkey?: string;
|
|
5676
5753
|
};
|
|
5677
5754
|
export type v1SolSendTransactionRequest = {
|
|
5678
5755
|
type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2";
|
|
@@ -6143,7 +6220,6 @@ export type v1TransactionHistoryTurnkey = {
|
|
|
6143
6220
|
submittedAt?: string;
|
|
6144
6221
|
};
|
|
6145
6222
|
export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
|
|
6146
|
-
export type v1TransportEncryptionSuite = "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1" | "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V2";
|
|
6147
6223
|
export type v1TvcApp = {
|
|
6148
6224
|
/** Unique Identifier for this TVC App. */
|
|
6149
6225
|
id: string;
|
|
@@ -6169,6 +6245,8 @@ export type v1TvcApp = {
|
|
|
6169
6245
|
enableDebugModeDeployments: boolean;
|
|
6170
6246
|
/** region this TVC App is deployed in, e.g. us-east-1 or ap-southeast-1. Set at app creation. */
|
|
6171
6247
|
region: string;
|
|
6248
|
+
/** Whether this TVC app has static egress IPs enabled. Set at app creation. */
|
|
6249
|
+
enableStaticEgressIps: boolean;
|
|
6172
6250
|
};
|
|
6173
6251
|
export type v1TvcContainerSpec = {
|
|
6174
6252
|
/** The URL for this container image. */
|
|
@@ -8711,6 +8789,8 @@ export type TCreateTvcAppBody = {
|
|
|
8711
8789
|
enableDebugModeDeployments?: boolean;
|
|
8712
8790
|
/** AWS region in which to place this TVC application. Allowed values: us-east-1, ap-southeast-1. Default if not provided: us-east-1. */
|
|
8713
8791
|
region?: string;
|
|
8792
|
+
/** Enables static egress IPs for this TVC app. Requires enableEgress to be true. Set at app creation. Default if not provided: false. */
|
|
8793
|
+
enableStaticEgressIps?: boolean;
|
|
8714
8794
|
};
|
|
8715
8795
|
export type TCreateTvcAppInput = {
|
|
8716
8796
|
body: TCreateTvcAppBody;
|
|
@@ -9735,6 +9815,23 @@ export type TInitImportWalletBody = {
|
|
|
9735
9815
|
export type TInitImportWalletInput = {
|
|
9736
9816
|
body: TInitImportWalletBody;
|
|
9737
9817
|
};
|
|
9818
|
+
export type TInitOauth2AuthenticateResponse = {
|
|
9819
|
+
activity: v1Activity;
|
|
9820
|
+
/** The TLS Fetcher-signed encryption target for OAuth 2.0 authentication inputs. */
|
|
9821
|
+
enclaveTargetMessage: string;
|
|
9822
|
+
};
|
|
9823
|
+
export type TInitOauth2AuthenticateBody = {
|
|
9824
|
+
timestampMs?: string;
|
|
9825
|
+
organizationId?: string;
|
|
9826
|
+
/** The OAuth 2.0 credential whose authentication inputs will be encrypted to the target. */
|
|
9827
|
+
oauth2CredentialId: string;
|
|
9828
|
+
/** The transport encryption suite for the OAuth 2.0 authentication target. */
|
|
9829
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
9830
|
+
generateAppProofs?: boolean;
|
|
9831
|
+
};
|
|
9832
|
+
export type TInitOauth2AuthenticateInput = {
|
|
9833
|
+
body: TInitOauth2AuthenticateBody;
|
|
9834
|
+
};
|
|
9738
9835
|
export type TInitOtpResponse = {
|
|
9739
9836
|
activity: v1Activity;
|
|
9740
9837
|
/** Unique identifier for an OTP flow */
|
|
@@ -9893,18 +9990,12 @@ export type TOauth2AuthenticateResponse = {
|
|
|
9893
9990
|
export type TOauth2AuthenticateBody = {
|
|
9894
9991
|
timestampMs?: string;
|
|
9895
9992
|
organizationId?: string;
|
|
9896
|
-
/** The OAuth 2.0 credential
|
|
9993
|
+
/** The OAuth 2.0 credential selected by the client and repeated inside the encrypted payload. */
|
|
9897
9994
|
oauth2CredentialId: string;
|
|
9898
|
-
/**
|
|
9899
|
-
|
|
9900
|
-
/**
|
|
9901
|
-
|
|
9902
|
-
/** The code verifier used by OAuth 2.0 PKCE providers */
|
|
9903
|
-
codeVerifier: string;
|
|
9904
|
-
/** A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
|
|
9905
|
-
nonce: string;
|
|
9906
|
-
/** An optional P256 public key to which, if provided, the bearer token will be encrypted and returned via the `encrypted_bearer_token` claim of the OIDC Token */
|
|
9907
|
-
bearerTokenTargetPublicKey?: string;
|
|
9995
|
+
/** Encryption suite specific ciphertext of a JSON object containing organization_id, oauth2_credential_id, client_id, provider, auth_code, code_verifier, redirect_uri, nonce, and optional bearer_token_target_public_key. For enclave encrypt v1 this is a JSON-encoded ClientSendMsg encrypted to target_public_key. */
|
|
9996
|
+
encryptedMessage: string;
|
|
9997
|
+
/** Targeted transport encryption public key, from the enclave target message returned by InitOauth2Authenticate. */
|
|
9998
|
+
targetPublicKey: string;
|
|
9908
9999
|
generateAppProofs?: boolean;
|
|
9909
10000
|
};
|
|
9910
10001
|
export type TOauth2AuthenticateInput = {
|
|
@@ -10791,6 +10882,8 @@ export type TEthSendTransactionV2Body = {
|
|
|
10791
10882
|
gasStationNonce?: string;
|
|
10792
10883
|
/** Ordered list of calls to execute. Must contain between 1 and 50 entries. A single entry with sponsor=false uses EIP-1559; multiple entries use EIP-7702 batch execution via Gas Station. */
|
|
10793
10884
|
calls: v1EthCallParams[];
|
|
10885
|
+
/** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
|
|
10886
|
+
externalSignerPubkey?: string;
|
|
10794
10887
|
generateAppProofs?: boolean;
|
|
10795
10888
|
};
|
|
10796
10889
|
export type TEthSendTransactionV2Input = {
|
|
@@ -10837,6 +10930,8 @@ export type TSolSendTransactionV2Body = {
|
|
|
10837
10930
|
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
10838
10931
|
/** User-provided blockhash for replay protection / deadline control. If provided, it is used as-is, including for sponsored transactions (the transaction is only broadcastable while the blockhash is current). If omitted and sponsor=true, a fresh blockhash is fetched during execution. */
|
|
10839
10932
|
recentBlockhash?: string;
|
|
10933
|
+
/** The public key of the external signer to use for signing this transaction. Only needed for external signer requests. */
|
|
10934
|
+
externalSignerPubkey?: string;
|
|
10840
10935
|
generateAppProofs?: boolean;
|
|
10841
10936
|
};
|
|
10842
10937
|
export type TSolSendTransactionV2Input = {
|
|
@@ -10862,6 +10957,21 @@ export type ProxyTGetAccountBody = {
|
|
|
10862
10957
|
export type ProxyTGetAccountInput = {
|
|
10863
10958
|
body: ProxyTGetAccountBody;
|
|
10864
10959
|
};
|
|
10960
|
+
export type ProxyTInitOAuth2AuthenticateV2Response = {
|
|
10961
|
+
/** The credential ID to include in the encrypted payload and subsequent authentication request. */
|
|
10962
|
+
oauth2CredentialId: string;
|
|
10963
|
+
/** The enclave target message used to encrypt the OAuth authentication payload. */
|
|
10964
|
+
enclaveTargetMessage: string;
|
|
10965
|
+
};
|
|
10966
|
+
export type ProxyTInitOAuth2AuthenticateV2Body = {
|
|
10967
|
+
/** The client ID registered with the OAuth 2.0 provider. */
|
|
10968
|
+
clientId: string;
|
|
10969
|
+
/** The transport encryption suite to use for the authentication inputs. */
|
|
10970
|
+
encryptionSuite: v1TransportEncryptionSuite;
|
|
10971
|
+
};
|
|
10972
|
+
export type ProxyTInitOAuth2AuthenticateV2Input = {
|
|
10973
|
+
body: ProxyTInitOAuth2AuthenticateV2Body;
|
|
10974
|
+
};
|
|
10865
10975
|
export type ProxyTOAuth2AuthenticateResponse = {
|
|
10866
10976
|
/** A Turnkey issued OIDC token to be used with the LoginWithOAuth activity */
|
|
10867
10977
|
oidcToken: string;
|
|
@@ -10883,6 +10993,21 @@ export type ProxyTOAuth2AuthenticateBody = {
|
|
|
10883
10993
|
export type ProxyTOAuth2AuthenticateInput = {
|
|
10884
10994
|
body: ProxyTOAuth2AuthenticateBody;
|
|
10885
10995
|
};
|
|
10996
|
+
export type ProxyTOAuth2AuthenticateV2Response = {
|
|
10997
|
+
/** A Turnkey OIDC token bound to the nonce in the encrypted authentication payload. */
|
|
10998
|
+
oidcToken: string;
|
|
10999
|
+
};
|
|
11000
|
+
export type ProxyTOAuth2AuthenticateV2Body = {
|
|
11001
|
+
/** The OAuth credential ID returned by InitOAuth2AuthenticateV2. */
|
|
11002
|
+
oauth2CredentialId: string;
|
|
11003
|
+
/** Encryption suite specific ciphertext of a JSON object containing organization_id, oauth2_credential_id, client_id, provider, auth_code, code_verifier, redirect_uri, nonce, and optional bearer_token_target_public_key. For enclave encrypt v1 this is a JSON-encoded ClientSendMsg encrypted to target_public_key. Use the expected organization, client ID, and provider from the client configuration. */
|
|
11004
|
+
encryptedMessage: string;
|
|
11005
|
+
/** Targeted transport encryption public key, from the enclave target message returned by InitOAuth2AuthenticateV2. */
|
|
11006
|
+
targetPublicKey: string;
|
|
11007
|
+
};
|
|
11008
|
+
export type ProxyTOAuth2AuthenticateV2Input = {
|
|
11009
|
+
body: ProxyTOAuth2AuthenticateV2Body;
|
|
11010
|
+
};
|
|
10886
11011
|
export type ProxyTOAuthLoginResponse = {
|
|
10887
11012
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
10888
11013
|
session: string;
|