@turnkey/sdk-types 1.0.0 → 1.1.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.
@@ -1,3 +1,310 @@
1
+ export type externaldatav1SignatureScheme = "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
2
+ export type protobufAny = {
3
+ "@type"?: string;
4
+ [key: string]: any;
5
+ };
6
+ export type rpcStatus = {
7
+ code?: number;
8
+ message?: string;
9
+ details?: protobufAny[];
10
+ };
11
+ export type v1AddressFormat = "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP" | "ADDRESS_FORMAT_SPARK_MAINNET" | "ADDRESS_FORMAT_SPARK_REGTEST";
12
+ export type v1ApiKeyCurve = "API_KEY_CURVE_P256" | "API_KEY_CURVE_SECP256K1" | "API_KEY_CURVE_ED25519";
13
+ export type v1ApiKeyParamsV2 = {
14
+ /** Human-readable name for an API Key. */
15
+ apiKeyName: string;
16
+ /** The public component of a cryptographic key pair used to sign messages and transactions. */
17
+ publicKey: string;
18
+ /** The curve type to be used for processing API key signatures. */
19
+ curveType: v1ApiKeyCurve;
20
+ /** Optional window (in seconds) indicating how long the API Key should last. */
21
+ expirationSeconds?: string;
22
+ };
23
+ export type v1AppProof = {
24
+ /** Scheme of signing key. */
25
+ scheme: externaldatav1SignatureScheme;
26
+ /** Ephemeral public key. */
27
+ publicKey: string;
28
+ /** JSON serialized AppProofPayload. */
29
+ proofPayload: string;
30
+ /** Signature over hashed proof_payload. */
31
+ signature: string;
32
+ };
33
+ export type v1Attestation = {
34
+ /** The cbor encoded then base64 url encoded id of the credential. */
35
+ credentialId: string;
36
+ /** A base64 url encoded payload containing metadata about the signing context and the challenge. */
37
+ clientDataJson: string;
38
+ /** A base64 url encoded payload containing authenticator data and any attestation the webauthn provider chooses. */
39
+ attestationObject: string;
40
+ /** The type of authenticator transports. */
41
+ transports: v1AuthenticatorTransport[];
42
+ };
43
+ export type v1AuthenticatorParamsV2 = {
44
+ /** Human-readable name for an Authenticator. */
45
+ authenticatorName: string;
46
+ /** Challenge presented for authentication purposes. */
47
+ challenge: string;
48
+ /** The attestation that proves custody of the authenticator and provides metadata about it. */
49
+ attestation: v1Attestation;
50
+ };
51
+ export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
52
+ export type v1ClientSignature = {
53
+ /** The public component of a cryptographic key pair used to create the signature. */
54
+ publicKey: string;
55
+ /** The signature scheme used to generate the client signature. */
56
+ scheme: v1ClientSignatureScheme;
57
+ /** The message that was signed. */
58
+ message: string;
59
+ /** The cryptographic signature over the message. */
60
+ signature: string;
61
+ };
62
+ export type v1ClientSignatureScheme = "CLIENT_SIGNATURE_SCHEME_API_P256";
63
+ export type v1Curve = "CURVE_SECP256K1" | "CURVE_ED25519" | "CURVE_P256";
64
+ export type v1GetAccountRequest = {
65
+ /** Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL', 'PHONE_NUMBER', 'OIDC_TOKEN' or 'PUBLIC_KEY' */
66
+ filterType: string;
67
+ /** The value of the filter to apply for the specified type. For example, a specific email or name string. */
68
+ filterValue: string;
69
+ /** Signed JWT containing a unique id, expiry, verification type, contact. Used to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. */
70
+ verificationToken?: string;
71
+ /** OIDC token to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. Needed for social linking when verification_token is not available. */
72
+ oidcToken?: string;
73
+ };
74
+ export type v1GetAccountResponse = {
75
+ organizationId?: string;
76
+ };
77
+ export type v1GetWalletKitConfigRequest = {};
78
+ export type v1GetWalletKitConfigResponse = {
79
+ /** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
80
+ enabledProviders: string[];
81
+ /** Session expiration duration in seconds */
82
+ sessionExpirationSeconds: string;
83
+ /** The organization ID this configuration applies to */
84
+ organizationId: string;
85
+ /** Mapping of social login providers to their OAuth client IDs. */
86
+ oauthClientIds?: Record<string, any>;
87
+ /** OAuth redirect URL to be used for social login flows. */
88
+ oauthRedirectUrl?: string;
89
+ otpAlphanumeric?: boolean;
90
+ otpLength?: string;
91
+ };
92
+ export type v1InitOtpRequest = {
93
+ type: "ACTIVITY_TYPE_INIT_OTP_V3";
94
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
95
+ timestampMs: string;
96
+ /** Unique identifier for a given Organization. */
97
+ organizationId: string;
98
+ parameters: v1InitOtpIntentV3;
99
+ generateAppProofs?: boolean;
100
+ };
101
+ export type v1InitOtpResponse = {
102
+ /** Unique identifier for an OTP authentication */
103
+ otpId: string;
104
+ };
105
+ export type v1InitOtpV2Request = {
106
+ /** Enum to specify whether to send OTP code via SMS or email */
107
+ otpType: string;
108
+ /** Email or phone number to send the OTP code to */
109
+ contact: string;
110
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
111
+ emailCustomization?: v1ProxyEmailCustomizationParams;
112
+ };
113
+ export type v1InitOtpV2Response = {
114
+ /** Unique identifier for an OTP flow. */
115
+ otpId: string;
116
+ /** Signed bundle containing a target encryption key to use when submitting OTP codes. */
117
+ otpEncryptionTargetBundle: string;
118
+ };
119
+ export type v1OAuth2AuthenticateRequest = {
120
+ /** The OAuth 2.0 provider to authenticate with */
121
+ provider: v1Oauth2Provider;
122
+ /** The auth_code provided by the OAuth 2.0 to the end user to be exchanged for a Bearer token in the OAuth 2.0 flow */
123
+ authCode: string;
124
+ /** The URI the user is redirected to after they have authenticated with the OAuth 2.0 provider */
125
+ redirectUri: string;
126
+ /** The code verifier used by OAuth 2.0 PKCE providers */
127
+ codeVerifier: string;
128
+ /** A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
129
+ nonce: string;
130
+ /** The client ID registered with the OAuth 2.0 provider */
131
+ clientId: string;
132
+ };
133
+ export type v1OAuth2AuthenticateResponse = {
134
+ /** A Turnkey issued OIDC token to be used with the LoginWithOAuth activity */
135
+ oidcToken: string;
136
+ };
137
+ export type v1OAuthLoginRequest = {
138
+ /** Base64 encoded OIDC token */
139
+ oidcToken: string;
140
+ /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the oidc token associated with this request */
141
+ publicKey: string;
142
+ /** Invalidate all other previously generated Login API keys */
143
+ invalidateExisting?: boolean;
144
+ /** Unique identifier for a given Organization. If provided, this organization id will be used directly. If omitted, uses the OIDC token to look up the associated organization id. */
145
+ organizationId?: string;
146
+ };
147
+ export type v1OAuthLoginResponse = {
148
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
149
+ session: string;
150
+ };
151
+ export type v1Oauth2Provider = "OAUTH2_PROVIDER_X" | "OAUTH2_PROVIDER_DISCORD";
152
+ export type v1OauthProviderParams = {
153
+ /** Human-readable name to identify a Provider. */
154
+ providerName: string;
155
+ /** Base64 encoded OIDC token */
156
+ oidcToken: string;
157
+ };
158
+ export type v1OauthProviderParamsV2 = {
159
+ /** Human-readable name to identify a Provider. */
160
+ providerName: string;
161
+ } & ({
162
+ oidcToken: string;
163
+ } | {
164
+ /** OIDC claims (iss, sub, aud) to uniquely identify the user */ oidcClaims: v1OidcClaims;
165
+ });
166
+ export type v1OidcClaims = {
167
+ /** The issuer identifier from the OIDC token (iss claim) */
168
+ iss: string;
169
+ /** The subject identifier from the OIDC token (sub claim) */
170
+ sub: string;
171
+ /** The audience from the OIDC token (aud claim) */
172
+ aud: string;
173
+ };
174
+ export type v1OtpLoginRequest = {
175
+ type: "ACTIVITY_TYPE_OTP_LOGIN_V2";
176
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
177
+ timestampMs: string;
178
+ /** Unique identifier for a given Organization. */
179
+ organizationId: string;
180
+ parameters: v1OtpLoginIntentV2;
181
+ generateAppProofs?: boolean;
182
+ };
183
+ export type v1OtpLoginResponse = {
184
+ /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
185
+ session: string;
186
+ };
187
+ export type v1OtpLoginV2Request = {
188
+ /** Session containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
189
+ verificationToken: string;
190
+ /** Client-side public key generated by the user, used as the session public key upon successful login. */
191
+ publicKey: string;
192
+ /** Signature proving authorization for this login. The signature is over the verification token ID and the new session public key. */
193
+ clientSignature: v1ClientSignature;
194
+ /** Invalidate all other previously generated Login sessions */
195
+ invalidateExisting?: boolean;
196
+ /** Unique identifier for a given Organization. If provided, this organization id will be used directly. If omitted, uses the verification token to look up the verified sub-organization based on the contact and verification type. */
197
+ organizationId?: string;
198
+ };
199
+ export type v1OtpLoginV2Response = {
200
+ /** Session containing an expiry, public key, session type, user id, and organization id */
201
+ session: string;
202
+ };
203
+ export type v1PathFormat = "PATH_FORMAT_BIP32";
204
+ export type v1ProxyEmailCustomizationParams = {
205
+ /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
206
+ templateId?: string;
207
+ };
208
+ export type v1SignupRequest = {
209
+ userEmail?: string;
210
+ userPhoneNumber?: string;
211
+ userTag?: string;
212
+ userName?: string;
213
+ organizationName?: string;
214
+ verificationToken?: string;
215
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
216
+ apiKeys: v1ApiKeyParamsV2[];
217
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
218
+ authenticators: v1AuthenticatorParamsV2[];
219
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
220
+ oauthProviders: v1OauthProviderParams[];
221
+ /** The wallet to create for the sub-organization */
222
+ wallet?: v1WalletParams;
223
+ /** Optional signature proving authorization for this signup. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
224
+ clientSignature?: v1ClientSignature;
225
+ };
226
+ export type v1SignupResponse = {
227
+ organizationId: string;
228
+ /** Wallet created for the sub-organization, if provided in the request */
229
+ wallet?: v1WalletResult;
230
+ /** Root user ID created for this sub-organization */
231
+ userId: string;
232
+ /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
233
+ appProofs?: v1AppProof[];
234
+ };
235
+ export type v1SignupV2Request = {
236
+ userEmail?: string;
237
+ userPhoneNumber?: string;
238
+ userTag?: string;
239
+ userName?: string;
240
+ organizationName?: string;
241
+ verificationToken?: string;
242
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
243
+ apiKeys: v1ApiKeyParamsV2[];
244
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
245
+ authenticators: v1AuthenticatorParamsV2[];
246
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
247
+ oauthProviders: v1OauthProviderParamsV2[];
248
+ /** The wallet to create for the sub-organization */
249
+ wallet?: v1WalletParams;
250
+ /** Optional signature proving authorization for this signup. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
251
+ clientSignature?: v1ClientSignature;
252
+ };
253
+ export type v1SignupV2Response = {
254
+ organizationId: string;
255
+ /** Wallet created for the sub-organization, if provided in the request */
256
+ wallet?: v1WalletResult;
257
+ /** Root user ID created for this sub-organization */
258
+ userId: string;
259
+ /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
260
+ appProofs?: v1AppProof[];
261
+ };
262
+ export type v1VerifyOtpRequest = {
263
+ type: "ACTIVITY_TYPE_VERIFY_OTP_V2";
264
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
265
+ timestampMs: string;
266
+ /** Unique identifier for a given Organization. */
267
+ organizationId: string;
268
+ parameters: v1VerifyOtpIntentV2;
269
+ generateAppProofs?: boolean;
270
+ };
271
+ export type v1VerifyOtpResponse = {
272
+ /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
273
+ verificationToken: string;
274
+ };
275
+ export type v1VerifyOtpV2Request = {
276
+ /** ID representing the result of an init OTP activity. */
277
+ otpId: string;
278
+ /** Encrypted bundle containing the OTP code and a client-generated public key. Turnkey's secure enclaves will decrypt this bundle, verify the OTP code, and issue a new Verification Token. Encrypted using the target encryption key provided in the INIT_OTP activity result. */
279
+ encryptedOtpBundle: string;
280
+ };
281
+ export type v1VerifyOtpV2Response = {
282
+ /** Verification Token containing a unique id, expiry, verification type, contact signed by Turnkey's enclaves. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
283
+ verificationToken: string;
284
+ };
285
+ export type v1WalletAccountParams = {
286
+ /** Cryptographic curve used to generate a wallet Account. */
287
+ curve: v1Curve;
288
+ /** Path format used to generate a wallet Account. */
289
+ pathFormat: v1PathFormat;
290
+ /** Path used to generate a wallet Account. */
291
+ path: string;
292
+ /** Address format used to generate a wallet Acccount. */
293
+ addressFormat: v1AddressFormat;
294
+ };
295
+ export type v1WalletParams = {
296
+ /** Human-readable name for a Wallet. */
297
+ walletName: string;
298
+ /** A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
299
+ accounts: v1WalletAccountParams[];
300
+ /** Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24. */
301
+ mnemonicLength?: number;
302
+ };
303
+ export type v1WalletResult = {
304
+ walletId: string;
305
+ /** A list of account addresses. */
306
+ addresses: string[];
307
+ };
1
308
  export type apiApiKeyParams = {
2
309
  /** Human-readable name for an API Key. */
3
310
  apiKeyName: string;
@@ -9,6 +316,7 @@ export type apiApiKeyParams = {
9
316
  export type billingActivateBillingTierIntent = {
10
317
  /** The product that the customer wants to subscribe to. */
11
318
  productId: string;
319
+ orbPlanId?: string;
12
320
  };
13
321
  export type billingActivateBillingTierResult = {
14
322
  /** The id of the product being subscribed to. */
@@ -89,7 +397,6 @@ export type externaldatav1Quorum = {
89
397
  /** Unique identifiers of quorum set members. */
90
398
  userIds: string[];
91
399
  };
92
- export type externaldatav1SignatureScheme = "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
93
400
  export type externaldatav1SmartContractInterface = {
94
401
  /** The Organization the Smart Contract Interface belongs to. */
95
402
  organizationId: string;
@@ -120,15 +427,6 @@ export type immutablecommonv1PolicyEvaluation = {
120
427
  policyId?: string;
121
428
  outcome?: v1Outcome;
122
429
  };
123
- export type protobufAny = {
124
- "@type"?: string;
125
- [key: string]: any;
126
- };
127
- export type rpcStatus = {
128
- code?: number;
129
- message?: string;
130
- details?: protobufAny[];
131
- };
132
430
  export type v1AcceptInvitationIntent = {
133
431
  /** Unique identifier for a given Invitation object. */
134
432
  invitationId: string;
@@ -183,8 +481,7 @@ export type v1ActivityResponse = {
183
481
  activity: v1Activity;
184
482
  };
185
483
  export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
186
- 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";
187
- export type v1AddressFormat = "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP" | "ADDRESS_FORMAT_SPARK_MAINNET" | "ADDRESS_FORMAT_SPARK_REGTEST";
484
+ 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";
188
485
  export type v1ApiKey = {
189
486
  /** A User credential that can be used to authenticate to Turnkey. */
190
487
  credential: externaldatav1Credential;
@@ -197,17 +494,6 @@ export type v1ApiKey = {
197
494
  /** Optional window (in seconds) indicating how long the API Key should last. */
198
495
  expirationSeconds?: string;
199
496
  };
200
- export type v1ApiKeyCurve = "API_KEY_CURVE_P256" | "API_KEY_CURVE_SECP256K1" | "API_KEY_CURVE_ED25519";
201
- export type v1ApiKeyParamsV2 = {
202
- /** Human-readable name for an API Key. */
203
- apiKeyName: string;
204
- /** The public component of a cryptographic key pair used to sign messages and transactions. */
205
- publicKey: string;
206
- /** The curve type to be used for processing API key signatures. */
207
- curveType: v1ApiKeyCurve;
208
- /** Optional window (in seconds) indicating how long the API Key should last. */
209
- expirationSeconds?: string;
210
- };
211
497
  export type v1ApiOnlyUserParams = {
212
498
  /** The name of the new API-only User. */
213
499
  userName: string;
@@ -218,16 +504,6 @@ export type v1ApiOnlyUserParams = {
218
504
  /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
219
505
  apiKeys: apiApiKeyParams[];
220
506
  };
221
- export type v1AppProof = {
222
- /** Scheme of signing key. */
223
- scheme: externaldatav1SignatureScheme;
224
- /** Ephemeral public key. */
225
- publicKey: string;
226
- /** JSON serialized AppProofPayload. */
227
- proofPayload: string;
228
- /** Signature over hashed proof_payload. */
229
- signature: string;
230
- };
231
507
  export type v1AppStatus = {
232
508
  /** Unique identifier for this TVC App */
233
509
  appId: string;
@@ -281,16 +557,6 @@ export type v1AssetMetadata = {
281
557
  /** The asset name */
282
558
  name?: string;
283
559
  };
284
- export type v1Attestation = {
285
- /** The cbor encoded then base64 url encoded id of the credential. */
286
- credentialId: string;
287
- /** A base64 url encoded payload containing metadata about the signing context and the challenge. */
288
- clientDataJson: string;
289
- /** A base64 url encoded payload containing authenticator data and any attestation the webauthn provider chooses. */
290
- attestationObject: string;
291
- /** The type of authenticator transports. */
292
- transports: v1AuthenticatorTransport[];
293
- };
294
560
  export type v1Authenticator = {
295
561
  /** Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
296
562
  transports: v1AuthenticatorTransport[];
@@ -325,15 +591,6 @@ export type v1AuthenticatorParams = {
325
591
  /** Challenge presented for authentication purposes. */
326
592
  challenge: string;
327
593
  };
328
- export type v1AuthenticatorParamsV2 = {
329
- /** Human-readable name for an Authenticator. */
330
- authenticatorName: string;
331
- /** Challenge presented for authentication purposes. */
332
- challenge: string;
333
- /** The attestation that proves custody of the authenticator and provides metadata about it. */
334
- attestation: v1Attestation;
335
- };
336
- export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
337
594
  export type v1BootProof = {
338
595
  /** The hex encoded Ephemeral Public Key. */
339
596
  ephemeralPublicKeyHex: string;
@@ -354,17 +611,6 @@ export type v1BootProof = {
354
611
  export type v1BootProofResponse = {
355
612
  bootProof: v1BootProof;
356
613
  };
357
- export type v1ClientSignature = {
358
- /** The public component of a cryptographic key pair used to create the signature. */
359
- publicKey: string;
360
- /** The signature scheme used to generate the client signature. */
361
- scheme: v1ClientSignatureScheme;
362
- /** The message that was signed. */
363
- message: string;
364
- /** The cryptographic signature over the message. */
365
- signature: string;
366
- };
367
- export type v1ClientSignatureScheme = "CLIENT_SIGNATURE_SCHEME_API_P256";
368
614
  export type v1Config = {
369
615
  features?: v1Feature[];
370
616
  quorum?: externaldatav1Quorum;
@@ -688,7 +934,7 @@ export type v1CreateReadWriteSessionIntent = {
688
934
  export type v1CreateReadWriteSessionIntentV2 = {
689
935
  /** Client-side public key generated by the user, to which the read write session bundle (credentials) will be encrypted. */
690
936
  targetPublicKey: string;
691
- /** Unique identifier for a given User. */
937
+ /** Optional unique identifier for a given User. If none provided, the read write session will be created for the user who is making the request. */
692
938
  userId?: string;
693
939
  /** Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
694
940
  apiKeyName?: string;
@@ -928,6 +1174,14 @@ export type v1CreateTvcAppIntent = {
928
1174
  /** Enables network egress for this TVC app. Default if not provided: false. */
929
1175
  enableEgress?: boolean;
930
1176
  };
1177
+ export type v1CreateTvcAppRequest = {
1178
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP";
1179
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1180
+ timestampMs: string;
1181
+ /** Unique identifier for a given Organization. */
1182
+ organizationId: string;
1183
+ parameters: v1CreateTvcAppIntent;
1184
+ };
931
1185
  export type v1CreateTvcAppResult = {
932
1186
  /** The unique identifier for the TVC application */
933
1187
  appId: string;
@@ -964,6 +1218,14 @@ export type v1CreateTvcDeploymentIntent = {
964
1218
  /** Port to use for public ingress. */
965
1219
  publicIngressPort: number;
966
1220
  };
1221
+ export type v1CreateTvcDeploymentRequest = {
1222
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT";
1223
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1224
+ timestampMs: string;
1225
+ /** Unique identifier for a given Organization. */
1226
+ organizationId: string;
1227
+ parameters: v1CreateTvcDeploymentIntent;
1228
+ };
967
1229
  export type v1CreateTvcDeploymentResult = {
968
1230
  /** The unique identifier for the TVC deployment */
969
1231
  deploymentId: string;
@@ -976,6 +1238,14 @@ export type v1CreateTvcManifestApprovalsIntent = {
976
1238
  /** List of manifest approvals */
977
1239
  approvals: v1TvcManifestApproval[];
978
1240
  };
1241
+ export type v1CreateTvcManifestApprovalsRequest = {
1242
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS";
1243
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1244
+ timestampMs: string;
1245
+ /** Unique identifier for a given Organization. */
1246
+ organizationId: string;
1247
+ parameters: v1CreateTvcManifestApprovalsIntent;
1248
+ };
979
1249
  export type v1CreateTvcManifestApprovalsResult = {
980
1250
  /** The unique identifier(s) for the manifest approvals */
981
1251
  approvalIds: string[];
@@ -1101,7 +1371,6 @@ export type v1CredPropsAuthenticationExtensionsClientOutputs = {
1101
1371
  rk: boolean;
1102
1372
  };
1103
1373
  export type v1CredentialType = "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_SECP256K1" | "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_ED25519" | "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256" | "CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256" | "CREDENTIAL_TYPE_OAUTH_KEY_P256" | "CREDENTIAL_TYPE_LOGIN";
1104
- export type v1Curve = "CURVE_SECP256K1" | "CURVE_ED25519" | "CURVE_P256";
1105
1374
  export type v1CustomRevertError = {
1106
1375
  /** The name of the custom error. */
1107
1376
  errorName?: string;
@@ -1330,6 +1599,40 @@ export type v1DeleteSubOrganizationResult = {
1330
1599
  /** Unique identifier of the sub organization that was removed */
1331
1600
  subOrganizationUuid: string;
1332
1601
  };
1602
+ export type v1DeleteTvcAppAndDeploymentsIntent = {
1603
+ /** The unique identifier of the TVC app to delete. The app and all associated deployments will be removed. */
1604
+ appId: string;
1605
+ };
1606
+ export type v1DeleteTvcAppAndDeploymentsRequest = {
1607
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS";
1608
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1609
+ timestampMs: string;
1610
+ /** Unique identifier for a given Organization. */
1611
+ organizationId: string;
1612
+ parameters: v1DeleteTvcAppAndDeploymentsIntent;
1613
+ generateAppProofs?: boolean;
1614
+ };
1615
+ export type v1DeleteTvcAppAndDeploymentsResult = {
1616
+ /** The unique identifier of the deleted TVC app. */
1617
+ appId: string;
1618
+ };
1619
+ export type v1DeleteTvcDeploymentIntent = {
1620
+ /** The unique identifier of the TVC deployment to delete. */
1621
+ deploymentId: string;
1622
+ };
1623
+ export type v1DeleteTvcDeploymentRequest = {
1624
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT";
1625
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1626
+ timestampMs: string;
1627
+ /** Unique identifier for a given Organization. */
1628
+ organizationId: string;
1629
+ parameters: v1DeleteTvcDeploymentIntent;
1630
+ generateAppProofs?: boolean;
1631
+ };
1632
+ export type v1DeleteTvcDeploymentResult = {
1633
+ /** The unique identifier of the deleted TVC deployment. */
1634
+ deploymentId: string;
1635
+ };
1333
1636
  export type v1DeleteUserTagsIntent = {
1334
1637
  /** A list of User Tag IDs. */
1335
1638
  userTagIds: string[];
@@ -1591,6 +1894,8 @@ export type v1EthSendTransactionIntent = {
1591
1894
  maxFeePerGas?: string;
1592
1895
  /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
1593
1896
  maxPriorityFeePerGas?: string;
1897
+ /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
1898
+ deadline?: string;
1594
1899
  /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
1595
1900
  gasStationNonce?: string;
1596
1901
  };
@@ -1970,6 +2275,44 @@ export type v1GetSubOrgIdsResponse = {
1970
2275
  /** List of unique identifiers for the matching sub-organizations. */
1971
2276
  organizationIds: string[];
1972
2277
  };
2278
+ export type v1GetTvcAppDeploymentsRequest = {
2279
+ /** Unique identifier for a given organization. */
2280
+ organizationId: string;
2281
+ /** Unique identifier for a given TVC App. */
2282
+ appId: string;
2283
+ };
2284
+ export type v1GetTvcAppDeploymentsResponse = {
2285
+ /** List of deployments for this TVC App */
2286
+ tvcDeployments: v1TvcDeployment[];
2287
+ };
2288
+ export type v1GetTvcAppRequest = {
2289
+ /** Unique identifier for a given organization. */
2290
+ organizationId: string;
2291
+ /** Unique identifier for a given TVC App. */
2292
+ tvcAppId: string;
2293
+ };
2294
+ export type v1GetTvcAppResponse = {
2295
+ /** Details about a single TVC App */
2296
+ tvcApp: v1TvcApp;
2297
+ };
2298
+ export type v1GetTvcAppsRequest = {
2299
+ /** Unique identifier for a given organization. */
2300
+ organizationId: string;
2301
+ };
2302
+ export type v1GetTvcAppsResponse = {
2303
+ /** A list of TVC Apps. */
2304
+ tvcApps: v1TvcApp[];
2305
+ };
2306
+ export type v1GetTvcDeploymentRequest = {
2307
+ /** Unique identifier for a given organization. */
2308
+ organizationId: string;
2309
+ /** Unique identifier for a given TVC Deployment. */
2310
+ deploymentId: string;
2311
+ };
2312
+ export type v1GetTvcDeploymentResponse = {
2313
+ /** Details about a single TVC Deployment */
2314
+ tvcDeployment: v1TvcDeployment;
2315
+ };
1973
2316
  export type v1GetUserRequest = {
1974
2317
  /** Unique identifier for a given organization. */
1975
2318
  organizationId: string;
@@ -2361,15 +2704,6 @@ export type v1InitOtpIntentV3 = {
2361
2704
  /** Optional custom email address to use as reply-to */
2362
2705
  replyToEmailAddress?: string;
2363
2706
  };
2364
- export type v1InitOtpRequest = {
2365
- type: "ACTIVITY_TYPE_INIT_OTP_V3";
2366
- /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2367
- timestampMs: string;
2368
- /** Unique identifier for a given Organization. */
2369
- organizationId: string;
2370
- parameters: v1InitOtpIntentV3;
2371
- generateAppProofs?: boolean;
2372
- };
2373
2707
  export type v1InitOtpResult = {
2374
2708
  /** Unique identifier for an OTP authentication */
2375
2709
  otpId: string;
@@ -2555,6 +2889,15 @@ export type v1Intent = {
2555
2889
  deleteWebhookEndpointIntent?: v1DeleteWebhookEndpointIntent;
2556
2890
  setIpAllowlistIntent?: v1SetIpAllowlistIntent;
2557
2891
  removeIpAllowlistIntent?: v1RemoveIpAllowlistIntent;
2892
+ updateTvcAppLiveDeploymentIntent?: v1UpdateTvcAppLiveDeploymentIntent;
2893
+ deleteTvcDeploymentIntent?: v1DeleteTvcDeploymentIntent;
2894
+ deleteTvcAppAndDeploymentsIntent?: v1DeleteTvcAppAndDeploymentsIntent;
2895
+ restoreTvcDeploymentIntent?: v1RestoreTvcDeploymentIntent;
2896
+ sparkSignFrostIntent?: v1SparkSignFrostIntent;
2897
+ sparkPrepareTransferIntent?: v1SparkPrepareTransferIntent;
2898
+ sparkClaimTransferIntent?: v1SparkClaimTransferIntent;
2899
+ sparkPrepareLightningReceiveIntent?: v1SparkPrepareLightningReceiveIntent;
2900
+ postTvcQuorumKeyShareIntent?: v1PostTvcQuorumKeyShareIntent;
2558
2901
  };
2559
2902
  export type v1InvitationParams = {
2560
2903
  /** The name of the intended Invitation recipient. */
@@ -2667,8 +3010,8 @@ export type v1Oauth2AuthenticateIntent = {
2667
3010
  redirectUri: string;
2668
3011
  /** The code verifier used by OAuth 2.0 PKCE providers */
2669
3012
  codeVerifier: string;
2670
- /** An optional nonce used by the client to prevent replay/substitution of an ID token */
2671
- nonce?: string;
3013
+ /** A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
3014
+ nonce: string;
2672
3015
  /** 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 */
2673
3016
  bearerTokenTargetPublicKey?: string;
2674
3017
  };
@@ -2699,7 +3042,6 @@ export type v1Oauth2Credential = {
2699
3042
  createdAt: externaldatav1Timestamp;
2700
3043
  updatedAt: externaldatav1Timestamp;
2701
3044
  };
2702
- export type v1Oauth2Provider = "OAUTH2_PROVIDER_X" | "OAUTH2_PROVIDER_DISCORD";
2703
3045
  export type v1OauthIntent = {
2704
3046
  /** Base64 encoded OIDC token */
2705
3047
  oidcToken: string;
@@ -2749,20 +3091,6 @@ export type v1OauthProvider = {
2749
3091
  createdAt: externaldatav1Timestamp;
2750
3092
  updatedAt: externaldatav1Timestamp;
2751
3093
  };
2752
- export type v1OauthProviderParams = {
2753
- /** Human-readable name to identify a Provider. */
2754
- providerName: string;
2755
- /** Base64 encoded OIDC token */
2756
- oidcToken: string;
2757
- };
2758
- export type v1OauthProviderParamsV2 = {
2759
- /** Human-readable name to identify a Provider. */
2760
- providerName: string;
2761
- } & ({
2762
- oidcToken: string;
2763
- } | {
2764
- /** OIDC claims (iss, sub, aud) to uniquely identify the user */ oidcClaims: v1OidcClaims;
2765
- });
2766
3094
  export type v1OauthRequest = {
2767
3095
  type: "ACTIVITY_TYPE_OAUTH";
2768
3096
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
@@ -2780,14 +3108,6 @@ export type v1OauthResult = {
2780
3108
  /** HPKE encrypted credential bundle */
2781
3109
  credentialBundle: string;
2782
3110
  };
2783
- export type v1OidcClaims = {
2784
- /** The issuer identifier from the OIDC token (iss claim) */
2785
- iss: string;
2786
- /** The subject identifier from the OIDC token (sub claim) */
2787
- sub: string;
2788
- /** The audience from the OIDC token (aud claim) */
2789
- aud: string;
2790
- };
2791
3111
  export type v1Operator = "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL";
2792
3112
  export type v1OtpAuthIntent = {
2793
3113
  /** ID representing the result of an init OTP activity. */
@@ -2844,15 +3164,6 @@ export type v1OtpLoginIntentV2 = {
2844
3164
  /** Invalidate all other previously generated Login sessions */
2845
3165
  invalidateExisting?: boolean;
2846
3166
  };
2847
- export type v1OtpLoginRequest = {
2848
- type: "ACTIVITY_TYPE_OTP_LOGIN_V2";
2849
- /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2850
- timestampMs: string;
2851
- /** Unique identifier for a given Organization. */
2852
- organizationId: string;
2853
- parameters: v1OtpLoginIntentV2;
2854
- generateAppProofs?: boolean;
2855
- };
2856
3167
  export type v1OtpLoginResult = {
2857
3168
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
2858
3169
  session: string;
@@ -2866,7 +3177,6 @@ export type v1Pagination = {
2866
3177
  /** A pagination cursor. This is an object ID that enables you to fetch all objects after this ID. */
2867
3178
  after?: string;
2868
3179
  };
2869
- export type v1PathFormat = "PATH_FORMAT_BIP32";
2870
3180
  export type v1PayloadEncoding = "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8" | "PAYLOAD_ENCODING_EIP712" | "PAYLOAD_ENCODING_EIP7702_AUTHORIZATION";
2871
3181
  export type v1Policy = {
2872
3182
  /** Unique identifier for a given Policy. */
@@ -2884,6 +3194,18 @@ export type v1Policy = {
2884
3194
  /** A condition expression that evalutes to true or false. */
2885
3195
  condition: string;
2886
3196
  };
3197
+ export type v1PostTvcQuorumKeyShareIntent = {
3198
+ /** Unique identifier of the TVC deployment receiving quorum key share */
3199
+ deploymentId: string;
3200
+ /** Hex-encoded ephemeral public key used to encrypt the quorum key share */
3201
+ ephemeralPublicKeyHex: string;
3202
+ /** Re-encrypted quorum key share and approval */
3203
+ shareApprovalBundle: v1QuorumKeyShareApprovalBundle;
3204
+ };
3205
+ export type v1PostTvcQuorumKeyShareResult = {
3206
+ /** The unique identifier for the provisioning quorum key share */
3207
+ provisioningShareId: string;
3208
+ };
2887
3209
  export type v1PrivateKey = {
2888
3210
  /** Unique identifier for a given Private Key. */
2889
3211
  privateKeyId: string;
@@ -2926,6 +3248,14 @@ export type v1PublicKeyCredentialWithAttestation = {
2926
3248
  response: v1AuthenticatorAttestationResponse;
2927
3249
  clientExtensionResults: v1SimpleClientExtensionResults;
2928
3250
  };
3251
+ export type v1QuorumKeyShareApprovalBundle = {
3252
+ /** Unique identifier of the operator providing this quorum key share */
3253
+ operatorId: string;
3254
+ /** Hex-encoded re-encrypted quorum key share */
3255
+ reEncryptedShareHex: string;
3256
+ /** Signature from the share set operator approving the manifest */
3257
+ signature: string;
3258
+ };
2929
3259
  export type v1RecoverUserIntent = {
2930
3260
  /** The new authenticator to register. */
2931
3261
  authenticator: v1AuthenticatorParamsV2;
@@ -2969,6 +3299,7 @@ export type v1RemoveIpAllowlistRequest = {
2969
3299
  /** Unique identifier for a given Organization. */
2970
3300
  organizationId: string;
2971
3301
  parameters: v1RemoveIpAllowlistIntent;
3302
+ generateAppProofs?: boolean;
2972
3303
  };
2973
3304
  export type v1RemoveIpAllowlistResult = {};
2974
3305
  export type v1RemoveOrganizationFeatureIntent = {
@@ -2988,6 +3319,23 @@ export type v1RemoveOrganizationFeatureResult = {
2988
3319
  /** Resulting list of organization features. */
2989
3320
  features: v1Feature[];
2990
3321
  };
3322
+ export type v1RestoreTvcDeploymentIntent = {
3323
+ /** The unique identifier of the TVC deployment to restore. */
3324
+ deploymentId: string;
3325
+ };
3326
+ export type v1RestoreTvcDeploymentRequest = {
3327
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT";
3328
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3329
+ timestampMs: string;
3330
+ /** Unique identifier for a given Organization. */
3331
+ organizationId: string;
3332
+ parameters: v1RestoreTvcDeploymentIntent;
3333
+ generateAppProofs?: boolean;
3334
+ };
3335
+ export type v1RestoreTvcDeploymentResult = {
3336
+ /** The unique identifier of the restored TVC deployment. */
3337
+ deploymentId: string;
3338
+ };
2991
3339
  export type v1Result = {
2992
3340
  createOrganizationResult?: v1CreateOrganizationResult;
2993
3341
  createAuthenticatorsResult?: v1CreateAuthenticatorsResult;
@@ -3096,6 +3444,15 @@ export type v1Result = {
3096
3444
  deleteWebhookEndpointResult?: v1DeleteWebhookEndpointResult;
3097
3445
  setIpAllowlistResult?: v1SetIpAllowlistResult;
3098
3446
  removeIpAllowlistResult?: v1RemoveIpAllowlistResult;
3447
+ updateTvcAppLiveDeploymentResult?: v1UpdateTvcAppLiveDeploymentResult;
3448
+ deleteTvcDeploymentResult?: v1DeleteTvcDeploymentResult;
3449
+ deleteTvcAppAndDeploymentsResult?: v1DeleteTvcAppAndDeploymentsResult;
3450
+ restoreTvcDeploymentResult?: v1RestoreTvcDeploymentResult;
3451
+ sparkSignFrostResult?: v1SparkSignFrostResult;
3452
+ sparkPrepareTransferResult?: v1SparkPrepareTransferResult;
3453
+ sparkClaimTransferResult?: v1SparkClaimTransferResult;
3454
+ sparkPrepareLightningReceiveResult?: v1SparkPrepareLightningReceiveResult;
3455
+ postTvcQuorumKeyShareResult?: v1PostTvcQuorumKeyShareResult;
3099
3456
  };
3100
3457
  export type v1RevertChainEntry = {
3101
3458
  /** The contract address where the revert occurred. */
@@ -3200,6 +3557,7 @@ export type v1SetIpAllowlistRequest = {
3200
3557
  /** Unique identifier for a given Organization. */
3201
3558
  organizationId: string;
3202
3559
  parameters: v1SetIpAllowlistIntent;
3560
+ generateAppProofs?: boolean;
3203
3561
  };
3204
3562
  export type v1SetIpAllowlistResult = {};
3205
3563
  export type v1SetOrganizationFeatureIntent = {
@@ -3337,8 +3695,8 @@ export type v1SolSendTransactionIntent = {
3337
3695
  signWith: string;
3338
3696
  /** Whether to sponsor this transaction via Gas Station. */
3339
3697
  sponsor?: boolean;
3340
- /** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). */
3341
- caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG" | "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY";
3698
+ /** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
3699
+ caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
3342
3700
  /** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
3343
3701
  recentBlockhash?: string;
3344
3702
  };
@@ -3379,6 +3737,207 @@ export type v1SolanaSendTransactionStatus = {
3379
3737
  /** The Solana transaction signature, if available. */
3380
3738
  signature?: string;
3381
3739
  };
3740
+ export type v1SparkClaimLeaf = {
3741
+ /** Leaf identifier (UUID). */
3742
+ leafId: string;
3743
+ /** ECIES ciphertext (hex-encoded) containing the inbound transfer secret. Decrypted inside the enclave using the wallet's Identity key. */
3744
+ ciphertext: string;
3745
+ /** Hex-encoded 64-byte compact ECDSA signature binding (leaf_id, transfer_id, ciphertext) to the sender's identity key. Verified inside the enclave before decryption. */
3746
+ senderSignature: string;
3747
+ };
3748
+ export type v1SparkClaimPackage = {
3749
+ /** Leaves being claimed. */
3750
+ leaves: v1SparkClaimLeaf[];
3751
+ /** Shamir threshold for reconstructing the per-leaf claim secret. */
3752
+ threshold: number;
3753
+ /** Operators that will receive Shamir shares. */
3754
+ operatorRecipients: v1SparkOperatorRecipient[];
3755
+ /** Spark transfer identifier (UUID). Used together with each leaf's sender_signature to verify the sender bound this ciphertext to this transfer. */
3756
+ transferId: string;
3757
+ /** Sender's compressed secp256k1 identity public key (hex-encoded, 33 bytes). Used to verify the per-leaf sender_signature fields. */
3758
+ senderIdentityPublicKey: string;
3759
+ };
3760
+ export type v1SparkClaimTransferIntent = {
3761
+ /** A Spark wallet account address identifying the wallet. */
3762
+ signWith: string;
3763
+ /** Claim package parameters. */
3764
+ claim: v1SparkClaimPackage;
3765
+ };
3766
+ export type v1SparkClaimTransferRequest = {
3767
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER";
3768
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3769
+ timestampMs: string;
3770
+ /** Unique identifier for a given Organization. */
3771
+ organizationId: string;
3772
+ parameters: v1SparkClaimTransferIntent;
3773
+ };
3774
+ export type v1SparkClaimTransferResult = {
3775
+ /** Per-operator ECIES-encrypted packages. */
3776
+ operatorPackages: v1SparkEncryptedOperatorPackage[];
3777
+ /** Newly-derived SigningLeaf public keys, one per leaf, in input order. */
3778
+ newLeafPublicKeys: v1SparkLeafPublicKey[];
3779
+ };
3780
+ export type v1SparkDepositDerivation = {};
3781
+ export type v1SparkEncryptedOperatorPackage = {
3782
+ /** Spark operator identifier (UUID). */
3783
+ operatorId: string;
3784
+ /** ECIES ciphertext (hex-encoded) opaque to Turnkey after emission. */
3785
+ encryptedPackage: string;
3786
+ };
3787
+ export type v1SparkFrostCommitment = {
3788
+ /** FROST participant identifier, hex-encoded (32-byte scalar). */
3789
+ id: string;
3790
+ /** Hiding commitment D, hex-encoded compressed secp256k1 point. */
3791
+ hiding: string;
3792
+ /** Binding commitment E, hex-encoded compressed secp256k1 point. */
3793
+ binding: string;
3794
+ };
3795
+ export type v1SparkHtlcPreimageDerivation = {};
3796
+ export type v1SparkIdentityDerivation = {};
3797
+ export type v1SparkKeyDerivation = {
3798
+ /** Spark identity key derivation. */
3799
+ identity?: v1SparkIdentityDerivation;
3800
+ /** Spark signing leaf key derivation, identified by leaf ID. */
3801
+ signingLeaf?: v1SparkSigningLeafDerivation;
3802
+ /** Spark deposit key derivation. */
3803
+ deposit?: v1SparkDepositDerivation;
3804
+ /** Spark static deposit key derivation, identified by index. */
3805
+ staticDeposit?: v1SparkStaticDepositDerivation;
3806
+ /** Spark HTLC preimage key derivation. */
3807
+ htlcPreimage?: v1SparkHtlcPreimageDerivation;
3808
+ };
3809
+ export type v1SparkLeafPublicKey = {
3810
+ /** The Spark leaf_id this public key was derived for. */
3811
+ leafId: string;
3812
+ /** Hex-encoded compressed secp256k1 point (33 bytes) for the SigningLeaf derivation at leaf_id. */
3813
+ publicKey: string;
3814
+ };
3815
+ export type v1SparkLightningReceivePackage = {
3816
+ /** Feldman VSS threshold for reconstructing the preimage. */
3817
+ threshold: number;
3818
+ /** Operators that will receive Feldman shares of the preimage. Order must match the operators' numeric IDs in the Spark operator config - share index is the 1-based position in this list. */
3819
+ operatorRecipients: v1SparkOperatorRecipient[];
3820
+ };
3821
+ export type v1SparkOperatorRecipient = {
3822
+ /** Spark operator identifier (UUID). */
3823
+ operatorId: string;
3824
+ /** Operator's ECIES encryption pubkey (hex-encoded compressed secp256k1 point). */
3825
+ encryptionPublicKey: string;
3826
+ };
3827
+ export type v1SparkPartialSignature = {
3828
+ /** Hex-encoded FROST partial signature. */
3829
+ signatureShare: string;
3830
+ /** Turnkey's hiding commitment D (hex-encoded compressed secp256k1 point). Forward to the Spark Operator. */
3831
+ hiding: string;
3832
+ /** Turnkey's binding commitment E (hex-encoded compressed secp256k1 point). Forward to the Spark Operator. */
3833
+ binding: string;
3834
+ };
3835
+ export type v1SparkPrepareLightningReceiveIntent = {
3836
+ /** A Spark wallet account address identifying the wallet. */
3837
+ signWith: string;
3838
+ /** Lightning receive package parameters: threshold and operator recipients. */
3839
+ lightningReceive: v1SparkLightningReceivePackage;
3840
+ };
3841
+ export type v1SparkPrepareLightningReceiveRequest = {
3842
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE";
3843
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3844
+ timestampMs: string;
3845
+ /** Unique identifier for a given Organization. */
3846
+ organizationId: string;
3847
+ parameters: v1SparkPrepareLightningReceiveIntent;
3848
+ };
3849
+ export type v1SparkPrepareLightningReceiveResult = {
3850
+ /** Per-operator ECIES-encrypted Feldman share packages. */
3851
+ operatorPackages: v1SparkEncryptedOperatorPackage[];
3852
+ /** Hex-encoded SHA256(preimage). Forward to the Lightning node. */
3853
+ paymentHash: string;
3854
+ };
3855
+ export type v1SparkPrepareTransferIntent = {
3856
+ /** A Spark wallet account address identifying the wallet. */
3857
+ signWith: string;
3858
+ /** Transfer package parameters for HD key tweak splitting. */
3859
+ transfer: v1SparkTransferPackage;
3860
+ };
3861
+ export type v1SparkPrepareTransferRequest = {
3862
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER";
3863
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3864
+ timestampMs: string;
3865
+ /** Unique identifier for a given Organization. */
3866
+ organizationId: string;
3867
+ parameters: v1SparkPrepareTransferIntent;
3868
+ };
3869
+ export type v1SparkPrepareTransferResult = {
3870
+ /** Per-operator ECIES-encrypted packages. */
3871
+ operatorPackages: v1SparkEncryptedOperatorPackage[];
3872
+ /** Hex-encoded ECDSA-DER signature of the TransferPackage signing payload, signed with the wallet's IDENTITY key. */
3873
+ transferUserSignature: string;
3874
+ /** Newly-derived SigningLeaf public keys, one per leaf, in input order. */
3875
+ newLeafPublicKeys: v1SparkLeafPublicKey[];
3876
+ };
3877
+ export type v1SparkSignFrostIntent = {
3878
+ /** A Spark wallet account address identifying the wallet to sign with. */
3879
+ signWith: string;
3880
+ /** Batched sign requests. Each produces a partial signature plus Turnkey's public commitments. */
3881
+ signatures: v1SparkSignatureRequest[];
3882
+ };
3883
+ export type v1SparkSignFrostRequest = {
3884
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST";
3885
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3886
+ timestampMs: string;
3887
+ /** Unique identifier for a given Organization. */
3888
+ organizationId: string;
3889
+ parameters: v1SparkSignFrostIntent;
3890
+ };
3891
+ export type v1SparkSignFrostResult = {
3892
+ /** Partial signatures plus Turnkey commitments, one per request, in order. */
3893
+ signatures: v1SparkPartialSignature[];
3894
+ };
3895
+ export type v1SparkSignatureRequest = {
3896
+ /** Which key to sign with. */
3897
+ derivation: v1SparkKeyDerivation;
3898
+ /** Hex-encoded 32-byte sighash to sign. */
3899
+ message: string;
3900
+ /** Aggregate group verifying key (hex-encoded compressed secp256k1 point), computed as P_ops + P_user. Bound into the nonce HMAC. */
3901
+ verifyingKey: string;
3902
+ /** Commitments for every non-Turnkey participant. MUST NOT include an entry under Turnkey's identifier. Bound into the nonce HMAC. */
3903
+ operatorCommitments: v1SparkFrostCommitment[];
3904
+ /** Optional adaptor point T (hex-encoded 33-byte compressed secp256k1 pubkey). When set, Turnkey produces a Schnorr adaptor pre-signature with the FROST challenge bound to `R+T` (where `R` is the aggregate group nonce commitment from FROST). The party holding the discrete log `t` completes the pre-sig to a valid BIP-340 signature by adding `t` (or `-t`, for parity) to the signature scalar `s`. This is primarily used by Spark leaves-swap and other adaptor-bound flows; absent or empty leads to plain FROST signing (the typical case). */
3905
+ adaptorPublicKey?: string;
3906
+ };
3907
+ export type v1SparkSigningLeafDerivation = {
3908
+ /** Unique identifier for the Spark signing leaf. */
3909
+ leafId: string;
3910
+ };
3911
+ export type v1SparkStaticDepositDerivation = {
3912
+ /** Index used to derive the static deposit key. */
3913
+ index: number;
3914
+ };
3915
+ export type v1SparkTransferLeaf = {
3916
+ /** Leaf identifier (UUID). */
3917
+ leafId: string;
3918
+ /** Derivation for the existing (pre-transfer) leaf key. Always a SigningLeaf derivation. */
3919
+ oldLeafDerivation: v1SparkKeyDerivation;
3920
+ /** Derivation for the new (post-transfer) leaf key. Always a SigningLeaf derivation. The enclave ECIES-encrypts this private key to receiver_public_key as the per-leaf secret_cipher; HD-derived rather than random so the sender can re-derive on retry (Turnkey's enclave is stateless). */
3921
+ newLeafDerivation: v1SparkKeyDerivation;
3922
+ /** Client-produced CPFP refund signature (hex-encoded), passed through verbatim into the per-operator SendLeafKeyTweak. Empty omits the field from the operator package. */
3923
+ refundSignature?: string;
3924
+ /** Client-produced direct refund signature (hex-encoded). Passed through verbatim. */
3925
+ directRefundSignature?: string;
3926
+ /** Client-produced direct-from-CPFP refund signature (hex-encoded). Passed through verbatim. */
3927
+ directFromCpfpRefundSignature?: string;
3928
+ };
3929
+ export type v1SparkTransferPackage = {
3930
+ /** Spark transfer identifier (UUID). */
3931
+ transferId: string;
3932
+ /** Leaves being transferred. */
3933
+ leaves: v1SparkTransferLeaf[];
3934
+ /** Feldman VSS threshold for reconstructing the per-leaf tweak scalar. */
3935
+ threshold: number;
3936
+ /** Operators that will receive Feldman shares of the per-leaf tweak. Order must match the operators' numeric IDs in the Spark operator config - share index is the 1-based position in this list. */
3937
+ operatorRecipients: v1SparkOperatorRecipient[];
3938
+ /** Recipient's identity pubkey (hex-encoded compressed secp256k1 point). Each leaf's new_priv is ECIES-encrypted to this key and embedded in the per-operator package for claim-time delivery. */
3939
+ receiverPublicKey: string;
3940
+ };
3382
3941
  export type v1StampLoginIntent = {
3383
3942
  /** Client-side public key generated by the user, which will be conditionally added to org data based on the passkey stamp associated with this request */
3384
3943
  publicKey: string;
@@ -3411,19 +3970,125 @@ export type v1TokenUsage = {
3411
3970
  signupV2?: v1SignupUsageV2;
3412
3971
  };
3413
3972
  export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
3973
+ export type v1TvcApp = {
3974
+ /** Unique Identifier for this TVC App. */
3975
+ id: string;
3976
+ /** Unique Identifier of the Organization for this TVC App */
3977
+ organizationId: string;
3978
+ /** Name for this TVC App. */
3979
+ name: string;
3980
+ /** Public key for the Quorum Key associated with this TVC App */
3981
+ quorumPublicKey: string;
3982
+ /** Manifest Set (people who can approve manifests) */
3983
+ manifestSet: v1TvcOperatorSet;
3984
+ /** Share Set (people who have a share of the Quorum Key) */
3985
+ shareSet: v1TvcOperatorSet;
3986
+ /** Whether or not this TVC App has network egress enabled. */
3987
+ enableEgress: boolean;
3988
+ createdAt: externaldatav1Timestamp;
3989
+ updatedAt: externaldatav1Timestamp;
3990
+ /** The deployment currently designated to receive traffic. Null if no deployment for this app is deployed. */
3991
+ liveDeploymentId?: string;
3992
+ /** The public domain for ingress to this TVC App (in the format "app-<ID>.turnkey.cloud"). */
3993
+ publicDomain: string;
3994
+ };
3995
+ export type v1TvcContainerSpec = {
3996
+ /** The URL for this container image. */
3997
+ containerUrl: string;
3998
+ /** The path (in-container) to the executable binary. */
3999
+ path: string;
4000
+ /** The arguments to pass to the executable. */
4001
+ args: string[];
4002
+ /** Whether or not this container requires a pull secret to access. */
4003
+ hasPullSecret: boolean;
4004
+ /** The type of health check to perform against this executable. */
4005
+ healthCheckType: v1TvcHealthCheckType;
4006
+ /** The port to use for health checks against this executable. */
4007
+ healthCheckPort: number;
4008
+ /** The port to use for public ingress to this executable. */
4009
+ publicIngressPort: number;
4010
+ };
4011
+ export type v1TvcDeployment = {
4012
+ /** Unique Identifier for this TVC Deployment. */
4013
+ id: string;
4014
+ /** Unique Identifier of the Organization for this TVC Deployment */
4015
+ organizationId: string;
4016
+ /** Unique Identifier of the TVC App for this deployment */
4017
+ appId: string;
4018
+ /** Set of TVC operators who can approve this deployment */
4019
+ manifestSet: v1TvcOperatorSet;
4020
+ /** Set of TVC operators who have a share of the Quorum Key */
4021
+ shareSet: v1TvcOperatorSet;
4022
+ /** The manifest used for this deployment */
4023
+ manifest: v1TvcManifest;
4024
+ /** List of operator approvals for this manifest */
4025
+ manifestApprovals: v1TvcOperatorApproval[];
4026
+ /** QOS Version used for this deployment */
4027
+ qosVersion: string;
4028
+ /** The pivot container spec for this deployment */
4029
+ pivotContainer: v1TvcContainerSpec;
4030
+ createdAt: externaldatav1Timestamp;
4031
+ updatedAt: externaldatav1Timestamp;
4032
+ /** Whether or not the user wants this deployment deleted from the cluster. */
4033
+ delete: boolean;
4034
+ };
3414
4035
  export type v1TvcHealthCheckType = "TVC_HEALTH_CHECK_TYPE_HTTP" | "TVC_HEALTH_CHECK_TYPE_GRPC";
4036
+ export type v1TvcManifest = {
4037
+ /** Unique Identifier for this TVC Manifest. */
4038
+ id: string;
4039
+ /** The manifest content (raw UTF-8 JSON bytes) */
4040
+ manifest: string;
4041
+ createdAt: externaldatav1Timestamp;
4042
+ updatedAt: externaldatav1Timestamp;
4043
+ };
3415
4044
  export type v1TvcManifestApproval = {
3416
4045
  /** Unique identifier of the operator providing this approval */
3417
4046
  operatorId: string;
3418
4047
  /** Signature from the operator approving the manifest */
3419
4048
  signature: string;
3420
4049
  };
4050
+ export type v1TvcOperator = {
4051
+ /** Unique Identifier for this TVC Operator. */
4052
+ id: string;
4053
+ /** Name of this TVC Operator. */
4054
+ name: string;
4055
+ /** Public key for this TVC Operator. */
4056
+ publicKey: string;
4057
+ createdAt: externaldatav1Timestamp;
4058
+ updatedAt: externaldatav1Timestamp;
4059
+ };
4060
+ export type v1TvcOperatorApproval = {
4061
+ /** Unique ID for this approval */
4062
+ id: string;
4063
+ /** Unique Identifier of the TVC Manifest being approved */
4064
+ manifestId: string;
4065
+ /** The TVC Operator who made this approval */
4066
+ operator: v1TvcOperator;
4067
+ /** Signature of the operator over the deployment manifest */
4068
+ approval: string;
4069
+ createdAt: externaldatav1Timestamp;
4070
+ updatedAt: externaldatav1Timestamp;
4071
+ };
3421
4072
  export type v1TvcOperatorParams = {
3422
4073
  /** The name for this new operator */
3423
4074
  name: string;
3424
4075
  /** Public key for this operator */
3425
4076
  publicKey: string;
3426
4077
  };
4078
+ export type v1TvcOperatorSet = {
4079
+ /** Unique Identifier for this TVC Operator Set. */
4080
+ id: string;
4081
+ /** Name of this TVC Operator Set. */
4082
+ name: string;
4083
+ /** Unique Identifier of the Organization for this TVC Operator Set */
4084
+ organizationId: string;
4085
+ /** List of TVC Operators in this set */
4086
+ operators: v1TvcOperator[];
4087
+ /** Threshold number of operators required for quorum. */
4088
+ threshold: number;
4089
+ createdAt: externaldatav1Timestamp;
4090
+ updatedAt: externaldatav1Timestamp;
4091
+ };
3427
4092
  export type v1TvcOperatorSetParams = {
3428
4093
  /** Short description for this new operator set */
3429
4094
  name: string;
@@ -3556,6 +4221,7 @@ export type v1UpdateOrganizationNameRequest = {
3556
4221
  /** Unique identifier for a given Organization. */
3557
4222
  organizationId: string;
3558
4223
  parameters: v1UpdateOrganizationNameIntent;
4224
+ generateAppProofs?: boolean;
3559
4225
  };
3560
4226
  export type v1UpdateOrganizationNameResult = {
3561
4227
  /** Unique identifier for the Organization. */
@@ -3647,6 +4313,20 @@ export type v1UpdateRootQuorumRequest = {
3647
4313
  generateAppProofs?: boolean;
3648
4314
  };
3649
4315
  export type v1UpdateRootQuorumResult = {};
4316
+ export type v1UpdateTvcAppLiveDeploymentIntent = {
4317
+ /** The unique identifier of the TVC deployment to set as live for the app. */
4318
+ deploymentId: string;
4319
+ };
4320
+ export type v1UpdateTvcAppLiveDeploymentRequest = {
4321
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT";
4322
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4323
+ timestampMs: string;
4324
+ /** Unique identifier for a given Organization. */
4325
+ organizationId: string;
4326
+ parameters: v1UpdateTvcAppLiveDeploymentIntent;
4327
+ generateAppProofs?: boolean;
4328
+ };
4329
+ export type v1UpdateTvcAppLiveDeploymentResult = {};
3650
4330
  export type v1UpdateUserEmailIntent = {
3651
4331
  /** Unique identifier for a given User. */
3652
4332
  userId: string;
@@ -3805,7 +4485,7 @@ export type v1UpsertGasUsageConfigIntent = {
3805
4485
  orgWindowLimitUsd: string;
3806
4486
  /** Gas sponsorship USD limit for sub-organizations under the billing organization. */
3807
4487
  subOrgWindowLimitUsd: string;
3808
- /** Rolling sponsorship window duration, expressed in minutes. */
4488
+ /** Rolling sponsorship window duration, expressed in minutes. This value can't exceed 30 days (43200 minutes). */
3809
4489
  windowDurationMinutes: string;
3810
4490
  /** Whether gas sponsorship is enabled for the organization. */
3811
4491
  enabled?: boolean;
@@ -3895,6 +4575,17 @@ export type v1UserParamsV4 = {
3895
4575
  /** A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
3896
4576
  userTags: string[];
3897
4577
  };
4578
+ export type v1ValidateTvcImageRequest = {
4579
+ /** Unique identifier for a given Organization. */
4580
+ organizationId: string;
4581
+ /** URL of the container image. */
4582
+ pivotContainerImageUrl: string;
4583
+ /** HPKE-encrypted pull secret for private images. */
4584
+ pivotContainerEncryptedPullSecret?: string;
4585
+ };
4586
+ export type v1ValidateTvcImageResponse = {
4587
+ resolvedImageDigest?: string;
4588
+ };
3898
4589
  export type v1VerifyOtpIntent = {
3899
4590
  /** ID representing the result of an init OTP activity. */
3900
4591
  otpId: string;
@@ -3913,15 +4604,6 @@ export type v1VerifyOtpIntentV2 = {
3913
4604
  /** Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
3914
4605
  expirationSeconds?: string;
3915
4606
  };
3916
- export type v1VerifyOtpRequest = {
3917
- type: "ACTIVITY_TYPE_VERIFY_OTP_V2";
3918
- /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3919
- timestampMs: string;
3920
- /** Unique identifier for a given Organization. */
3921
- organizationId: string;
3922
- parameters: v1VerifyOtpIntentV2;
3923
- generateAppProofs?: boolean;
3924
- };
3925
4607
  export type v1VerifyOtpResult = {
3926
4608
  /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
3927
4609
  verificationToken: string;
@@ -3982,36 +4664,13 @@ export type v1WalletAccount = {
3982
4664
  /** Wallet details for this account. This is only present when include_wallet_details=true. */
3983
4665
  walletDetails?: v1Wallet;
3984
4666
  };
3985
- export type v1WalletAccountParams = {
3986
- /** Cryptographic curve used to generate a wallet Account. */
3987
- curve: v1Curve;
3988
- /** Path format used to generate a wallet Account. */
3989
- pathFormat: v1PathFormat;
3990
- /** Path used to generate a wallet Account. */
3991
- path: string;
3992
- /** Address format used to generate a wallet Acccount. */
3993
- addressFormat: v1AddressFormat;
3994
- };
3995
- export type v1WalletKitSettingsParams = {
3996
- /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
3997
- enabledSocialProviders?: string[];
3998
- /** Mapping of social login providers to their Oauth client IDs. */
3999
- oauthClientIds?: Record<string, any>;
4000
- /** Oauth redirect URL to be used for social login flows. */
4001
- oauthRedirectUrl?: string;
4002
- };
4003
- export type v1WalletParams = {
4004
- /** Human-readable name for a Wallet. */
4005
- walletName: string;
4006
- /** A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
4007
- accounts: v1WalletAccountParams[];
4008
- /** Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24. */
4009
- mnemonicLength?: number;
4010
- };
4011
- export type v1WalletResult = {
4012
- walletId: string;
4013
- /** A list of account addresses. */
4014
- addresses: string[];
4667
+ export type v1WalletKitSettingsParams = {
4668
+ /** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
4669
+ enabledSocialProviders?: string[];
4670
+ /** Mapping of social login providers to their Oauth client IDs. */
4671
+ oauthClientIds?: Record<string, any>;
4672
+ /** Oauth redirect URL to be used for social login flows. */
4673
+ oauthRedirectUrl?: string;
4015
4674
  };
4016
4675
  export type v1WebAuthnStamp = {
4017
4676
  /** A base64 url encoded Unique identifier for a given credential. */
@@ -4038,7 +4697,7 @@ export type v1WebhookEndpointData = {
4038
4697
  subscriptions?: v1WebhookSubscriptionParams[];
4039
4698
  };
4040
4699
  export type v1WebhookSubscriptionParams = {
4041
- /** The event type to subscribe to (for example, ACTIVITY_UPDATES or BALANCE_CONFIRMED_UPDATES). */
4700
+ /** The event type to subscribe to (for example, ACTIVITY_UPDATES, BALANCE_CONFIRMED_UPDATES, or BALANCE_FINALIZED_UPDATES). */
4042
4701
  eventType: string;
4043
4702
  /** JSON-encoded filter criteria for this subscription. */
4044
4703
  filtersJson?: string;
@@ -4298,6 +4957,30 @@ export type TGetSmartContractInterfaceBody = {
4298
4957
  export type TGetSmartContractInterfaceInput = {
4299
4958
  body: TGetSmartContractInterfaceBody;
4300
4959
  };
4960
+ export type TGetTvcAppResponse = {
4961
+ /** Details about a single TVC App */
4962
+ tvcApp: v1TvcApp;
4963
+ };
4964
+ export type TGetTvcAppBody = {
4965
+ organizationId?: string;
4966
+ /** Unique identifier for a given TVC App. */
4967
+ tvcAppId: string;
4968
+ };
4969
+ export type TGetTvcAppInput = {
4970
+ body: TGetTvcAppBody;
4971
+ };
4972
+ export type TGetTvcDeploymentResponse = {
4973
+ /** Details about a single TVC Deployment */
4974
+ tvcDeployment: v1TvcDeployment;
4975
+ };
4976
+ export type TGetTvcDeploymentBody = {
4977
+ organizationId?: string;
4978
+ /** Unique identifier for a given TVC Deployment. */
4979
+ deploymentId: string;
4980
+ };
4981
+ export type TGetTvcDeploymentInput = {
4982
+ body: TGetTvcDeploymentBody;
4983
+ };
4301
4984
  export type TGetUserResponse = {
4302
4985
  /** Web and/or API user within your organization. */
4303
4986
  user: v1User;
@@ -4465,6 +5148,28 @@ export type TListSupportedAssetsBody = {
4465
5148
  export type TListSupportedAssetsInput = {
4466
5149
  body: TListSupportedAssetsBody;
4467
5150
  };
5151
+ export type TGetTvcAppDeploymentsResponse = {
5152
+ /** List of deployments for this TVC App */
5153
+ tvcDeployments: v1TvcDeployment[];
5154
+ };
5155
+ export type TGetTvcAppDeploymentsBody = {
5156
+ organizationId?: string;
5157
+ /** Unique identifier for a given TVC App. */
5158
+ appId: string;
5159
+ };
5160
+ export type TGetTvcAppDeploymentsInput = {
5161
+ body: TGetTvcAppDeploymentsBody;
5162
+ };
5163
+ export type TGetTvcAppsResponse = {
5164
+ /** A list of TVC Apps. */
5165
+ tvcApps: v1TvcApp[];
5166
+ };
5167
+ export type TGetTvcAppsBody = {
5168
+ organizationId?: string;
5169
+ };
5170
+ export type TGetTvcAppsInput = {
5171
+ body: TGetTvcAppsBody;
5172
+ };
4468
5173
  export type TListUserTagsResponse = {
4469
5174
  /** A list of user tags. */
4470
5175
  userTags: datav1Tag[];
@@ -4536,6 +5241,20 @@ export type TListWebhookEndpointsBody = {
4536
5241
  export type TListWebhookEndpointsInput = {
4537
5242
  body: TListWebhookEndpointsBody;
4538
5243
  };
5244
+ export type TValidateTvcImageResponse = {
5245
+ activity: v1Activity;
5246
+ };
5247
+ export type TValidateTvcImageBody = {
5248
+ timestampMs?: string;
5249
+ organizationId?: string;
5250
+ /** URL of the container image. */
5251
+ pivotContainerImageUrl: string;
5252
+ /** HPKE-encrypted pull secret for private images. */
5253
+ pivotContainerEncryptedPullSecret?: string;
5254
+ };
5255
+ export type TValidateTvcImageInput = {
5256
+ body: TValidateTvcImageBody;
5257
+ };
4539
5258
  export type TGetWhoamiResponse = {
4540
5259
  /** Unique identifier for a given organization. */
4541
5260
  organizationId: string;
@@ -4560,6 +5279,7 @@ export type TApproveActivityBody = {
4560
5279
  organizationId?: string;
4561
5280
  /** An artifact verifying a User's action. */
4562
5281
  fingerprint: string;
5282
+ generateAppProofs?: boolean;
4563
5283
  };
4564
5284
  export type TApproveActivityInput = {
4565
5285
  body: TApproveActivityBody;
@@ -4576,6 +5296,7 @@ export type TCreateApiKeysBody = {
4576
5296
  apiKeys: v1ApiKeyParamsV2[];
4577
5297
  /** Unique identifier for a given User. */
4578
5298
  userId: string;
5299
+ generateAppProofs?: boolean;
4579
5300
  };
4580
5301
  export type TCreateApiKeysInput = {
4581
5302
  body: TCreateApiKeysBody;
@@ -4592,6 +5313,7 @@ export type TCreateAuthenticatorsBody = {
4592
5313
  authenticators: v1AuthenticatorParamsV2[];
4593
5314
  /** Unique identifier for a given User. */
4594
5315
  userId: string;
5316
+ generateAppProofs?: boolean;
4595
5317
  };
4596
5318
  export type TCreateAuthenticatorsInput = {
4597
5319
  body: TCreateAuthenticatorsBody;
@@ -4616,6 +5338,7 @@ export type TCreateFiatOnRampCredentialBody = {
4616
5338
  encryptedPrivateApiKey?: string;
4617
5339
  /** If the on-ramp credential is a sandbox credential */
4618
5340
  sandboxMode?: boolean;
5341
+ generateAppProofs?: boolean;
4619
5342
  };
4620
5343
  export type TCreateFiatOnRampCredentialInput = {
4621
5344
  body: TCreateFiatOnRampCredentialBody;
@@ -4630,6 +5353,7 @@ export type TCreateInvitationsBody = {
4630
5353
  organizationId?: string;
4631
5354
  /** A list of Invitations. */
4632
5355
  invitations: v1InvitationParams[];
5356
+ generateAppProofs?: boolean;
4633
5357
  };
4634
5358
  export type TCreateInvitationsInput = {
4635
5359
  body: TCreateInvitationsBody;
@@ -4648,6 +5372,7 @@ export type TCreateOauth2CredentialBody = {
4648
5372
  clientId: string;
4649
5373
  /** The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
4650
5374
  encryptedClientSecret: string;
5375
+ generateAppProofs?: boolean;
4651
5376
  };
4652
5377
  export type TCreateOauth2CredentialInput = {
4653
5378
  body: TCreateOauth2CredentialBody;
@@ -4664,6 +5389,7 @@ export type TCreateOauthProvidersBody = {
4664
5389
  userId: string;
4665
5390
  /** A list of Oauth providers. */
4666
5391
  oauthProviders: v1OauthProviderParamsV2[];
5392
+ generateAppProofs?: boolean;
4667
5393
  };
4668
5394
  export type TCreateOauthProvidersInput = {
4669
5395
  body: TCreateOauthProvidersBody;
@@ -4678,6 +5404,7 @@ export type TCreatePoliciesBody = {
4678
5404
  organizationId?: string;
4679
5405
  /** An array of policy intents to be created. */
4680
5406
  policies: v1CreatePolicyIntentV3[];
5407
+ generateAppProofs?: boolean;
4681
5408
  };
4682
5409
  export type TCreatePoliciesInput = {
4683
5410
  body: TCreatePoliciesBody;
@@ -4700,6 +5427,7 @@ export type TCreatePolicyBody = {
4700
5427
  consensus?: string;
4701
5428
  /** Notes for a Policy. */
4702
5429
  notes: string;
5430
+ generateAppProofs?: boolean;
4703
5431
  };
4704
5432
  export type TCreatePolicyInput = {
4705
5433
  body: TCreatePolicyBody;
@@ -4718,6 +5446,7 @@ export type TCreatePrivateKeyTagBody = {
4718
5446
  privateKeyTagName: string;
4719
5447
  /** A list of Private Key IDs. */
4720
5448
  privateKeyIds: string[];
5449
+ generateAppProofs?: boolean;
4721
5450
  };
4722
5451
  export type TCreatePrivateKeyTagInput = {
4723
5452
  body: TCreatePrivateKeyTagBody;
@@ -4732,6 +5461,7 @@ export type TCreatePrivateKeysBody = {
4732
5461
  organizationId?: string;
4733
5462
  /** A list of Private Keys. */
4734
5463
  privateKeys: v1PrivateKeyParams[];
5464
+ generateAppProofs?: boolean;
4735
5465
  };
4736
5466
  export type TCreatePrivateKeysInput = {
4737
5467
  body: TCreatePrivateKeysBody;
@@ -4754,6 +5484,7 @@ export type TCreateReadOnlySessionResponse = {
4754
5484
  export type TCreateReadOnlySessionBody = {
4755
5485
  timestampMs?: string;
4756
5486
  organizationId?: string;
5487
+ generateAppProofs?: boolean;
4757
5488
  };
4758
5489
  export type TCreateReadOnlySessionInput = {
4759
5490
  body: TCreateReadOnlySessionBody;
@@ -4778,7 +5509,7 @@ export type TCreateReadWriteSessionBody = {
4778
5509
  organizationId?: string;
4779
5510
  /** Client-side public key generated by the user, to which the read write session bundle (credentials) will be encrypted. */
4780
5511
  targetPublicKey: string;
4781
- /** Unique identifier for a given User. */
5512
+ /** Optional unique identifier for a given User. If none provided, the read write session will be created for the user who is making the request. */
4782
5513
  userId?: string;
4783
5514
  /** Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
4784
5515
  apiKeyName?: string;
@@ -4786,6 +5517,7 @@ export type TCreateReadWriteSessionBody = {
4786
5517
  expirationSeconds?: string;
4787
5518
  /** Invalidate all other previously generated ReadWriteSession API keys */
4788
5519
  invalidateExisting?: boolean;
5520
+ generateAppProofs?: boolean;
4789
5521
  };
4790
5522
  export type TCreateReadWriteSessionInput = {
4791
5523
  body: TCreateReadWriteSessionBody;
@@ -4807,6 +5539,7 @@ export type TCreateSmartContractInterfaceBody = {
4807
5539
  label: string;
4808
5540
  /** Notes for a Smart Contract Interface. */
4809
5541
  notes?: string;
5542
+ generateAppProofs?: boolean;
4810
5543
  };
4811
5544
  export type TCreateSmartContractInterfaceInput = {
4812
5545
  body: TCreateSmartContractInterfaceBody;
@@ -4840,10 +5573,97 @@ export type TCreateSubOrganizationBody = {
4840
5573
  verificationToken?: string;
4841
5574
  /** Optional signature proving authorization for this sub-organization creation. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
4842
5575
  clientSignature?: v1ClientSignature;
5576
+ generateAppProofs?: boolean;
4843
5577
  };
4844
5578
  export type TCreateSubOrganizationInput = {
4845
5579
  body: TCreateSubOrganizationBody;
4846
5580
  };
5581
+ export type TCreateTvcAppResponse = {
5582
+ activity: v1Activity;
5583
+ /** The unique identifier for the TVC application */
5584
+ appId: string;
5585
+ /** The unique identifier for the TVC manifest set */
5586
+ manifestSetId: string;
5587
+ /** The unique identifier(s) of the manifest set operators */
5588
+ manifestSetOperatorIds: string[];
5589
+ /** The required number of approvals for the manifest set */
5590
+ manifestSetThreshold: number;
5591
+ };
5592
+ export type TCreateTvcAppBody = {
5593
+ timestampMs?: string;
5594
+ organizationId?: string;
5595
+ /** The name of the new TVC application */
5596
+ name: string;
5597
+ /** Quorum public key to use for this application */
5598
+ quorumPublicKey: string;
5599
+ /** Unique identifier for an existing TVC operator set to use as the Manifest Set for this TVC application. If left empty, a new Manifest Set configuration is required */
5600
+ manifestSetId?: string;
5601
+ /** Configuration to create a new TVC operator set, used as the Manifest Set for this TVC application. If left empty, a Manifest Set ID is required */
5602
+ manifestSetParams?: v1TvcOperatorSetParams;
5603
+ /** Unique identifier for an existing TVC operator set to use as the Share Set for this TVC application. If left empty, a new Share Set configuration is required */
5604
+ shareSetId?: string;
5605
+ /** Configuration to create a new TVC operator set, used as the Share Set for this TVC application. If left empty, a Share Set ID is required */
5606
+ shareSetParams?: v1TvcOperatorSetParams;
5607
+ /** Enables network egress for this TVC app. Default if not provided: false. */
5608
+ enableEgress?: boolean;
5609
+ };
5610
+ export type TCreateTvcAppInput = {
5611
+ body: TCreateTvcAppBody;
5612
+ };
5613
+ export type TCreateTvcDeploymentResponse = {
5614
+ activity: v1Activity;
5615
+ /** The unique identifier for the TVC deployment */
5616
+ deploymentId: string;
5617
+ /** The unique identifier for the TVC manifest */
5618
+ manifestId: string;
5619
+ };
5620
+ export type TCreateTvcDeploymentBody = {
5621
+ timestampMs?: string;
5622
+ organizationId?: string;
5623
+ /** The unique identifier of the to-be-deployed TVC application */
5624
+ appId: string;
5625
+ /** The QuorumOS version to use to deploy this application */
5626
+ qosVersion: string;
5627
+ /** URL of the container containing the pivot binary */
5628
+ pivotContainerImageUrl: string;
5629
+ /** Location of the binary in the pivot container */
5630
+ pivotPath: string;
5631
+ /** Arguments to pass to the pivot binary at startup. Encoded as a list of strings, for example ["--foo", "bar"] */
5632
+ pivotArgs: string[];
5633
+ /** Digest of the pivot binary in the pivot container. This value will be inserted in the QOS manifest to ensure application integrity. */
5634
+ expectedPivotDigest: string;
5635
+ /** Optional nonce to ensure uniqueness of the deployment manifest. If not provided, it defaults to the current Unix timestamp in seconds. */
5636
+ nonce?: number;
5637
+ /** Optional encrypted pull secret to authorize Turnkey to pull the pivot container image. If your image is public, leave this empty. */
5638
+ pivotContainerEncryptedPullSecret?: string;
5639
+ /** Optional flag to indicate whether to deploy the TVC app in debug mode, which includes additional logging and debugging tools. Default is false. */
5640
+ debugMode?: boolean;
5641
+ /** Health check type (TVC_HEALTH_CHECK_TYPE_HTTP or TVC_HEALTH_CHECK_TYPE_GRPC). HTTP health checks are made with a GET request on /health, and gRPC health checks follow the standard gRPC health checking protocol. */
5642
+ healthCheckType: v1TvcHealthCheckType;
5643
+ /** Port to use for health checks. */
5644
+ healthCheckPort: number;
5645
+ /** Port to use for public ingress. */
5646
+ publicIngressPort: number;
5647
+ };
5648
+ export type TCreateTvcDeploymentInput = {
5649
+ body: TCreateTvcDeploymentBody;
5650
+ };
5651
+ export type TCreateTvcManifestApprovalsResponse = {
5652
+ activity: v1Activity;
5653
+ /** The unique identifier(s) for the manifest approvals */
5654
+ approvalIds: string[];
5655
+ };
5656
+ export type TCreateTvcManifestApprovalsBody = {
5657
+ timestampMs?: string;
5658
+ organizationId?: string;
5659
+ /** Unique identifier of the TVC deployment to approve */
5660
+ manifestId: string;
5661
+ /** List of manifest approvals */
5662
+ approvals: v1TvcManifestApproval[];
5663
+ };
5664
+ export type TCreateTvcManifestApprovalsInput = {
5665
+ body: TCreateTvcManifestApprovalsBody;
5666
+ };
4847
5667
  export type TCreateUserTagResponse = {
4848
5668
  activity: v1Activity;
4849
5669
  /** Unique identifier for a given User Tag. */
@@ -4858,6 +5678,7 @@ export type TCreateUserTagBody = {
4858
5678
  userTagName: string;
4859
5679
  /** A list of User IDs. */
4860
5680
  userIds: string[];
5681
+ generateAppProofs?: boolean;
4861
5682
  };
4862
5683
  export type TCreateUserTagInput = {
4863
5684
  body: TCreateUserTagBody;
@@ -4872,6 +5693,7 @@ export type TCreateUsersBody = {
4872
5693
  organizationId?: string;
4873
5694
  /** A list of Users. */
4874
5695
  users: v1UserParamsV4[];
5696
+ generateAppProofs?: boolean;
4875
5697
  };
4876
5698
  export type TCreateUsersInput = {
4877
5699
  body: TCreateUsersBody;
@@ -4892,6 +5714,7 @@ export type TCreateWalletBody = {
4892
5714
  accounts: v1WalletAccountParams[];
4893
5715
  /** Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24. */
4894
5716
  mnemonicLength?: number;
5717
+ generateAppProofs?: boolean;
4895
5718
  };
4896
5719
  export type TCreateWalletInput = {
4897
5720
  body: TCreateWalletBody;
@@ -4910,6 +5733,7 @@ export type TCreateWalletAccountsBody = {
4910
5733
  accounts: v1WalletAccountParams[];
4911
5734
  /** Indicates if the wallet accounts should be persisted. This is helpful if you'd like to see the addresses of different derivation paths without actually creating the accounts. Defaults to true. */
4912
5735
  persist?: boolean;
5736
+ generateAppProofs?: boolean;
4913
5737
  };
4914
5738
  export type TCreateWalletAccountsInput = {
4915
5739
  body: TCreateWalletAccountsBody;
@@ -4930,6 +5754,7 @@ export type TCreateWebhookEndpointBody = {
4930
5754
  name: string;
4931
5755
  /** Event subscriptions to create for this endpoint. */
4932
5756
  subscriptions?: v1WebhookSubscriptionParams[];
5757
+ generateAppProofs?: boolean;
4933
5758
  };
4934
5759
  export type TCreateWebhookEndpointInput = {
4935
5760
  body: TCreateWebhookEndpointBody;
@@ -4946,6 +5771,7 @@ export type TDeleteApiKeysBody = {
4946
5771
  userId: string;
4947
5772
  /** A list of API Key IDs. */
4948
5773
  apiKeyIds: string[];
5774
+ generateAppProofs?: boolean;
4949
5775
  };
4950
5776
  export type TDeleteApiKeysInput = {
4951
5777
  body: TDeleteApiKeysBody;
@@ -4962,6 +5788,7 @@ export type TDeleteAuthenticatorsBody = {
4962
5788
  userId: string;
4963
5789
  /** A list of Authenticator IDs. */
4964
5790
  authenticatorIds: string[];
5791
+ generateAppProofs?: boolean;
4965
5792
  };
4966
5793
  export type TDeleteAuthenticatorsInput = {
4967
5794
  body: TDeleteAuthenticatorsBody;
@@ -4976,6 +5803,7 @@ export type TDeleteFiatOnRampCredentialBody = {
4976
5803
  organizationId?: string;
4977
5804
  /** The ID of the fiat on-ramp credential to delete */
4978
5805
  fiatOnrampCredentialId: string;
5806
+ generateAppProofs?: boolean;
4979
5807
  };
4980
5808
  export type TDeleteFiatOnRampCredentialInput = {
4981
5809
  body: TDeleteFiatOnRampCredentialBody;
@@ -4990,6 +5818,7 @@ export type TDeleteInvitationBody = {
4990
5818
  organizationId?: string;
4991
5819
  /** Unique identifier for a given Invitation object. */
4992
5820
  invitationId: string;
5821
+ generateAppProofs?: boolean;
4993
5822
  };
4994
5823
  export type TDeleteInvitationInput = {
4995
5824
  body: TDeleteInvitationBody;
@@ -5004,6 +5833,7 @@ export type TDeleteOauth2CredentialBody = {
5004
5833
  organizationId?: string;
5005
5834
  /** The ID of the OAuth 2.0 credential to delete */
5006
5835
  oauth2CredentialId: string;
5836
+ generateAppProofs?: boolean;
5007
5837
  };
5008
5838
  export type TDeleteOauth2CredentialInput = {
5009
5839
  body: TDeleteOauth2CredentialBody;
@@ -5020,6 +5850,7 @@ export type TDeleteOauthProvidersBody = {
5020
5850
  userId: string;
5021
5851
  /** Unique identifier for a given Provider. */
5022
5852
  providerIds: string[];
5853
+ generateAppProofs?: boolean;
5023
5854
  };
5024
5855
  export type TDeleteOauthProvidersInput = {
5025
5856
  body: TDeleteOauthProvidersBody;
@@ -5034,6 +5865,7 @@ export type TDeletePoliciesBody = {
5034
5865
  organizationId?: string;
5035
5866
  /** List of unique identifiers for policies within an organization */
5036
5867
  policyIds: string[];
5868
+ generateAppProofs?: boolean;
5037
5869
  };
5038
5870
  export type TDeletePoliciesInput = {
5039
5871
  body: TDeletePoliciesBody;
@@ -5048,6 +5880,7 @@ export type TDeletePolicyBody = {
5048
5880
  organizationId?: string;
5049
5881
  /** Unique identifier for a given Policy. */
5050
5882
  policyId: string;
5883
+ generateAppProofs?: boolean;
5051
5884
  };
5052
5885
  export type TDeletePolicyInput = {
5053
5886
  body: TDeletePolicyBody;
@@ -5064,6 +5897,7 @@ export type TDeletePrivateKeyTagsBody = {
5064
5897
  organizationId?: string;
5065
5898
  /** A list of Private Key Tag IDs. */
5066
5899
  privateKeyTagIds: string[];
5900
+ generateAppProofs?: boolean;
5067
5901
  };
5068
5902
  export type TDeletePrivateKeyTagsInput = {
5069
5903
  body: TDeletePrivateKeyTagsBody;
@@ -5080,6 +5914,7 @@ export type TDeletePrivateKeysBody = {
5080
5914
  privateKeyIds: string[];
5081
5915
  /** Optional parameter for deleting the private keys, even if any have not been previously exported. If they have been exported, this field is ignored. */
5082
5916
  deleteWithoutExport?: boolean;
5917
+ generateAppProofs?: boolean;
5083
5918
  };
5084
5919
  export type TDeletePrivateKeysInput = {
5085
5920
  body: TDeletePrivateKeysBody;
@@ -5094,6 +5929,7 @@ export type TDeleteSmartContractInterfaceBody = {
5094
5929
  organizationId?: string;
5095
5930
  /** The ID of a Smart Contract Interface intended for deletion. */
5096
5931
  smartContractInterfaceId: string;
5932
+ generateAppProofs?: boolean;
5097
5933
  };
5098
5934
  export type TDeleteSmartContractInterfaceInput = {
5099
5935
  body: TDeleteSmartContractInterfaceBody;
@@ -5108,10 +5944,41 @@ export type TDeleteSubOrganizationBody = {
5108
5944
  organizationId?: string;
5109
5945
  /** Sub-organization deletion, by default, requires associated wallets and private keys to be exported for security reasons. Set this boolean to true to force sub-organization deletion even if some wallets or private keys within it have not been exported yet. Default: false. */
5110
5946
  deleteWithoutExport?: boolean;
5947
+ generateAppProofs?: boolean;
5111
5948
  };
5112
5949
  export type TDeleteSubOrganizationInput = {
5113
5950
  body: TDeleteSubOrganizationBody;
5114
5951
  };
5952
+ export type TDeleteTvcAppAndDeploymentsResponse = {
5953
+ activity: v1Activity;
5954
+ /** The unique identifier of the deleted TVC app. */
5955
+ appId: string;
5956
+ };
5957
+ export type TDeleteTvcAppAndDeploymentsBody = {
5958
+ timestampMs?: string;
5959
+ organizationId?: string;
5960
+ /** The unique identifier of the TVC app to delete. The app and all associated deployments will be removed. */
5961
+ appId: string;
5962
+ generateAppProofs?: boolean;
5963
+ };
5964
+ export type TDeleteTvcAppAndDeploymentsInput = {
5965
+ body: TDeleteTvcAppAndDeploymentsBody;
5966
+ };
5967
+ export type TDeleteTvcDeploymentResponse = {
5968
+ activity: v1Activity;
5969
+ /** The unique identifier of the deleted TVC deployment. */
5970
+ deploymentId: string;
5971
+ };
5972
+ export type TDeleteTvcDeploymentBody = {
5973
+ timestampMs?: string;
5974
+ organizationId?: string;
5975
+ /** The unique identifier of the TVC deployment to delete. */
5976
+ deploymentId: string;
5977
+ generateAppProofs?: boolean;
5978
+ };
5979
+ export type TDeleteTvcDeploymentInput = {
5980
+ body: TDeleteTvcDeploymentBody;
5981
+ };
5115
5982
  export type TDeleteUserTagsResponse = {
5116
5983
  activity: v1Activity;
5117
5984
  /** A list of User Tag IDs. */
@@ -5124,6 +5991,7 @@ export type TDeleteUserTagsBody = {
5124
5991
  organizationId?: string;
5125
5992
  /** A list of User Tag IDs. */
5126
5993
  userTagIds: string[];
5994
+ generateAppProofs?: boolean;
5127
5995
  };
5128
5996
  export type TDeleteUserTagsInput = {
5129
5997
  body: TDeleteUserTagsBody;
@@ -5138,6 +6006,7 @@ export type TDeleteUsersBody = {
5138
6006
  organizationId?: string;
5139
6007
  /** A list of User IDs. */
5140
6008
  userIds: string[];
6009
+ generateAppProofs?: boolean;
5141
6010
  };
5142
6011
  export type TDeleteUsersInput = {
5143
6012
  body: TDeleteUsersBody;
@@ -5154,6 +6023,7 @@ export type TDeleteWalletAccountsBody = {
5154
6023
  walletAccountIds: string[];
5155
6024
  /** Optional parameter for deleting the wallet accounts, even if any have not been previously exported. If they have been exported, this field is ignored. */
5156
6025
  deleteWithoutExport?: boolean;
6026
+ generateAppProofs?: boolean;
5157
6027
  };
5158
6028
  export type TDeleteWalletAccountsInput = {
5159
6029
  body: TDeleteWalletAccountsBody;
@@ -5170,6 +6040,7 @@ export type TDeleteWalletsBody = {
5170
6040
  walletIds: string[];
5171
6041
  /** Optional parameter for deleting the wallets, even if any have not been previously exported. If they have been exported, this field is ignored. */
5172
6042
  deleteWithoutExport?: boolean;
6043
+ generateAppProofs?: boolean;
5173
6044
  };
5174
6045
  export type TDeleteWalletsInput = {
5175
6046
  body: TDeleteWalletsBody;
@@ -5184,6 +6055,7 @@ export type TDeleteWebhookEndpointBody = {
5184
6055
  organizationId?: string;
5185
6056
  /** Unique identifier of the webhook endpoint to delete. */
5186
6057
  endpointId: string;
6058
+ generateAppProofs?: boolean;
5187
6059
  };
5188
6060
  export type TDeleteWebhookEndpointInput = {
5189
6061
  body: TDeleteWebhookEndpointBody;
@@ -5216,6 +6088,7 @@ export type TEmailAuthBody = {
5216
6088
  sendFromEmailSenderName?: string;
5217
6089
  /** Optional custom email address to use as reply-to */
5218
6090
  replyToEmailAddress?: string;
6091
+ generateAppProofs?: boolean;
5219
6092
  };
5220
6093
  export type TEmailAuthInput = {
5221
6094
  body: TEmailAuthBody;
@@ -5248,8 +6121,11 @@ export type TEthSendTransactionBody = {
5248
6121
  maxFeePerGas?: string;
5249
6122
  /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
5250
6123
  maxPriorityFeePerGas?: string;
6124
+ /** Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
6125
+ deadline?: string;
5251
6126
  /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
5252
6127
  gasStationNonce?: string;
6128
+ generateAppProofs?: boolean;
5253
6129
  };
5254
6130
  export type TEthSendTransactionInput = {
5255
6131
  body: TEthSendTransactionBody;
@@ -5268,6 +6144,7 @@ export type TExportPrivateKeyBody = {
5268
6144
  privateKeyId: string;
5269
6145
  /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
5270
6146
  targetPublicKey: string;
6147
+ generateAppProofs?: boolean;
5271
6148
  };
5272
6149
  export type TExportPrivateKeyInput = {
5273
6150
  body: TExportPrivateKeyBody;
@@ -5288,6 +6165,7 @@ export type TExportWalletBody = {
5288
6165
  targetPublicKey: string;
5289
6166
  /** The language of the mnemonic to export. Defaults to English. */
5290
6167
  language?: v1MnemonicLanguage;
6168
+ generateAppProofs?: boolean;
5291
6169
  };
5292
6170
  export type TExportWalletInput = {
5293
6171
  body: TExportWalletBody;
@@ -5306,6 +6184,7 @@ export type TExportWalletAccountBody = {
5306
6184
  address: string;
5307
6185
  /** Client-side public key generated by the user, to which the export bundle will be encrypted. */
5308
6186
  targetPublicKey: string;
6187
+ generateAppProofs?: boolean;
5309
6188
  };
5310
6189
  export type TExportWalletAccountInput = {
5311
6190
  body: TExportWalletAccountBody;
@@ -5330,6 +6209,7 @@ export type TImportPrivateKeyBody = {
5330
6209
  curve: v1Curve;
5331
6210
  /** Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
5332
6211
  addressFormats: v1AddressFormat[];
6212
+ generateAppProofs?: boolean;
5333
6213
  };
5334
6214
  export type TImportPrivateKeyInput = {
5335
6215
  body: TImportPrivateKeyBody;
@@ -5352,6 +6232,7 @@ export type TImportWalletBody = {
5352
6232
  encryptedBundle: string;
5353
6233
  /** A list of wallet Accounts. */
5354
6234
  accounts: v1WalletAccountParams[];
6235
+ generateAppProofs?: boolean;
5355
6236
  };
5356
6237
  export type TImportWalletInput = {
5357
6238
  body: TImportWalletBody;
@@ -5390,6 +6271,7 @@ export type TInitFiatOnRampBody = {
5390
6271
  sandboxMode?: boolean;
5391
6272
  /** Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
5392
6273
  urlForSignature?: string;
6274
+ generateAppProofs?: boolean;
5393
6275
  };
5394
6276
  export type TInitFiatOnRampInput = {
5395
6277
  body: TInitFiatOnRampBody;
@@ -5404,6 +6286,7 @@ export type TInitImportPrivateKeyBody = {
5404
6286
  organizationId?: string;
5405
6287
  /** The ID of the User importing a Private Key. */
5406
6288
  userId: string;
6289
+ generateAppProofs?: boolean;
5407
6290
  };
5408
6291
  export type TInitImportPrivateKeyInput = {
5409
6292
  body: TInitImportPrivateKeyBody;
@@ -5418,6 +6301,7 @@ export type TInitImportWalletBody = {
5418
6301
  organizationId?: string;
5419
6302
  /** The ID of the User importing a Wallet. */
5420
6303
  userId: string;
6304
+ generateAppProofs?: boolean;
5421
6305
  };
5422
6306
  export type TInitImportWalletInput = {
5423
6307
  body: TInitImportWalletBody;
@@ -5456,6 +6340,7 @@ export type TInitOtpBody = {
5456
6340
  expirationSeconds?: string;
5457
6341
  /** Optional custom email address to use as reply-to */
5458
6342
  replyToEmailAddress?: string;
6343
+ generateAppProofs?: boolean;
5459
6344
  };
5460
6345
  export type TInitOtpInput = {
5461
6346
  body: TInitOtpBody;
@@ -5492,6 +6377,7 @@ export type TInitOtpAuthBody = {
5492
6377
  expirationSeconds?: string;
5493
6378
  /** Optional custom email address to use as reply-to */
5494
6379
  replyToEmailAddress?: string;
6380
+ generateAppProofs?: boolean;
5495
6381
  };
5496
6382
  export type TInitOtpAuthInput = {
5497
6383
  body: TInitOtpAuthBody;
@@ -5518,6 +6404,7 @@ export type TInitUserEmailRecoveryBody = {
5518
6404
  sendFromEmailSenderName?: string;
5519
6405
  /** Optional custom email address to use as reply-to */
5520
6406
  replyToEmailAddress?: string;
6407
+ generateAppProofs?: boolean;
5521
6408
  };
5522
6409
  export type TInitUserEmailRecoveryInput = {
5523
6410
  body: TInitUserEmailRecoveryBody;
@@ -5544,6 +6431,7 @@ export type TOauthBody = {
5544
6431
  expirationSeconds?: string;
5545
6432
  /** Invalidate all other previously generated Oauth API keys */
5546
6433
  invalidateExisting?: boolean;
6434
+ generateAppProofs?: boolean;
5547
6435
  };
5548
6436
  export type TOauthInput = {
5549
6437
  body: TOauthBody;
@@ -5564,10 +6452,11 @@ export type TOauth2AuthenticateBody = {
5564
6452
  redirectUri: string;
5565
6453
  /** The code verifier used by OAuth 2.0 PKCE providers */
5566
6454
  codeVerifier: string;
5567
- /** An optional nonce used by the client to prevent replay/substitution of an ID token */
5568
- nonce?: string;
6455
+ /** A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
6456
+ nonce: string;
5569
6457
  /** 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 */
5570
6458
  bearerTokenTargetPublicKey?: string;
6459
+ generateAppProofs?: boolean;
5571
6460
  };
5572
6461
  export type TOauth2AuthenticateInput = {
5573
6462
  body: TOauth2AuthenticateBody;
@@ -5588,6 +6477,7 @@ export type TOauthLoginBody = {
5588
6477
  expirationSeconds?: string;
5589
6478
  /** Invalidate all other previously generated Login API keys */
5590
6479
  invalidateExisting?: boolean;
6480
+ generateAppProofs?: boolean;
5591
6481
  };
5592
6482
  export type TOauthLoginInput = {
5593
6483
  body: TOauthLoginBody;
@@ -5616,6 +6506,7 @@ export type TOtpAuthBody = {
5616
6506
  expirationSeconds?: string;
5617
6507
  /** Invalidate all other previously generated OTP Auth API keys */
5618
6508
  invalidateExisting?: boolean;
6509
+ generateAppProofs?: boolean;
5619
6510
  };
5620
6511
  export type TOtpAuthInput = {
5621
6512
  body: TOtpAuthBody;
@@ -5638,6 +6529,7 @@ export type TOtpLoginBody = {
5638
6529
  expirationSeconds?: string;
5639
6530
  /** Invalidate all other previously generated Login sessions */
5640
6531
  invalidateExisting?: boolean;
6532
+ generateAppProofs?: boolean;
5641
6533
  };
5642
6534
  export type TOtpLoginInput = {
5643
6535
  body: TOtpLoginBody;
@@ -5654,6 +6546,7 @@ export type TRecoverUserBody = {
5654
6546
  authenticator: v1AuthenticatorParamsV2;
5655
6547
  /** Unique identifier for the user performing recovery. */
5656
6548
  userId: string;
6549
+ generateAppProofs?: boolean;
5657
6550
  };
5658
6551
  export type TRecoverUserInput = {
5659
6552
  body: TRecoverUserBody;
@@ -5666,6 +6559,7 @@ export type TRejectActivityBody = {
5666
6559
  organizationId?: string;
5667
6560
  /** An artifact verifying a User's action. */
5668
6561
  fingerprint: string;
6562
+ generateAppProofs?: boolean;
5669
6563
  };
5670
6564
  export type TRejectActivityInput = {
5671
6565
  body: TRejectActivityBody;
@@ -5678,6 +6572,7 @@ export type TRemoveIpAllowlistBody = {
5678
6572
  organizationId?: string;
5679
6573
  /** The public component of an API key. If null, removes the organization-level IP allowlist. If set, removes the IP allowlist for this specific API key. */
5680
6574
  publicKey?: string;
6575
+ generateAppProofs?: boolean;
5681
6576
  };
5682
6577
  export type TRemoveIpAllowlistInput = {
5683
6578
  body: TRemoveIpAllowlistBody;
@@ -5692,10 +6587,26 @@ export type TRemoveOrganizationFeatureBody = {
5692
6587
  organizationId?: string;
5693
6588
  /** Name of the feature to remove */
5694
6589
  name: v1FeatureName;
6590
+ generateAppProofs?: boolean;
5695
6591
  };
5696
6592
  export type TRemoveOrganizationFeatureInput = {
5697
6593
  body: TRemoveOrganizationFeatureBody;
5698
6594
  };
6595
+ export type TRestoreTvcDeploymentResponse = {
6596
+ activity: v1Activity;
6597
+ /** The unique identifier of the restored TVC deployment. */
6598
+ deploymentId: string;
6599
+ };
6600
+ export type TRestoreTvcDeploymentBody = {
6601
+ timestampMs?: string;
6602
+ organizationId?: string;
6603
+ /** The unique identifier of the TVC deployment to restore. */
6604
+ deploymentId: string;
6605
+ generateAppProofs?: boolean;
6606
+ };
6607
+ export type TRestoreTvcDeploymentInput = {
6608
+ body: TRestoreTvcDeploymentBody;
6609
+ };
5699
6610
  export type TSetIpAllowlistResponse = {
5700
6611
  activity: v1Activity;
5701
6612
  };
@@ -5710,6 +6621,7 @@ export type TSetIpAllowlistBody = {
5710
6621
  rules?: v1IpAllowlistIntentRule[];
5711
6622
  /** Behavior when an error occurs during IP allowlist evaluation. Valid values: ALLOW, DENY. Defaults to DENY. */
5712
6623
  onEvaluationError?: string;
6624
+ generateAppProofs?: boolean;
5713
6625
  };
5714
6626
  export type TSetIpAllowlistInput = {
5715
6627
  body: TSetIpAllowlistBody;
@@ -5726,10 +6638,24 @@ export type TSetOrganizationFeatureBody = {
5726
6638
  name: v1FeatureName;
5727
6639
  /** Optional value for the feature. Will override existing values if feature is already set. */
5728
6640
  value: string;
6641
+ generateAppProofs?: boolean;
5729
6642
  };
5730
6643
  export type TSetOrganizationFeatureInput = {
5731
6644
  body: TSetOrganizationFeatureBody;
5732
6645
  };
6646
+ export type TUpdateTvcAppLiveDeploymentResponse = {
6647
+ activity: v1Activity;
6648
+ };
6649
+ export type TUpdateTvcAppLiveDeploymentBody = {
6650
+ timestampMs?: string;
6651
+ organizationId?: string;
6652
+ /** The unique identifier of the TVC deployment to set as live for the app. */
6653
+ deploymentId: string;
6654
+ generateAppProofs?: boolean;
6655
+ };
6656
+ export type TUpdateTvcAppLiveDeploymentInput = {
6657
+ body: TUpdateTvcAppLiveDeploymentBody;
6658
+ };
5733
6659
  export type TSignRawPayloadResponse = {
5734
6660
  activity: v1Activity;
5735
6661
  /** Component of an ECSDA signature. */
@@ -5750,6 +6676,7 @@ export type TSignRawPayloadBody = {
5750
6676
  encoding: v1PayloadEncoding;
5751
6677
  /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
5752
6678
  hashFunction: v1HashFunction;
6679
+ generateAppProofs?: boolean;
5753
6680
  };
5754
6681
  export type TSignRawPayloadInput = {
5755
6682
  body: TSignRawPayloadBody;
@@ -5769,6 +6696,7 @@ export type TSignRawPayloadsBody = {
5769
6696
  encoding: v1PayloadEncoding;
5770
6697
  /** Hash function to apply to payload bytes before signing. This field must be set to HASH_FUNCTION_NOT_APPLICABLE for EdDSA/ed25519 signature requests; configurable payload hashing is not supported by RFC 8032. */
5771
6698
  hashFunction: v1HashFunction;
6699
+ generateAppProofs?: boolean;
5772
6700
  };
5773
6701
  export type TSignRawPayloadsInput = {
5774
6702
  body: TSignRawPayloadsBody;
@@ -5785,6 +6713,7 @@ export type TSignTransactionBody = {
5785
6713
  /** Raw unsigned transaction to be signed */
5786
6714
  unsignedTransaction: string;
5787
6715
  type: v1TransactionType;
6716
+ generateAppProofs?: boolean;
5788
6717
  };
5789
6718
  export type TSignTransactionInput = {
5790
6719
  body: TSignTransactionBody;
@@ -5803,14 +6732,87 @@ export type TSolSendTransactionBody = {
5803
6732
  signWith: string;
5804
6733
  /** Whether to sponsor this transaction via Gas Station. */
5805
6734
  sponsor?: boolean;
5806
- /** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). */
5807
- caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG" | "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY";
6735
+ /** CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values. */
6736
+ caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
5808
6737
  /** user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
5809
6738
  recentBlockhash?: string;
6739
+ generateAppProofs?: boolean;
5810
6740
  };
5811
6741
  export type TSolSendTransactionInput = {
5812
6742
  body: TSolSendTransactionBody;
5813
6743
  };
6744
+ export type TSparkClaimTransferResponse = {
6745
+ activity: v1Activity;
6746
+ /** Per-operator ECIES-encrypted packages. */
6747
+ operatorPackages: v1SparkEncryptedOperatorPackage[];
6748
+ /** Newly-derived SigningLeaf public keys, one per leaf, in input order. */
6749
+ newLeafPublicKeys: v1SparkLeafPublicKey[];
6750
+ };
6751
+ export type TSparkClaimTransferBody = {
6752
+ timestampMs?: string;
6753
+ organizationId?: string;
6754
+ /** A Spark wallet account address identifying the wallet. */
6755
+ signWith: string;
6756
+ /** Claim package parameters. */
6757
+ claim: v1SparkClaimPackage;
6758
+ };
6759
+ export type TSparkClaimTransferInput = {
6760
+ body: TSparkClaimTransferBody;
6761
+ };
6762
+ export type TSparkPrepareLightningReceiveResponse = {
6763
+ activity: v1Activity;
6764
+ /** Per-operator ECIES-encrypted Feldman share packages. */
6765
+ operatorPackages: v1SparkEncryptedOperatorPackage[];
6766
+ /** Hex-encoded SHA256(preimage). Forward to the Lightning node. */
6767
+ paymentHash: string;
6768
+ };
6769
+ export type TSparkPrepareLightningReceiveBody = {
6770
+ timestampMs?: string;
6771
+ organizationId?: string;
6772
+ /** A Spark wallet account address identifying the wallet. */
6773
+ signWith: string;
6774
+ /** Lightning receive package parameters: threshold and operator recipients. */
6775
+ lightningReceive: v1SparkLightningReceivePackage;
6776
+ };
6777
+ export type TSparkPrepareLightningReceiveInput = {
6778
+ body: TSparkPrepareLightningReceiveBody;
6779
+ };
6780
+ export type TSparkPrepareTransferResponse = {
6781
+ activity: v1Activity;
6782
+ /** Per-operator ECIES-encrypted packages. */
6783
+ operatorPackages: v1SparkEncryptedOperatorPackage[];
6784
+ /** Hex-encoded ECDSA-DER signature of the TransferPackage signing payload, signed with the wallet's IDENTITY key. */
6785
+ transferUserSignature: string;
6786
+ /** Newly-derived SigningLeaf public keys, one per leaf, in input order. */
6787
+ newLeafPublicKeys: v1SparkLeafPublicKey[];
6788
+ };
6789
+ export type TSparkPrepareTransferBody = {
6790
+ timestampMs?: string;
6791
+ organizationId?: string;
6792
+ /** A Spark wallet account address identifying the wallet. */
6793
+ signWith: string;
6794
+ /** Transfer package parameters for HD key tweak splitting. */
6795
+ transfer: v1SparkTransferPackage;
6796
+ };
6797
+ export type TSparkPrepareTransferInput = {
6798
+ body: TSparkPrepareTransferBody;
6799
+ };
6800
+ export type TSparkSignFrostResponse = {
6801
+ activity: v1Activity;
6802
+ /** Partial signatures plus Turnkey commitments, one per request, in order. */
6803
+ signatures: v1SparkPartialSignature[];
6804
+ };
6805
+ export type TSparkSignFrostBody = {
6806
+ timestampMs?: string;
6807
+ organizationId?: string;
6808
+ /** A Spark wallet account address identifying the wallet to sign with. */
6809
+ signWith: string;
6810
+ /** Batched sign requests. Each produces a partial signature plus Turnkey's public commitments. */
6811
+ signatures: v1SparkSignatureRequest[];
6812
+ };
6813
+ export type TSparkSignFrostInput = {
6814
+ body: TSparkSignFrostBody;
6815
+ };
5814
6816
  export type TStampLoginResponse = {
5815
6817
  activity: v1Activity;
5816
6818
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -5825,6 +6827,7 @@ export type TStampLoginBody = {
5825
6827
  expirationSeconds?: string;
5826
6828
  /** Invalidate all other previously generated Login API keys */
5827
6829
  invalidateExisting?: boolean;
6830
+ generateAppProofs?: boolean;
5828
6831
  };
5829
6832
  export type TStampLoginInput = {
5830
6833
  body: TStampLoginBody;
@@ -5849,6 +6852,7 @@ export type TUpdateFiatOnRampCredentialBody = {
5849
6852
  encryptedSecretApiKey: string;
5850
6853
  /** Private API key for the on-ramp provider encrypted to our on-ramp encryption public key. Some providers, like Coinbase, require this additional key. */
5851
6854
  encryptedPrivateApiKey?: string;
6855
+ generateAppProofs?: boolean;
5852
6856
  };
5853
6857
  export type TUpdateFiatOnRampCredentialInput = {
5854
6858
  body: TUpdateFiatOnRampCredentialBody;
@@ -5869,6 +6873,7 @@ export type TUpdateOauth2CredentialBody = {
5869
6873
  clientId: string;
5870
6874
  /** The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
5871
6875
  encryptedClientSecret: string;
6876
+ generateAppProofs?: boolean;
5872
6877
  };
5873
6878
  export type TUpdateOauth2CredentialInput = {
5874
6879
  body: TUpdateOauth2CredentialBody;
@@ -5885,6 +6890,7 @@ export type TUpdateOrganizationNameBody = {
5885
6890
  organizationId?: string;
5886
6891
  /** New name for the Organization. */
5887
6892
  organizationName: string;
6893
+ generateAppProofs?: boolean;
5888
6894
  };
5889
6895
  export type TUpdateOrganizationNameInput = {
5890
6896
  body: TUpdateOrganizationNameBody;
@@ -5909,6 +6915,7 @@ export type TUpdatePolicyBody = {
5909
6915
  policyConsensus?: string;
5910
6916
  /** Accompanying notes for a Policy (optional). */
5911
6917
  policyNotes?: string;
6918
+ generateAppProofs?: boolean;
5912
6919
  };
5913
6920
  export type TUpdatePolicyInput = {
5914
6921
  body: TUpdatePolicyBody;
@@ -5929,6 +6936,7 @@ export type TUpdatePrivateKeyTagBody = {
5929
6936
  addPrivateKeyIds: string[];
5930
6937
  /** A list of Private Key IDs to remove this tag from. */
5931
6938
  removePrivateKeyIds: string[];
6939
+ generateAppProofs?: boolean;
5932
6940
  };
5933
6941
  export type TUpdatePrivateKeyTagInput = {
5934
6942
  body: TUpdatePrivateKeyTagBody;
@@ -5943,6 +6951,7 @@ export type TUpdateRootQuorumBody = {
5943
6951
  threshold: number;
5944
6952
  /** The unique identifiers of users who comprise the quorum set. */
5945
6953
  userIds: string[];
6954
+ generateAppProofs?: boolean;
5946
6955
  };
5947
6956
  export type TUpdateRootQuorumInput = {
5948
6957
  body: TUpdateRootQuorumBody;
@@ -5965,6 +6974,7 @@ export type TUpdateUserBody = {
5965
6974
  userTagIds?: string[];
5966
6975
  /** The user's phone number in E.164 format e.g. +13214567890 */
5967
6976
  userPhoneNumber?: string;
6977
+ generateAppProofs?: boolean;
5968
6978
  };
5969
6979
  export type TUpdateUserInput = {
5970
6980
  body: TUpdateUserBody;
@@ -5983,6 +6993,7 @@ export type TUpdateUserEmailBody = {
5983
6993
  userEmail: string;
5984
6994
  /** Signed JWT containing a unique id, expiry, verification type, contact */
5985
6995
  verificationToken?: string;
6996
+ generateAppProofs?: boolean;
5986
6997
  };
5987
6998
  export type TUpdateUserEmailInput = {
5988
6999
  body: TUpdateUserEmailBody;
@@ -5999,6 +7010,7 @@ export type TUpdateUserNameBody = {
5999
7010
  userId: string;
6000
7011
  /** Human-readable name for a User. */
6001
7012
  userName: string;
7013
+ generateAppProofs?: boolean;
6002
7014
  };
6003
7015
  export type TUpdateUserNameInput = {
6004
7016
  body: TUpdateUserNameBody;
@@ -6017,6 +7029,7 @@ export type TUpdateUserPhoneNumberBody = {
6017
7029
  userPhoneNumber: string;
6018
7030
  /** Signed JWT containing a unique id, expiry, verification type, contact */
6019
7031
  verificationToken?: string;
7032
+ generateAppProofs?: boolean;
6020
7033
  };
6021
7034
  export type TUpdateUserPhoneNumberInput = {
6022
7035
  body: TUpdateUserPhoneNumberBody;
@@ -6037,6 +7050,7 @@ export type TUpdateUserTagBody = {
6037
7050
  addUserIds: string[];
6038
7051
  /** A list of User IDs to remove this tag from. */
6039
7052
  removeUserIds: string[];
7053
+ generateAppProofs?: boolean;
6040
7054
  };
6041
7055
  export type TUpdateUserTagInput = {
6042
7056
  body: TUpdateUserTagBody;
@@ -6053,6 +7067,7 @@ export type TUpdateWalletBody = {
6053
7067
  walletId: string;
6054
7068
  /** Human-readable name for a Wallet. */
6055
7069
  walletName?: string;
7070
+ generateAppProofs?: boolean;
6056
7071
  };
6057
7072
  export type TUpdateWalletInput = {
6058
7073
  body: TUpdateWalletBody;
@@ -6075,6 +7090,7 @@ export type TUpdateWebhookEndpointBody = {
6075
7090
  name?: string;
6076
7091
  /** Whether this webhook endpoint is active. */
6077
7092
  isActive?: boolean;
7093
+ generateAppProofs?: boolean;
6078
7094
  };
6079
7095
  export type TUpdateWebhookEndpointInput = {
6080
7096
  body: TUpdateWebhookEndpointBody;
@@ -6093,6 +7109,7 @@ export type TVerifyOtpBody = {
6093
7109
  encryptedOtpBundle: string;
6094
7110
  /** Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
6095
7111
  expirationSeconds?: string;
7112
+ generateAppProofs?: boolean;
6096
7113
  };
6097
7114
  export type TVerifyOtpInput = {
6098
7115
  body: TVerifyOtpBody;
@@ -6129,8 +7146,8 @@ export type ProxyTOAuth2AuthenticateBody = {
6129
7146
  redirectUri: string;
6130
7147
  /** The code verifier used by OAuth 2.0 PKCE providers */
6131
7148
  codeVerifier: string;
6132
- /** An optional nonce used by the client to prevent replay/substitution of an ID token */
6133
- nonce?: string;
7149
+ /** A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
7150
+ nonce: string;
6134
7151
  /** The client ID registered with the OAuth 2.0 provider */
6135
7152
  clientId: string;
6136
7153
  };
@@ -6163,6 +7180,8 @@ export type ProxyTInitOtpBody = {
6163
7180
  otpType: string;
6164
7181
  /** Email or phone number to send the OTP code to */
6165
7182
  contact: string;
7183
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
7184
+ emailCustomization?: v1ProxyEmailCustomizationParams;
6166
7185
  };
6167
7186
  export type ProxyTInitOtpInput = {
6168
7187
  body: ProxyTInitOtpBody;
@@ -6178,6 +7197,8 @@ export type ProxyTInitOtpV2Body = {
6178
7197
  otpType: string;
6179
7198
  /** Email or phone number to send the OTP code to */
6180
7199
  contact: string;
7200
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
7201
+ emailCustomization?: v1ProxyEmailCustomizationParams;
6181
7202
  };
6182
7203
  export type ProxyTInitOtpV2Input = {
6183
7204
  body: ProxyTInitOtpV2Body;