@getpara/core-sdk 2.26.0 → 3.0.0-alpha.1

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 (35) hide show
  1. package/dist/cjs/ParaCore.js +16 -9
  2. package/dist/cjs/constants.js +1 -1
  3. package/dist/cjs/services/AuthService.js +2 -2
  4. package/dist/cjs/services/LoginFlowService.js +24 -13
  5. package/dist/cjs/services/PollingService.js +3 -3
  6. package/dist/cjs/services/PortalUrlService.js +50 -43
  7. package/dist/cjs/services/SessionManagementService.js +3 -3
  8. package/dist/cjs/services/SignupFlowService.js +18 -3
  9. package/dist/cjs/services/VerificationFlowService.js +9 -4
  10. package/dist/cjs/state/CoreStateManager.js +37 -17
  11. package/dist/cjs/state/machines/authStateMachine.js +9 -0
  12. package/dist/esm/ParaCore.js +16 -9
  13. package/dist/esm/constants.js +1 -1
  14. package/dist/esm/services/AuthService.js +2 -2
  15. package/dist/esm/services/LoginFlowService.js +24 -13
  16. package/dist/esm/services/PollingService.js +3 -3
  17. package/dist/esm/services/PortalUrlService.js +50 -43
  18. package/dist/esm/services/SessionManagementService.js +3 -3
  19. package/dist/esm/services/SignupFlowService.js +18 -3
  20. package/dist/esm/services/VerificationFlowService.js +9 -4
  21. package/dist/esm/state/CoreStateManager.js +37 -17
  22. package/dist/esm/state/machines/authStateMachine.js +9 -0
  23. package/dist/types/ParaCore.d.ts +8 -6
  24. package/dist/types/services/types/AuthServiceTypes.d.ts +4 -1
  25. package/dist/types/services/types/PortalUrlServiceTypes.d.ts +9 -5
  26. package/dist/types/state/machines/authStateMachine.d.ts +106 -1
  27. package/dist/types/state/machines/coreStateMachine.d.ts +646 -16
  28. package/dist/types/state/types/auth.d.ts +2 -1
  29. package/dist/types/state/types/core.d.ts +11 -1
  30. package/dist/types/types/authState.d.ts +25 -0
  31. package/dist/types/types/config.d.ts +3 -2
  32. package/dist/types/types/coreApi.d.ts +3 -1
  33. package/dist/types/types/serviceInterfaces.d.ts +3 -3
  34. package/dist/types/types/util.d.ts +14 -1
  35. package/package.json +3 -3
@@ -623,6 +623,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
623
623
  shouldAutoCreateWallets: false;
624
624
  skipSessionRefreshOnSetup: false;
625
625
  isLegacy: false;
626
+ selectedOAuthMethod: any;
626
627
  retryAttempts: {};
627
628
  };
628
629
  readonly on: {
@@ -666,6 +667,110 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
666
667
  };
667
668
  };
