@turnkey/sdk-types 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,6 +89,25 @@ export type externaldatav1Quorum = {
89
89
  /** Unique identifiers of quorum set members. */
90
90
  userIds: string[];
91
91
  };
92
+ export type externaldatav1SignatureScheme = "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
93
+ export type externaldatav1SmartContractInterface = {
94
+ /** The Organization the Smart Contract Interface belongs to. */
95
+ organizationId: string;
96
+ /** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
97
+ smartContractInterfaceId: string;
98
+ /** The address corresponding to the Smart Contract or Program. */
99
+ smartContractAddress: string;
100
+ /** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
101
+ smartContractInterface: string;
102
+ /** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
103
+ type: string;
104
+ /** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
105
+ label: string;
106
+ /** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
107
+ notes: string;
108
+ createdAt: externaldatav1Timestamp;
109
+ updatedAt: externaldatav1Timestamp;
110
+ };
92
111
  export type externaldatav1Timestamp = {
93
112
  seconds: string;
94
113
  nanos: string;
@@ -164,7 +183,7 @@ export type v1ActivityResponse = {
164
183
  activity: v1Activity;
165
184
  };
166
185
  export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
167
- 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";
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";
168
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";
169
188
  export type v1ApiKey = {
170
189
  /** A User credential that can be used to authenticate to Turnkey. */
@@ -201,7 +220,7 @@ export type v1ApiOnlyUserParams = {
201
220
  };
202
221
  export type v1AppProof = {
203
222
  /** Scheme of signing key. */
204
- scheme: v1SignatureScheme;
223
+ scheme: externaldatav1SignatureScheme;
205
224
  /** Ephemeral public key. */
206
225
  publicKey: string;
207
226
  /** JSON serialized AppProofPayload. */
@@ -220,6 +239,7 @@ export type v1ApproveActivityRequest = {
220
239
  /** Unique identifier for a given Organization. */
221
240
  organizationId: string;
222
241
  parameters: v1ApproveActivityIntent;
242
+ generateAppProofs?: boolean;
223
243
  };
224
244
  export type v1Attestation = {
225
245
  /** The cbor encoded then base64 url encoded id of the credential. */
@@ -294,6 +314,17 @@ export type v1BootProof = {
294
314
  export type v1BootProofResponse = {
295
315
  bootProof: v1BootProof;
296
316
  };
317
+ export type v1ClientSignature = {
318
+ /** The public component of a cryptographic key pair used to create the signature. */
319
+ publicKey: string;
320
+ /** The signature scheme used to generate the client signature. */
321
+ scheme: v1ClientSignatureScheme;
322
+ /** The message that was signed. */
323
+ message: string;
324
+ /** The cryptographic signature over the message. */
325
+ signature: string;
326
+ };
327
+ export type v1ClientSignatureScheme = "CLIENT_SIGNATURE_SCHEME_API_P256";
297
328
  export type v1Config = {
298
329
  features?: v1Feature[];
299
330
  quorum?: externaldatav1Quorum;
@@ -317,6 +348,7 @@ export type v1CreateApiKeysRequest = {
317
348
  /** Unique identifier for a given Organization. */
318
349
  organizationId: string;
319
350
  parameters: v1CreateApiKeysIntentV2;
351
+ generateAppProofs?: boolean;
320
352
  };
321
353
  export type v1CreateApiKeysResult = {
322
354
  /** A list of API Key IDs. */
@@ -333,6 +365,7 @@ export type v1CreateApiOnlyUsersRequest = {
333
365
  /** Unique identifier for a given Organization. */
334
366
  organizationId: string;
335
367
  parameters: v1CreateApiOnlyUsersIntent;
368
+ generateAppProofs?: boolean;
336
369
  };
337
370
  export type v1CreateApiOnlyUsersResult = {
338
371
  /** A list of API-only User IDs. */
@@ -357,6 +390,7 @@ export type v1CreateAuthenticatorsRequest = {
357
390
  /** Unique identifier for a given Organization. */
358
391
  organizationId: string;
359
392
  parameters: v1CreateAuthenticatorsIntentV2;
393
+ generateAppProofs?: boolean;
360
394
  };
361
395
  export type v1CreateAuthenticatorsResult = {
362
396
  /** A list of Authenticator IDs. */
@@ -383,6 +417,7 @@ export type v1CreateFiatOnRampCredentialRequest = {
383
417
  /** Unique identifier for a given Organization. */
384
418
  organizationId: string;
385
419
  parameters: v1CreateFiatOnRampCredentialIntent;
420
+ generateAppProofs?: boolean;
386
421
  };
387
422
  export type v1CreateFiatOnRampCredentialResult = {
388
423
  /** Unique identifier of the Fiat On-Ramp credential that was created */
@@ -399,6 +434,7 @@ export type v1CreateInvitationsRequest = {
399
434
  /** Unique identifier for a given Organization. */
400
435
  organizationId: string;
401
436
  parameters: v1CreateInvitationsIntent;
437
+ generateAppProofs?: boolean;
402
438
  };
403
439
  export type v1CreateInvitationsResult = {
404
440
  /** A list of Invitation IDs */
@@ -419,6 +455,7 @@ export type v1CreateOauth2CredentialRequest = {
419
455
  /** Unique identifier for a given Organization. */
420
456
  organizationId: string;
421
457
  parameters: v1CreateOauth2CredentialIntent;
458
+ generateAppProofs?: boolean;
422
459
  };
423
460
  export type v1CreateOauth2CredentialResult = {
424
461
  /** Unique identifier of the OAuth 2.0 credential that was created */
@@ -437,6 +474,7 @@ export type v1CreateOauthProvidersRequest = {
437
474
  /** Unique identifier for a given Organization. */
438
475
  organizationId: string;
439
476
  parameters: v1CreateOauthProvidersIntent;
477
+ generateAppProofs?: boolean;
440
478
  };
441
479
  export type v1CreateOauthProvidersResult = {
442
480
  /** A list of unique identifiers for Oauth Providers */
@@ -477,6 +515,7 @@ export type v1CreatePoliciesRequest = {
477
515
  /** Unique identifier for a given Organization. */
478
516
  organizationId: string;
479
517
  parameters: v1CreatePoliciesIntent;
518
+ generateAppProofs?: boolean;
480
519
  };
481
520
  export type v1CreatePoliciesResult = {
482
521
  /** A list of unique identifiers for the created policies. */
@@ -509,7 +548,8 @@ export type v1CreatePolicyIntentV3 = {
509
548
  condition?: string;
510
549
  /** The consensus expression that triggers the Effect */
511
550
  consensus?: string;
512
- notes?: string;
551
+ /** Notes for a Policy. */
552
+ notes: string;
513
553
  };
514
554
  export type v1CreatePolicyRequest = {
515
555
  type: string;
@@ -518,6 +558,7 @@ export type v1CreatePolicyRequest = {
518
558
  /** Unique identifier for a given Organization. */
519
559
  organizationId: string;
520
560
  parameters: v1CreatePolicyIntentV3;
561
+ generateAppProofs?: boolean;
521
562
  };
522
563
  export type v1CreatePolicyResult = {
523
564
  /** Unique identifier for a given Policy. */
@@ -536,6 +577,7 @@ export type v1CreatePrivateKeyTagRequest = {
536
577
  /** Unique identifier for a given Organization. */
537
578
  organizationId: string;
538
579
  parameters: v1CreatePrivateKeyTagIntent;
580
+ generateAppProofs?: boolean;
539
581
  };
540
582
  export type v1CreatePrivateKeyTagResult = {
541
583
  /** Unique identifier for a given Private Key Tag. */
@@ -558,6 +600,7 @@ export type v1CreatePrivateKeysRequest = {
558
600
  /** Unique identifier for a given Organization. */
559
601
  organizationId: string;
560
602
  parameters: v1CreatePrivateKeysIntentV2;
603
+ generateAppProofs?: boolean;
561
604
  };
562
605
  export type v1CreatePrivateKeysResult = {
563
606
  /** A list of Private Key IDs. */
@@ -575,6 +618,7 @@ export type v1CreateReadOnlySessionRequest = {
575
618
  /** Unique identifier for a given Organization. */
576
619
  organizationId: string;
577
620
  parameters: v1CreateReadOnlySessionIntent;
621
+ generateAppProofs?: boolean;
578
622
  };
579
623
  export type v1CreateReadOnlySessionResult = {
580
624
  /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
@@ -619,6 +663,7 @@ export type v1CreateReadWriteSessionRequest = {
619
663
  /** Unique identifier for a given Organization. */
620
664
  organizationId: string;
621
665
  parameters: v1CreateReadWriteSessionIntentV2;
666
+ generateAppProofs?: boolean;
622
667
  };
623
668
  export type v1CreateReadWriteSessionResult = {
624
669
  /** Unique identifier for a given Organization. If the request is being made by a user and their Sub-Organization ID is unknown, this can be the Parent Organization ID. However, using the Sub-Organization ID is preferred due to performance reasons. */
@@ -651,7 +696,7 @@ export type v1CreateReadWriteSessionResultV2 = {
651
696
  export type v1CreateSmartContractInterfaceIntent = {
652
697
  /** Corresponding contract address or program ID */
653
698
  smartContractAddress: string;
654
- /** ABI/IDL as a JSON string */
699
+ /** ABI/IDL as a JSON string. Limited to 400kb */
655
700
  smartContractInterface: string;
656
701
  type: v1SmartContractInterfaceType;
657
702
  /** Human-readable name for a Smart Contract Interface. */
@@ -666,6 +711,7 @@ export type v1CreateSmartContractInterfaceRequest = {
666
711
  /** Unique identifier for a given Organization. */
667
712
  organizationId: string;
668
713
  parameters: v1CreateSmartContractInterfaceIntent;
714
+ generateAppProofs?: boolean;
669
715
  };
670
716
  export type v1CreateSmartContractInterfaceResult = {
671
717
  /** The ID of the created Smart Contract Interface. */
@@ -756,6 +802,8 @@ export type v1CreateSubOrganizationIntentV7 = {
756
802
  disableOtpEmailAuth?: boolean;
757
803
  /** Signed JWT containing a unique id, expiry, verification type, contact */
758
804
  verificationToken?: string;
805
+ /** 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. */
806
+ clientSignature?: v1ClientSignature;
759
807
  };
760
808
  export type v1CreateSubOrganizationRequest = {
761
809
  type: string;
@@ -764,6 +812,7 @@ export type v1CreateSubOrganizationRequest = {
764
812
  /** Unique identifier for a given Organization. */
765
813
  organizationId: string;
766
814
  parameters: v1CreateSubOrganizationIntentV7;
815
+ generateAppProofs?: boolean;
767
816
  };
768
817
  export type v1CreateSubOrganizationResult = {
769
818
  subOrganizationId: string;
@@ -808,6 +857,7 @@ export type v1CreateUserTagRequest = {
808
857
  /** Unique identifier for a given Organization. */
809
858
  organizationId: string;
810
859
  parameters: v1CreateUserTagIntent;
860
+ generateAppProofs?: boolean;
811
861
  };
812
862
  export type v1CreateUserTagResult = {
813
863
  /** Unique identifier for a given User Tag. */
@@ -834,6 +884,7 @@ export type v1CreateUsersRequest = {
834
884
  /** Unique identifier for a given Organization. */
835
885
  organizationId: string;
836
886
  parameters: v1CreateUsersIntentV3;
887
+ generateAppProofs?: boolean;
837
888
  };
838
889
  export type v1CreateUsersResult = {
839
890
  /** A list of User IDs. */
@@ -854,6 +905,7 @@ export type v1CreateWalletAccountsRequest = {
854
905
  /** Unique identifier for a given Organization. */
855
906
  organizationId: string;
856
907
  parameters: v1CreateWalletAccountsIntent;
908
+ generateAppProofs?: boolean;
857
909
  };
858
910
  export type v1CreateWalletAccountsResult = {
859
911
  /** A list of derived addresses. */
@@ -874,6 +926,7 @@ export type v1CreateWalletRequest = {
874
926
  /** Unique identifier for a given Organization. */
875
927
  organizationId: string;
876
928
  parameters: v1CreateWalletIntent;
929
+ generateAppProofs?: boolean;
877
930
  };
878
931
  export type v1CreateWalletResult = {
879
932
  /** Unique identifier for a Wallet. */
@@ -899,6 +952,7 @@ export type v1DeleteApiKeysRequest = {
899
952
  /** Unique identifier for a given Organization. */
900
953
  organizationId: string;
901
954
  parameters: v1DeleteApiKeysIntent;
955
+ generateAppProofs?: boolean;
902
956
  };
903
957
  export type v1DeleteApiKeysResult = {
904
958
  /** A list of API Key IDs. */
@@ -917,6 +971,7 @@ export type v1DeleteAuthenticatorsRequest = {
917
971
  /** Unique identifier for a given Organization. */
918
972
  organizationId: string;
919
973
  parameters: v1DeleteAuthenticatorsIntent;
974
+ generateAppProofs?: boolean;
920
975
  };
921
976
  export type v1DeleteAuthenticatorsResult = {
922
977
  /** Unique identifier for a given Authenticator. */
@@ -933,6 +988,7 @@ export type v1DeleteFiatOnRampCredentialRequest = {
933
988
  /** Unique identifier for a given Organization. */
934
989
  organizationId: string;
935
990
  parameters: v1DeleteFiatOnRampCredentialIntent;
991
+ generateAppProofs?: boolean;
936
992
  };
937
993
  export type v1DeleteFiatOnRampCredentialResult = {
938
994
  /** Unique identifier of the Fiat On-Ramp credential that was deleted */
@@ -949,6 +1005,7 @@ export type v1DeleteInvitationRequest = {
949
1005
  /** Unique identifier for a given Organization. */
950
1006
  organizationId: string;
951
1007
  parameters: v1DeleteInvitationIntent;
1008
+ generateAppProofs?: boolean;
952
1009
  };
953
1010
  export type v1DeleteInvitationResult = {
954
1011
  /** Unique identifier for a given Invitation. */
@@ -965,6 +1022,7 @@ export type v1DeleteOauth2CredentialRequest = {
965
1022
  /** Unique identifier for a given Organization. */
966
1023
  organizationId: string;
967
1024
  parameters: v1DeleteOauth2CredentialIntent;
1025
+ generateAppProofs?: boolean;
968
1026
  };
969
1027
  export type v1DeleteOauth2CredentialResult = {
970
1028
  /** Unique identifier of the OAuth 2.0 credential that was deleted */
@@ -983,6 +1041,7 @@ export type v1DeleteOauthProvidersRequest = {
983
1041
  /** Unique identifier for a given Organization. */
984
1042
  organizationId: string;
985
1043
  parameters: v1DeleteOauthProvidersIntent;
1044
+ generateAppProofs?: boolean;
986
1045
  };
987
1046
  export type v1DeleteOauthProvidersResult = {
988
1047
  /** A list of unique identifiers for Oauth Providers */
@@ -1007,6 +1066,7 @@ export type v1DeletePoliciesRequest = {
1007
1066
  /** Unique identifier for a given Organization. */
1008
1067
  organizationId: string;
1009
1068
  parameters: v1DeletePoliciesIntent;
1069
+ generateAppProofs?: boolean;
1010
1070
  };
1011
1071
  export type v1DeletePoliciesResult = {
1012
1072
  /** A list of unique identifiers for the deleted policies. */
@@ -1023,6 +1083,7 @@ export type v1DeletePolicyRequest = {
1023
1083
  /** Unique identifier for a given Organization. */
1024
1084
  organizationId: string;
1025
1085
  parameters: v1DeletePolicyIntent;
1086
+ generateAppProofs?: boolean;
1026
1087
  };
1027
1088
  export type v1DeletePolicyResult = {
1028
1089
  /** Unique identifier for a given Policy. */
@@ -1039,6 +1100,7 @@ export type v1DeletePrivateKeyTagsRequest = {
1039
1100
  /** Unique identifier for a given Organization. */
1040
1101
  organizationId: string;
1041
1102
  parameters: v1DeletePrivateKeyTagsIntent;
1103
+ generateAppProofs?: boolean;
1042
1104
  };
1043
1105
  export type v1DeletePrivateKeyTagsResult = {
1044
1106
  /** A list of Private Key Tag IDs. */
@@ -1059,6 +1121,7 @@ export type v1DeletePrivateKeysRequest = {
1059
1121
  /** Unique identifier for a given Organization. */
1060
1122
  organizationId: string;
1061
1123
  parameters: v1DeletePrivateKeysIntent;
1124
+ generateAppProofs?: boolean;
1062
1125
  };
1063
1126
  export type v1DeletePrivateKeysResult = {
1064
1127
  /** A list of private key unique identifiers that were removed */
@@ -1075,6 +1138,7 @@ export type v1DeleteSmartContractInterfaceRequest = {
1075
1138
  /** Unique identifier for a given Organization. */
1076
1139
  organizationId: string;
1077
1140
  parameters: v1DeleteSmartContractInterfaceIntent;
1141
+ generateAppProofs?: boolean;
1078
1142
  };
1079
1143
  export type v1DeleteSmartContractInterfaceResult = {
1080
1144
  /** The ID of the deleted Smart Contract Interface. */
@@ -1091,6 +1155,7 @@ export type v1DeleteSubOrganizationRequest = {
1091
1155
  /** Unique identifier for a given Organization. */
1092
1156
  organizationId: string;
1093
1157
  parameters: v1DeleteSubOrganizationIntent;
1158
+ generateAppProofs?: boolean;
1094
1159
  };
1095
1160
  export type v1DeleteSubOrganizationResult = {
1096
1161
  /** Unique identifier of the sub organization that was removed */
@@ -1107,6 +1172,7 @@ export type v1DeleteUserTagsRequest = {
1107
1172
  /** Unique identifier for a given Organization. */
1108
1173
  organizationId: string;
1109
1174
  parameters: v1DeleteUserTagsIntent;
1175
+ generateAppProofs?: boolean;
1110
1176
  };
1111
1177
  export type v1DeleteUserTagsResult = {
1112
1178
  /** A list of User Tag IDs. */
@@ -1125,6 +1191,7 @@ export type v1DeleteUsersRequest = {
1125
1191
  /** Unique identifier for a given Organization. */
1126
1192
  organizationId: string;
1127
1193
  parameters: v1DeleteUsersIntent;
1194
+ generateAppProofs?: boolean;
1128
1195
  };
1129
1196
  export type v1DeleteUsersResult = {
1130
1197
  /** A list of User IDs. */
@@ -1143,6 +1210,7 @@ export type v1DeleteWalletAccountsRequest = {
1143
1210
  /** Unique identifier for a given Organization. */
1144
1211
  organizationId: string;
1145
1212
  parameters: v1DeleteWalletAccountsIntent;
1213
+ generateAppProofs?: boolean;
1146
1214
  };
1147
1215
  export type v1DeleteWalletAccountsResult = {
1148
1216
  /** A list of wallet account unique identifiers that were removed */
@@ -1161,6 +1229,7 @@ export type v1DeleteWalletsRequest = {
1161
1229
  /** Unique identifier for a given Organization. */
1162
1230
  organizationId: string;
1163
1231
  parameters: v1DeleteWalletsIntent;
1232
+ generateAppProofs?: boolean;
1164
1233
  };
1165
1234
  export type v1DeleteWalletsResult = {
1166
1235
  /** A list of wallet unique identifiers that were removed */
@@ -1177,6 +1246,18 @@ export type v1DisablePrivateKeyResult = {
1177
1246
  privateKeyId: string;
1178
1247
  };
1179
1248
  export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
1249
+ export type v1EmailAuthCustomizationParams = {
1250
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
1251
+ appName: string;
1252
+ /** A URL pointing to a logo in PNG format. Note this logo will be resized to fit into 340px x 124px. */
1253
+ logoUrl?: string;
1254
+ /** A template for the URL to be used in a magic link button, e.g. `https://dapp.xyz/%s`. The auth bundle will be interpolated into the `%s`. */
1255
+ magicLinkTemplate?: string;
1256
+ /** JSON object containing key/value pairs to be used with custom templates. */
1257
+ templateVariables?: string;
1258
+ /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1259
+ templateId?: string;
1260
+ };
1180
1261
  export type v1EmailAuthIntent = {
1181
1262
  /** Email of the authenticating user. */
1182
1263
  email: string;
@@ -1217,13 +1298,34 @@ export type v1EmailAuthIntentV2 = {
1217
1298
  /** Optional custom email address to use as reply-to */
1218
1299
  replyToEmailAddress?: string;
1219
1300
  };
1301
+ export type v1EmailAuthIntentV3 = {
1302
+ /** Email of the authenticating user. */
1303
+ email: string;
1304
+ /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
1305
+ targetPublicKey: string;
1306
+ /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1307
+ apiKeyName?: string;
1308
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1309
+ expirationSeconds?: string;
1310
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that app_name is required. */
1311
+ emailCustomization: v1EmailAuthCustomizationParams;
1312
+ /** Invalidate all other previously generated Email Auth API keys */
1313
+ invalidateExisting?: boolean;
1314
+ /** Optional custom email address from which to send the email */
1315
+ sendFromEmailAddress?: string;
1316
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1317
+ sendFromEmailSenderName?: string;
1318
+ /** Optional custom email address to use as reply-to */
1319
+ replyToEmailAddress?: string;
1320
+ };
1220
1321
  export type v1EmailAuthRequest = {
1221
1322
  type: string;
1222
1323
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1223
1324
  timestampMs: string;
1224
1325
  /** Unique identifier for a given Organization. */
1225
1326
  organizationId: string;
1226
- parameters: v1EmailAuthIntentV2;
1327
+ parameters: v1EmailAuthIntentV3;
1328
+ generateAppProofs?: boolean;
1227
1329
  };
1228
1330
  export type v1EmailAuthResult = {
1229
1331
  /** Unique identifier for the authenticating User. */
@@ -1243,6 +1345,16 @@ export type v1EmailCustomizationParams = {
1243
1345
  /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1244
1346
  templateId?: string;
1245
1347
  };
1348
+ export type v1EmailCustomizationParamsV2 = {
1349
+ /** A URL pointing to a logo in PNG format. Note this logo will be resized to fit into 340px x 124px. */
1350
+ logoUrl?: string;
1351
+ /** A template for the URL to be used in a magic link button, e.g. `https://dapp.xyz/%s`. The auth bundle will be interpolated into the `%s`. */
1352
+ magicLinkTemplate?: string;
1353
+ /** JSON object containing key/value pairs to be used with custom templates. */
1354
+ templateVariables?: string;
1355
+ /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1356
+ templateId?: string;
1357
+ };
1246
1358
  export type v1EnableAuthProxyIntent = {};
1247
1359
  export type v1EnableAuthProxyResult = {
1248
1360
  /** A User ID with permission to initiate authentication. */
@@ -1261,6 +1373,7 @@ export type v1EthSendRawTransactionRequest = {
1261
1373
  /** Unique identifier for a given Organization. */
1262
1374
  organizationId: string;
1263
1375
  parameters: v1EthSendRawTransactionIntent;
1376
+ generateAppProofs?: boolean;
1264
1377
  };
1265
1378
  export type v1EthSendRawTransactionResult = {
1266
1379
  /** The transaction hash of the sent transaction */
@@ -1279,16 +1392,16 @@ export type v1EthSendTransactionIntent = {
1279
1392
  value?: string;
1280
1393
  /** Hex-encoded call data for contract interactions. */
1281
1394
  data?: string;
1282
- /** Transaction nonce. */
1283
- nonce: string;
1284
- /** Maximum amount of gas to use for this transaction. */
1285
- gasLimit: string;
1286
- /** Maximum total fee per gas unit (base fee + priority fee) in wei, for EIP-1559 transactions. */
1287
- maxFeePerGas: string;
1288
- /** Maximum priority fee (tip) per gas unit in wei, for EIP-1559 transactions. */
1289
- maxPriorityFeePerGas: string;
1290
- /** Unix timestamp after which the Gas Station meta-transaction is no longer valid. Only used when sponsor=true. */
1291
- deadline?: string;
1395
+ /** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
1396
+ nonce?: string;
1397
+ /** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
1398
+ gasLimit?: string;
1399
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
1400
+ maxFeePerGas?: string;
1401
+ /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
1402
+ maxPriorityFeePerGas?: string;
1403
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
1404
+ gasStationNonce?: string;
1292
1405
  };
1293
1406
  export type v1EthSendTransactionRequest = {
1294
1407
  type: string;
@@ -1297,10 +1410,15 @@ export type v1EthSendTransactionRequest = {
1297
1410
  /** Unique identifier for a given Organization. */
1298
1411
  organizationId: string;
1299
1412
  parameters: v1EthSendTransactionIntent;
1413
+ generateAppProofs?: boolean;
1300
1414
  };
1301
1415
  export type v1EthSendTransactionResult = {
1302
- /** The transaction hash of the sent transaction */
1303
- transactionHash: string;
1416
+ /** The send_transaction_status ID associated with the transaction submission for sponsored transactions */
1417
+ sendTransactionStatusId: string;
1418
+ };
1419
+ export type v1EthSendTransactionStatus = {
1420
+ /** The Ethereum transaction hash, if available. */
1421
+ txHash?: string;
1304
1422
  };
1305
1423
  export type v1ExportPrivateKeyIntent = {
1306
1424
  /** Unique identifier for a given Private Key. */
@@ -1315,6 +1433,7 @@ export type v1ExportPrivateKeyRequest = {
1315
1433
  /** Unique identifier for a given Organization. */
1316
1434
  organizationId: string;
1317
1435
  parameters: v1ExportPrivateKeyIntent;
1436
+ generateAppProofs?: boolean;
1318
1437
  };
1319
1438
  export type v1ExportPrivateKeyResult = {
1320
1439
  /** Unique identifier for a given Private Key. */
@@ -1335,6 +1454,7 @@ export type v1ExportWalletAccountRequest = {
1335
1454
  /** Unique identifier for a given Organization. */
1336
1455
  organizationId: string;
1337
1456
  parameters: v1ExportWalletAccountIntent;
1457
+ generateAppProofs?: boolean;
1338
1458
  };
1339
1459
  export type v1ExportWalletAccountResult = {
1340
1460
  /** Address to identify Wallet Account. */
@@ -1357,6 +1477,7 @@ export type v1ExportWalletRequest = {
1357
1477
  /** Unique identifier for a given Organization. */
1358
1478
  organizationId: string;
1359
1479
  parameters: v1ExportWalletIntent;
1480
+ generateAppProofs?: boolean;
1360
1481
  };
1361
1482
  export type v1ExportWalletResult = {
1362
1483
  /** Unique identifier for a given Wallet. */
@@ -1479,12 +1600,42 @@ export type v1GetBootProofRequest = {
1479
1600
  /** Hex encoded ephemeral public key. */
1480
1601
  ephemeralKey: string;
1481
1602
  };
1603
+ export type v1GetGasUsageRequest = {
1604
+ /** Unique identifier for a given Organization. */
1605
+ organizationId: string;
1606
+ };
1607
+ export type v1GetGasUsageResponse = {
1608
+ /** The window duration (in minutes) for the organization or sub-organization. */
1609
+ windowDurationMinutes: number;
1610
+ /** The window limit (in USD) for the organization or sub-organization. */
1611
+ windowLimitUsd: string;
1612
+ /** The total gas usage (in USD) of all sponsored transactions processed over the last `window_duration_minutes` */
1613
+ usageUsd: string;
1614
+ };
1482
1615
  export type v1GetLatestBootProofRequest = {
1483
1616
  /** Unique identifier for a given Organization. */
1484
1617
  organizationId: string;
1485
1618
  /** Name of enclave app. */
1486
1619
  appName: string;
1487
1620
  };
1621
+ export type v1GetNoncesRequest = {
1622
+ /** Unique identifier for a given Organization. */
1623
+ organizationId: string;
1624
+ /** The Ethereum address to query nonces for. */
1625
+ address: string;
1626
+ /** The network identifier in CAIP-2 format (e.g., 'eip155:1' for Ethereum mainnet). */
1627
+ caip2: string;
1628
+ /** Whether to fetch the standard on-chain nonce. */
1629
+ nonce?: boolean;
1630
+ /** Whether to fetch the gas station nonce used for sponsored transactions. */
1631
+ gasStationNonce?: boolean;
1632
+ };
1633
+ export type v1GetNoncesResponse = {
1634
+ /** The standard on-chain nonce for the address, if requested. */
1635
+ nonce?: string;
1636
+ /** The gas station nonce for sponsored transactions, if requested. */
1637
+ gasStationNonce?: string;
1638
+ };
1488
1639
  export type v1GetOauth2CredentialRequest = {
1489
1640
  /** Unique identifier for a given Organization. */
1490
1641
  organizationId: string;
@@ -1577,6 +1728,20 @@ export type v1GetPrivateKeysResponse = {
1577
1728
  /** A list of private keys. */
1578
1729
  privateKeys: v1PrivateKey[];
1579
1730
  };
1731
+ export type v1GetSendTransactionStatusRequest = {
1732
+ /** Unique identifier for a given organization. */
1733
+ organizationId: string;
1734
+ /** The unique identifier of a send transaction request. */
1735
+ sendTransactionStatusId: string;
1736
+ };
1737
+ export type v1GetSendTransactionStatusResponse = {
1738
+ /** The current status of the send transaction. */
1739
+ txStatus: string;
1740
+ /** Ethereum-specific transaction status. */
1741
+ eth?: v1EthSendTransactionStatus;
1742
+ /** The error encountered when broadcasting or confirming the transaction, if any. */
1743
+ txError?: string;
1744
+ };
1580
1745
  export type v1GetSmartContractInterfaceRequest = {
1581
1746
  /** Unique identifier for a given organization. */
1582
1747
  organizationId: string;
@@ -1585,7 +1750,7 @@ export type v1GetSmartContractInterfaceRequest = {
1585
1750
  };
1586
1751
  export type v1GetSmartContractInterfaceResponse = {
1587
1752
  /** Object to be used in conjunction with policies to guard transaction signing. */
1588
- smartContractInterface: v1SmartContractInterface;
1753
+ smartContractInterface: externaldatav1SmartContractInterface;
1589
1754
  };
1590
1755
  export type v1GetSmartContractInterfacesRequest = {
1591
1756
  /** Unique identifier for a given organization. */
@@ -1593,7 +1758,7 @@ export type v1GetSmartContractInterfacesRequest = {
1593
1758
  };
1594
1759
  export type v1GetSmartContractInterfacesResponse = {
1595
1760
  /** A list of smart contract interfaces. */
1596
- smartContractInterfaces: v1SmartContractInterface[];
1761
+ smartContractInterfaces: externaldatav1SmartContractInterface[];
1597
1762
  };
1598
1763
  export type v1GetSubOrgIdsRequest = {
1599
1764
  /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
@@ -1721,6 +1886,7 @@ export type v1ImportPrivateKeyRequest = {
1721
1886
  /** Unique identifier for a given Organization. */
1722
1887
  organizationId: string;
1723
1888
  parameters: v1ImportPrivateKeyIntent;
1889
+ generateAppProofs?: boolean;
1724
1890
  };
1725
1891
  export type v1ImportPrivateKeyResult = {
1726
1892
  /** Unique identifier for a Private Key. */
@@ -1745,6 +1911,7 @@ export type v1ImportWalletRequest = {
1745
1911
  /** Unique identifier for a given Organization. */
1746
1912
  organizationId: string;
1747
1913
  parameters: v1ImportWalletIntent;
1914
+ generateAppProofs?: boolean;
1748
1915
  };
1749
1916
  export type v1ImportWalletResult = {
1750
1917
  /** Unique identifier for a Wallet. */
@@ -1783,6 +1950,7 @@ export type v1InitFiatOnRampRequest = {
1783
1950
  /** Unique identifier for a given Organization. */
1784
1951
  organizationId: string;
1785
1952
  parameters: v1InitFiatOnRampIntent;
1953
+ generateAppProofs?: boolean;
1786
1954
  };
1787
1955
  export type v1InitFiatOnRampResult = {
1788
1956
  /** Unique URL for a given fiat on-ramp flow. */
@@ -1803,6 +1971,7 @@ export type v1InitImportPrivateKeyRequest = {
1803
1971
  /** Unique identifier for a given Organization. */
1804
1972
  organizationId: string;
1805
1973
  parameters: v1InitImportPrivateKeyIntent;
1974
+ generateAppProofs?: boolean;
1806
1975
  };
1807
1976
  export type v1InitImportPrivateKeyResult = {
1808
1977
  /** Import bundle containing a public key and signature to use for importing client data. */
@@ -1819,6 +1988,7 @@ export type v1InitImportWalletRequest = {
1819
1988
  /** Unique identifier for a given Organization. */
1820
1989
  organizationId: string;
1821
1990
  parameters: v1InitImportWalletIntent;
1991
+ generateAppProofs?: boolean;
1822
1992
  };
1823
1993
  export type v1InitImportWalletResult = {
1824
1994
  /** Import bundle containing a public key and signature to use for importing client data. */
@@ -1851,7 +2021,31 @@ export type v1InitOtpAuthIntentV2 = {
1851
2021
  otpLength?: number;
1852
2022
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1853
2023
  emailCustomization?: v1EmailCustomizationParams;
1854
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
2024
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
2025
+ smsCustomization?: v1SmsCustomizationParams;
2026
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
2027
+ userIdentifier?: string;
2028
+ /** Optional custom email address from which to send the OTP email */
2029
+ sendFromEmailAddress?: string;
2030
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
2031
+ alphanumeric?: boolean;
2032
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2033
+ sendFromEmailSenderName?: string;
2034
+ /** Optional custom email address to use as reply-to */
2035
+ replyToEmailAddress?: string;
2036
+ };
2037
+ export type v1InitOtpAuthIntentV3 = {
2038
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
2039
+ otpType: string;
2040
+ /** Email or phone number to send the OTP code to */
2041
+ contact: string;
2042
+ /** Optional length of the OTP code. Default = 9 */
2043
+ otpLength?: number;
2044
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
2045
+ appName: string;
2046
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2047
+ emailCustomization?: v1EmailCustomizationParamsV2;
2048
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
1855
2049
  smsCustomization?: v1SmsCustomizationParams;
1856
2050
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
1857
2051
  userIdentifier?: string;
@@ -1861,6 +2055,8 @@ export type v1InitOtpAuthIntentV2 = {
1861
2055
  alphanumeric?: boolean;
1862
2056
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1863
2057
  sendFromEmailSenderName?: string;
2058
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
2059
+ expirationSeconds?: string;
1864
2060
  /** Optional custom email address to use as reply-to */
1865
2061
  replyToEmailAddress?: string;
1866
2062
  };
@@ -1870,7 +2066,8 @@ export type v1InitOtpAuthRequest = {
1870
2066
  timestampMs: string;
1871
2067
  /** Unique identifier for a given Organization. */
1872
2068
  organizationId: string;
1873
- parameters: v1InitOtpAuthIntentV2;
2069
+ parameters: v1InitOtpAuthIntentV3;
2070
+ generateAppProofs?: boolean;
1874
2071
  };
1875
2072
  export type v1InitOtpAuthResult = {
1876
2073
  /** Unique identifier for an OTP authentication */
@@ -1904,13 +2101,40 @@ export type v1InitOtpIntent = {
1904
2101
  /** Optional custom email address to use as reply-to */
1905
2102
  replyToEmailAddress?: string;
1906
2103
  };
2104
+ export type v1InitOtpIntentV2 = {
2105
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
2106
+ otpType: string;
2107
+ /** Email or phone number to send the OTP code to */
2108
+ contact: string;
2109
+ /** Optional length of the OTP code. Default = 9 */
2110
+ otpLength?: number;
2111
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
2112
+ appName: string;
2113
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2114
+ emailCustomization?: v1EmailCustomizationParamsV2;
2115
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
2116
+ smsCustomization?: v1SmsCustomizationParams;
2117
+ /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
2118
+ userIdentifier?: string;
2119
+ /** Optional custom email address from which to send the OTP email */
2120
+ sendFromEmailAddress?: string;
2121
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
2122
+ alphanumeric?: boolean;
2123
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2124
+ sendFromEmailSenderName?: string;
2125
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
2126
+ expirationSeconds?: string;
2127
+ /** Optional custom email address to use as reply-to */
2128
+ replyToEmailAddress?: string;
2129
+ };
1907
2130
  export type v1InitOtpRequest = {
1908
2131
  type: string;
1909
2132
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1910
2133
  timestampMs: string;
1911
2134
  /** Unique identifier for a given Organization. */
1912
2135
  organizationId: string;
1913
- parameters: v1InitOtpIntent;
2136
+ parameters: v1InitOtpIntentV2;
2137
+ generateAppProofs?: boolean;
1914
2138
  };
1915
2139
  export type v1InitOtpResult = {
1916
2140
  /** Unique identifier for an OTP authentication */
@@ -1932,13 +2156,30 @@ export type v1InitUserEmailRecoveryIntent = {
1932
2156
  /** Optional custom email address to use as reply-to */
1933
2157
  replyToEmailAddress?: string;
1934
2158
  };
2159
+ export type v1InitUserEmailRecoveryIntentV2 = {
2160
+ /** Email of the user starting recovery */
2161
+ email: string;
2162
+ /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
2163
+ targetPublicKey: string;
2164
+ /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
2165
+ expirationSeconds?: string;
2166
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that `app_name` is required. */
2167
+ emailCustomization: v1EmailAuthCustomizationParams;
2168
+ /** Optional custom email address from which to send the OTP email */
2169
+ sendFromEmailAddress?: string;
2170
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2171
+ sendFromEmailSenderName?: string;
2172
+ /** Optional custom email address to use as reply-to */
2173
+ replyToEmailAddress?: string;
2174
+ };
1935
2175
  export type v1InitUserEmailRecoveryRequest = {
1936
2176
  type: string;
1937
2177
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1938
2178
  timestampMs: string;
1939
2179
  /** Unique identifier for a given Organization. */
1940
2180
  organizationId: string;
1941
- parameters: v1InitUserEmailRecoveryIntent;
2181
+ parameters: v1InitUserEmailRecoveryIntentV2;
2182
+ generateAppProofs?: boolean;
1942
2183
  };
1943
2184
  export type v1InitUserEmailRecoveryResult = {
1944
2185
  /** Unique identifier for the user being recovered. */
@@ -2053,6 +2294,11 @@ export type v1Intent = {
2053
2294
  createFiatOnRampCredentialIntent?: v1CreateFiatOnRampCredentialIntent;
2054
2295
  updateFiatOnRampCredentialIntent?: v1UpdateFiatOnRampCredentialIntent;
2055
2296
  deleteFiatOnRampCredentialIntent?: v1DeleteFiatOnRampCredentialIntent;
2297
+ emailAuthIntentV3?: v1EmailAuthIntentV3;
2298
+ initUserEmailRecoveryIntentV2?: v1InitUserEmailRecoveryIntentV2;
2299
+ initOtpIntentV2?: v1InitOtpIntentV2;
2300
+ initOtpAuthIntentV3?: v1InitOtpAuthIntentV3;
2301
+ upsertGasUsageConfigIntent?: v1UpsertGasUsageConfigIntent;
2056
2302
  };
2057
2303
  export type v1Invitation = {
2058
2304
  /** Unique identifier for a given Invitation object. */
@@ -2115,9 +2361,14 @@ export type v1ListUserTagsResponse = {
2115
2361
  /** A list of user tags. */
2116
2362
  userTags: datav1Tag[];
2117
2363
  };
2364
+ export type v1LoginUsage = {
2365
+ /** Public key for authentication */
2366
+ publicKey: string;
2367
+ };
2118
2368
  export type v1MnemonicLanguage = "MNEMONIC_LANGUAGE_ENGLISH" | "MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE" | "MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE" | "MNEMONIC_LANGUAGE_CZECH" | "MNEMONIC_LANGUAGE_FRENCH" | "MNEMONIC_LANGUAGE_ITALIAN" | "MNEMONIC_LANGUAGE_JAPANESE" | "MNEMONIC_LANGUAGE_KOREAN" | "MNEMONIC_LANGUAGE_SPANISH";
2119
2369
  export type v1NOOPCodegenAnchorResponse = {
2120
2370
  stamp: v1WebAuthnStamp;
2371
+ tokenUsage?: v1TokenUsage;
2121
2372
  };
2122
2373
  export type v1Oauth2AuthenticateIntent = {
2123
2374
  /** The OAuth 2.0 credential id whose client_id and client_secret will be used in the OAuth 2.0 flow */
@@ -2140,6 +2391,7 @@ export type v1Oauth2AuthenticateRequest = {
2140
2391
  /** Unique identifier for a given Organization. */
2141
2392
  organizationId: string;
2142
2393
  parameters: v1Oauth2AuthenticateIntent;
2394
+ generateAppProofs?: boolean;
2143
2395
  };
2144
2396
  export type v1Oauth2AuthenticateResult = {
2145
2397
  /** Base64 encoded OIDC token issued by Turnkey to be used with the LoginWithOAuth activity */
@@ -2189,6 +2441,7 @@ export type v1OauthLoginRequest = {
2189
2441
  /** Unique identifier for a given Organization. */
2190
2442
  organizationId: string;
2191
2443
  parameters: v1OauthLoginIntent;
2444
+ generateAppProofs?: boolean;
2192
2445
  };
2193
2446
  export type v1OauthLoginResult = {
2194
2447
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -2221,6 +2474,7 @@ export type v1OauthRequest = {
2221
2474
  /** Unique identifier for a given Organization. */
2222
2475
  organizationId: string;
2223
2476
  parameters: v1OauthIntent;
2477
+ generateAppProofs?: boolean;
2224
2478
  };
2225
2479
  export type v1OauthResult = {
2226
2480
  /** Unique identifier for the authenticating User. */
@@ -2265,6 +2519,7 @@ export type v1OtpAuthRequest = {
2265
2519
  /** Unique identifier for a given Organization. */
2266
2520
  organizationId: string;
2267
2521
  parameters: v1OtpAuthIntent;
2522
+ generateAppProofs?: boolean;
2268
2523
  };
2269
2524
  export type v1OtpAuthResult = {
2270
2525
  /** Unique identifier for the authenticating User. */
@@ -2283,8 +2538,8 @@ export type v1OtpLoginIntent = {
2283
2538
  expirationSeconds?: string;
2284
2539
  /** Invalidate all other previously generated Login API keys */
2285
2540
  invalidateExisting?: boolean;
2286
- /** Optional signature associated with the public key passed into the verification step. This must be a hex-encoded ECDSA signature over the verification token. Only required if a public key was provided during the verification step. */
2287
- clientSignature?: string;
2541
+ /** Optional signature proving authorization for this login. The signature is over the verification token ID and the public key. Only required if a public key was provided during the verification step. */
2542
+ clientSignature?: v1ClientSignature;
2288
2543
  };
2289
2544
  export type v1OtpLoginRequest = {
2290
2545
  type: string;
@@ -2293,6 +2548,7 @@ export type v1OtpLoginRequest = {
2293
2548
  /** Unique identifier for a given Organization. */
2294
2549
  organizationId: string;
2295
2550
  parameters: v1OtpLoginIntent;
2551
+ generateAppProofs?: boolean;
2296
2552
  };
2297
2553
  export type v1OtpLoginResult = {
2298
2554
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -2380,6 +2636,7 @@ export type v1RecoverUserRequest = {
2380
2636
  /** Unique identifier for a given Organization. */
2381
2637
  organizationId: string;
2382
2638
  parameters: v1RecoverUserIntent;
2639
+ generateAppProofs?: boolean;
2383
2640
  };
2384
2641
  export type v1RecoverUserResult = {
2385
2642
  /** ID of the authenticator created. */
@@ -2396,6 +2653,7 @@ export type v1RejectActivityRequest = {
2396
2653
  /** Unique identifier for a given Organization. */
2397
2654
  organizationId: string;
2398
2655
  parameters: v1RejectActivityIntent;
2656
+ generateAppProofs?: boolean;
2399
2657
  };
2400
2658
  export type v1RemoveOrganizationFeatureIntent = {
2401
2659
  /** Name of the feature to remove */
@@ -2408,6 +2666,7 @@ export type v1RemoveOrganizationFeatureRequest = {
2408
2666
  /** Unique identifier for a given Organization. */
2409
2667
  organizationId: string;
2410
2668
  parameters: v1RemoveOrganizationFeatureIntent;
2669
+ generateAppProofs?: boolean;
2411
2670
  };
2412
2671
  export type v1RemoveOrganizationFeatureResult = {
2413
2672
  /** Resulting list of organization features. */
@@ -2507,6 +2766,7 @@ export type v1Result = {
2507
2766
  updateFiatOnRampCredentialResult?: v1UpdateFiatOnRampCredentialResult;
2508
2767
  deleteFiatOnRampCredentialResult?: v1DeleteFiatOnRampCredentialResult;
2509
2768
  ethSendTransactionResult?: v1EthSendTransactionResult;
2769
+ upsertGasUsageConfigResult?: v1UpsertGasUsageConfigResult;
2510
2770
  };
2511
2771
  export type v1RootUserParams = {
2512
2772
  /** Human-readable name for a User. */
@@ -2579,6 +2839,7 @@ export type v1SetOrganizationFeatureRequest = {
2579
2839
  /** Unique identifier for a given Organization. */
2580
2840
  organizationId: string;
2581
2841
  parameters: v1SetOrganizationFeatureIntent;
2842
+ generateAppProofs?: boolean;
2582
2843
  };
2583
2844
  export type v1SetOrganizationFeatureResult = {
2584
2845
  /** Resulting list of organization features. */
@@ -2611,6 +2872,7 @@ export type v1SignRawPayloadRequest = {
2611
2872
  /** Unique identifier for a given Organization. */
2612
2873
  organizationId: string;
2613
2874
  parameters: v1SignRawPayloadIntentV2;
2875
+ generateAppProofs?: boolean;
2614
2876
  };
2615
2877
  export type v1SignRawPayloadResult = {
2616
2878
  /** Component of an ECSDA signature. */
@@ -2637,6 +2899,7 @@ export type v1SignRawPayloadsRequest = {
2637
2899
  /** Unique identifier for a given Organization. */
2638
2900
  organizationId: string;
2639
2901
  parameters: v1SignRawPayloadsIntent;
2902
+ generateAppProofs?: boolean;
2640
2903
  };
2641
2904
  export type v1SignRawPayloadsResult = {
2642
2905
  signatures?: v1SignRawPayloadResult[];
@@ -2662,34 +2925,23 @@ export type v1SignTransactionRequest = {
2662
2925
  /** Unique identifier for a given Organization. */
2663
2926
  organizationId: string;
2664
2927
  parameters: v1SignTransactionIntentV2;
2928
+ generateAppProofs?: boolean;
2665
2929
  };
2666
2930
  export type v1SignTransactionResult = {
2667
2931
  signedTransaction: string;
2668
2932
  };
2669
- export type v1SignatureScheme = "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
2933
+ export type v1SignupUsage = {
2934
+ email?: string;
2935
+ phoneNumber?: string;
2936
+ apiKeys?: v1ApiKeyParamsV2[];
2937
+ authenticators?: v1AuthenticatorParamsV2[];
2938
+ oauthProviders?: v1OauthProviderParams[];
2939
+ };
2670
2940
  export type v1SimpleClientExtensionResults = {
2671
2941
  appid?: boolean;
2672
2942
  appidExclude?: boolean;
2673
2943
  credProps?: v1CredPropsAuthenticationExtensionsClientOutputs;
2674
2944
  };
2675
- export type v1SmartContractInterface = {
2676
- /** The Organization the Smart Contract Interface belongs to. */
2677
- organizationId: string;
2678
- /** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
2679
- smartContractInterfaceId: string;
2680
- /** The address corresponding to the Smart Contract or Program. */
2681
- smartContractAddress: string;
2682
- /** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
2683
- smartContractInterface: string;
2684
- /** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
2685
- type: string;
2686
- /** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
2687
- label: string;
2688
- /** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
2689
- notes: string;
2690
- createdAt: externaldatav1Timestamp;
2691
- updatedAt: externaldatav1Timestamp;
2692
- };
2693
2945
  export type v1SmartContractInterfaceReference = {
2694
2946
  smartContractInterfaceId?: string;
2695
2947
  smartContractAddress?: string;
@@ -2715,6 +2967,7 @@ export type v1StampLoginRequest = {
2715
2967
  /** Unique identifier for a given Organization. */
2716
2968
  organizationId: string;
2717
2969
  parameters: v1StampLoginIntent;
2970
+ generateAppProofs?: boolean;
2718
2971
  };
2719
2972
  export type v1StampLoginResult = {
2720
2973
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -2730,6 +2983,14 @@ export type v1TestRateLimitsRequest = {
2730
2983
  limit: number;
2731
2984
  };
2732
2985
  export type v1TestRateLimitsResponse = {};
2986
+ export type v1TokenUsage = {
2987
+ /** Type of token usage */
2988
+ type: v1UsageType;
2989
+ /** Unique identifier for the verification token */
2990
+ tokenId: string;
2991
+ signup?: v1SignupUsage;
2992
+ login?: v1LoginUsage;
2993
+ };
2733
2994
  export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN";
2734
2995
  export type v1UpdateAllowedOriginsIntent = {
2735
2996
  /** Additional origins requests are allowed from besides Turnkey origins */
@@ -2749,7 +3010,7 @@ export type v1UpdateAuthProxyConfigIntent = {
2749
3010
  emailAuthTemplateId?: string;
2750
3011
  /** Template ID for OTP SMS messages. */
2751
3012
  otpTemplateId?: string;
2752
- /** Overrides for auth-related email content. */
3013
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2753
3014
  emailCustomizationParams?: v1EmailCustomizationParams;
2754
3015
  /** Overrides for auth-related SMS content. */
2755
3016
  smsCustomizationParams?: v1SmsCustomizationParams;
@@ -2795,6 +3056,7 @@ export type v1UpdateFiatOnRampCredentialRequest = {
2795
3056
  /** Unique identifier for a given Organization. */
2796
3057
  organizationId: string;
2797
3058
  parameters: v1UpdateFiatOnRampCredentialIntent;
3059
+ generateAppProofs?: boolean;
2798
3060
  };
2799
3061
  export type v1UpdateFiatOnRampCredentialResult = {
2800
3062
  /** Unique identifier of the Fiat On-Ramp credential that was updated */
@@ -2817,6 +3079,7 @@ export type v1UpdateOauth2CredentialRequest = {
2817
3079
  /** Unique identifier for a given Organization. */
2818
3080
  organizationId: string;
2819
3081
  parameters: v1UpdateOauth2CredentialIntent;
3082
+ generateAppProofs?: boolean;
2820
3083
  };
2821
3084
  export type v1UpdateOauth2CredentialResult = {
2822
3085
  /** Unique identifier of the OAuth 2.0 credential that was updated */
@@ -2857,6 +3120,7 @@ export type v1UpdatePolicyRequest = {
2857
3120
  /** Unique identifier for a given Organization. */
2858
3121
  organizationId: string;
2859
3122
  parameters: v1UpdatePolicyIntentV2;
3123
+ generateAppProofs?: boolean;
2860
3124
  };
2861
3125
  export type v1UpdatePolicyResult = {
2862
3126
  /** Unique identifier for a given Policy. */
@@ -2883,6 +3147,7 @@ export type v1UpdatePrivateKeyTagRequest = {
2883
3147
  /** Unique identifier for a given Organization. */
2884
3148
  organizationId: string;
2885
3149
  parameters: v1UpdatePrivateKeyTagIntent;
3150
+ generateAppProofs?: boolean;
2886
3151
  };
2887
3152
  export type v1UpdatePrivateKeyTagResult = {
2888
3153
  /** Unique identifier for a given Private Key Tag. */
@@ -2901,6 +3166,7 @@ export type v1UpdateRootQuorumRequest = {
2901
3166
  /** Unique identifier for a given Organization. */
2902
3167
  organizationId: string;
2903
3168
  parameters: v1UpdateRootQuorumIntent;
3169
+ generateAppProofs?: boolean;
2904
3170
  };
2905
3171
  export type v1UpdateRootQuorumResult = {};
2906
3172
  export type v1UpdateUserEmailIntent = {
@@ -2918,6 +3184,7 @@ export type v1UpdateUserEmailRequest = {
2918
3184
  /** Unique identifier for a given Organization. */
2919
3185
  organizationId: string;
2920
3186
  parameters: v1UpdateUserEmailIntent;
3187
+ generateAppProofs?: boolean;
2921
3188
  };
2922
3189
  export type v1UpdateUserEmailResult = {
2923
3190
  /** Unique identifier of the User whose email was updated. */
@@ -2948,6 +3215,7 @@ export type v1UpdateUserNameRequest = {
2948
3215
  /** Unique identifier for a given Organization. */
2949
3216
  organizationId: string;
2950
3217
  parameters: v1UpdateUserNameIntent;
3218
+ generateAppProofs?: boolean;
2951
3219
  };
2952
3220
  export type v1UpdateUserNameResult = {
2953
3221
  /** Unique identifier of the User whose name was updated. */
@@ -2968,6 +3236,7 @@ export type v1UpdateUserPhoneNumberRequest = {
2968
3236
  /** Unique identifier for a given Organization. */
2969
3237
  organizationId: string;
2970
3238
  parameters: v1UpdateUserPhoneNumberIntent;
3239
+ generateAppProofs?: boolean;
2971
3240
  };
2972
3241
  export type v1UpdateUserPhoneNumberResult = {
2973
3242
  /** Unique identifier of the User whose phone number was updated. */
@@ -2980,6 +3249,7 @@ export type v1UpdateUserRequest = {
2980
3249
  /** Unique identifier for a given Organization. */
2981
3250
  organizationId: string;
2982
3251
  parameters: v1UpdateUserIntent;
3252
+ generateAppProofs?: boolean;
2983
3253
  };
2984
3254
  export type v1UpdateUserResult = {
2985
3255
  /** A User ID. */
@@ -3002,6 +3272,7 @@ export type v1UpdateUserTagRequest = {
3002
3272
  /** Unique identifier for a given Organization. */
3003
3273
  organizationId: string;
3004
3274
  parameters: v1UpdateUserTagIntent;
3275
+ generateAppProofs?: boolean;
3005
3276
  };
3006
3277
  export type v1UpdateUserTagResult = {
3007
3278
  /** Unique identifier for a given User Tag. */
@@ -3020,11 +3291,25 @@ export type v1UpdateWalletRequest = {
3020
3291
  /** Unique identifier for a given Organization. */
3021
3292
  organizationId: string;
3022
3293
  parameters: v1UpdateWalletIntent;
3294
+ generateAppProofs?: boolean;
3023
3295
  };
3024
3296
  export type v1UpdateWalletResult = {
3025
3297
  /** A Wallet ID. */
3026
3298
  walletId: string;
3027
3299
  };
3300
+ export type v1UpsertGasUsageConfigIntent = {
3301
+ /** Gas sponsorship USD limit for the billing organization window. */
3302
+ orgWindowLimitUsd: string;
3303
+ /** Gas sponsorship USD limit for sub-organizations under the billing organization. */
3304
+ subOrgWindowLimitUsd: string;
3305
+ /** Rolling sponsorship window duration, expressed in minutes. */
3306
+ windowDurationMinutes: string;
3307
+ };
3308
+ export type v1UpsertGasUsageConfigResult = {
3309
+ /** Unique identifier for the gas usage configuration that was created or updated. */
3310
+ gasUsageConfigId: string;
3311
+ };
3312
+ export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
3028
3313
  export type v1User = {
3029
3314
  /** Unique identifier for a given User. */
3030
3315
  userId: string;
@@ -3104,6 +3389,7 @@ export type v1VerifyOtpRequest = {
3104
3389
  /** Unique identifier for a given Organization. */
3105
3390
  organizationId: string;
3106
3391
  parameters: v1VerifyOtpIntent;
3392
+ generateAppProofs?: boolean;
3107
3393
  };
3108
3394
  export type v1VerifyOtpResult = {
3109
3395
  /** 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) */
@@ -3289,6 +3575,20 @@ export type TGetBootProofBody = {
3289
3575
  export type TGetBootProofInput = {
3290
3576
  body: TGetBootProofBody;
3291
3577
  };
3578
+ export type TGetGasUsageResponse = {
3579
+ /** The window duration (in minutes) for the organization or sub-organization. */
3580
+ windowDurationMinutes: number;
3581
+ /** The window limit (in USD) for the organization or sub-organization. */
3582
+ windowLimitUsd: string;
3583
+ /** The total gas usage (in USD) of all sponsored transactions processed over the last `window_duration_minutes` */
3584
+ usageUsd: string;
3585
+ };
3586
+ export type TGetGasUsageBody = {
3587
+ organizationId?: string;
3588
+ };
3589
+ export type TGetGasUsageInput = {
3590
+ body: TGetGasUsageBody;
3591
+ };
3292
3592
  export type TGetLatestBootProofResponse = {
3293
3593
  bootProof: v1BootProof;
3294
3594
  };
@@ -3300,6 +3600,26 @@ export type TGetLatestBootProofBody = {
3300
3600
  export type TGetLatestBootProofInput = {
3301
3601
  body: TGetLatestBootProofBody;
3302
3602
  };
3603
+ export type TGetNoncesResponse = {
3604
+ /** The standard on-chain nonce for the address, if requested. */
3605
+ nonce?: string;
3606
+ /** The gas station nonce for sponsored transactions, if requested. */
3607
+ gasStationNonce?: string;
3608
+ };
3609
+ export type TGetNoncesBody = {
3610
+ organizationId?: string;
3611
+ /** The Ethereum address to query nonces for. */
3612
+ address: string;
3613
+ /** The network identifier in CAIP-2 format (e.g., 'eip155:1' for Ethereum mainnet). */
3614
+ caip2: string;
3615
+ /** Whether to fetch the standard on-chain nonce. */
3616
+ nonce?: boolean;
3617
+ /** Whether to fetch the gas station nonce used for sponsored transactions. */
3618
+ gasStationNonce?: boolean;
3619
+ };
3620
+ export type TGetNoncesInput = {
3621
+ body: TGetNoncesBody;
3622
+ };
3303
3623
  export type TGetOauth2CredentialResponse = {
3304
3624
  oauth2Credential: v1Oauth2Credential;
3305
3625
  };
@@ -3392,9 +3712,25 @@ export type TGetPrivateKeyBody = {
3392
3712
  export type TGetPrivateKeyInput = {
3393
3713
  body: TGetPrivateKeyBody;
3394
3714
  };
3715
+ export type TGetSendTransactionStatusResponse = {
3716
+ /** The current status of the send transaction. */
3717
+ txStatus: string;
3718
+ /** Ethereum-specific transaction status. */
3719
+ eth?: v1EthSendTransactionStatus;
3720
+ /** The error encountered when broadcasting or confirming the transaction, if any. */
3721
+ txError?: string;
3722
+ };
3723
+ export type TGetSendTransactionStatusBody = {
3724
+ organizationId?: string;
3725
+ /** The unique identifier of a send transaction request. */
3726
+ sendTransactionStatusId: string;
3727
+ };
3728
+ export type TGetSendTransactionStatusInput = {
3729
+ body: TGetSendTransactionStatusBody;
3730
+ };
3395
3731
  export type TGetSmartContractInterfaceResponse = {
3396
3732
  /** Object to be used in conjunction with policies to guard transaction signing. */
3397
- smartContractInterface: v1SmartContractInterface;
3733
+ smartContractInterface: externaldatav1SmartContractInterface;
3398
3734
  };
3399
3735
  export type TGetSmartContractInterfaceBody = {
3400
3736
  organizationId?: string;
@@ -3521,7 +3857,7 @@ export type TGetPrivateKeysInput = {
3521
3857
  };
3522
3858
  export type TGetSmartContractInterfacesResponse = {
3523
3859
  /** A list of smart contract interfaces. */
3524
- smartContractInterfaces: v1SmartContractInterface[];
3860
+ smartContractInterfaces: externaldatav1SmartContractInterface[];
3525
3861
  };
3526
3862
  export type TGetSmartContractInterfacesBody = {
3527
3863
  organizationId?: string;
@@ -3783,7 +4119,8 @@ export type TCreatePolicyBody = {
3783
4119
  condition?: string;
3784
4120
  /** The consensus expression that triggers the Effect */
3785
4121
  consensus?: string;
3786
- notes?: string;
4122
+ /** Notes for a Policy. */
4123
+ notes: string;
3787
4124
  };
3788
4125
  export type TCreatePolicyInput = {
3789
4126
  body: TCreatePolicyBody;
@@ -3884,7 +4221,7 @@ export type TCreateSmartContractInterfaceBody = {
3884
4221
  organizationId?: string;
3885
4222
  /** Corresponding contract address or program ID */
3886
4223
  smartContractAddress: string;
3887
- /** ABI/IDL as a JSON string */
4224
+ /** ABI/IDL as a JSON string. Limited to 400kb */
3888
4225
  smartContractInterface: string;
3889
4226
  type: v1SmartContractInterfaceType;
3890
4227
  /** Human-readable name for a Smart Contract Interface. */
@@ -3922,6 +4259,8 @@ export type TCreateSubOrganizationBody = {
3922
4259
  disableOtpEmailAuth?: boolean;
3923
4260
  /** Signed JWT containing a unique id, expiry, verification type, contact */
3924
4261
  verificationToken?: string;
4262
+ /** 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. */
4263
+ clientSignature?: v1ClientSignature;
3925
4264
  };
3926
4265
  export type TCreateSubOrganizationInput = {
3927
4266
  body: TCreateSubOrganizationBody;
@@ -4254,8 +4593,8 @@ export type TEmailAuthBody = {
4254
4593
  apiKeyName?: string;
4255
4594
  /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
4256
4595
  expirationSeconds?: string;
4257
- /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4258
- emailCustomization?: v1EmailCustomizationParams;
4596
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that app_name is required. */
4597
+ emailCustomization: v1EmailAuthCustomizationParams;
4259
4598
  /** Invalidate all other previously generated Email Auth API keys */
4260
4599
  invalidateExisting?: boolean;
4261
4600
  /** Optional custom email address from which to send the email */
@@ -4286,8 +4625,8 @@ export type TEthSendRawTransactionInput = {
4286
4625
  };
4287
4626
  export type TEthSendTransactionResponse = {
4288
4627
  activity: v1Activity;
4289
- /** The transaction hash of the sent transaction */
4290
- transactionHash: string;
4628
+ /** The send_transaction_status ID associated with the transaction submission for sponsored transactions */
4629
+ sendTransactionStatusId: string;
4291
4630
  };
4292
4631
  export type TEthSendTransactionBody = {
4293
4632
  timestampMs?: string;
@@ -4304,16 +4643,16 @@ export type TEthSendTransactionBody = {
4304
4643
  value?: string;
4305
4644
  /** Hex-encoded call data for contract interactions. */
4306
4645
  data?: string;
4307
- /** Transaction nonce. */
4308
- nonce: string;
4309
- /** Maximum amount of gas to use for this transaction. */
4310
- gasLimit: string;
4311
- /** Maximum total fee per gas unit (base fee + priority fee) in wei, for EIP-1559 transactions. */
4312
- maxFeePerGas: string;
4313
- /** Maximum priority fee (tip) per gas unit in wei, for EIP-1559 transactions. */
4314
- maxPriorityFeePerGas: string;
4315
- /** Unix timestamp after which the Gas Station meta-transaction is no longer valid. Only used when sponsor=true. */
4316
- deadline?: string;
4646
+ /** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
4647
+ nonce?: string;
4648
+ /** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
4649
+ gasLimit?: string;
4650
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
4651
+ maxFeePerGas?: string;
4652
+ /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
4653
+ maxPriorityFeePerGas?: string;
4654
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
4655
+ gasStationNonce?: string;
4317
4656
  };
4318
4657
  export type TEthSendTransactionInput = {
4319
4658
  body: TEthSendTransactionBody;
@@ -4500,9 +4839,11 @@ export type TInitOtpBody = {
4500
4839
  contact: string;
4501
4840
  /** Optional length of the OTP code. Default = 9 */
4502
4841
  otpLength?: number;
4842
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
4843
+ appName: string;
4503
4844
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4504
- emailCustomization?: v1EmailCustomizationParams;
4505
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
4845
+ emailCustomization?: v1EmailCustomizationParamsV2;
4846
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
4506
4847
  smsCustomization?: v1SmsCustomizationParams;
4507
4848
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
4508
4849
  userIdentifier?: string;
@@ -4528,15 +4869,17 @@ export type TInitOtpAuthResponse = {
4528
4869
  export type TInitOtpAuthBody = {
4529
4870
  timestampMs?: string;
4530
4871
  organizationId?: string;
4531
- /** Enum to specifiy whether to send OTP via SMS or email */
4872
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
4532
4873
  otpType: string;
4533
4874
  /** Email or phone number to send the OTP code to */
4534
4875
  contact: string;
4535
4876
  /** Optional length of the OTP code. Default = 9 */
4536
4877
  otpLength?: number;
4878
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
4879
+ appName: string;
4537
4880
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4538
- emailCustomization?: v1EmailCustomizationParams;
4539
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
4881
+ emailCustomization?: v1EmailCustomizationParamsV2;
4882
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
4540
4883
  smsCustomization?: v1SmsCustomizationParams;
4541
4884
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
4542
4885
  userIdentifier?: string;
@@ -4546,6 +4889,8 @@ export type TInitOtpAuthBody = {
4546
4889
  alphanumeric?: boolean;
4547
4890
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
4548
4891
  sendFromEmailSenderName?: string;
4892
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
4893
+ expirationSeconds?: string;
4549
4894
  /** Optional custom email address to use as reply-to */
4550
4895
  replyToEmailAddress?: string;
4551
4896
  };
@@ -4566,8 +4911,8 @@ export type TInitUserEmailRecoveryBody = {
4566
4911
  targetPublicKey: string;
4567
4912
  /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
4568
4913
  expirationSeconds?: string;
4569
- /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4570
- emailCustomization?: v1EmailCustomizationParams;
4914
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that `app_name` is required. */
4915
+ emailCustomization: v1EmailAuthCustomizationParams;
4571
4916
  /** Optional custom email address from which to send the OTP email */
4572
4917
  sendFromEmailAddress?: string;
4573
4918
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
@@ -4692,8 +5037,8 @@ export type TOtpLoginBody = {
4692
5037
  expirationSeconds?: string;
4693
5038
  /** Invalidate all other previously generated Login API keys */
4694
5039
  invalidateExisting?: boolean;
4695
- /** Optional signature associated with the public key passed into the verification step. This must be a hex-encoded ECDSA signature over the verification token. Only required if a public key was provided during the verification step. */
4696
- clientSignature?: string;
5040
+ /** Optional signature proving authorization for this login. The signature is over the verification token ID and the public key. Only required if a public key was provided during the verification step. */
5041
+ clientSignature?: v1ClientSignature;
4697
5042
  };
4698
5043
  export type TOtpLoginInput = {
4699
5044
  body: TOtpLoginBody;
@@ -5089,6 +5434,8 @@ export type ProxyTGetAccountBody = {
5089
5434
  filterValue: string;
5090
5435
  /** 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'. */
5091
5436
  verificationToken?: string;
5437
+ /** 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. */
5438
+ oidcToken?: string;
5092
5439
  };
5093
5440
  export type ProxyTGetAccountInput = {
5094
5441
  body: ProxyTGetAccountBody;
@@ -5157,8 +5504,8 @@ export type ProxyTOtpLoginBody = {
5157
5504
  invalidateExisting?: boolean;
5158
5505
  /** 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. */
5159
5506
  organizationId?: string;
5160
- /** Optional signature associated with the public key passed into the verification step. This must be a hex-encoded ECDSA signature over the verification token. Only required if a public key was provided during the verification step. */
5161
- clientSignature?: string;
5507
+ /** Optional signature proving authorization for this login. The signature is over the verification token ID and the public key. Only required if a public key was provided during the verification step. */
5508
+ clientSignature?: v1ClientSignature;
5162
5509
  };
5163
5510
  export type ProxyTOtpLoginInput = {
5164
5511
  body: ProxyTOtpLoginBody;
@@ -5202,6 +5549,8 @@ export type ProxyTSignupBody = {
5202
5549
  oauthProviders: v1OauthProviderParams[];
5203
5550
  /** The wallet to create for the sub-organization */
5204
5551
  wallet?: v1WalletParams;
5552
+ /** 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. */
5553
+ clientSignature?: v1ClientSignature;
5205
5554
  };
5206
5555
  export type ProxyTSignupInput = {
5207
5556
  body: ProxyTSignupBody;