@openfort/openfort-js 0.10.36-beta.1 → 0.10.36-beta.3

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.
Files changed (36) hide show
  1. package/dist/cjs/packages/internal/openapi-clients/dist/index.js +1 -1
  2. package/dist/cjs/sdk/src/api/auth.js +1 -1
  3. package/dist/cjs/sdk/src/api/embeddedWallet.js +1 -1
  4. package/dist/cjs/sdk/src/auth/authManager.js +1 -1
  5. package/dist/cjs/sdk/src/core/configuration/account.js +1 -1
  6. package/dist/cjs/sdk/src/core/errors/sentry.js +1 -1
  7. package/dist/cjs/sdk/src/core/openfort.js +1 -1
  8. package/dist/cjs/sdk/src/core/openfortInternal.js +1 -1
  9. package/dist/cjs/sdk/src/storage/lazyStorage.js +1 -1
  10. package/dist/cjs/sdk/src/storage/scopedStorage.js +1 -0
  11. package/dist/cjs/sdk/src/utils/chains/index.js +1 -1
  12. package/dist/cjs/sdk/src/version.js +1 -1
  13. package/dist/cjs/sdk/src/wallets/embedded.js +1 -1
  14. package/dist/cjs/sdk/src/wallets/evm/getAssets.js +1 -1
  15. package/dist/cjs/sdk/src/wallets/evm/registerSession.js +1 -1
  16. package/dist/cjs/sdk/src/wallets/evm/revokeSession.js +1 -1
  17. package/dist/cjs/sdk/src/wallets/evm/sendCallSync.js +1 -1
  18. package/dist/index.d.ts +320 -59
  19. package/dist/packages/internal/openapi-clients/dist/index.js +1 -1
  20. package/dist/sdk/src/api/auth.js +1 -1
  21. package/dist/sdk/src/api/embeddedWallet.js +1 -1
  22. package/dist/sdk/src/auth/authManager.js +1 -1
  23. package/dist/sdk/src/core/configuration/account.js +1 -1
  24. package/dist/sdk/src/core/errors/sentry.js +1 -1
  25. package/dist/sdk/src/core/openfort.js +1 -1
  26. package/dist/sdk/src/core/openfortInternal.js +1 -1
  27. package/dist/sdk/src/storage/lazyStorage.js +1 -1
  28. package/dist/sdk/src/storage/scopedStorage.js +1 -0
  29. package/dist/sdk/src/utils/chains/index.js +1 -1
  30. package/dist/sdk/src/version.js +1 -1
  31. package/dist/sdk/src/wallets/embedded.js +1 -1
  32. package/dist/sdk/src/wallets/evm/getAssets.js +1 -1
  33. package/dist/sdk/src/wallets/evm/registerSession.js +1 -1
  34. package/dist/sdk/src/wallets/evm/revokeSession.js +1 -1
  35. package/dist/sdk/src/wallets/evm/sendCallSync.js +1 -1
  36. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PasskeyDetails } from 'wallets/types';
2
2
  import { PasskeyHandler as PasskeyHandler$1 } from 'core/configuration/passkey';
3
3
  import { User as User$2, ThirdPartyOAuthProvider as ThirdPartyOAuthProvider$1 } from 'types';
4
- import { UserAccountResponse } from 'types/types';
4
+ import { UserAccount as UserAccount$1 } from 'types/types';
5
5
  import { Account } from 'core/configuration/account';
6
6
  import { Hex } from 'wallets/evm/types';
7
7
 
