@turnkey/sdk-types 1.12.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 +76 -0
- package/dist/__generated__/types.d.ts +197 -73
- 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 +173 -81
- 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
|
@@ -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";
|
|
@@ -1691,7 +1725,7 @@ export type v1CreateUsageControlIntent = {
|
|
|
1691
1725
|
/** Data source for the Usage Control. */
|
|
1692
1726
|
dataSource: v1UsageControlDataSource;
|
|
1693
1727
|
/** Aggregation expression that the Usage Control evaluates. */
|
|
1694
|
-
|
|
1728
|
+
budget: v1UsageControlBudget;
|
|
1695
1729
|
/** Identifier for the Usage Control. Policies reference it as `controls.<identifier>`. It must be unique within the Organization. */
|
|
1696
1730
|
identifier: string;
|
|
1697
1731
|
};
|
|
@@ -1885,6 +1919,8 @@ export type v1DeleteAuthenticatorsResult = {
|
|
|
1885
1919
|
export type v1DeleteExternalSignerIntentV1 = {
|
|
1886
1920
|
/** Hex-encoded public key of the external signer to delete. The external signer must belong to the organization. */
|
|
1887
1921
|
publicKey: string;
|
|
1922
|
+
/** Optional parameter for deleting the external signer along with the wrapped keys it generated, including keys owned by other organizations in its family. Turnkey stores a copy of these wrapped keys; the operator must keep its own backup, or the keys are permanently lost. */
|
|
1923
|
+
deleteWithoutExport?: boolean;
|
|
1888
1924
|
};
|
|
1889
1925
|
export type v1DeleteExternalSignerRequest = {
|
|
1890
1926
|
type: "ACTIVITY_TYPE_DELETE_EXTERNAL_SIGNER_V1";
|
|
@@ -1950,6 +1986,11 @@ export type v1DeleteMfaPolicyResult = {
|
|
|
1950
1986
|
/** Unique identifier for a given MFA Policy. */
|
|
1951
1987
|
mfaPolicyId: string;
|
|
1952
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 = {};
|
|
1953
1994
|
export type v1DeleteOauth2CredentialIntent = {
|
|
1954
1995
|
/** The ID of the OAuth 2.0 credential to delete */
|
|
1955
1996
|
oauth2CredentialId: string;
|
|
@@ -2377,13 +2418,13 @@ export type v1EarnEnabledVault = {
|
|
|
2377
2418
|
provider?: v1EarnProvider;
|
|
2378
2419
|
/** CAIP-19 asset ID of the vault's underlying asset (e.g. 'eip155:8453/erc20:0x833589...'); the chain is encoded in the identifier. */
|
|
2379
2420
|
caip19?: string;
|
|
2380
|
-
/** Gross annual percentage yield, expressed as a decimal fraction (before fees). */
|
|
2421
|
+
/** Gross annual percentage yield including protocol rewards, expressed as a decimal fraction (before fees). */
|
|
2381
2422
|
apyPct?: string;
|
|
2382
2423
|
/** Total deposited through this wrapper (wrapper TVL), in raw on-chain units of the underlying asset. */
|
|
2383
2424
|
totalDeposited?: string;
|
|
2384
2425
|
/** Normalized total-deposited values for display only (usd + crypto). Do not do arithmetic with these; use total_deposited instead. */
|
|
2385
2426
|
display?: v1EarnValueDisplay;
|
|
2386
|
-
/** Annual percentage yield net of fees, expressed as a decimal fraction. */
|
|
2427
|
+
/** Annual percentage yield net of fees, expressed as a decimal fraction. Fees apply to the non-reward portion only; rewards_apy_pct passes through untouched. */
|
|
2387
2428
|
netApyPct?: string;
|
|
2388
2429
|
/** Client fee taken on yield, in basis points. */
|
|
2389
2430
|
clientFeeBps?: string;
|
|
@@ -2415,6 +2456,8 @@ export type v1EarnEnabledVault = {
|
|
|
2415
2456
|
deployRequestId?: string;
|
|
2416
2457
|
/** Failure detail when deploy_status is FAILED. */
|
|
2417
2458
|
deployError?: string;
|
|
2459
|
+
/** The protocol-reward portion of apy_pct (e.g. Merkl campaigns), expressed as a decimal fraction. */
|
|
2460
|
+
rewardsApyPct?: string;
|
|
2418
2461
|
};
|
|
2419
2462
|
export type v1EarnPosition = {
|
|
2420
2463
|
/** Address of the underlying yield vault. */
|
|
@@ -2519,7 +2562,7 @@ export type v1EarnVault = {
|
|
|
2519
2562
|
caip19?: string;
|
|
2520
2563
|
/** Total value locked in the vault, in raw on-chain units of the underlying asset. The catalog is sorted by the USD value of this. */
|
|
2521
2564
|
tvl?: string;
|
|
2522
|
-
/**
|
|
2565
|
+
/** Gross annual percentage yield including protocol rewards, expressed as a decimal fraction (e.g., '0.0812' for 8.12%). */
|
|
2523
2566
|
apyPct?: string;
|
|
2524
2567
|
/** Whether the organization has enabled this vault. */
|
|
2525
2568
|
enabled?: boolean;
|
|
@@ -2537,6 +2580,8 @@ export type v1EarnVault = {
|
|
|
2537
2580
|
forceDeallocatableLiquidity?: string;
|
|
2538
2581
|
/** Normalized force-deallocatable liquidity values for display purposes only (usd + crypto). Do not do arithmetic with these; use force_deallocatable_liquidity instead. */
|
|
2539
2582
|
forceDeallocatableLiquidityDisplay?: v1EarnValueDisplay;
|
|
2583
|
+
/** The protocol-reward portion of apy_pct (e.g. Merkl campaigns), expressed as a decimal fraction. */
|
|
2584
|
+
rewardsApyPct?: string;
|
|
2540
2585
|
};
|
|
2541
2586
|
export type v1EarnVaultExposure = {
|
|
2542
2587
|
/** Provider-specific identifier for the market (the Morpho Blue market id). */
|
|
@@ -2806,6 +2851,8 @@ export type v1EthSendTransactionIntentV2 = {
|
|
|
2806
2851
|
gasStationNonce?: string;
|
|
2807
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. */
|
|
2808
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;
|
|
2809
2856
|
};
|
|
2810
2857
|
export type v1EthSendTransactionRequest = {
|
|
2811
2858
|
type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2";
|
|
@@ -2827,6 +2874,16 @@ export type v1EthSendTransactionResultV2 = {
|
|
|
2827
2874
|
export type v1EthSendTransactionStatus = {
|
|
2828
2875
|
/** The Ethereum transaction hash, if available. */
|
|
2829
2876
|
txHash?: string;
|
|
2877
|
+
/** Fee the landed transaction paid, including when it reverted, when available. */
|
|
2878
|
+
fee?: v1EthTransactionFee;
|
|
2879
|
+
};
|
|
2880
|
+
export type v1EthTransactionFee = {
|
|
2881
|
+
/** Gas units consumed by the landed transaction (receipt.gasUsed). */
|
|
2882
|
+
gasUsed?: string;
|
|
2883
|
+
/** Effective gas price paid per gas unit, in wei (decimal string). On OP Stack chains, gasUsed multiplied by this price excludes the L1 data and operator fees. */
|
|
2884
|
+
effectiveGasPrice?: string;
|
|
2885
|
+
/** Sponsored cost recorded for this transaction, in USD, at the token price used for billing. Unset for non-sponsored and testnet transactions, and until the cost is recorded. */
|
|
2886
|
+
totalCostUsd?: string;
|
|
2830
2887
|
};
|
|
2831
2888
|
export type v1EthTransactionHistoryItem = {
|
|
2832
2889
|
/** EVM transaction hash. */
|
|
@@ -3034,7 +3091,7 @@ export type v1ExportPrivateKeyResult = {
|
|
|
3034
3091
|
export type v1ExportSecretParams = {
|
|
3035
3092
|
/** Unique identifier for the secret to export. */
|
|
3036
3093
|
secretId: string;
|
|
3037
|
-
/** Client-side public key generated by the user, to which the exported secret will be encrypted. */
|
|
3094
|
+
/** Client-side public key generated by the user, to which the exported secret will be encrypted. This must be a fresh ephemeral key used for exactly one exported secret: do not reuse it across secrets in the same batch or across requests. Turnkey does not enforce this, so clients are responsible for generating a unique target key per secret. */
|
|
3038
3095
|
targetPublicKey: string;
|
|
3039
3096
|
/** Transport encryption suite used for the exported secret. */
|
|
3040
3097
|
encryptionSuite: v1TransportEncryptionSuite;
|
|
@@ -4120,6 +4177,25 @@ export type v1InitImportWalletResult = {
|
|
|
4120
4177
|
/** Import bundle containing a public key and signature to use for importing client data. */
|
|
4121
4178
|
importBundle: string;
|
|
4122
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
|
+
};
|
|
4123
4199
|
export type v1InitOtpAuthIntent = {
|
|
4124
4200
|
/** Enum to specify whether to send OTP via SMS, email, or WhatsApp */
|
|
4125
4201
|
otpType: string;
|
|
@@ -4521,6 +4597,10 @@ export type v1Intent = {
|
|
|
4521
4597
|
createExternalSignerIntentV1?: v1CreateExternalSignerIntentV1;
|
|
4522
4598
|
deleteExternalSignerIntentV1?: v1DeleteExternalSignerIntentV1;
|
|
4523
4599
|
mintJwtIntent?: v1MintJwtIntent;
|
|
4600
|
+
addNotificationDomainsIntent?: v1AddNotificationDomainsIntent;
|
|
4601
|
+
deleteNotificationDomainsIntent?: v1DeleteNotificationDomainsIntent;
|
|
4602
|
+
initOauth2AuthenticateIntent?: v1InitOauth2AuthenticateIntent;
|
|
4603
|
+
oauth2AuthenticateIntentV2?: v1Oauth2AuthenticateIntentV2;
|
|
4524
4604
|
};
|
|
4525
4605
|
export type v1InvitationParams = {
|
|
4526
4606
|
/** The name of the intended Invitation recipient. */
|
|
@@ -4805,13 +4885,21 @@ export type v1Oauth2AuthenticateIntent = {
|
|
|
4805
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 */
|
|
4806
4886
|
bearerTokenTargetPublicKey?: string;
|
|
4807
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
|
+
};
|
|
4808
4896
|
export type v1Oauth2AuthenticateRequest = {
|
|
4809
|
-
type: "
|
|
4897
|
+
type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE_V2";
|
|
4810
4898
|
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
4811
4899
|
timestampMs: string;
|
|
4812
4900
|
/** Unique identifier for a given Organization. */
|
|
4813
4901
|
organizationId: string;
|
|
4814
|
-
parameters:
|
|
4902
|
+
parameters: v1Oauth2AuthenticateIntentV2;
|
|
4815
4903
|
generateAppProofs?: boolean;
|
|
4816
4904
|
};
|
|
4817
4905
|
export type v1Oauth2AuthenticateResult = {
|
|
@@ -5345,6 +5433,9 @@ export type v1Result = {
|
|
|
5345
5433
|
createExternalSignerResultV1?: v1CreateExternalSignerResultV1;
|
|
5346
5434
|
deleteExternalSignerResultV1?: v1DeleteExternalSignerResultV1;
|
|
5347
5435
|
mintJwtResult?: v1MintJwtResult;
|
|
5436
|
+
addNotificationDomainsResult?: v1AddNotificationDomainsResult;
|
|
5437
|
+
deleteNotificationDomainsResult?: v1DeleteNotificationDomainsResult;
|
|
5438
|
+
initOauth2AuthenticateResult?: v1InitOauth2AuthenticateResult;
|
|
5348
5439
|
};
|
|
5349
5440
|
export type v1RevertChainEntry = {
|
|
5350
5441
|
/** The contract address where the revert occurred. */
|
|
@@ -5443,7 +5534,7 @@ export type v1SecretMetadata = {
|
|
|
5443
5534
|
secretId: string;
|
|
5444
5535
|
/** Optional human-readable name for the secret. */
|
|
5445
5536
|
name?: string;
|
|
5446
|
-
/** Policy visible static properties bound to the secret at creation time. */
|
|
5537
|
+
/** Policy visible static properties bound to the secret at creation time. For display only: the enclave does not authenticate them in this view. */
|
|
5447
5538
|
staticProperties: v1KeyValue[];
|
|
5448
5539
|
/** Unix timestamp in milliseconds for when the secret was created. */
|
|
5449
5540
|
createdAtUnixMs: string;
|
|
@@ -5657,6 +5748,8 @@ export type v1SolSendTransactionIntentV2 = {
|
|
|
5657
5748
|
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
5658
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. */
|
|
5659
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;
|
|
5660
5753
|
};
|
|
5661
5754
|
export type v1SolSendTransactionRequest = {
|
|
5662
5755
|
type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION_V2";
|
|
@@ -5726,6 +5819,20 @@ export type v1SolanaFailureDetails = {
|
|
|
5726
5819
|
export type v1SolanaSendTransactionStatus = {
|
|
5727
5820
|
/** The Solana transaction signature, if available. */
|
|
5728
5821
|
signature?: string;
|
|
5822
|
+
/** Fee the landed transaction paid, including when it failed on chain, when available. */
|
|
5823
|
+
fee?: v1SolanaTransactionFee;
|
|
5824
|
+
};
|
|
5825
|
+
export type v1SolanaTransactionFee = {
|
|
5826
|
+
/** Total fee the landed transaction paid, in lamports (meta.fee). Excludes rent. */
|
|
5827
|
+
feeLamports?: string;
|
|
5828
|
+
/** Rent the paymaster covered for accounts this transaction created, in lamports, net of any rent swept back in the same transaction. Unset when none was sponsored. Not reduced if an account is later closed. */
|
|
5829
|
+
sponsoredRentLamports?: string;
|
|
5830
|
+
/** Sponsored cost recorded for this transaction, in USD, at the token price used for billing: fee_cost_usd plus rent_cost_usd. Unset for non-sponsored and testnet transactions, and until the cost is recorded. */
|
|
5831
|
+
totalCostUsd?: string;
|
|
5832
|
+
/** The transaction fee portion of total_cost_usd, in USD. */
|
|
5833
|
+
feeCostUsd?: string;
|
|
5834
|
+
/** The sponsored rent portion of total_cost_usd, in USD. Unset when no rent was sponsored. */
|
|
5835
|
+
rentCostUsd?: string;
|
|
5729
5836
|
};
|
|
5730
5837
|
export type v1SparkClaimLeaf = {
|
|
5731
5838
|
/** Leaf identifier (UUID). */
|
|
@@ -5969,6 +6076,14 @@ export type v1SwapError = {
|
|
|
5969
6076
|
/** Optional detail from the swap provider about why the fill did not complete, when available. */
|
|
5970
6077
|
providerReason?: string;
|
|
5971
6078
|
};
|
|
6079
|
+
export type v1SwapExecutionCall = {
|
|
6080
|
+
/** Call target. Empty for a Solana transaction, whose instructions are in data. */
|
|
6081
|
+
to: string;
|
|
6082
|
+
/** Native value in atomic units. Zero when the call sends none. */
|
|
6083
|
+
value: string;
|
|
6084
|
+
/** EVM calldata, or Solana instruction JSON. Solana execution adds the blockhash, lookup tables, and, when sponsored, the fee payer and rent instructions around this payload. */
|
|
6085
|
+
data: string;
|
|
6086
|
+
};
|
|
5972
6087
|
export type v1SwapQuote = {
|
|
5973
6088
|
/** Identifier for this provider quote. Pass this value to execute_swap_v2 to bind execution to this exact quote. The signer is derived from the quote; clients do not resupply sign_with on execute. */
|
|
5974
6089
|
quoteId: string;
|
|
@@ -6012,6 +6127,8 @@ export type v1SwapQuoteV2 = {
|
|
|
6012
6127
|
estimatedFixedRateAdjustmentUsd?: string;
|
|
6013
6128
|
/** Estimated charges this swap adds to your invoice, one field per swap line item. Present when fee_sponsorship or fixed_rate is true. Informational; the final amounts are settled after execution and reported by get_swap_status. */
|
|
6014
6129
|
estimatedCharges?: v1SwapCharges;
|
|
6130
|
+
/** Calls executed, in order, including approvals. On EVM, execution signs a batch or an EIP-7702 wrapper around these calls. On Solana, data is the instruction payload; execution adds the blockhash and address lookup tables, and when the swap is sponsored it also adds the fee payer and rent instructions. */
|
|
6131
|
+
transactions: v1SwapExecutionCall[];
|
|
6015
6132
|
};
|
|
6016
6133
|
export type v1SwapRefund = {
|
|
6017
6134
|
/** CAIP-19 asset returned by the swap provider after a failed cross-chain fill. */
|
|
@@ -6103,7 +6220,6 @@ export type v1TransactionHistoryTurnkey = {
|
|
|
6103
6220
|
submittedAt?: string;
|
|
6104
6221
|
};
|
|
6105
6222
|
export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
|
|
6106
|
-
export type v1TransportEncryptionSuite = "TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1";
|
|
6107
6223
|
export type v1TvcApp = {
|
|
6108
6224
|
/** Unique Identifier for this TVC App. */
|
|
6109
6225
|
id: string;
|
|
@@ -6129,6 +6245,8 @@ export type v1TvcApp = {
|
|
|
6129
6245
|
enableDebugModeDeployments: boolean;
|
|
6130
6246
|
/** region this TVC App is deployed in, e.g. us-east-1 or ap-southeast-1. Set at app creation. */
|
|
6131
6247
|
region: string;
|
|
6248
|
+
/** Whether this TVC app has static egress IPs enabled. Set at app creation. */
|
|
6249
|
+
enableStaticEgressIps: boolean;
|
|
6132
6250
|
};
|
|
6133
6251
|
export type v1TvcContainerSpec = {
|
|
6134
6252
|
/** The URL for this container image. */
|
|
@@ -6791,31 +6909,7 @@ export type v1UpsertSwapFixedRateLimitConfigResult = {
|
|
|
6791
6909
|
/** Unique identifier of the organization the limit config was saved for. */
|
|
6792
6910
|
organizationId: string;
|
|
6793
6911
|
};
|
|
6794
|
-
export type v1UsageControlAggregation = {
|
|
6795
|
-
/** Method that aggregates matching data points. */
|
|
6796
|
-
method: v1UsageControlAggregationMethod;
|
|
6797
|
-
/** Comparison between the aggregate and the threshold. */
|
|
6798
|
-
operator: v1UsageControlAggregationOperator;
|
|
6799
|
-
/** Non-negative base-10 decimal string with at most 46 integer digits and 32 fractional digits. */
|
|
6800
|
-
threshold: string;
|
|
6801
|
-
/** Time window for the aggregation. */
|
|
6802
|
-
window: v1UsageControlAggregationWindow;
|
|
6803
|
-
/** Scope that partitions matching data before aggregation. */
|
|
6804
|
-
groupBy: v1UsageControlAggregationGroupBy;
|
|
6805
|
-
};
|
|
6806
|
-
export type v1UsageControlAggregationGroupBy = {
|
|
6807
|
-
/** Uses one shared bucket for the Organization. */
|
|
6808
|
-
organization?: v1UsageControlAggregationGroupByOrganization;
|
|
6809
|
-
/** Uses one bucket for each User. */
|
|
6810
|
-
user?: v1UsageControlAggregationGroupByUser;
|
|
6811
|
-
/** Uses one bucket for each Wallet. */
|
|
6812
|
-
wallet?: v1UsageControlAggregationGroupByWallet;
|
|
6813
|
-
};
|
|
6814
|
-
export type v1UsageControlAggregationGroupByOrganization = {};
|
|
6815
|
-
export type v1UsageControlAggregationGroupByUser = {};
|
|
6816
|
-
export type v1UsageControlAggregationGroupByWallet = {};
|
|
6817
6912
|
export type v1UsageControlAggregationMethod = "USAGE_CONTROL_AGGREGATION_METHOD_SUM" | "USAGE_CONTROL_AGGREGATION_METHOD_COUNT";
|
|
6818
|
-
export type v1UsageControlAggregationOperator = "USAGE_CONTROL_AGGREGATION_OPERATOR_LESS_THAN" | "USAGE_CONTROL_AGGREGATION_OPERATOR_LESS_THAN_OR_EQUAL" | "USAGE_CONTROL_AGGREGATION_OPERATOR_EQUAL" | "USAGE_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN_OR_EQUAL" | "USAGE_CONTROL_AGGREGATION_OPERATOR_GREATER_THAN";
|
|
6819
6913
|
export type v1UsageControlAggregationWindow = {
|
|
6820
6914
|
/** Uses a rolling time window. */
|
|
6821
6915
|
rolling?: v1UsageControlAggregationWindowRolling;
|
|
@@ -6827,27 +6921,24 @@ export type v1UsageControlAggregationWindowRolling = {
|
|
|
6827
6921
|
/** Duration of the rolling window, in seconds. */
|
|
6828
6922
|
duration: number;
|
|
6829
6923
|
};
|
|
6924
|
+
export type v1UsageControlBudget = {
|
|
6925
|
+
/** Method that aggregates matching data points. */
|
|
6926
|
+
method: v1UsageControlAggregationMethod;
|
|
6927
|
+
/** Non-negative base-10 decimal string with at most 46 integer digits and 32 fractional digits. */
|
|
6928
|
+
limit: string;
|
|
6929
|
+
/** Time window for the aggregation. */
|
|
6930
|
+
window: v1UsageControlAggregationWindow;
|
|
6931
|
+
};
|
|
6830
6932
|
export type v1UsageControlDataSource = {
|
|
6831
6933
|
/** Uses transfers of the listed on-chain assets as input data. */
|
|
6832
6934
|
chainAssetTransfer?: v1UsageControlDataSourceChainAssetTransfer;
|
|
6833
6935
|
/** Uses executed Turnkey activities as input data. */
|
|
6834
6936
|
activityExecution?: v1UsageControlDataSourceActivityExecution;
|
|
6835
6937
|
};
|
|
6836
|
-
export type v1UsageControlDataSourceActivityExecution = {
|
|
6837
|
-
/** Filters activity executions by type. */
|
|
6838
|
-
filter?: v1UsageControlDataSourceActivityExecutionFilter;
|
|
6839
|
-
};
|
|
6840
|
-
export type v1UsageControlDataSourceActivityExecutionFilter = {
|
|
6841
|
-
/** Activity types whose executions are included. */
|
|
6842
|
-
activity?: v1UsageControlDataSourceFilterActivity[];
|
|
6843
|
-
};
|
|
6938
|
+
export type v1UsageControlDataSourceActivityExecution = {};
|
|
6844
6939
|
export type v1UsageControlDataSourceChainAssetTransfer = {
|
|
6845
6940
|
/** Assets whose transfers are included in the data source. */
|
|
6846
6941
|
definition: v1UsageControlDataSourceChainAssetTransferDefinition[];
|
|
6847
|
-
/** Filters asset transfers by activity type. */
|
|
6848
|
-
filter?: v1UsageControlDataSourceChainAssetTransferFilter;
|
|
6849
|
-
/** Selects when to measure an asset transfer. */
|
|
6850
|
-
phase?: v1UsageControlDataSourcePhase;
|
|
6851
6942
|
};
|
|
6852
6943
|
export type v1UsageControlDataSourceChainAssetTransferDefinition = {
|
|
6853
6944
|
/** CAIP-19 identifier for the asset. */
|
|
@@ -6855,22 +6946,6 @@ export type v1UsageControlDataSourceChainAssetTransferDefinition = {
|
|
|
6855
6946
|
/** Integer between 0 and 32 (inclusive) that specifies the number of decimal places for the asset. */
|
|
6856
6947
|
decimals: number;
|
|
6857
6948
|
};
|
|
6858
|
-
export type v1UsageControlDataSourceChainAssetTransferFilter = {
|
|
6859
|
-
/** Activity types whose asset transfers are included. */
|
|
6860
|
-
activity?: v1UsageControlDataSourceFilterActivity[];
|
|
6861
|
-
};
|
|
6862
|
-
export type v1UsageControlDataSourceFilterActivity = {
|
|
6863
|
-
/** Name of an activity type to include, such as `ACTIVITY_TYPE_SOL_SEND_TRANSACTION`. */
|
|
6864
|
-
activityType: string;
|
|
6865
|
-
};
|
|
6866
|
-
export type v1UsageControlDataSourcePhase = {
|
|
6867
|
-
/** Measures the transfer when Turnkey signs the transaction and returns it to the user. */
|
|
6868
|
-
signature?: v1UsageControlDataSourcePhaseSignature;
|
|
6869
|
-
/** Reserved for future use. Measures the transfer after the transaction lands on chain. */
|
|
6870
|
-
submission?: v1UsageControlDataSourcePhaseSubmission;
|
|
6871
|
-
};
|
|
6872
|
-
export type v1UsageControlDataSourcePhaseSignature = {};
|
|
6873
|
-
export type v1UsageControlDataSourcePhaseSubmission = {};
|
|
6874
6949
|
export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
|
|
6875
6950
|
export type v1User = {
|
|
6876
6951
|
/** Unique identifier for a given User. */
|
|
@@ -8714,6 +8789,8 @@ export type TCreateTvcAppBody = {
|
|
|
8714
8789
|
enableDebugModeDeployments?: boolean;
|
|
8715
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. */
|
|
8716
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;
|
|
8717
8794
|
};
|
|
8718
8795
|
export type TCreateTvcAppInput = {
|
|
8719
8796
|
body: TCreateTvcAppBody;
|
|
@@ -8984,6 +9061,8 @@ export type TDeleteExternalSignerBody = {
|
|
|
8984
9061
|
organizationId?: string;
|
|
8985
9062
|
/** Hex-encoded public key of the external signer to delete. The external signer must belong to the organization. */
|
|
8986
9063
|
publicKey: string;
|
|
9064
|
+
/** Optional parameter for deleting the external signer along with the wrapped keys it generated, including keys owned by other organizations in its family. Turnkey stores a copy of these wrapped keys; the operator must keep its own backup, or the keys are permanently lost. */
|
|
9065
|
+
deleteWithoutExport?: boolean;
|
|
8987
9066
|
};
|
|
8988
9067
|
export type TDeleteExternalSignerInput = {
|
|
8989
9068
|
body: TDeleteExternalSignerBody;
|
|
@@ -9736,6 +9815,23 @@ export type TInitImportWalletBody = {
|
|
|
9736
9815
|
export type TInitImportWalletInput = {
|
|
9737
9816
|
body: TInitImportWalletBody;
|
|
9738
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
|
+
};
|
|
9739
9835
|
export type TInitOtpResponse = {
|
|
9740
9836
|
activity: v1Activity;
|
|
9741
9837
|
/** Unique identifier for an OTP flow */
|
|
@@ -9894,18 +9990,12 @@ export type TOauth2AuthenticateResponse = {
|
|
|
9894
9990
|
export type TOauth2AuthenticateBody = {
|
|
9895
9991
|
timestampMs?: string;
|
|
9896
9992
|
organizationId?: string;
|
|
9897
|
-
/** The OAuth 2.0 credential
|
|
9993
|
+
/** The OAuth 2.0 credential selected by the client and repeated inside the encrypted payload. */
|
|
9898
9994
|
oauth2CredentialId: string;
|
|
9899
|
-
/**
|
|
9900
|
-
|
|
9901
|
-
/**
|
|
9902
|
-
|
|
9903
|
-
/** The code verifier used by OAuth 2.0 PKCE providers */
|
|
9904
|
-
codeVerifier: string;
|
|
9905
|
-
/** A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
|
|
9906
|
-
nonce: string;
|
|
9907
|
-
/** 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 */
|
|
9908
|
-
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;
|
|
9909
9999
|
generateAppProofs?: boolean;
|
|
9910
10000
|
};
|
|
9911
10001
|
export type TOauth2AuthenticateInput = {
|
|
@@ -10792,6 +10882,8 @@ export type TEthSendTransactionV2Body = {
|
|
|
10792
10882
|
gasStationNonce?: string;
|
|
10793
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. */
|
|
10794
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;
|
|
10795
10887
|
generateAppProofs?: boolean;
|
|
10796
10888
|
};
|
|
10797
10889
|
export type TEthSendTransactionV2Input = {
|
|
@@ -10838,6 +10930,8 @@ export type TSolSendTransactionV2Body = {
|
|
|
10838
10930
|
caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
|
|
10839
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. */
|
|
10840
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;
|
|
10841
10935
|
generateAppProofs?: boolean;
|
|
10842
10936
|
};
|
|
10843
10937
|
export type TSolSendTransactionV2Input = {
|
|
@@ -10863,6 +10957,21 @@ export type ProxyTGetAccountBody = {
|
|
|
10863
10957
|
export type ProxyTGetAccountInput = {
|
|
10864
10958
|
body: ProxyTGetAccountBody;
|
|
10865
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
|
+
};
|
|
10866
10975
|
export type ProxyTOAuth2AuthenticateResponse = {
|
|
10867
10976
|
/** A Turnkey issued OIDC token to be used with the LoginWithOAuth activity */
|
|
10868
10977
|
oidcToken: string;
|
|
@@ -10884,6 +10993,21 @@ export type ProxyTOAuth2AuthenticateBody = {
|
|
|
10884
10993
|
export type ProxyTOAuth2AuthenticateInput = {
|
|
10885
10994
|
body: ProxyTOAuth2AuthenticateBody;
|
|
10886
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
|
+
};
|
|
10887
11011
|
export type ProxyTOAuthLoginResponse = {
|
|
10888
11012
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
10889
11013
|
session: string;
|