668
669
  readonly unauthenticated: {
670
+ readonly entry: readonly [import("xstate").ActionFunction<import("../types/auth.js").AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
671
+ connectExternalWallet: {
672
+ src: "connectExternalWallet";
673
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
674
+ id: string;
675
+ };
676
+ verifyNewAccount: {
677
+ src: "verifyNewAccount";
678
+ logic: import("xstate").PromiseActorLogic<{
679
+ authState: import("@getpara/shared").ServerAuthState;
680
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
681
+ }, import("../../index.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
682
+ id: string;
683
+ };
684
+ verifyExternalWallet: {
685
+ src: "verifyExternalWallet";
686
+ logic: import("xstate").PromiseActorLogic<{
687
+ authState: import("@getpara/shared").ServerAuthState;
688
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
689
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
690
+ id: string;
691
+ };
692
+ authenticateWithEmailOrPhone: {
693
+ src: "authenticateWithEmailOrPhone";
694
+ logic: import("xstate").PromiseActorLogic<{
695
+ authState: import("@getpara/shared").ServerAuthState;
696
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
697
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
698
+ id: string;
699
+ };
700
+ polling: {
701
+ src: "polling";
702
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
703
+ id: string;
704
+ };
705
+ checkUserState: {
706
+ src: "checkUserState";
707
+ logic: import("xstate").PromiseActorLogic<{
708
+ isAuthenticated: boolean;
709
+ isFullyLoggedIn: boolean;
710
+ isGuestMode: boolean;
711
+ }, {}, import("xstate").EventObject>;
712
+ id: string;
713
+ };
714
+ authenticateWithExternalWallet: {
715
+ src: "authenticateWithExternalWallet";
716
+ logic: import("xstate").PromiseActorLogic<{
717
+ authState: import("@getpara/shared").ServerAuthState;
718
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
719
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
720
+ id: string;
721
+ };
722
+ authenticateWithTelegram: {
723
+ src: "authenticateWithTelegram";
724
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
725
+ id: string;
726
+ };
727
+ authenticateWithTelegramLegacy: {
728
+ src: "authenticateWithTelegramLegacy";
729
+ logic: import("xstate").PromiseActorLogic<{
730
+ authState: import("@getpara/shared").ServerAuthState;
731
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
732
+ }, import("../../index.js").VerifyTelegramParams, import("xstate").EventObject>;
733
+ id: string;
734
+ };
735
+ authenticateWithFarcaster: {
736
+ src: "authenticateWithFarcaster";
737
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
738
+ id: string;
739
+ };
740
+ authenticateWithFarcasterLegacy: {
741
+ src: "authenticateWithFarcasterLegacy";
742
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformVerifyFarcasterResponse, import("../../index.js").VerifyFarcasterParams, import("xstate").EventObject>;
743
+ id: string;
744
+ };
745
+ processAuthentication: {
746
+ src: "processAuthentication";
747
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").AuthState, {
748
+ authState: import("@getpara/shared").ServerAuthState;
749
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
750
+ sessionLookupId?: string;
751
+ isFromExternalWallet?: boolean;
752
+ };
753
+ }, import("xstate").EventObject>;
754
+ id: string;
755
+ };
756
+ signExternalWalletVerification: {
757
+ src: "signExternalWalletVerification";
758
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
759
+ externalWallet: import("@getpara/shared/dist/types/types/wallet.js").ExternalWalletInfo;
760
+ }, import("xstate").EventObject>;
761
+ id: string;
762
+ };
763
+ switchExternalWallet: {
764
+ src: "switchExternalWallet";
765
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
766
+ id: string;
767
+ };
768
+ logoutActor: {
769
+ src: "logoutActor";
770
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
771
+ id: string;
772
+ };
773
+ }>, never, never, never, never>];
669
774
  readonly on: {
670
775
  readonly INITIALIZE_GUEST_MODE: "guest_mode";
671
776
  readonly SESSION_IMPORTED: "authenticated";
@@ -737,7 +842,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
737
842
  data: {
738
843
  authState: import("@getpara/shared").ServerAuthState;
739
844
  sessionLookupId: string;
740
- portalTheme: import("@getpara/shared/dist/types/types/theme.js").Theme;
845
+ portalTheme: import("../../types/util.js").PortalTheme;
741
846
  useShortUrls: boolean;
742
847
  };
743
848
  finished: boolean;
@@ -4260,6 +4365,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
4260
4365
  shouldAutoCreateWallets: false;
4261
4366
  skipSessionRefreshOnSetup: false;
4262
4367
  isLegacy: false;
4368
+ selectedOAuthMethod: any;
4263
4369
  retryAttempts: {};
4264
4370
  };
4265
4371
  readonly on: {
@@ -4303,6 +4409,110 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
4303
4409
  };
4304
4410
  };