@@ -677,101 +677,107 @@ type EntityTypeACCOUNT = typeof EntityTypeACCOUNT[keyof typeof EntityTypeACCOUNT
677
677
  * Do not edit the class manually.
678
678
  */
679
679
  /**
680
- *
680
+ * V9 UserOperation extends V8 with paymasterSignature field. paymasterSignature enables parallelizable Paymaster signing - data can be passed to the Paymaster after the UserOperation is signed by the wallet.
681
681
  * @export
682
- * @interface UserOperationV8
682
+ * @interface UserOperationV9
683
683
  */
684
- interface UserOperationV8$1 {
684
+ interface UserOperationV9$1 {
685
685
  /**
686
686
  * The data to pass to the `sender` during the main execution call.
687
687
  * @type {string}
688
- * @memberof UserOperationV8
688
+ * @memberof UserOperationV9
689
689
  */
690
690
  'callData': string;
691
691
  /**
692
692
  * The amount of gas to allocate the main execution call
693
693
  * @type {string}
694
- * @memberof UserOperationV8
694
+ * @memberof UserOperationV9
695
695
  */
696
696
  'callGasLimit': string;
697
697
  /**
698
698
  * Account init code. Only for new accounts.
699
699
  * @type {string}
700
- * @memberof UserOperationV8
700
+ * @memberof UserOperationV9
701
701
  */
702
702
  'factory'?: string;
703
703
  /**
704
704
  * Factory data for account creation.
705
705
  * @type {string}
706
- * @memberof UserOperationV8
706
+ * @memberof UserOperationV9
707
707
  */
708
708
  'factoryData'?: string;
709
709
  /**
710
710
  * Maximum fee per gas.
711
711
  * @type {string}
712
- * @memberof UserOperationV8
712
+ * @memberof UserOperationV9
713
713
  */
714
714
  'maxFeePerGas': string;
715
715
  /**
716
716
  * Maximum priority fee per gas.
717
717
  * @type {string}
718
- * @memberof UserOperationV8
718
+ * @memberof UserOperationV9
719
719
  */
720
720
  'maxPriorityFeePerGas': string;
721
721
  /**
722
722
  * Anti-replay parameter.
723
723
  * @type {string}
724
- * @memberof UserOperationV8
724
+ * @memberof UserOperationV9
725
725
  */
726
726
  'nonce': string;
727
727
  /**
728
728
  * Paymaster address.
729
729
  * @type {string}
730
- * @memberof UserOperationV8
730
+ * @memberof UserOperationV9
731
731
  */
732
732
  'paymaster'?: string;
733
733
  /**
734
734
  * Paymaster verification gas limit.
735
735
  * @type {string}
736
- * @memberof UserOperationV8
736
+ * @memberof UserOperationV9
737
737
  */
738
738
  'paymasterVerificationGasLimit'?: string;
739
739
  /**
740
740
  * Paymaster post-operation gas limit.
741
741
  * @type {string}
742
- * @memberof UserOperationV8
742
+ * @memberof UserOperationV9
743
743
  */
744
744
  'paymasterPostOpGasLimit'?: string;
745
745
  /**
746
746
  * Paymaster data.
747
747
  * @type {string}
748
- * @memberof UserOperationV8
748
+ * @memberof UserOperationV9
749
749
  */
750
750
  'paymasterData'?: string;
751
751
  /**
752
752
  * Extra gas to pay the bundler.
753
753
  * @type {string}
754
- * @memberof UserOperationV8
754
+ * @memberof UserOperationV9
755
755
  */
756
756
  'preVerificationGas': string;
757
757
  /**
758
758
  * The account making the operation.
759
759
  * @type {string}
760
- * @memberof UserOperationV8
760
+ * @memberof UserOperationV9
761
761
  */
762
762
  'sender': string;
763
763
  /**
764
764
  * Data passed into the account to verify authorization.
765
765
  * @type {string}
766
- * @memberof UserOperationV8
766
+ * @memberof UserOperationV9
767
767
  */
768
768
  'signature': string;
769
769
  /**
770
770
  * The amount of gas to allocate for the verification step.
771
771
  * @type {string}
772
- * @memberof UserOperationV8
772
+ * @memberof UserOperationV9
773
773
  */
774
774
  'verificationGasLimit': string;
775
+ /**
776
+ * Paymaster signature - enables parallelizable signing. This field does not affect the UserOperation hash, allowing the sender and paymaster to sign in parallel.
777
+ * @type {string}
778
+ * @memberof UserOperationV9
779
+ */
780
+ 'paymasterSignature'?: string;
775
781
  }
776
782
 
777
783
  /**
@@ -898,11 +904,11 @@ interface AccountInfoPostRequest {
898
904
  * @export
899
905
  * @enum {string}
900
906
  */
901
- declare const PrismaSortOrder: {
902
- readonly Asc: "asc";
903
- readonly Desc: "desc";
907
+ declare const AccountResponseExpandable: {
908
+ readonly Player: "player";
909
+ readonly TransactionIntents: "transactionIntents";
904
910
  };
905
- type PrismaSortOrder = typeof PrismaSortOrder[keyof typeof PrismaSortOrder];
911
+ type AccountResponseExpandable = typeof AccountResponseExpandable[keyof typeof AccountResponseExpandable];
906
912
 
907
913
  /**
908
914
  * Openfort API
@@ -920,11 +926,11 @@ type PrismaSortOrder = typeof PrismaSortOrder[keyof typeof PrismaSortOrder];
920
926
  * @export
921
927
  * @enum {string}
922
928
  */
923
- declare const AccountResponseExpandable: {
924
- readonly Player: "player";
925
- readonly TransactionIntents: "transactionIntents";
929
+ declare const PrismaSortOrder: {
930
+ readonly Asc: "asc";
931
+ readonly Desc: "desc";
926
932
  };
927
- type AccountResponseExpandable = typeof AccountResponseExpandable[keyof typeof AccountResponseExpandable];
933
+ type PrismaSortOrder = typeof PrismaSortOrder[keyof typeof PrismaSortOrder];
928
934
 
929
935
  /**
930
936
  * Openfort API
@@ -1408,6 +1414,7 @@ interface ResponseResponse$1 {
1408
1414
  declare const TransactionAbstractionType$1: {
1409
1415
  readonly AccountAbstractionV6: "accountAbstractionV6";
1410
1416
  readonly AccountAbstractionV8: "accountAbstractionV8";
1417
+ readonly AccountAbstractionV9: "accountAbstractionV9";
1411
1418
  readonly ZkSync: "zkSync";
1412
1419
  readonly Standard: "standard";
1413
1420
  };
@@ -1493,10 +1500,10 @@ interface TransactionIntentResponseDetails {
1493
1500
  'value'?: string;
1494
1501
  /**
1495
1502
  *
1496
- * @type {UserOperationV8}
1503
+ * @type {UserOperationV9}
1497
1504
  * @memberof TransactionIntentResponseDetails
1498
1505
  */
1499
- 'userOperation': UserOperationV8$1;
1506
+ 'userOperation': UserOperationV9$1;
1500
1507
  /**
1501
1508
  * A User Operation hash.
1502
1509
  * @type {string}
@@ -2450,6 +2457,36 @@ interface AuthPlayerResponse {
2450
2457
  'linkedAccounts': Array<LinkedAccountResponse>;
2451
2458
  }
2452
2459
 
2460
+ /**
2461
+ * Openfort API
2462
+ * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
2463
+ *
2464
+ * The version of the OpenAPI document: 1.0.0
2465
+ * Contact: founders@openfort.xyz
2466
+ *
2467
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2468
+ * https://openapi-generator.tech
2469
+ * Do not edit the class manually.
2470
+ */
2471
+ /**
2472
+ *
2473
+ * @export
2474
+ * @enum {string}
2475
+ */
2476
+ declare const AuthProviderResponseV2: {
2477
+ readonly Email: "email";
2478
+ readonly Wallet: "wallet";
2479
+ readonly Google: "google";
2480
+ readonly Apple: "apple";
2481
+ readonly Twitter: "twitter";
2482
+ readonly Discord: "discord";
2483
+ readonly Facebook: "facebook";
2484
+ readonly Custom: "custom";
2485
+ readonly Oidc: "oidc";
2486
+ readonly Siwe: "siwe";
2487
+ };
2488
+ type AuthProviderResponseV2 = typeof AuthProviderResponseV2[keyof typeof AuthProviderResponseV2];
2489
+
2453
2490
  /**
2454
2491
  * Openfort API
2455
2492
  * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
@@ -2488,6 +2525,148 @@ interface AuthResponse$1 {
2488
2525
  'refreshToken': string;
2489
2526
  }
2490
2527
 
2528
+ /**
2529
+ * Openfort API
2530
+ * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
2531
+ *
2532
+ * The version of the OpenAPI document: 1.0.0
2533
+ * Contact: founders@openfort.xyz
2534
+ *
2535
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2536
+ * https://openapi-generator.tech
2537
+ * Do not edit the class manually.
2538
+ */
2539
+
2540
+ /**
2541
+ *
2542
+ * @export
2543
+ * @interface LinkedAccountResponseV2
2544
+ */
2545
+ interface LinkedAccountResponseV2 {
2546
+ /**
2547
+ *
2548
+ * @type {AuthProviderResponseV2}
2549
+ * @memberof LinkedAccountResponseV2
2550
+ */
2551
+ 'provider': AuthProviderResponseV2;
2552
+ /**
2553
+ *
2554
+ * @type {number}
2555
+ * @memberof LinkedAccountResponseV2
2556
+ */
2557
+ 'createdAt': number;
2558
+ /**
2559
+ *
2560
+ * @type {number}
2561
+ * @memberof LinkedAccountResponseV2
2562
+ */
2563
+ 'updatedAt': number;
2564
+ /**
2565
+ *
2566
+ * @type {string}
2567
+ * @memberof LinkedAccountResponseV2
2568
+ */
2569
+ 'accountId': string;
2570
+ /**
2571
+ *
2572
+ * @type {string}
2573
+ * @memberof LinkedAccountResponseV2
2574
+ */
2575
+ 'chainType'?: string;
2576
+ /**
2577
+ *
2578
+ * @type {number}
2579
+ * @memberof LinkedAccountResponseV2
2580
+ */
2581
+ 'chainId'?: number;
2582
+ /**
2583
+ *
2584
+ * @type {string}
2585
+ * @memberof LinkedAccountResponseV2
2586
+ */
2587
+ 'connectorType'?: string;
2588
+ /**
2589
+ *
2590
+ * @type {string}
2591
+ * @memberof LinkedAccountResponseV2
2592
+ */
2593
+ 'walletClientType'?: string;
2594
+ }
2595
+
2596
+ /**
2597
+ * Openfort API
2598
+ * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
2599
+ *
2600
+ * The version of the OpenAPI document: 1.0.0
2601
+ * Contact: founders@openfort.xyz
2602
+ *
2603
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2604
+ * https://openapi-generator.tech
2605
+ * Do not edit the class manually.
2606
+ */
2607
+
2608
+ /**
2609
+ *
2610
+ * @export
2611
+ * @interface AuthUserResponse
2612
+ */
2613
+ interface AuthUserResponse {
2614
+ /**
2615
+ *
2616
+ * @type {string}
2617
+ * @memberof AuthUserResponse
2618
+ */
2619
+ 'id': string;
2620
+ /**
2621
+ *
2622
+ * @type {number}
2623
+ * @memberof AuthUserResponse
2624
+ */
2625
+ 'createdAt': number;
2626
+ /**
2627
+ *
2628
+ * @type {string}
2629
+ * @memberof AuthUserResponse
2630
+ */
2631
+ 'name': string;
2632
+ /**
2633
+ *
2634
+ * @type {string}
2635
+ * @memberof AuthUserResponse
2636
+ */
2637
+ 'email': string;
2638
+ /**
2639
+ *
2640
+ * @type {boolean}
2641
+ * @memberof AuthUserResponse
2642
+ */
2643
+ 'emailVerified': boolean;
2644
+ /**
2645
+ *
2646
+ * @type {string}
2647
+ * @memberof AuthUserResponse
2648
+ */
2649
+ 'phoneNumber': string | null;
2650
+ /**
2651
+ *
2652
+ * @type {boolean}
2653
+ * @memberof AuthUserResponse
2654
+ */
2655
+ 'phoneNumberVerified': boolean;
2656
+ /**
2657
+ *
2658
+ * @type {boolean}
2659
+ * @memberof AuthUserResponse
2660
+ */
2661
+ 'isAnonymous'?: boolean;
2662
+ /**
2663
+ *
2664
+ * @type {Array<LinkedAccountResponseV2>}
2665
+ * @memberof AuthUserResponse
2666
+ */
2667
+ 'linkedAccounts': Array<LinkedAccountResponseV2>;
2668
+ }
2669
+
2491
2670
  /**
2492
2671
  * Openfort API
2493
2672
  * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
@@ -3062,7 +3241,7 @@ interface CreateAccountRequest {
3062
3241
  */
3063
3242
  'externalOwnerAddress'?: string;
3064
3243
  /**
3065
- * The type of smart account that will be created (e.g. ERC6551V1, UpgradeableV6, UpgradeableV5, ZKSyncUpgradeableV2). Defaults to UpgradeableV6.
3244
+ * The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, ZKSyncUpgradeableV2). Defaults to UpgradeableV6.
3066
3245
  * @type {string}
3067
3246
  * @memberof CreateAccountRequest
3068
3247
  */
@@ -3073,18 +3252,6 @@ interface CreateAccountRequest {
3073
3252
  * @memberof CreateAccountRequest
3074
3253
  */
3075
3254
  'defaultGuardian'?: boolean;
3076
- /**
3077
- * If ERC6551, the address of the NFT contract to use
3078
- * @type {string}
3079
- * @memberof CreateAccountRequest
3080
- */
3081
- 'tokenContract'?: string;
3082
- /**
3083
- * If ERC6551, the tokenId from the NFT contract that will serve as owner
3084
- * @type {number}
3085
- * @memberof CreateAccountRequest
3086
- */
3087
- 'tokenId'?: number;
3088
3255
  /**
3089
3256
  * ID of the player this account belongs to (starts with `pla_`). If none is provided, a new player will be created.
3090
3257
  * @type {string}
@@ -3129,7 +3296,7 @@ interface CreateAccountRequestV2 {
3129
3296
  */
3130
3297
  'address'?: string;
3131
3298
  /**
3132
- * The type of smart account that will be created (e.g. ERC6551V1, UpgradeableV6, UpgradeableV5, Calibur). Defaults to UpgradeableV6 in mainnets.
3299
+ * The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, Calibur). Defaults to UpgradeableV6 in mainnets.
3133
3300
  * @type {string}
3134
3301
  * @memberof CreateAccountRequestV2
3135
3302
  */
@@ -7407,7 +7574,7 @@ interface ThirdPartyOAuthRequest {
7407
7574
  * @type {TokenType}
7408
7575
  * @memberof ThirdPartyOAuthRequest
7409
7576
  */
7410
- 'tokenType': TokenType$1;
7577
+ 'tokenType'?: TokenType$1;
7411
7578
  }
7412
7579
 
7413
7580
  /**
@@ -8092,10 +8259,10 @@ interface UserResponse {
8092
8259
  'id': string;
8093
8260
  /**
8094
8261
  *
8095
- * @type {string}
8262
+ * @type {number}
8096
8263
  * @memberof UserResponse
8097
8264
  */
8098
- 'createdAt': string;
8265
+ 'createdAt': number;
8099
8266
  /**
8100
8267
  *
8101
8268
  * @type {string}
@@ -8119,13 +8286,19 @@ interface UserResponse {
8119
8286
  * @type {string}
8120
8287
  * @memberof UserResponse
8121
8288
  */
8122
- 'phone': string | null;
8289
+ 'phoneNumber': string | null;
8123
8290
  /**
8124
8291
  *
8125
8292
  * @type {boolean}
8126
8293
  * @memberof UserResponse
8127
8294
  */
8128
- 'phoneVerified': boolean;
8295
+ 'phoneNumberVerified': boolean;
8296
+ /**
8297
+ *
8298
+ * @type {boolean}
8299
+ * @memberof UserResponse
8300
+ */
8301
+ 'isAnonymous'?: boolean;
8129
8302
  }
8130
8303
 
8131
8304
  /**
@@ -9407,6 +9580,19 @@ declare class AuthenticationApi extends BaseAPI {
9407
9580
  verifyOAuthToken(requestParameters: AuthenticationApiVerifyOAuthTokenRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<PlayerResponse, any, {}>>;
9408
9581
  }
9409
9582
 
9583
+ /**
9584
+ * Request parameters for thirdPartyV2 operation in AuthenticationV2Api.
9585
+ * @export
9586
+ * @interface AuthenticationV2ApiThirdPartyV2Request
9587
+ */
9588
+ interface AuthenticationV2ApiThirdPartyV2Request {
9589
+ /**
9590
+ *
9591
+ * @type {ThirdPartyOAuthRequest}
9592
+ * @memberof AuthenticationV2ApiThirdPartyV2
9593
+ */
9594
+ readonly thirdPartyOAuthRequest: ThirdPartyOAuthRequest;
9595
+ }
9410
9596
  /**
9411
9597
  * AuthenticationV2Api - object-oriented interface
9412
9598
  * @export
@@ -9421,6 +9607,15 @@ declare class AuthenticationV2Api extends BaseAPI {
9421
9607
  * @memberof AuthenticationV2Api
9422
9608
  */
9423
9609
  meV2(options?: AxiosRequestConfig): Promise<AxiosResponse<UserResponse, any, {}>>;
9610
+ /**
9611
+ *
9612
+ * @summary Verify oauth token of a third party auth provider.
9613
+ * @param {AuthenticationV2ApiThirdPartyV2Request} requestParameters Request parameters.
9614
+ * @param {*} [options] Override http request option.
9615
+ * @throws {RequiredError}
9616
+ * @memberof AuthenticationV2Api
9617
+ */
9618
+ thirdPartyV2(requestParameters: AuthenticationV2ApiThirdPartyV2Request, options?: AxiosRequestConfig): Promise<AxiosResponse<AuthUserResponse, any, {}>>;
9424
9619
  }
9425
9620
 
9426
9621
  /**
@@ -10252,6 +10447,25 @@ declare class PhoneNumberApi extends BaseAPI {
10252
10447
  signInPhoneNumberPost(requestParameters: PhoneNumberApiSignInPhoneNumberPostRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<SignInAnonymousPost200Response, any, {}>>;
10253
10448
  }
10254
10449
 
10450
+ /**
10451
+ * Request parameters for handleChainRpcRequest operation in RPCApi.
10452
+ * @export
10453
+ * @interface RPCApiHandleChainRpcRequestRequest
10454
+ */
10455
+ interface RPCApiHandleChainRpcRequestRequest {
10456
+ /**
10457
+ *
10458
+ * @type {number}
10459
+ * @memberof RPCApiHandleChainRpcRequest
10460
+ */
10461
+ readonly chainId: number;
10462
+ /**
10463
+ *
10464
+ * @type {JsonRpcRequest}
10465
+ * @memberof RPCApiHandleChainRpcRequest
10466
+ */
10467
+ readonly jsonRpcRequest: JsonRpcRequest;
10468
+ }
10255
10469
  /**
10256
10470
  * Request parameters for handleRpcRequest operation in RPCApi.
10257
10471
  * @export
@@ -10273,8 +10487,17 @@ interface RPCApiHandleRpcRequestRequest {
10273
10487
  */
10274
10488
  declare class RPCApi extends BaseAPI {
10275
10489
  /**
10276
- * Handle JSON-RPC 2.0 requests Accepts standard JSON-RPC 2.0 requests and routes them to appropriate method handlers. Supported methods: - wallet_getAssets: Get wallet assets across multiple chains
10277
- * @summary Execute JSON-RPC method
10490
+ * Execute chain-specific JSON-RPC 2.0 methods (bundler & paymaster) This endpoint handles chain-specific JSON-RPC 2.0 requests for ERC-4337 bundler operations and ERC-7677 paymaster operations. The chainId is specified in the URL path following the standard pattern. **Supported namespaces:** - `eth_*`: ERC-4337 bundler methods (sendUserOperation, estimateUserOperationGas, getUserOperationReceipt, getUserOperationByHash, supportedEntryPoints) - `openfort_*`: Openfort bundler extensions (getUserOperationGasPrice, getUserOperationStatus) - `pm_*`: ERC-7677 paymaster methods (getPaymasterStubData, getPaymasterData) - `wallet_*`: EIP-7811 wallet methods (can also be called here with chainId context)
10491
+ * @summary Execute chain-specific bundler and paymaster JSON-RPC methods
10492
+ * @param {RPCApiHandleChainRpcRequestRequest} requestParameters Request parameters.
10493
+ * @param {*} [options] Override http request option.
10494
+ * @throws {RequiredError}
10495
+ * @memberof RPCApi
10496
+ */
10497
+ handleChainRpcRequest(requestParameters: RPCApiHandleChainRpcRequestRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<JsonRpcResponse, any, {}>>;
10498
+ /**
10499
+ * Execute JSON-RPC 2.0 wallet methods This endpoint handles wallet-namespace JSON-RPC 2.0 requests following the specification at https://www.jsonrpc.org/specification. It supports EIP-7811 wallet methods that operate across multiple chains. **Supported methods:** - `wallet_getAssets`: Retrieve wallet assets across multiple chains with optional filtering **Authentication:** Supports multiple authentication methods including public key access tokens and third-party tokens
10500
+ * @summary Execute wallet JSON-RPC methods
10278
10501
  * @param {RPCApiHandleRpcRequestRequest} requestParameters Request parameters.
10279
10502
  * @param {*} [options] Override http request option.
10280
10503
  * @throws {RequiredError}
@@ -10820,9 +11043,9 @@ declare enum StorageKeys {
10820
11043
  SESSION = "openfort.session"
10821
11044
  }
10822
11045
  interface IStorage {
10823
- get(key: StorageKeys): Promise<string | null>;
10824
- save(key: StorageKeys, value: string): void;
10825
- remove(key: StorageKeys): void;
11046
+ get(key: StorageKeys | string): Promise<string | null>;
11047
+ save(key: StorageKeys | string, value: string): void;
11048
+ remove(key: StorageKeys | string): void;
10826
11049
  flush(): void;
10827
11050
  }
10828
11051
 
@@ -10960,8 +11183,6 @@ declare enum OAuthProvider {
10960
11183
  LINE = "line"
10961
11184
  }
10962
11185
  interface NextActionPayload {
10963
- userOperation?: any;
10964
- userOperationHash?: string;
10965
11186
  signableHash?: string;
10966
11187
  }
10967
11188
  interface NextActionResponse {
@@ -11069,6 +11290,7 @@ interface TransactionIntentResponsePlayer {
11069
11290
  declare const TRANSACTION_ABSTRACTION_TYPE: {
11070
11291
  readonly accountAbstractionV6: "accountAbstractionV6";
11071
11292
  readonly accountAbstractionV8: "accountAbstractionV8";
11293
+ readonly accountAbstractionV9: "accountAbstractionV9";
11072
11294
  readonly zksync: "zkSync";
11073
11295
  readonly standard: "standard";
11074
11296
  };
@@ -11079,7 +11301,7 @@ interface TransactionIntentResponse {
11079
11301
  createdAt: number;
11080
11302
  updatedAt: number;
11081
11303
  abstractionType: TransactionAbstractionType;
11082
- details?: AccountAbstractionV6Details | AccountAbstractionV8Details | ZKSyncDetails | StandardDetails;
11304
+ details?: AccountAbstractionV6Details | AccountAbstractionV8Details | AccountAbstractionV9Details | ZKSyncDetails | StandardDetails;
11083
11305
  chainId: number;
11084
11306
  response?: ResponseResponse;
11085
11307
  interactions?: Interaction[];
@@ -11089,6 +11311,14 @@ interface TransactionIntentResponse {
11089
11311
  account: TransactionIntentResponseAccount | EntityIdResponse;
11090
11312
  }
11091
11313
  type PlayerMetadataValue = unknown;
11314
+ interface UserAccount {
11315
+ id: string;
11316
+ providerId: string;
11317
+ createdAt: string;
11318
+ updatedAt: string;
11319
+ accountId: string;
11320
+ scopes: string[];
11321
+ }
11092
11322
  /**
11093
11323
  * User profile information
11094
11324
  */
@@ -11175,6 +11405,27 @@ interface AccountAbstractionV8Details {
11175
11405
  userOperation: UserOperationV8;
11176
11406
  userOperationHash: string;
11177
11407
  }
11408
+ interface AccountAbstractionV9Details {
11409
+ userOperation: UserOperationV9;
11410
+ userOperationHash: string;
11411
+ }
11412
+ interface UserOperationV9 {
11413
+ callData: string;
11414
+ callGasLimit: string;
11415
+ factory?: string;
11416
+ factoryData?: string;
11417
+ maxFeePerGas: string;
11418
+ maxPriorityFeePerGas: string;
11419
+ nonce: string;
11420
+ paymaster?: string;
11421
+ paymasterVerificationGasLimit?: string;
11422
+ paymasterPostOpGasLimit?: string;
11423
+ paymasterData?: string;
11424
+ preVerificationGas: string;
11425
+ sender: string;
11426
+ signature: string;
11427
+ verificationGasLimit: string;
11428
+ }
11178
11429
  interface UserOperationV8 {
11179
11430
  callData: string;
11180
11431
  callGasLimit: string;
@@ -11298,12 +11549,14 @@ declare class AuthManager {
11298
11549
  private get backendApiClients();
11299
11550
  private get publishableKey();
11300
11551
  initOAuth(provider: OAuthProvider, redirectUrl: string): Promise<string>;
11552
+ linkOAuthToAnonymous(auth: Authentication, provider: OAuthProvider, redirectUrl: string): Promise<string>;
11301
11553
  registerGuest(): Promise<AuthResponse>;
11302
11554
  loginWithIdToken(provider: OAuthProvider, token: string): Promise<AuthResponse>;
11303
- authenticateThirdParty(provider: ThirdPartyAuthProvider, token: string, tokenType: TokenType): Promise<{
11555
+ authenticateThirdParty(provider: ThirdPartyAuthProvider, token: string): Promise<{
11304
11556
  userId: string;
11305
11557
  }>;
11306
11558
  initSIWE(address: string, chainId?: number): Promise<SIWEInitResponse>;
11559
+ linkSIWE(address: string, auth: Authentication, chainId?: number): Promise<SIWEInitResponse>;
11307
11560
  authenticateSIWE(signature: string, message: string, walletClientType: string, connectorType: string, address: string, chainId?: number): Promise<AuthResponse>;
11308
11561
  loginEmailPassword(email: string, password: string): Promise<AuthResponse>;
11309
11562
  requestResetPassword(email: string, redirectUrl: string): Promise<void>;
@@ -11353,6 +11606,10 @@ declare class AuthApi {
11353
11606
  provider: OAuthProvider;
11354
11607
  redirectTo: string;
11355
11608
  }): Promise<string>;
11609
+ linkOAuthToAnonymous({ provider, redirectTo, }: {
11610
+ provider: OAuthProvider;
11611
+ redirectTo: string;
11612
+ }): Promise<string>;
11356
11613
  logInWithIdToken({ provider, token }: {
11357
11614
  provider: OAuthProvider;
11358
11615
  token: string;
@@ -11406,6 +11663,10 @@ declare class AuthApi {
11406
11663
  address: string;
11407
11664
  chainId?: number;
11408
11665
  }): Promise<SIWEInitResponse>;
11666
+ linkSIWE({ address, chainId }: {
11667
+ address: string;
11668
+ chainId?: number;
11669
+ }): Promise<SIWEInitResponse>;
11409
11670
  authenticateWithSIWE({ signature, message, walletClientType, connectorType, address, chainId, }: {
11410
11671
  signature: string;
11411
11672
  message: string;
@@ -11540,7 +11801,7 @@ declare class UserApi {
11540
11801
  private validateAndRefreshToken;
11541
11802
  constructor(storage: IStorage, authManager: AuthManager, validateAndRefreshToken: () => Promise<void>);
11542
11803
  get(): Promise<User$2>;
11543
- list(): Promise<UserAccountResponse[]>;
11804
+ list(): Promise<UserAccount$1[]>;
11544
11805
  }
11545
11806
 
11546
11807
  interface SDKOverrides {
@@ -12681,4 +12942,4 @@ type GrantPermissionsReturnType = {
12681
12942
  */
12682
12943
  declare const openfortEvents: TypedEventEmitter<OpenfortEventMap>;
12683
12944
 
12684
- export { AccountTypeEnum, AuthActionRequiredActions, AuthActionRequiredResponse, AuthApi, AuthInitPayload, AuthResponse, AuthType, AuthenticationError, Authorization, AuthorizationError, BasicAuthProvider, ChainTypeEnum, ConfigurationError, EmbeddedAccount, EmbeddedState, EmbeddedWalletApi, GrantPermissionsParameters, GrantPermissionsReturnType, InitializeOAuthOptions, MissingProjectEntropyError, MissingRecoveryPasswordError, NotConfiguredError, OAuthError, OAuthProvider, OPENFORT_AUTH_ERROR_CODES, OPENFORT_ERROR_CODES, OTPError, OTPRequiredError, Openfort, OpenfortAuthErrorCode, OpenfortConfiguration, OpenfortError, OpenfortEventMap, OpenfortEvents, OpenfortInternal, OpenfortSDKConfiguration, Permission, Policy, PrepareAuthorizationParams, Provider, ProxyApi, RecoveryError, RecoveryMethod, RecoveryParams, RequestError, RevokePermissionsRequestParams, SDKConfiguration, SDKOverrides, SessionError, SessionResponse, ShieldAuthOptions, ShieldConfiguration, ShieldOptions, SignAuthorizationParams, SignedAuthorization, SignedMessagePayload, Signer, SignerError, IStorage as Storage, ThirdPartyAuthConfiguration, ThirdPartyAuthProvider as ThirdPartyOAuthProvider, TokenType, TransactionIntentResponse, TypedDataPayload, User, UserApi, UserError, WrongRecoveryPasswordError, openfortEvents, prepareAndSignAuthorization, serializeSignedAuthorization, signAuthorization };
12945
+ export { AccountTypeEnum, AuthActionRequiredActions, AuthActionRequiredResponse, AuthApi, AuthInitPayload, AuthResponse, AuthType, AuthenticationError, Authorization, AuthorizationError, BasicAuthProvider, ChainTypeEnum, ConfigurationError, EmbeddedAccount, EmbeddedState, EmbeddedWalletApi, GrantPermissionsParameters, GrantPermissionsReturnType, InitializeOAuthOptions, MissingProjectEntropyError, MissingRecoveryPasswordError, NotConfiguredError, OAuthError, OAuthProvider, OPENFORT_AUTH_ERROR_CODES, OPENFORT_ERROR_CODES, OTPError, OTPRequiredError, Openfort, OpenfortAuthErrorCode, OpenfortConfiguration, OpenfortError, OpenfortEventMap, OpenfortEvents, OpenfortInternal, OpenfortSDKConfiguration, Permission, Policy, PrepareAuthorizationParams, Provider, ProxyApi, RecoveryError, RecoveryMethod, RecoveryParams, RequestError, RevokePermissionsRequestParams, SDKConfiguration, SDKOverrides, SessionError, SessionResponse, ShieldAuthOptions, ShieldConfiguration, ShieldOptions, SignAuthorizationParams, SignedAuthorization, SignedMessagePayload, Signer, SignerError, IStorage as Storage, ThirdPartyAuthConfiguration, ThirdPartyAuthProvider as ThirdPartyOAuthProvider, TokenType, TransactionIntentResponse, TypedDataPayload, User, UserAccount, UserApi, UserError, WrongRecoveryPasswordError, openfortEvents, prepareAndSignAuthorization, serializeSignedAuthorization, signAuthorization };