@turnkey/sdk-types 0.8.0 → 0.10.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";
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. */
@@ -518,6 +557,7 @@ export type v1CreatePolicyRequest = {
518
557
  /** Unique identifier for a given Organization. */
519
558
  organizationId: string;
520
559
  parameters: v1CreatePolicyIntentV3;
560
+ generateAppProofs?: boolean;
521
561
  };
522
562
  export type v1CreatePolicyResult = {
523
563
  /** Unique identifier for a given Policy. */
@@ -536,6 +576,7 @@ export type v1CreatePrivateKeyTagRequest = {
536
576
  /** Unique identifier for a given Organization. */
537
577
  organizationId: string;
538
578
  parameters: v1CreatePrivateKeyTagIntent;
579
+ generateAppProofs?: boolean;
539
580
  };
540
581
  export type v1CreatePrivateKeyTagResult = {
541
582
  /** Unique identifier for a given Private Key Tag. */
@@ -558,6 +599,7 @@ export type v1CreatePrivateKeysRequest = {
558
599
  /** Unique identifier for a given Organization. */
559
600
  organizationId: string;
560
601
  parameters: v1CreatePrivateKeysIntentV2;
602
+ generateAppProofs?: boolean;
561
603
  };
562
604
  export type v1CreatePrivateKeysResult = {
563
605
  /** A list of Private Key IDs. */
@@ -575,6 +617,7 @@ export type v1CreateReadOnlySessionRequest = {
575
617
  /** Unique identifier for a given Organization. */
576
618
  organizationId: string;
577
619
  parameters: v1CreateReadOnlySessionIntent;
620
+ generateAppProofs?: boolean;
578
621
  };
579
622
  export type v1CreateReadOnlySessionResult = {
580
623
  /** 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 +662,7 @@ export type v1CreateReadWriteSessionRequest = {
619
662
  /** Unique identifier for a given Organization. */
620
663
  organizationId: string;
621
664
  parameters: v1CreateReadWriteSessionIntentV2;
665
+ generateAppProofs?: boolean;
622
666
  };
623
667
  export type v1CreateReadWriteSessionResult = {
624
668
  /** 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 +695,7 @@ export type v1CreateReadWriteSessionResultV2 = {
651
695
  export type v1CreateSmartContractInterfaceIntent = {
652
696
  /** Corresponding contract address or program ID */
653
697
  smartContractAddress: string;
654
- /** ABI/IDL as a JSON string */
698
+ /** ABI/IDL as a JSON string. Limited to 400kb */
655
699
  smartContractInterface: string;
656
700
  type: v1SmartContractInterfaceType;
657
701
  /** Human-readable name for a Smart Contract Interface. */
@@ -666,6 +710,7 @@ export type v1CreateSmartContractInterfaceRequest = {
666
710
  /** Unique identifier for a given Organization. */
667
711
  organizationId: string;
668
712
  parameters: v1CreateSmartContractInterfaceIntent;
713
+ generateAppProofs?: boolean;
669
714
  };
670
715
  export type v1CreateSmartContractInterfaceResult = {
671
716
  /** The ID of the created Smart Contract Interface. */
@@ -756,6 +801,8 @@ export type v1CreateSubOrganizationIntentV7 = {
756
801
  disableOtpEmailAuth?: boolean;
757
802
  /** Signed JWT containing a unique id, expiry, verification type, contact */
758
803
  verificationToken?: string;
804
+ /** 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. */
805
+ clientSignature?: v1ClientSignature;
759
806
  };
760
807
  export type v1CreateSubOrganizationRequest = {
761
808
  type: string;
@@ -764,6 +811,7 @@ export type v1CreateSubOrganizationRequest = {
764
811
  /** Unique identifier for a given Organization. */
765
812
  organizationId: string;
766
813
  parameters: v1CreateSubOrganizationIntentV7;
814
+ generateAppProofs?: boolean;
767
815
  };
768
816
  export type v1CreateSubOrganizationResult = {
769
817
  subOrganizationId: string;
@@ -808,6 +856,7 @@ export type v1CreateUserTagRequest = {
808
856
  /** Unique identifier for a given Organization. */
809
857
  organizationId: string;
810
858
  parameters: v1CreateUserTagIntent;
859
+ generateAppProofs?: boolean;
811
860
  };
812
861
  export type v1CreateUserTagResult = {
813
862
  /** Unique identifier for a given User Tag. */
@@ -834,6 +883,7 @@ export type v1CreateUsersRequest = {
834
883
  /** Unique identifier for a given Organization. */
835
884
  organizationId: string;
836
885
  parameters: v1CreateUsersIntentV3;
886
+ generateAppProofs?: boolean;
837
887
  };
838
888
  export type v1CreateUsersResult = {
839
889
  /** A list of User IDs. */
@@ -854,6 +904,7 @@ export type v1CreateWalletAccountsRequest = {
854
904
  /** Unique identifier for a given Organization. */
855
905
  organizationId: string;
856
906
  parameters: v1CreateWalletAccountsIntent;
907
+ generateAppProofs?: boolean;
857
908
  };
858
909
  export type v1CreateWalletAccountsResult = {
859
910
  /** A list of derived addresses. */
@@ -874,6 +925,7 @@ export type v1CreateWalletRequest = {
874
925
  /** Unique identifier for a given Organization. */
875
926
  organizationId: string;
876
927
  parameters: v1CreateWalletIntent;
928
+ generateAppProofs?: boolean;
877
929
  };
878
930
  export type v1CreateWalletResult = {
879
931
  /** Unique identifier for a Wallet. */
@@ -899,6 +951,7 @@ export type v1DeleteApiKeysRequest = {
899
951
  /** Unique identifier for a given Organization. */
900
952
  organizationId: string;
901
953
  parameters: v1DeleteApiKeysIntent;
954
+ generateAppProofs?: boolean;
902
955
  };
903
956
  export type v1DeleteApiKeysResult = {
904
957
  /** A list of API Key IDs. */
@@ -917,6 +970,7 @@ export type v1DeleteAuthenticatorsRequest = {
917
970
  /** Unique identifier for a given Organization. */
918
971
  organizationId: string;
919
972
  parameters: v1DeleteAuthenticatorsIntent;
973
+ generateAppProofs?: boolean;
920
974
  };
921
975
  export type v1DeleteAuthenticatorsResult = {
922
976
  /** Unique identifier for a given Authenticator. */
@@ -933,6 +987,7 @@ export type v1DeleteFiatOnRampCredentialRequest = {
933
987
  /** Unique identifier for a given Organization. */
934
988
  organizationId: string;
935
989
  parameters: v1DeleteFiatOnRampCredentialIntent;
990
+ generateAppProofs?: boolean;
936
991
  };
937
992
  export type v1DeleteFiatOnRampCredentialResult = {
938
993
  /** Unique identifier of the Fiat On-Ramp credential that was deleted */
@@ -949,6 +1004,7 @@ export type v1DeleteInvitationRequest = {
949
1004
  /** Unique identifier for a given Organization. */
950
1005
  organizationId: string;
951
1006
  parameters: v1DeleteInvitationIntent;
1007
+ generateAppProofs?: boolean;
952
1008
  };
953
1009
  export type v1DeleteInvitationResult = {
954
1010
  /** Unique identifier for a given Invitation. */
@@ -965,6 +1021,7 @@ export type v1DeleteOauth2CredentialRequest = {
965
1021
  /** Unique identifier for a given Organization. */
966
1022
  organizationId: string;
967
1023
  parameters: v1DeleteOauth2CredentialIntent;
1024
+ generateAppProofs?: boolean;
968
1025
  };
969
1026
  export type v1DeleteOauth2CredentialResult = {
970
1027
  /** Unique identifier of the OAuth 2.0 credential that was deleted */
@@ -983,6 +1040,7 @@ export type v1DeleteOauthProvidersRequest = {
983
1040
  /** Unique identifier for a given Organization. */
984
1041
  organizationId: string;
985
1042
  parameters: v1DeleteOauthProvidersIntent;
1043
+ generateAppProofs?: boolean;
986
1044
  };
987
1045
  export type v1DeleteOauthProvidersResult = {
988
1046
  /** A list of unique identifiers for Oauth Providers */
@@ -1007,6 +1065,7 @@ export type v1DeletePoliciesRequest = {
1007
1065
  /** Unique identifier for a given Organization. */
1008
1066
  organizationId: string;
1009
1067
  parameters: v1DeletePoliciesIntent;
1068
+ generateAppProofs?: boolean;
1010
1069
  };
1011
1070
  export type v1DeletePoliciesResult = {
1012
1071
  /** A list of unique identifiers for the deleted policies. */
@@ -1023,6 +1082,7 @@ export type v1DeletePolicyRequest = {
1023
1082
  /** Unique identifier for a given Organization. */
1024
1083
  organizationId: string;
1025
1084
  parameters: v1DeletePolicyIntent;
1085
+ generateAppProofs?: boolean;
1026
1086
  };
1027
1087
  export type v1DeletePolicyResult = {
1028
1088
  /** Unique identifier for a given Policy. */
@@ -1039,6 +1099,7 @@ export type v1DeletePrivateKeyTagsRequest = {
1039
1099
  /** Unique identifier for a given Organization. */
1040
1100
  organizationId: string;
1041
1101
  parameters: v1DeletePrivateKeyTagsIntent;
1102
+ generateAppProofs?: boolean;
1042
1103
  };
1043
1104
  export type v1DeletePrivateKeyTagsResult = {
1044
1105
  /** A list of Private Key Tag IDs. */
@@ -1059,6 +1120,7 @@ export type v1DeletePrivateKeysRequest = {
1059
1120
  /** Unique identifier for a given Organization. */
1060
1121
  organizationId: string;
1061
1122
  parameters: v1DeletePrivateKeysIntent;
1123
+ generateAppProofs?: boolean;
1062
1124
  };
1063
1125
  export type v1DeletePrivateKeysResult = {
1064
1126
  /** A list of private key unique identifiers that were removed */
@@ -1075,6 +1137,7 @@ export type v1DeleteSmartContractInterfaceRequest = {
1075
1137
  /** Unique identifier for a given Organization. */
1076
1138
  organizationId: string;
1077
1139
  parameters: v1DeleteSmartContractInterfaceIntent;
1140
+ generateAppProofs?: boolean;
1078
1141
  };
1079
1142
  export type v1DeleteSmartContractInterfaceResult = {
1080
1143
  /** The ID of the deleted Smart Contract Interface. */
@@ -1091,6 +1154,7 @@ export type v1DeleteSubOrganizationRequest = {
1091
1154
  /** Unique identifier for a given Organization. */
1092
1155
  organizationId: string;
1093
1156
  parameters: v1DeleteSubOrganizationIntent;
1157
+ generateAppProofs?: boolean;
1094
1158
  };
1095
1159
  export type v1DeleteSubOrganizationResult = {
1096
1160
  /** Unique identifier of the sub organization that was removed */
@@ -1107,6 +1171,7 @@ export type v1DeleteUserTagsRequest = {
1107
1171
  /** Unique identifier for a given Organization. */
1108
1172
  organizationId: string;
1109
1173
  parameters: v1DeleteUserTagsIntent;
1174
+ generateAppProofs?: boolean;
1110
1175
  };
1111
1176
  export type v1DeleteUserTagsResult = {
1112
1177
  /** A list of User Tag IDs. */
@@ -1125,6 +1190,7 @@ export type v1DeleteUsersRequest = {
1125
1190
  /** Unique identifier for a given Organization. */
1126
1191
  organizationId: string;
1127
1192
  parameters: v1DeleteUsersIntent;
1193
+ generateAppProofs?: boolean;
1128
1194
  };
1129
1195
  export type v1DeleteUsersResult = {
1130
1196
  /** A list of User IDs. */
@@ -1143,6 +1209,7 @@ export type v1DeleteWalletAccountsRequest = {
1143
1209
  /** Unique identifier for a given Organization. */
1144
1210
  organizationId: string;
1145
1211
  parameters: v1DeleteWalletAccountsIntent;
1212
+ generateAppProofs?: boolean;
1146
1213
  };
1147
1214
  export type v1DeleteWalletAccountsResult = {
1148
1215
  /** A list of wallet account unique identifiers that were removed */
@@ -1161,6 +1228,7 @@ export type v1DeleteWalletsRequest = {
1161
1228
  /** Unique identifier for a given Organization. */
1162
1229
  organizationId: string;
1163
1230
  parameters: v1DeleteWalletsIntent;
1231
+ generateAppProofs?: boolean;
1164
1232
  };
1165
1233
  export type v1DeleteWalletsResult = {
1166
1234
  /** A list of wallet unique identifiers that were removed */
@@ -1217,13 +1285,36 @@ export type v1EmailAuthIntentV2 = {
1217
1285
  /** Optional custom email address to use as reply-to */
1218
1286
  replyToEmailAddress?: string;
1219
1287
  };
1288
+ export type v1EmailAuthIntentV3 = {
1289
+ /** Email of the authenticating user. */
1290
+ email: string;
1291
+ /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
1292
+ targetPublicKey: string;
1293
+ /** The name of the application. */
1294
+ appName: string;
1295
+ /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1296
+ apiKeyName?: string;
1297
+ /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1298
+ expirationSeconds?: string;
1299
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1300
+ emailCustomization?: v1EmailCustomizationParams;
1301
+ /** Invalidate all other previously generated Email Auth API keys */
1302
+ invalidateExisting?: boolean;
1303
+ /** Optional custom email address from which to send the email */
1304
+ sendFromEmailAddress?: string;
1305
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
1306
+ sendFromEmailSenderName?: string;
1307
+ /** Optional custom email address to use as reply-to */
1308
+ replyToEmailAddress?: string;
1309
+ };
1220
1310
  export type v1EmailAuthRequest = {
1221
1311
  type: string;
1222
1312
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1223
1313
  timestampMs: string;
1224
1314
  /** Unique identifier for a given Organization. */
1225
1315
  organizationId: string;
1226
- parameters: v1EmailAuthIntentV2;
1316
+ parameters: v1EmailAuthIntentV3;
1317
+ generateAppProofs?: boolean;
1227
1318
  };
1228
1319
  export type v1EmailAuthResult = {
1229
1320
  /** Unique identifier for the authenticating User. */
@@ -1261,6 +1352,7 @@ export type v1EthSendRawTransactionRequest = {
1261
1352
  /** Unique identifier for a given Organization. */
1262
1353
  organizationId: string;
1263
1354
  parameters: v1EthSendRawTransactionIntent;
1355
+ generateAppProofs?: boolean;
1264
1356
  };
1265
1357
  export type v1EthSendRawTransactionResult = {
1266
1358
  /** The transaction hash of the sent transaction */
@@ -1279,16 +1371,16 @@ export type v1EthSendTransactionIntent = {
1279
1371
  value?: string;
1280
1372
  /** Hex-encoded call data for contract interactions. */
1281
1373
  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;
1374
+ /** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
1375
+ nonce?: string;
1376
+ /** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
1377
+ gasLimit?: string;
1378
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
1379
+ maxFeePerGas?: string;
1380
+ /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
1381
+ maxPriorityFeePerGas?: string;
1382
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
1383
+ gasStationNonce?: string;
1292
1384
  };
1293
1385
  export type v1EthSendTransactionRequest = {
1294
1386
  type: string;
@@ -1297,10 +1389,15 @@ export type v1EthSendTransactionRequest = {
1297
1389
  /** Unique identifier for a given Organization. */
1298
1390
  organizationId: string;
1299
1391
  parameters: v1EthSendTransactionIntent;
1392
+ generateAppProofs?: boolean;
1300
1393
  };
1301
1394
  export type v1EthSendTransactionResult = {
1302
- /** The transaction hash of the sent transaction */
1303
- transactionHash: string;
1395
+ /** The send_transaction_status ID associated with the transaction submission for sponsored transactions */
1396
+ sendTransactionStatusId: string;
1397
+ };
1398
+ export type v1EthSendTransactionStatus = {
1399
+ /** The Ethereum transaction hash, if available. */
1400
+ txHash?: string;
1304
1401
  };
1305
1402
  export type v1ExportPrivateKeyIntent = {
1306
1403
  /** Unique identifier for a given Private Key. */
@@ -1315,6 +1412,7 @@ export type v1ExportPrivateKeyRequest = {
1315
1412
  /** Unique identifier for a given Organization. */
1316
1413
  organizationId: string;
1317
1414
  parameters: v1ExportPrivateKeyIntent;
1415
+ generateAppProofs?: boolean;
1318
1416
  };
1319
1417
  export type v1ExportPrivateKeyResult = {
1320
1418
  /** Unique identifier for a given Private Key. */
@@ -1335,6 +1433,7 @@ export type v1ExportWalletAccountRequest = {
1335
1433
  /** Unique identifier for a given Organization. */
1336
1434
  organizationId: string;
1337
1435
  parameters: v1ExportWalletAccountIntent;
1436
+ generateAppProofs?: boolean;
1338
1437
  };
1339
1438
  export type v1ExportWalletAccountResult = {
1340
1439
  /** Address to identify Wallet Account. */
@@ -1357,6 +1456,7 @@ export type v1ExportWalletRequest = {
1357
1456
  /** Unique identifier for a given Organization. */
1358
1457
  organizationId: string;
1359
1458
  parameters: v1ExportWalletIntent;
1459
+ generateAppProofs?: boolean;
1360
1460
  };
1361
1461
  export type v1ExportWalletResult = {
1362
1462
  /** Unique identifier for a given Wallet. */
@@ -1479,12 +1579,42 @@ export type v1GetBootProofRequest = {
1479
1579
  /** Hex encoded ephemeral public key. */
1480
1580
  ephemeralKey: string;
1481
1581
  };
1582
+ export type v1GetGasUsageRequest = {
1583
+ /** Unique identifier for a given Organization. */
1584
+ organizationId: string;
1585
+ };
1586
+ export type v1GetGasUsageResponse = {
1587
+ /** The window duration (in minutes) for the organization or sub-organization. */
1588
+ windowDurationMinutes: number;
1589
+ /** The window limit (in USD) for the organization or sub-organization. */
1590
+ windowLimitUsd: string;
1591
+ /** The total gas usage (in USD) of all sponsored transactions processed over the last `window_duration_minutes` */
1592
+ usageUsd: string;
1593
+ };
1482
1594
  export type v1GetLatestBootProofRequest = {
1483
1595
  /** Unique identifier for a given Organization. */
1484
1596
  organizationId: string;
1485
1597
  /** Name of enclave app. */
1486
1598
  appName: string;
1487
1599
  };
1600
+ export type v1GetNoncesRequest = {
1601
+ /** Unique identifier for a given Organization. */
1602
+ organizationId: string;
1603
+ /** The Ethereum address to query nonces for. */
1604
+ address: string;
1605
+ /** The network identifier in CAIP-2 format (e.g., 'eip155:1' for Ethereum mainnet). */
1606
+ caip2: string;
1607
+ /** Whether to fetch the standard on-chain nonce. */
1608
+ nonce?: boolean;
1609
+ /** Whether to fetch the gas station nonce used for sponsored transactions. */
1610
+ gasStationNonce?: boolean;
1611
+ };
1612
+ export type v1GetNoncesResponse = {
1613
+ /** The standard on-chain nonce for the address, if requested. */
1614
+ nonce?: string;
1615
+ /** The gas station nonce for sponsored transactions, if requested. */
1616
+ gasStationNonce?: string;
1617
+ };
1488
1618
  export type v1GetOauth2CredentialRequest = {
1489
1619
  /** Unique identifier for a given Organization. */
1490
1620
  organizationId: string;
@@ -1577,6 +1707,20 @@ export type v1GetPrivateKeysResponse = {
1577
1707
  /** A list of private keys. */
1578
1708
  privateKeys: v1PrivateKey[];
1579
1709
  };
1710
+ export type v1GetSendTransactionStatusRequest = {
1711
+ /** Unique identifier for a given organization. */
1712
+ organizationId: string;
1713
+ /** The unique identifier of a send transaction request. */
1714
+ sendTransactionStatusId: string;
1715
+ };
1716
+ export type v1GetSendTransactionStatusResponse = {
1717
+ /** The current status of the send transaction. */
1718
+ txStatus: string;
1719
+ /** Ethereum-specific transaction status. */
1720
+ eth?: v1EthSendTransactionStatus;
1721
+ /** The error encountered when broadcasting or confirming the transaction, if any. */
1722
+ txError?: string;
1723
+ };
1580
1724
  export type v1GetSmartContractInterfaceRequest = {
1581
1725
  /** Unique identifier for a given organization. */
1582
1726
  organizationId: string;
@@ -1585,7 +1729,7 @@ export type v1GetSmartContractInterfaceRequest = {
1585
1729
  };
1586
1730
  export type v1GetSmartContractInterfaceResponse = {
1587
1731
  /** Object to be used in conjunction with policies to guard transaction signing. */
1588
- smartContractInterface: v1SmartContractInterface;
1732
+ smartContractInterface: externaldatav1SmartContractInterface;
1589
1733
  };
1590
1734
  export type v1GetSmartContractInterfacesRequest = {
1591
1735
  /** Unique identifier for a given organization. */
@@ -1593,7 +1737,7 @@ export type v1GetSmartContractInterfacesRequest = {
1593
1737
  };
1594
1738
  export type v1GetSmartContractInterfacesResponse = {
1595
1739
  /** A list of smart contract interfaces. */
1596
- smartContractInterfaces: v1SmartContractInterface[];
1740
+ smartContractInterfaces: externaldatav1SmartContractInterface[];
1597
1741
  };
1598
1742
  export type v1GetSubOrgIdsRequest = {
1599
1743
  /** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
@@ -1721,6 +1865,7 @@ export type v1ImportPrivateKeyRequest = {
1721
1865
  /** Unique identifier for a given Organization. */
1722
1866
  organizationId: string;
1723
1867
  parameters: v1ImportPrivateKeyIntent;
1868
+ generateAppProofs?: boolean;
1724
1869
  };
1725
1870
  export type v1ImportPrivateKeyResult = {
1726
1871
  /** Unique identifier for a Private Key. */
@@ -1745,6 +1890,7 @@ export type v1ImportWalletRequest = {
1745
1890
  /** Unique identifier for a given Organization. */
1746
1891
  organizationId: string;
1747
1892
  parameters: v1ImportWalletIntent;
1893
+ generateAppProofs?: boolean;
1748
1894
  };
1749
1895
  export type v1ImportWalletResult = {
1750
1896
  /** Unique identifier for a Wallet. */
@@ -1783,6 +1929,7 @@ export type v1InitFiatOnRampRequest = {
1783
1929
  /** Unique identifier for a given Organization. */
1784
1930
  organizationId: string;
1785
1931
  parameters: v1InitFiatOnRampIntent;
1932
+ generateAppProofs?: boolean;
1786
1933
  };
1787
1934
  export type v1InitFiatOnRampResult = {
1788
1935
  /** Unique URL for a given fiat on-ramp flow. */
@@ -1803,6 +1950,7 @@ export type v1InitImportPrivateKeyRequest = {
1803
1950
  /** Unique identifier for a given Organization. */
1804
1951
  organizationId: string;
1805
1952
  parameters: v1InitImportPrivateKeyIntent;
1953
+ generateAppProofs?: boolean;
1806
1954
  };
1807
1955
  export type v1InitImportPrivateKeyResult = {
1808
1956
  /** Import bundle containing a public key and signature to use for importing client data. */
@@ -1819,6 +1967,7 @@ export type v1InitImportWalletRequest = {
1819
1967
  /** Unique identifier for a given Organization. */
1820
1968
  organizationId: string;
1821
1969
  parameters: v1InitImportWalletIntent;
1970
+ generateAppProofs?: boolean;
1822
1971
  };
1823
1972
  export type v1InitImportWalletResult = {
1824
1973
  /** Import bundle containing a public key and signature to use for importing client data. */
@@ -1864,13 +2013,38 @@ export type v1InitOtpAuthIntentV2 = {
1864
2013
  /** Optional custom email address to use as reply-to */
1865
2014
  replyToEmailAddress?: string;
1866
2015
  };
2016
+ export type v1InitOtpAuthIntentV3 = {
2017
+ /** Enum to specifiy whether to send OTP via SMS or email */
2018
+ otpType: string;
2019
+ /** Email or phone number to send the OTP code to */
2020
+ contact: string;
2021
+ /** The name of the application. */
2022
+ appName: string;
2023
+ /** Optional length of the OTP code. Default = 9 */
2024
+ otpLength?: number;
2025
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2026
+ emailCustomization?: v1EmailCustomizationParams;
2027
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
2028
+ smsCustomization?: v1SmsCustomizationParams;
2029
+ /** 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. */
2030
+ userIdentifier?: string;
2031
+ /** Optional custom email address from which to send the OTP email */
2032
+ sendFromEmailAddress?: string;
2033
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
2034
+ alphanumeric?: boolean;
2035
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2036
+ sendFromEmailSenderName?: string;
2037
+ /** Optional custom email address to use as reply-to */
2038
+ replyToEmailAddress?: string;
2039
+ };
1867
2040
  export type v1InitOtpAuthRequest = {
1868
2041
  type: string;
1869
2042
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1870
2043
  timestampMs: string;
1871
2044
  /** Unique identifier for a given Organization. */
1872
2045
  organizationId: string;
1873
- parameters: v1InitOtpAuthIntentV2;
2046
+ parameters: v1InitOtpAuthIntentV3;
2047
+ generateAppProofs?: boolean;
1874
2048
  };
1875
2049
  export type v1InitOtpAuthResult = {
1876
2050
  /** Unique identifier for an OTP authentication */
@@ -1904,13 +2078,40 @@ export type v1InitOtpIntent = {
1904
2078
  /** Optional custom email address to use as reply-to */
1905
2079
  replyToEmailAddress?: string;
1906
2080
  };
2081
+ export type v1InitOtpIntentV2 = {
2082
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
2083
+ otpType: string;
2084
+ /** Email or phone number to send the OTP code to */
2085
+ contact: string;
2086
+ /** The name of the application. */
2087
+ appName: string;
2088
+ /** Optional length of the OTP code. Default = 9 */
2089
+ otpLength?: number;
2090
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2091
+ emailCustomization?: v1EmailCustomizationParams;
2092
+ /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
2093
+ smsCustomization?: v1SmsCustomizationParams;
2094
+ /** 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. */
2095
+ userIdentifier?: string;
2096
+ /** Optional custom email address from which to send the OTP email */
2097
+ sendFromEmailAddress?: string;
2098
+ /** Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true */
2099
+ alphanumeric?: boolean;
2100
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2101
+ sendFromEmailSenderName?: string;
2102
+ /** 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) */
2103
+ expirationSeconds?: string;
2104
+ /** Optional custom email address to use as reply-to */
2105
+ replyToEmailAddress?: string;
2106
+ };
1907
2107
  export type v1InitOtpRequest = {
1908
2108
  type: string;
1909
2109
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1910
2110
  timestampMs: string;
1911
2111
  /** Unique identifier for a given Organization. */
1912
2112
  organizationId: string;
1913
- parameters: v1InitOtpIntent;
2113
+ parameters: v1InitOtpIntentV2;
2114
+ generateAppProofs?: boolean;
1914
2115
  };
1915
2116
  export type v1InitOtpResult = {
1916
2117
  /** Unique identifier for an OTP authentication */
@@ -1932,13 +2133,32 @@ export type v1InitUserEmailRecoveryIntent = {
1932
2133
  /** Optional custom email address to use as reply-to */
1933
2134
  replyToEmailAddress?: string;
1934
2135
  };
2136
+ export type v1InitUserEmailRecoveryIntentV2 = {
2137
+ /** Email of the user starting recovery */
2138
+ email: string;
2139
+ /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
2140
+ targetPublicKey: string;
2141
+ /** The name of the application. */
2142
+ appName: string;
2143
+ /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
2144
+ expirationSeconds?: string;
2145
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2146
+ emailCustomization?: v1EmailCustomizationParams;
2147
+ /** Optional custom email address from which to send the OTP email */
2148
+ sendFromEmailAddress?: string;
2149
+ /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2150
+ sendFromEmailSenderName?: string;
2151
+ /** Optional custom email address to use as reply-to */
2152
+ replyToEmailAddress?: string;
2153
+ };
1935
2154
  export type v1InitUserEmailRecoveryRequest = {
1936
2155
  type: string;
1937
2156
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1938
2157
  timestampMs: string;
1939
2158
  /** Unique identifier for a given Organization. */
1940
2159
  organizationId: string;
1941
- parameters: v1InitUserEmailRecoveryIntent;
2160
+ parameters: v1InitUserEmailRecoveryIntentV2;
2161
+ generateAppProofs?: boolean;
1942
2162
  };
1943
2163
  export type v1InitUserEmailRecoveryResult = {
1944
2164
  /** Unique identifier for the user being recovered. */
@@ -2053,6 +2273,10 @@ export type v1Intent = {
2053
2273
  createFiatOnRampCredentialIntent?: v1CreateFiatOnRampCredentialIntent;
2054
2274
  updateFiatOnRampCredentialIntent?: v1UpdateFiatOnRampCredentialIntent;
2055
2275
  deleteFiatOnRampCredentialIntent?: v1DeleteFiatOnRampCredentialIntent;
2276
+ emailAuthIntentV3?: v1EmailAuthIntentV3;
2277
+ initUserEmailRecoveryIntentV2?: v1InitUserEmailRecoveryIntentV2;
2278
+ initOtpIntentV2?: v1InitOtpIntentV2;
2279
+ initOtpAuthIntentV3?: v1InitOtpAuthIntentV3;
2056
2280
  };
2057
2281
  export type v1Invitation = {
2058
2282
  /** Unique identifier for a given Invitation object. */
@@ -2115,9 +2339,14 @@ export type v1ListUserTagsResponse = {
2115
2339
  /** A list of user tags. */
2116
2340
  userTags: datav1Tag[];
2117
2341
  };
2342
+ export type v1LoginUsage = {
2343
+ /** Public key for authentication */
2344
+ publicKey: string;
2345
+ };
2118
2346
  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
2347
  export type v1NOOPCodegenAnchorResponse = {
2120
2348
  stamp: v1WebAuthnStamp;
2349
+ tokenUsage?: v1TokenUsage;
2121
2350
  };
2122
2351
  export type v1Oauth2AuthenticateIntent = {
2123
2352
  /** The OAuth 2.0 credential id whose client_id and client_secret will be used in the OAuth 2.0 flow */
@@ -2140,6 +2369,7 @@ export type v1Oauth2AuthenticateRequest = {
2140
2369
  /** Unique identifier for a given Organization. */
2141
2370
  organizationId: string;
2142
2371
  parameters: v1Oauth2AuthenticateIntent;
2372
+ generateAppProofs?: boolean;
2143
2373
  };
2144
2374
  export type v1Oauth2AuthenticateResult = {
2145
2375
  /** Base64 encoded OIDC token issued by Turnkey to be used with the LoginWithOAuth activity */
@@ -2189,6 +2419,7 @@ export type v1OauthLoginRequest = {
2189
2419
  /** Unique identifier for a given Organization. */
2190
2420
  organizationId: string;
2191
2421
  parameters: v1OauthLoginIntent;
2422
+ generateAppProofs?: boolean;
2192
2423
  };
2193
2424
  export type v1OauthLoginResult = {
2194
2425
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -2221,6 +2452,7 @@ export type v1OauthRequest = {
2221
2452
  /** Unique identifier for a given Organization. */
2222
2453
  organizationId: string;
2223
2454
  parameters: v1OauthIntent;
2455
+ generateAppProofs?: boolean;
2224
2456
  };
2225
2457
  export type v1OauthResult = {
2226
2458
  /** Unique identifier for the authenticating User. */
@@ -2265,6 +2497,7 @@ export type v1OtpAuthRequest = {
2265
2497
  /** Unique identifier for a given Organization. */
2266
2498
  organizationId: string;
2267
2499
  parameters: v1OtpAuthIntent;
2500
+ generateAppProofs?: boolean;
2268
2501
  };
2269
2502
  export type v1OtpAuthResult = {
2270
2503
  /** Unique identifier for the authenticating User. */
@@ -2283,8 +2516,8 @@ export type v1OtpLoginIntent = {
2283
2516
  expirationSeconds?: string;
2284
2517
  /** Invalidate all other previously generated Login API keys */
2285
2518
  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;
2519
+ /** 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. */
2520
+ clientSignature?: v1ClientSignature;
2288
2521
  };
2289
2522
  export type v1OtpLoginRequest = {
2290
2523
  type: string;
@@ -2293,6 +2526,7 @@ export type v1OtpLoginRequest = {
2293
2526
  /** Unique identifier for a given Organization. */
2294
2527
  organizationId: string;
2295
2528
  parameters: v1OtpLoginIntent;
2529
+ generateAppProofs?: boolean;
2296
2530
  };
2297
2531
  export type v1OtpLoginResult = {
2298
2532
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -2380,6 +2614,7 @@ export type v1RecoverUserRequest = {
2380
2614
  /** Unique identifier for a given Organization. */
2381
2615
  organizationId: string;
2382
2616
  parameters: v1RecoverUserIntent;
2617
+ generateAppProofs?: boolean;
2383
2618
  };
2384
2619
  export type v1RecoverUserResult = {
2385
2620
  /** ID of the authenticator created. */
@@ -2396,6 +2631,7 @@ export type v1RejectActivityRequest = {
2396
2631
  /** Unique identifier for a given Organization. */
2397
2632
  organizationId: string;
2398
2633
  parameters: v1RejectActivityIntent;
2634
+ generateAppProofs?: boolean;
2399
2635
  };
2400
2636
  export type v1RemoveOrganizationFeatureIntent = {
2401
2637
  /** Name of the feature to remove */
@@ -2408,6 +2644,7 @@ export type v1RemoveOrganizationFeatureRequest = {
2408
2644
  /** Unique identifier for a given Organization. */
2409
2645
  organizationId: string;
2410
2646
  parameters: v1RemoveOrganizationFeatureIntent;
2647
+ generateAppProofs?: boolean;
2411
2648
  };
2412
2649
  export type v1RemoveOrganizationFeatureResult = {
2413
2650
  /** Resulting list of organization features. */
@@ -2579,6 +2816,7 @@ export type v1SetOrganizationFeatureRequest = {
2579
2816
  /** Unique identifier for a given Organization. */
2580
2817
  organizationId: string;
2581
2818
  parameters: v1SetOrganizationFeatureIntent;
2819
+ generateAppProofs?: boolean;
2582
2820
  };
2583
2821
  export type v1SetOrganizationFeatureResult = {
2584
2822
  /** Resulting list of organization features. */
@@ -2611,6 +2849,7 @@ export type v1SignRawPayloadRequest = {
2611
2849
  /** Unique identifier for a given Organization. */
2612
2850
  organizationId: string;
2613
2851
  parameters: v1SignRawPayloadIntentV2;
2852
+ generateAppProofs?: boolean;
2614
2853
  };
2615
2854
  export type v1SignRawPayloadResult = {
2616
2855
  /** Component of an ECSDA signature. */
@@ -2637,6 +2876,7 @@ export type v1SignRawPayloadsRequest = {
2637
2876
  /** Unique identifier for a given Organization. */
2638
2877
  organizationId: string;
2639
2878
  parameters: v1SignRawPayloadsIntent;
2879
+ generateAppProofs?: boolean;
2640
2880
  };
2641
2881
  export type v1SignRawPayloadsResult = {
2642
2882
  signatures?: v1SignRawPayloadResult[];
@@ -2662,34 +2902,23 @@ export type v1SignTransactionRequest = {
2662
2902
  /** Unique identifier for a given Organization. */
2663
2903
  organizationId: string;
2664
2904
  parameters: v1SignTransactionIntentV2;
2905
+ generateAppProofs?: boolean;
2665
2906
  };
2666
2907
  export type v1SignTransactionResult = {
2667
2908
  signedTransaction: string;
2668
2909
  };
2669
- export type v1SignatureScheme = "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
2910
+ export type v1SignupUsage = {
2911
+ email?: string;
2912
+ phoneNumber?: string;
2913
+ apiKeys?: v1ApiKeyParamsV2[];
2914
+ authenticators?: v1AuthenticatorParamsV2[];
2915
+ oauthProviders?: v1OauthProviderParams[];
2916
+ };
2670
2917
  export type v1SimpleClientExtensionResults = {
2671
2918
  appid?: boolean;
2672
2919
  appidExclude?: boolean;
2673
2920
  credProps?: v1CredPropsAuthenticationExtensionsClientOutputs;
2674
2921
  };
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
2922
  export type v1SmartContractInterfaceReference = {
2694
2923
  smartContractInterfaceId?: string;
2695
2924
  smartContractAddress?: string;
@@ -2715,6 +2944,7 @@ export type v1StampLoginRequest = {
2715
2944
  /** Unique identifier for a given Organization. */
2716
2945
  organizationId: string;
2717
2946
  parameters: v1StampLoginIntent;
2947
+ generateAppProofs?: boolean;
2718
2948
  };
2719
2949
  export type v1StampLoginResult = {
2720
2950
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
@@ -2730,6 +2960,14 @@ export type v1TestRateLimitsRequest = {
2730
2960
  limit: number;
2731
2961
  };
2732
2962
  export type v1TestRateLimitsResponse = {};
2963
+ export type v1TokenUsage = {
2964
+ /** Type of token usage */
2965
+ type: v1UsageType;
2966
+ /** Unique identifier for the verification token */
2967
+ tokenId: string;
2968
+ signup?: v1SignupUsage;
2969
+ login?: v1LoginUsage;
2970
+ };
2733
2971
  export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN";
2734
2972
  export type v1UpdateAllowedOriginsIntent = {
2735
2973
  /** Additional origins requests are allowed from besides Turnkey origins */
@@ -2749,7 +2987,7 @@ export type v1UpdateAuthProxyConfigIntent = {
2749
2987
  emailAuthTemplateId?: string;
2750
2988
  /** Template ID for OTP SMS messages. */
2751
2989
  otpTemplateId?: string;
2752
- /** Overrides for auth-related email content. */
2990
+ /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2753
2991
  emailCustomizationParams?: v1EmailCustomizationParams;
2754
2992
  /** Overrides for auth-related SMS content. */
2755
2993
  smsCustomizationParams?: v1SmsCustomizationParams;
@@ -2795,6 +3033,7 @@ export type v1UpdateFiatOnRampCredentialRequest = {
2795
3033
  /** Unique identifier for a given Organization. */
2796
3034
  organizationId: string;
2797
3035
  parameters: v1UpdateFiatOnRampCredentialIntent;
3036
+ generateAppProofs?: boolean;
2798
3037
  };
2799
3038
  export type v1UpdateFiatOnRampCredentialResult = {
2800
3039
  /** Unique identifier of the Fiat On-Ramp credential that was updated */
@@ -2817,6 +3056,7 @@ export type v1UpdateOauth2CredentialRequest = {
2817
3056
  /** Unique identifier for a given Organization. */
2818
3057
  organizationId: string;
2819
3058
  parameters: v1UpdateOauth2CredentialIntent;
3059
+ generateAppProofs?: boolean;
2820
3060
  };
2821
3061
  export type v1UpdateOauth2CredentialResult = {
2822
3062
  /** Unique identifier of the OAuth 2.0 credential that was updated */
@@ -2857,6 +3097,7 @@ export type v1UpdatePolicyRequest = {
2857
3097
  /** Unique identifier for a given Organization. */
2858
3098
  organizationId: string;
2859
3099
  parameters: v1UpdatePolicyIntentV2;
3100
+ generateAppProofs?: boolean;
2860
3101
  };
2861
3102
  export type v1UpdatePolicyResult = {
2862
3103
  /** Unique identifier for a given Policy. */
@@ -2883,6 +3124,7 @@ export type v1UpdatePrivateKeyTagRequest = {
2883
3124
  /** Unique identifier for a given Organization. */
2884
3125
  organizationId: string;
2885
3126
  parameters: v1UpdatePrivateKeyTagIntent;
3127
+ generateAppProofs?: boolean;
2886
3128
  };
2887
3129
  export type v1UpdatePrivateKeyTagResult = {
2888
3130
  /** Unique identifier for a given Private Key Tag. */
@@ -2901,6 +3143,7 @@ export type v1UpdateRootQuorumRequest = {
2901
3143
  /** Unique identifier for a given Organization. */
2902
3144
  organizationId: string;
2903
3145
  parameters: v1UpdateRootQuorumIntent;
3146
+ generateAppProofs?: boolean;
2904
3147
  };
2905
3148
  export type v1UpdateRootQuorumResult = {};
2906
3149
  export type v1UpdateUserEmailIntent = {
@@ -2918,6 +3161,7 @@ export type v1UpdateUserEmailRequest = {
2918
3161
  /** Unique identifier for a given Organization. */
2919
3162
  organizationId: string;
2920
3163
  parameters: v1UpdateUserEmailIntent;
3164
+ generateAppProofs?: boolean;
2921
3165
  };
2922
3166
  export type v1UpdateUserEmailResult = {
2923
3167
  /** Unique identifier of the User whose email was updated. */
@@ -2948,6 +3192,7 @@ export type v1UpdateUserNameRequest = {
2948
3192
  /** Unique identifier for a given Organization. */
2949
3193
  organizationId: string;
2950
3194
  parameters: v1UpdateUserNameIntent;
3195
+ generateAppProofs?: boolean;
2951
3196
  };
2952
3197
  export type v1UpdateUserNameResult = {
2953
3198
  /** Unique identifier of the User whose name was updated. */
@@ -2968,6 +3213,7 @@ export type v1UpdateUserPhoneNumberRequest = {
2968
3213
  /** Unique identifier for a given Organization. */
2969
3214
  organizationId: string;
2970
3215
  parameters: v1UpdateUserPhoneNumberIntent;
3216
+ generateAppProofs?: boolean;
2971
3217
  };
2972
3218
  export type v1UpdateUserPhoneNumberResult = {
2973
3219
  /** Unique identifier of the User whose phone number was updated. */
@@ -2980,6 +3226,7 @@ export type v1UpdateUserRequest = {
2980
3226
  /** Unique identifier for a given Organization. */
2981
3227
  organizationId: string;
2982
3228
  parameters: v1UpdateUserIntent;
3229
+ generateAppProofs?: boolean;
2983
3230
  };
2984
3231
  export type v1UpdateUserResult = {
2985
3232
  /** A User ID. */
@@ -3002,6 +3249,7 @@ export type v1UpdateUserTagRequest = {
3002
3249
  /** Unique identifier for a given Organization. */
3003
3250
  organizationId: string;
3004
3251
  parameters: v1UpdateUserTagIntent;
3252
+ generateAppProofs?: boolean;
3005
3253
  };
3006
3254
  export type v1UpdateUserTagResult = {
3007
3255
  /** Unique identifier for a given User Tag. */
@@ -3020,11 +3268,13 @@ export type v1UpdateWalletRequest = {
3020
3268
  /** Unique identifier for a given Organization. */
3021
3269
  organizationId: string;
3022
3270
  parameters: v1UpdateWalletIntent;
3271
+ generateAppProofs?: boolean;
3023
3272
  };
3024
3273
  export type v1UpdateWalletResult = {
3025
3274
  /** A Wallet ID. */
3026
3275
  walletId: string;
3027
3276
  };
3277
+ export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
3028
3278
  export type v1User = {
3029
3279
  /** Unique identifier for a given User. */
3030
3280
  userId: string;
@@ -3104,6 +3354,7 @@ export type v1VerifyOtpRequest = {
3104
3354
  /** Unique identifier for a given Organization. */
3105
3355
  organizationId: string;
3106
3356
  parameters: v1VerifyOtpIntent;
3357
+ generateAppProofs?: boolean;
3107
3358
  };
3108
3359
  export type v1VerifyOtpResult = {
3109
3360
  /** 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 +3540,20 @@ export type TGetBootProofBody = {
3289
3540
  export type TGetBootProofInput = {
3290
3541
  body: TGetBootProofBody;
3291
3542
  };
3543
+ export type TGetGasUsageResponse = {
3544
+ /** The window duration (in minutes) for the organization or sub-organization. */
3545
+ windowDurationMinutes: number;
3546
+ /** The window limit (in USD) for the organization or sub-organization. */
3547
+ windowLimitUsd: string;
3548
+ /** The total gas usage (in USD) of all sponsored transactions processed over the last `window_duration_minutes` */
3549
+ usageUsd: string;
3550
+ };
3551
+ export type TGetGasUsageBody = {
3552
+ organizationId?: string;
3553
+ };
3554
+ export type TGetGasUsageInput = {
3555
+ body: TGetGasUsageBody;
3556
+ };
3292
3557
  export type TGetLatestBootProofResponse = {
3293
3558
  bootProof: v1BootProof;
3294
3559
  };
@@ -3300,6 +3565,26 @@ export type TGetLatestBootProofBody = {
3300
3565
  export type TGetLatestBootProofInput = {
3301
3566
  body: TGetLatestBootProofBody;
3302
3567
  };
3568
+ export type TGetNoncesResponse = {
3569
+ /** The standard on-chain nonce for the address, if requested. */
3570
+ nonce?: string;
3571
+ /** The gas station nonce for sponsored transactions, if requested. */
3572
+ gasStationNonce?: string;
3573
+ };
3574
+ export type TGetNoncesBody = {
3575
+ organizationId?: string;
3576
+ /** The Ethereum address to query nonces for. */
3577
+ address: string;
3578
+ /** The network identifier in CAIP-2 format (e.g., 'eip155:1' for Ethereum mainnet). */
3579
+ caip2: string;
3580
+ /** Whether to fetch the standard on-chain nonce. */
3581
+ nonce?: boolean;
3582
+ /** Whether to fetch the gas station nonce used for sponsored transactions. */
3583
+ gasStationNonce?: boolean;
3584
+ };
3585
+ export type TGetNoncesInput = {
3586
+ body: TGetNoncesBody;
3587
+ };
3303
3588
  export type TGetOauth2CredentialResponse = {
3304
3589
  oauth2Credential: v1Oauth2Credential;
3305
3590
  };
@@ -3392,9 +3677,25 @@ export type TGetPrivateKeyBody = {
3392
3677
  export type TGetPrivateKeyInput = {
3393
3678
  body: TGetPrivateKeyBody;
3394
3679
  };
3680
+ export type TGetSendTransactionStatusResponse = {
3681
+ /** The current status of the send transaction. */
3682
+ txStatus: string;
3683
+ /** Ethereum-specific transaction status. */
3684
+ eth?: v1EthSendTransactionStatus;
3685
+ /** The error encountered when broadcasting or confirming the transaction, if any. */
3686
+ txError?: string;
3687
+ };
3688
+ export type TGetSendTransactionStatusBody = {
3689
+ organizationId?: string;
3690
+ /** The unique identifier of a send transaction request. */
3691
+ sendTransactionStatusId: string;
3692
+ };
3693
+ export type TGetSendTransactionStatusInput = {
3694
+ body: TGetSendTransactionStatusBody;
3695
+ };
3395
3696
  export type TGetSmartContractInterfaceResponse = {
3396
3697
  /** Object to be used in conjunction with policies to guard transaction signing. */
3397
- smartContractInterface: v1SmartContractInterface;
3698
+ smartContractInterface: externaldatav1SmartContractInterface;
3398
3699
  };
3399
3700
  export type TGetSmartContractInterfaceBody = {
3400
3701
  organizationId?: string;
@@ -3521,7 +3822,7 @@ export type TGetPrivateKeysInput = {
3521
3822
  };
3522
3823
  export type TGetSmartContractInterfacesResponse = {
3523
3824
  /** A list of smart contract interfaces. */
3524
- smartContractInterfaces: v1SmartContractInterface[];
3825
+ smartContractInterfaces: externaldatav1SmartContractInterface[];
3525
3826
  };
3526
3827
  export type TGetSmartContractInterfacesBody = {
3527
3828
  organizationId?: string;
@@ -3884,7 +4185,7 @@ export type TCreateSmartContractInterfaceBody = {
3884
4185
  organizationId?: string;
3885
4186
  /** Corresponding contract address or program ID */
3886
4187
  smartContractAddress: string;
3887
- /** ABI/IDL as a JSON string */
4188
+ /** ABI/IDL as a JSON string. Limited to 400kb */
3888
4189
  smartContractInterface: string;
3889
4190
  type: v1SmartContractInterfaceType;
3890
4191
  /** Human-readable name for a Smart Contract Interface. */
@@ -3922,6 +4223,8 @@ export type TCreateSubOrganizationBody = {
3922
4223
  disableOtpEmailAuth?: boolean;
3923
4224
  /** Signed JWT containing a unique id, expiry, verification type, contact */
3924
4225
  verificationToken?: string;
4226
+ /** 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. */
4227
+ clientSignature?: v1ClientSignature;
3925
4228
  };
3926
4229
  export type TCreateSubOrganizationInput = {
3927
4230
  body: TCreateSubOrganizationBody;
@@ -4250,6 +4553,8 @@ export type TEmailAuthBody = {
4250
4553
  email: string;
4251
4554
  /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
4252
4555
  targetPublicKey: string;
4556
+ /** The name of the application. */
4557
+ appName: string;
4253
4558
  /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
4254
4559
  apiKeyName?: string;
4255
4560
  /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
@@ -4286,8 +4591,8 @@ export type TEthSendRawTransactionInput = {
4286
4591
  };
4287
4592
  export type TEthSendTransactionResponse = {
4288
4593
  activity: v1Activity;
4289
- /** The transaction hash of the sent transaction */
4290
- transactionHash: string;
4594
+ /** The send_transaction_status ID associated with the transaction submission for sponsored transactions */
4595
+ sendTransactionStatusId: string;
4291
4596
  };
4292
4597
  export type TEthSendTransactionBody = {
4293
4598
  timestampMs?: string;
@@ -4304,16 +4609,16 @@ export type TEthSendTransactionBody = {
4304
4609
  value?: string;
4305
4610
  /** Hex-encoded call data for contract interactions. */
4306
4611
  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;
4612
+ /** Transaction nonce, for EIP-1559 and Turnkey Gas Station authorizations. */
4613
+ nonce?: string;
4614
+ /** Maximum amount of gas to use for this transaction, for EIP-1559 transactions. */
4615
+ gasLimit?: string;
4616
+ /** Maximum total fee per gas unit (base fee + priority fee) in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
4617
+ maxFeePerGas?: string;
4618
+ /** Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
4619
+ maxPriorityFeePerGas?: string;
4620
+ /** The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
4621
+ gasStationNonce?: string;
4317
4622
  };
4318
4623
  export type TEthSendTransactionInput = {
4319
4624
  body: TEthSendTransactionBody;
@@ -4498,6 +4803,8 @@ export type TInitOtpBody = {
4498
4803
  otpType: string;
4499
4804
  /** Email or phone number to send the OTP code to */
4500
4805
  contact: string;
4806
+ /** The name of the application. */
4807
+ appName: string;
4501
4808
  /** Optional length of the OTP code. Default = 9 */
4502
4809
  otpLength?: number;
4503
4810
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
@@ -4532,6 +4839,8 @@ export type TInitOtpAuthBody = {
4532
4839
  otpType: string;
4533
4840
  /** Email or phone number to send the OTP code to */
4534
4841
  contact: string;
4842
+ /** The name of the application. */
4843
+ appName: string;
4535
4844
  /** Optional length of the OTP code. Default = 9 */
4536
4845
  otpLength?: number;
4537
4846
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
@@ -4564,6 +4873,8 @@ export type TInitUserEmailRecoveryBody = {
4564
4873
  email: string;
4565
4874
  /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
4566
4875
  targetPublicKey: string;
4876
+ /** The name of the application. */
4877
+ appName: string;
4567
4878
  /** 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
4879
  expirationSeconds?: string;
4569
4880
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
@@ -4692,8 +5003,8 @@ export type TOtpLoginBody = {
4692
5003
  expirationSeconds?: string;
4693
5004
  /** Invalidate all other previously generated Login API keys */
4694
5005
  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;
5006
+ /** 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. */
5007
+ clientSignature?: v1ClientSignature;
4697
5008
  };
4698
5009
  export type TOtpLoginInput = {
4699
5010
  body: TOtpLoginBody;
@@ -5157,8 +5468,8 @@ export type ProxyTOtpLoginBody = {
5157
5468
  invalidateExisting?: boolean;
5158
5469
  /** 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
5470
  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;
5471
+ /** 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. */
5472
+ clientSignature?: v1ClientSignature;
5162
5473
  };
5163
5474
  export type ProxyTOtpLoginInput = {
5164
5475
  body: ProxyTOtpLoginBody;
@@ -5202,6 +5513,8 @@ export type ProxyTSignupBody = {
5202
5513
  oauthProviders: v1OauthProviderParams[];
5203
5514
  /** The wallet to create for the sub-organization */
5204
5515
  wallet?: v1WalletParams;
5516
+ /** 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. */
5517
+ clientSignature?: v1ClientSignature;
5205
5518
  };
5206
5519
  export type ProxyTSignupInput = {
5207
5520
  body: ProxyTSignupBody;