4305
4411
  readonly unauthenticated: {
4412
+ readonly entry: readonly [import("xstate").ActionFunction<import("../types/auth.js").AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
4413
+ connectExternalWallet: {
4414
+ src: "connectExternalWallet";
4415
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
4416
+ id: string;
4417
+ };
4418
+ verifyNewAccount: {
4419
+ src: "verifyNewAccount";
4420
+ logic: import("xstate").PromiseActorLogic<{
4421
+ authState: import("@getpara/shared").ServerAuthState;
4422
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
4423
+ }, import("../../index.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
4424
+ id: string;
4425
+ };
4426
+ verifyExternalWallet: {
4427
+ src: "verifyExternalWallet";
4428
+ logic: import("xstate").PromiseActorLogic<{
4429
+ authState: import("@getpara/shared").ServerAuthState;
4430
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
4431
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
4432
+ id: string;
4433
+ };
4434
+ authenticateWithEmailOrPhone: {
4435
+ src: "authenticateWithEmailOrPhone";
4436
+ logic: import("xstate").PromiseActorLogic<{
4437
+ authState: import("@getpara/shared").ServerAuthState;
4438
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
4439
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
4440
+ id: string;
4441
+ };
4442
+ polling: {
4443
+ src: "polling";
4444
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
4445
+ id: string;
4446
+ };
4447
+ checkUserState: {
4448
+ src: "checkUserState";
4449
+ logic: import("xstate").PromiseActorLogic<{
4450
+ isAuthenticated: boolean;
4451
+ isFullyLoggedIn: boolean;
4452
+ isGuestMode: boolean;
4453
+ }, {}, import("xstate").EventObject>;
4454
+ id: string;
4455
+ };
4456
+ authenticateWithExternalWallet: {
4457
+ src: "authenticateWithExternalWallet";
4458
+ logic: import("xstate").PromiseActorLogic<{
4459
+ authState: import("@getpara/shared").ServerAuthState;
4460
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
4461
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
4462
+ id: string;
4463
+ };
4464
+ authenticateWithTelegram: {
4465
+ src: "authenticateWithTelegram";
4466
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
4467
+ id: string;
4468
+ };
4469
+ authenticateWithTelegramLegacy: {
4470
+ src: "authenticateWithTelegramLegacy";
4471
+ logic: import("xstate").PromiseActorLogic<{
4472
+ authState: import("@getpara/shared").ServerAuthState;
4473
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
4474
+ }, import("../../index.js").VerifyTelegramParams, import("xstate").EventObject>;
4475
+ id: string;
4476
+ };
4477
+ authenticateWithFarcaster: {
4478
+ src: "authenticateWithFarcaster";
4479
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
4480
+ id: string;
4481
+ };
4482
+ authenticateWithFarcasterLegacy: {
4483
+ src: "authenticateWithFarcasterLegacy";
4484
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformVerifyFarcasterResponse, import("../../index.js").VerifyFarcasterParams, import("xstate").EventObject>;
4485
+ id: string;
4486
+ };
4487
+ processAuthentication: {
4488
+ src: "processAuthentication";
4489
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").AuthState, {
4490
+ authState: import("@getpara/shared").ServerAuthState;
4491
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
4492
+ sessionLookupId?: string;
4493
+ isFromExternalWallet?: boolean;
4494
+ };
4495
+ }, import("xstate").EventObject>;
4496
+ id: string;
4497
+ };
4498
+ signExternalWalletVerification: {
4499
+ src: "signExternalWalletVerification";
4500
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
4501
+ externalWallet: import("@getpara/shared/dist/types/types/wallet.js").ExternalWalletInfo;
4502
+ }, import("xstate").EventObject>;
4503
+ id: string;
4504
+ };
4505
+ switchExternalWallet: {
4506
+ src: "switchExternalWallet";
4507
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
4508
+ id: string;
4509
+ };
4510
+ logoutActor: {
4511
+ src: "logoutActor";
4512
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
4513
+ id: string;
4514
+ };
4515
+ }>, never, never, never, never>];
4306
4516
  readonly on: {
4307
4517
  readonly INITIALIZE_GUEST_MODE: "guest_mode";
4308
4518
  readonly SESSION_IMPORTED: "authenticated";
@@ -4374,7 +4584,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
4374
4584
  data: {
4375
4585
  authState: import("@getpara/shared").ServerAuthState;
4376
4586
  sessionLookupId: string;
4377
- portalTheme: import("@getpara/shared/dist/types/types/theme.js").Theme;
4587
+ portalTheme: import("../../types/util.js").PortalTheme;
4378
4588
  useShortUrls: boolean;
4379
4589
  };
4380
4590
  finished: boolean;
@@ -7975,6 +8185,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
7975
8185
  shouldAutoCreateWallets: false;
7976
8186
  skipSessionRefreshOnSetup: false;
7977
8187
  isLegacy: false;
8188
+ selectedOAuthMethod: any;
7978
8189
  retryAttempts: {};
7979
8190
  };
7980
8191
  readonly on: {
@@ -8018,6 +8229,110 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
8018
8229
  };
8019
8230
  };
8020
8231
  readonly unauthenticated: {
8232
+ readonly entry: readonly [import("xstate").ActionFunction<import("../types/auth.js").AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
8233
+ connectExternalWallet: {
8234
+ src: "connectExternalWallet";
8235
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
8236
+ id: string;
8237
+ };
8238
+ verifyNewAccount: {
8239
+ src: "verifyNewAccount";
8240
+ logic: import("xstate").PromiseActorLogic<{
8241
+ authState: import("@getpara/shared").ServerAuthState;
8242
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
8243
+ }, import("../../index.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
8244
+ id: string;
8245
+ };
8246
+ verifyExternalWallet: {
8247
+ src: "verifyExternalWallet";
8248
+ logic: import("xstate").PromiseActorLogic<{
8249
+ authState: import("@getpara/shared").ServerAuthState;
8250
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
8251
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
8252
+ id: string;
8253
+ };
8254
+ authenticateWithEmailOrPhone: {
8255
+ src: "authenticateWithEmailOrPhone";
8256
+ logic: import("xstate").PromiseActorLogic<{
8257
+ authState: import("@getpara/shared").ServerAuthState;
8258
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
8259
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
8260
+ id: string;
8261
+ };
8262
+ polling: {
8263
+ src: "polling";
8264
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
8265
+ id: string;
8266
+ };
8267
+ checkUserState: {
8268
+ src: "checkUserState";
8269
+ logic: import("xstate").PromiseActorLogic<{
8270
+ isAuthenticated: boolean;
8271
+ isFullyLoggedIn: boolean;
8272
+ isGuestMode: boolean;
8273
+ }, {}, import("xstate").EventObject>;
8274
+ id: string;
8275
+ };
8276
+ authenticateWithExternalWallet: {
8277
+ src: "authenticateWithExternalWallet";
8278
+ logic: import("xstate").PromiseActorLogic<{
8279
+ authState: import("@getpara/shared").ServerAuthState;
8280
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
8281
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
8282
+ id: string;
8283
+ };
8284
+ authenticateWithTelegram: {
8285
+ src: "authenticateWithTelegram";
8286
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
8287
+ id: string;
8288
+ };
8289
+ authenticateWithTelegramLegacy: {
8290
+ src: "authenticateWithTelegramLegacy";
8291
+ logic: import("xstate").PromiseActorLogic<{
8292
+ authState: import("@getpara/shared").ServerAuthState;
8293
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
8294
+ }, import("../../index.js").VerifyTelegramParams, import("xstate").EventObject>;
8295
+ id: string;
8296
+ };
8297
+ authenticateWithFarcaster: {
8298
+ src: "authenticateWithFarcaster";
8299
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
8300
+ id: string;
8301
+ };
8302
+ authenticateWithFarcasterLegacy: {
8303
+ src: "authenticateWithFarcasterLegacy";
8304
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformVerifyFarcasterResponse, import("../../index.js").VerifyFarcasterParams, import("xstate").EventObject>;
8305
+ id: string;
8306
+ };
8307
+ processAuthentication: {
8308
+ src: "processAuthentication";
8309
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").AuthState, {
8310
+ authState: import("@getpara/shared").ServerAuthState;
8311
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
8312
+ sessionLookupId?: string;
8313
+ isFromExternalWallet?: boolean;
8314
+ };
8315
+ }, import("xstate").EventObject>;
8316
+ id: string;
8317
+ };
8318
+ signExternalWalletVerification: {
8319
+ src: "signExternalWalletVerification";
8320
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
8321
+ externalWallet: import("@getpara/shared/dist/types/types/wallet.js").ExternalWalletInfo;
8322
+ }, import("xstate").EventObject>;
8323
+ id: string;
8324
+ };
8325
+ switchExternalWallet: {
8326
+ src: "switchExternalWallet";
8327
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
8328
+ id: string;
8329
+ };
8330
+ logoutActor: {
8331
+ src: "logoutActor";
8332
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
8333
+ id: string;
8334
+ };
8335
+ }>, never, never, never, never>];
8021
8336
  readonly on: {
8022
8337
  readonly INITIALIZE_GUEST_MODE: "guest_mode";
8023
8338
  readonly SESSION_IMPORTED: "authenticated";
@@ -8089,7 +8404,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
8089
8404
  data: {
8090
8405
  authState: import("@getpara/shared").ServerAuthState;
8091
8406
  sessionLookupId: string;
8092
- portalTheme: import("@getpara/shared/dist/types/types/theme.js").Theme;
8407
+ portalTheme: import("../../types/util.js").PortalTheme;
8093
8408
  useShortUrls: boolean;
8094
8409
  };
8095
8410
  finished: boolean;
@@ -11628,6 +11943,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
11628
11943
  shouldAutoCreateWallets: false;
11629
11944
  skipSessionRefreshOnSetup: false;
11630
11945
  isLegacy: false;
11946
+ selectedOAuthMethod: any;
11631
11947
  retryAttempts: {};
11632
11948
  };
11633
11949
  readonly on: {
@@ -11661,16 +11977,120 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
11661
11977
  readonly target: "error";
11662
11978
  readonly actions: any;
11663
11979
  };
11664
- };
11665
- };
11666
- readonly clearing_state: {
11667
- readonly invoke: {
11668
- readonly src: "logoutActor";
11669
- readonly onDone: "unauthenticated";
11670
- readonly onError: "unauthenticated";
11671
- };
11672
- };
11673
- readonly unauthenticated: {
11980
+ };
11981
+ };
11982
+ readonly clearing_state: {
11983
+ readonly invoke: {
11984
+ readonly src: "logoutActor";
11985
+ readonly onDone: "unauthenticated";
11986
+ readonly onError: "unauthenticated";
11987
+ };
11988
+ };
11989
+ readonly unauthenticated: {
11990
+ readonly entry: readonly [import("xstate").ActionFunction<import("../types/auth.js").AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
11991
+ connectExternalWallet: {
11992
+ src: "connectExternalWallet";
11993
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
11994
+ id: string;
11995
+ };
11996
+ verifyNewAccount: {
11997
+ src: "verifyNewAccount";
11998
+ logic: import("xstate").PromiseActorLogic<{
11999
+ authState: import("@getpara/shared").ServerAuthState;
12000
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
12001
+ }, import("../../index.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
12002
+ id: string;
12003
+ };
12004
+ verifyExternalWallet: {
12005
+ src: "verifyExternalWallet";
12006
+ logic: import("xstate").PromiseActorLogic<{
12007
+ authState: import("@getpara/shared").ServerAuthState;
12008
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
12009
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
12010
+ id: string;
12011
+ };
12012
+ authenticateWithEmailOrPhone: {
12013
+ src: "authenticateWithEmailOrPhone";
12014
+ logic: import("xstate").PromiseActorLogic<{
12015
+ authState: import("@getpara/shared").ServerAuthState;
12016
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
12017
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
12018
+ id: string;
12019
+ };
12020
+ polling: {
12021
+ src: "polling";
12022
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
12023
+ id: string;
12024
+ };
12025
+ checkUserState: {
12026
+ src: "checkUserState";
12027
+ logic: import("xstate").PromiseActorLogic<{
12028
+ isAuthenticated: boolean;
12029
+ isFullyLoggedIn: boolean;
12030
+ isGuestMode: boolean;
12031
+ }, {}, import("xstate").EventObject>;
12032
+ id: string;
12033
+ };
12034
+ authenticateWithExternalWallet: {
12035
+ src: "authenticateWithExternalWallet";
12036
+ logic: import("xstate").PromiseActorLogic<{
12037
+ authState: import("@getpara/shared").ServerAuthState;
12038
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
12039
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
12040
+ id: string;
12041
+ };
12042
+ authenticateWithTelegram: {
12043
+ src: "authenticateWithTelegram";
12044
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
12045
+ id: string;
12046
+ };
12047
+ authenticateWithTelegramLegacy: {
12048
+ src: "authenticateWithTelegramLegacy";
12049
+ logic: import("xstate").PromiseActorLogic<{
12050
+ authState: import("@getpara/shared").ServerAuthState;
12051
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
12052
+ }, import("../../index.js").VerifyTelegramParams, import("xstate").EventObject>;
12053
+ id: string;
12054
+ };
12055
+ authenticateWithFarcaster: {
12056
+ src: "authenticateWithFarcaster";
12057
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
12058
+ id: string;
12059
+ };
12060
+ authenticateWithFarcasterLegacy: {
12061
+ src: "authenticateWithFarcasterLegacy";
12062
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformVerifyFarcasterResponse, import("../../index.js").VerifyFarcasterParams, import("xstate").EventObject>;
12063
+ id: string;
12064
+ };
12065
+ processAuthentication: {
12066
+ src: "processAuthentication";
12067
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").AuthState, {
12068
+ authState: import("@getpara/shared").ServerAuthState;
12069
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
12070
+ sessionLookupId?: string;
12071
+ isFromExternalWallet?: boolean;
12072
+ };
12073
+ }, import("xstate").EventObject>;
12074
+ id: string;
12075
+ };
12076
+ signExternalWalletVerification: {
12077
+ src: "signExternalWalletVerification";
12078
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
12079
+ externalWallet: import("@getpara/shared/dist/types/types/wallet.js").ExternalWalletInfo;
12080
+ }, import("xstate").EventObject>;
12081
+ id: string;
12082
+ };
12083
+ switchExternalWallet: {
12084
+ src: "switchExternalWallet";
12085
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
12086
+ id: string;
12087
+ };
12088
+ logoutActor: {
12089
+ src: "logoutActor";
12090
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
12091
+ id: string;
12092
+ };
12093
+ }>, never, never, never, never>];
11674
12094
  readonly on: {
11675
12095
  readonly INITIALIZE_GUEST_MODE: "guest_mode";
11676
12096
  readonly SESSION_IMPORTED: "authenticated";
@@ -11742,7 +12162,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
11742
12162
  data: {
11743
12163
  authState: import("@getpara/shared").ServerAuthState;
11744
12164
  sessionLookupId: string;
11745
- portalTheme: import("@getpara/shared/dist/types/types/theme.js").Theme;
12165
+ portalTheme: import("../../types/util.js").PortalTheme;
11746
12166
  useShortUrls: boolean;
11747
12167
  };
11748
12168
  finished: boolean;
@@ -15375,6 +15795,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
15375
15795
  shouldAutoCreateWallets: false;
15376
15796
  skipSessionRefreshOnSetup: false;
15377
15797
  isLegacy: false;
15798
+ selectedOAuthMethod: any;
15378
15799
  retryAttempts: {};
15379
15800
  };
15380
15801
  readonly on: {
@@ -15418,6 +15839,110 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
15418
15839
  };
15419
15840
  };
15420
15841
  readonly unauthenticated: {
15842
+ readonly entry: readonly [import("xstate").ActionFunction<import("../types/auth.js").AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
15843
+ connectExternalWallet: {
15844
+ src: "connectExternalWallet";
15845
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
15846
+ id: string;
15847
+ };
15848
+ verifyNewAccount: {
15849
+ src: "verifyNewAccount";
15850
+ logic: import("xstate").PromiseActorLogic<{
15851
+ authState: import("@getpara/shared").ServerAuthState;
15852
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
15853
+ }, import("../../index.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
15854
+ id: string;
15855
+ };
15856
+ verifyExternalWallet: {
15857
+ src: "verifyExternalWallet";
15858
+ logic: import("xstate").PromiseActorLogic<{
15859
+ authState: import("@getpara/shared").ServerAuthState;
15860
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
15861
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
15862
+ id: string;
15863
+ };
15864
+ authenticateWithEmailOrPhone: {
15865
+ src: "authenticateWithEmailOrPhone";
15866
+ logic: import("xstate").PromiseActorLogic<{
15867
+ authState: import("@getpara/shared").ServerAuthState;
15868
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
15869
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
15870
+ id: string;
15871
+ };
15872
+ polling: {
15873
+ src: "polling";
15874
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
15875
+ id: string;
15876
+ };
15877
+ checkUserState: {
15878
+ src: "checkUserState";
15879
+ logic: import("xstate").PromiseActorLogic<{
15880
+ isAuthenticated: boolean;
15881
+ isFullyLoggedIn: boolean;
15882
+ isGuestMode: boolean;
15883
+ }, {}, import("xstate").EventObject>;
15884
+ id: string;
15885
+ };
15886
+ authenticateWithExternalWallet: {
15887
+ src: "authenticateWithExternalWallet";
15888
+ logic: import("xstate").PromiseActorLogic<{
15889
+ authState: import("@getpara/shared").ServerAuthState;
15890
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
15891
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
15892
+ id: string;
15893
+ };
15894
+ authenticateWithTelegram: {
15895
+ src: "authenticateWithTelegram";
15896
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
15897
+ id: string;
15898
+ };
15899
+ authenticateWithTelegramLegacy: {
15900
+ src: "authenticateWithTelegramLegacy";
15901
+ logic: import("xstate").PromiseActorLogic<{
15902
+ authState: import("@getpara/shared").ServerAuthState;
15903
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
15904
+ }, import("../../index.js").VerifyTelegramParams, import("xstate").EventObject>;
15905
+ id: string;
15906
+ };
15907
+ authenticateWithFarcaster: {
15908
+ src: "authenticateWithFarcaster";
15909
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
15910
+ id: string;
15911
+ };
15912
+ authenticateWithFarcasterLegacy: {
15913
+ src: "authenticateWithFarcasterLegacy";
15914
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformVerifyFarcasterResponse, import("../../index.js").VerifyFarcasterParams, import("xstate").EventObject>;
15915
+ id: string;
15916
+ };
15917
+ processAuthentication: {
15918
+ src: "processAuthentication";
15919
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").AuthState, {
15920
+ authState: import("@getpara/shared").ServerAuthState;
15921
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
15922
+ sessionLookupId?: string;
15923
+ isFromExternalWallet?: boolean;
15924
+ };
15925
+ }, import("xstate").EventObject>;
15926
+ id: string;
15927
+ };
15928
+ signExternalWalletVerification: {
15929
+ src: "signExternalWalletVerification";
15930
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
15931
+ externalWallet: import("@getpara/shared/dist/types/types/wallet.js").ExternalWalletInfo;
15932
+ }, import("xstate").EventObject>;
15933
+ id: string;
15934
+ };
15935
+ switchExternalWallet: {
15936
+ src: "switchExternalWallet";
15937
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
15938
+ id: string;
15939
+ };
15940
+ logoutActor: {
15941
+ src: "logoutActor";
15942
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
15943
+ id: string;
15944
+ };
15945
+ }>, never, never, never, never>];
15421
15946
  readonly on: {
15422
15947
  readonly INITIALIZE_GUEST_MODE: "guest_mode";
15423
15948
  readonly SESSION_IMPORTED: "authenticated";
@@ -15489,7 +16014,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
15489
16014
  data: {
15490
16015
  authState: import("@getpara/shared").ServerAuthState;
15491
16016
  sessionLookupId: string;
15492
- portalTheme: import("@getpara/shared/dist/types/types/theme.js").Theme;
16017
+ portalTheme: import("../../types/util.js").PortalTheme;
15493
16018
  useShortUrls: boolean;
15494
16019
  };
15495
16020
  finished: boolean;
@@ -19029,6 +19554,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
19029
19554
  shouldAutoCreateWallets: false;
19030
19555
  skipSessionRefreshOnSetup: false;
19031
19556
  isLegacy: false;
19557
+ selectedOAuthMethod: any;
19032
19558
  retryAttempts: {};
19033
19559
  };
19034
19560
  readonly on: {
@@ -19072,6 +19598,110 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
19072
19598
  };
19073
19599
  };
19074
19600
  readonly unauthenticated: {
19601
+ readonly entry: readonly [import("xstate").ActionFunction<import("../types/auth.js").AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
19602
+ connectExternalWallet: {
19603
+ src: "connectExternalWallet";
19604
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
19605
+ id: string;
19606
+ };
19607
+ verifyNewAccount: {
19608
+ src: "verifyNewAccount";
19609
+ logic: import("xstate").PromiseActorLogic<{
19610
+ authState: import("@getpara/shared").ServerAuthState;
19611
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
19612
+ }, import("../../index.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
19613
+ id: string;
19614
+ };
19615
+ verifyExternalWallet: {
19616
+ src: "verifyExternalWallet";
19617
+ logic: import("xstate").PromiseActorLogic<{
19618
+ authState: import("@getpara/shared").ServerAuthState;
19619
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
19620
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
19621
+ id: string;
19622
+ };
19623
+ authenticateWithEmailOrPhone: {
19624
+ src: "authenticateWithEmailOrPhone";
19625
+ logic: import("xstate").PromiseActorLogic<{
19626
+ authState: import("@getpara/shared").ServerAuthState;
19627
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
19628
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
19629
+ id: string;
19630
+ };
19631
+ polling: {
19632
+ src: "polling";
19633
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
19634
+ id: string;
19635
+ };
19636
+ checkUserState: {
19637
+ src: "checkUserState";
19638
+ logic: import("xstate").PromiseActorLogic<{
19639
+ isAuthenticated: boolean;
19640
+ isFullyLoggedIn: boolean;
19641
+ isGuestMode: boolean;
19642
+ }, {}, import("xstate").EventObject>;
19643
+ id: string;
19644
+ };
19645
+ authenticateWithExternalWallet: {
19646
+ src: "authenticateWithExternalWallet";
19647
+ logic: import("xstate").PromiseActorLogic<{
19648
+ authState: import("@getpara/shared").ServerAuthState;
19649
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
19650
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
19651
+ id: string;
19652
+ };
19653
+ authenticateWithTelegram: {
19654
+ src: "authenticateWithTelegram";
19655
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
19656
+ id: string;
19657
+ };
19658
+ authenticateWithTelegramLegacy: {
19659
+ src: "authenticateWithTelegramLegacy";
19660
+ logic: import("xstate").PromiseActorLogic<{
19661
+ authState: import("@getpara/shared").ServerAuthState;
19662
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
19663
+ }, import("../../index.js").VerifyTelegramParams, import("xstate").EventObject>;
19664
+ id: string;
19665
+ };
19666
+ authenticateWithFarcaster: {
19667
+ src: "authenticateWithFarcaster";
19668
+ logic: import("xstate").PromiseActorLogic<import("../types/auth.js").AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
19669
+ id: string;
19670
+ };
19671
+ authenticateWithFarcasterLegacy: {
19672
+ src: "authenticateWithFarcasterLegacy";
19673
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformVerifyFarcasterResponse, import("../../index.js").VerifyFarcasterParams, import("xstate").EventObject>;
19674
+ id: string;
19675
+ };
19676
+ processAuthentication: {
19677
+ src: "processAuthentication";
19678
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").AuthState, {
19679
+ authState: import("@getpara/shared").ServerAuthState;
19680
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
19681
+ sessionLookupId?: string;
19682
+ isFromExternalWallet?: boolean;
19683
+ };
19684
+ }, import("xstate").EventObject>;
19685
+ id: string;
19686
+ };
19687
+ signExternalWalletVerification: {
19688
+ src: "signExternalWalletVerification";
19689
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
19690
+ externalWallet: import("@getpara/shared/dist/types/types/wallet.js").ExternalWalletInfo;
19691
+ }, import("xstate").EventObject>;
19692
+ id: string;
19693
+ };
19694
+ switchExternalWallet: {
19695
+ src: "switchExternalWallet";
19696
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
19697
+ id: string;
19698
+ };
19699
+ logoutActor: {
19700
+ src: "logoutActor";
19701
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
19702
+ id: string;
19703
+ };
19704
+ }>, never, never, never, never>];
19075
19705
  readonly on: {
19076
19706
  readonly INITIALIZE_GUEST_MODE: "guest_mode";
19077
19707
  readonly SESSION_IMPORTED: "authenticated";
@@ -19143,7 +19773,7 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
19143
19773
  data: {
19144
19774
  authState: import("@getpara/shared").ServerAuthState;
19145
19775
  sessionLookupId: string;
19146
- portalTheme: import("@getpara/shared/dist/types/types/theme.js").Theme;
19776
+ portalTheme: import("../../types/util.js").PortalTheme;
19147
19777
  useShortUrls: boolean;
19148
19778
  };
19149
19779
  finished: boolean;