@getpara/core-sdk 2.12.0 → 2.13.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.
Files changed (197) hide show
  1. package/dist/cjs/ParaCore.js +793 -2003
  2. package/dist/cjs/constants.js +4 -1
  3. package/dist/cjs/services/AuthService.js +787 -0
  4. package/dist/cjs/services/BaseAuthFlowService.js +78 -0
  5. package/dist/cjs/services/ExternalWalletService.js +386 -0
  6. package/dist/cjs/services/LoginFlowService.js +163 -0
  7. package/dist/cjs/services/PollingService.js +448 -0
  8. package/dist/cjs/services/PortalUrlService.js +379 -0
  9. package/dist/cjs/services/PregenWalletService.js +442 -0
  10. package/dist/cjs/services/SessionManagementService.js +280 -0
  11. package/dist/cjs/services/SignupFlowService.js +185 -0
  12. package/dist/cjs/services/VerificationFlowService.js +242 -0
  13. package/dist/cjs/services/WalletService.js +577 -0
  14. package/dist/cjs/services/types/AuthServiceTypes.js +15 -0
  15. package/dist/cjs/services/types/BaseAuthFlowServiceTypes.js +15 -0
  16. package/dist/cjs/services/types/ExternalWalletServiceTypes.js +15 -0
  17. package/dist/cjs/services/types/LoginFlowServiceTypes.js +15 -0
  18. package/dist/cjs/services/types/PollingServiceTypes.js +15 -0
  19. package/dist/cjs/services/types/PortalUrlServiceTypes.js +15 -0
  20. package/dist/cjs/services/types/PregenWalletServiceTypes.js +15 -0
  21. package/dist/cjs/services/types/SessionManagementServiceTypes.js +15 -0
  22. package/dist/cjs/services/types/SignupFlowServiceTypes.js +15 -0
  23. package/dist/cjs/services/types/VerificationFlowServiceTypes.js +15 -0
  24. package/dist/cjs/services/types/WalletServiceTypes.js +15 -0
  25. package/dist/cjs/services/types/index.js +15 -0
  26. package/dist/cjs/state/CoreStateManager.js +297 -0
  27. package/dist/cjs/state/actors/authenticateWithEmailOrPhone.js +50 -0
  28. package/dist/cjs/state/actors/authenticateWithExternalWallet.js +50 -0
  29. package/dist/cjs/state/actors/authenticateWithFarcaster.js +50 -0
  30. package/dist/cjs/state/actors/authenticateWithFarcasterLegacy.js +50 -0
  31. package/dist/cjs/state/actors/authenticateWithTelegram.js +50 -0
  32. package/dist/cjs/state/actors/authenticateWithTelegramLegacy.js +50 -0
  33. package/dist/cjs/state/actors/checkUserState.js +53 -0
  34. package/dist/cjs/state/actors/claimWallets.js +56 -0
  35. package/dist/cjs/state/actors/connectExternalConnectors.js +54 -0
  36. package/dist/cjs/state/actors/connectExternalWallet.js +50 -0
  37. package/dist/cjs/state/actors/createGuestWallets.js +50 -0
  38. package/dist/cjs/state/actors/createWallets.js +73 -0
  39. package/dist/cjs/state/actors/polling.js +91 -0
  40. package/dist/cjs/state/actors/processAuthentication.js +50 -0
  41. package/dist/cjs/state/actors/setupAfterLogin.js +52 -0
  42. package/dist/cjs/state/actors/setupPara.js +50 -0
  43. package/dist/cjs/state/actors/signExternalWalletVerification.js +79 -0
  44. package/dist/cjs/state/actors/switchExternalWallet.js +50 -0
  45. package/dist/cjs/state/actors/verifyExternalWallet.js +50 -0
  46. package/dist/cjs/state/actors/verifyNewAccount.js +50 -0
  47. package/dist/cjs/state/actors/waitForExternalWalletProviders.js +54 -0
  48. package/dist/cjs/state/machines/authStateMachine.helpers.js +137 -0
  49. package/dist/cjs/state/machines/authStateMachine.js +1084 -0
  50. package/dist/cjs/state/machines/coreStateMachine.js +383 -0
  51. package/dist/cjs/state/machines/walletStateMachine.js +437 -0
  52. package/dist/cjs/state/types/auth.js +15 -0
  53. package/dist/cjs/state/types/core.js +15 -0
  54. package/dist/cjs/state/types/wallet.js +15 -0
  55. package/dist/cjs/types/{auth.js → accountLinking.js} +3 -3
  56. package/dist/cjs/types/authState.js +15 -0
  57. package/dist/cjs/types/coreApi.js +3 -1
  58. package/dist/cjs/types/index.js +2 -2
  59. package/dist/cjs/types/serviceInterfaces.js +15 -0
  60. package/dist/cjs/types/util.js +15 -0
  61. package/dist/cjs/utils/formatting.js +6 -0
  62. package/dist/cjs/utils/retryBackoff.js +30 -0
  63. package/dist/cjs/utils/stateErrorHelpers.js +60 -0
  64. package/dist/cjs/utils/stateListener.js +129 -0
  65. package/dist/esm/ParaCore.js +796 -2031
  66. package/dist/esm/constants.js +3 -1
  67. package/dist/esm/services/AuthService.js +717 -0
  68. package/dist/esm/services/BaseAuthFlowService.js +25 -0
  69. package/dist/esm/services/ExternalWalletService.js +327 -0
  70. package/dist/esm/services/LoginFlowService.js +97 -0
  71. package/dist/esm/services/PollingService.js +389 -0
  72. package/dist/esm/services/PortalUrlService.js +320 -0
  73. package/dist/esm/services/PregenWalletService.js +393 -0
  74. package/dist/esm/services/SessionManagementService.js +236 -0
  75. package/dist/esm/services/SignupFlowService.js +119 -0
  76. package/dist/esm/services/VerificationFlowService.js +178 -0
  77. package/dist/esm/services/WalletService.js +514 -0
  78. package/dist/esm/services/types/AuthServiceTypes.js +0 -0
  79. package/dist/esm/services/types/BaseAuthFlowServiceTypes.js +0 -0
  80. package/dist/esm/services/types/ExternalWalletServiceTypes.js +0 -0
  81. package/dist/esm/services/types/LoginFlowServiceTypes.js +0 -0
  82. package/dist/esm/services/types/PollingServiceTypes.js +0 -0
  83. package/dist/esm/services/types/PortalUrlServiceTypes.js +0 -0
  84. package/dist/esm/services/types/PregenWalletServiceTypes.js +0 -0
  85. package/dist/esm/services/types/SessionManagementServiceTypes.js +0 -0
  86. package/dist/esm/services/types/SignupFlowServiceTypes.js +0 -0
  87. package/dist/esm/services/types/VerificationFlowServiceTypes.js +0 -0
  88. package/dist/esm/services/types/WalletServiceTypes.js +0 -0
  89. package/dist/esm/services/types/index.js +0 -0
  90. package/dist/esm/state/CoreStateManager.js +261 -0
  91. package/dist/esm/state/actors/authenticateWithEmailOrPhone.js +10 -0
  92. package/dist/esm/state/actors/authenticateWithExternalWallet.js +10 -0
  93. package/dist/esm/state/actors/authenticateWithFarcaster.js +10 -0
  94. package/dist/esm/state/actors/authenticateWithFarcasterLegacy.js +10 -0
  95. package/dist/esm/state/actors/authenticateWithTelegram.js +10 -0
  96. package/dist/esm/state/actors/authenticateWithTelegramLegacy.js +10 -0
  97. package/dist/esm/state/actors/checkUserState.js +13 -0
  98. package/dist/esm/state/actors/claimWallets.js +16 -0
  99. package/dist/esm/state/actors/connectExternalConnectors.js +14 -0
  100. package/dist/esm/state/actors/connectExternalWallet.js +10 -0
  101. package/dist/esm/state/actors/createGuestWallets.js +10 -0
  102. package/dist/esm/state/actors/createWallets.js +20 -0
  103. package/dist/esm/state/actors/polling.js +55 -0
  104. package/dist/esm/state/actors/processAuthentication.js +10 -0
  105. package/dist/esm/state/actors/setupAfterLogin.js +12 -0
  106. package/dist/esm/state/actors/setupPara.js +10 -0
  107. package/dist/esm/state/actors/signExternalWalletVerification.js +15 -0
  108. package/dist/esm/state/actors/switchExternalWallet.js +10 -0
  109. package/dist/esm/state/actors/verifyExternalWallet.js +10 -0
  110. package/dist/esm/state/actors/verifyNewAccount.js +10 -0
  111. package/dist/esm/state/actors/waitForExternalWalletProviders.js +14 -0
  112. package/dist/esm/state/machines/authStateMachine.helpers.js +92 -0
  113. package/dist/esm/state/machines/authStateMachine.js +1039 -0
  114. package/dist/esm/state/machines/coreStateMachine.js +343 -0
  115. package/dist/esm/state/machines/walletStateMachine.js +382 -0
  116. package/dist/esm/state/types/auth.js +0 -0
  117. package/dist/esm/state/types/core.js +0 -0
  118. package/dist/esm/state/types/wallet.js +0 -0
  119. package/dist/esm/types/authState.js +0 -0
  120. package/dist/esm/types/coreApi.js +3 -1
  121. package/dist/esm/types/index.js +1 -1
  122. package/dist/esm/types/serviceInterfaces.js +0 -0
  123. package/dist/esm/types/util.js +0 -0
  124. package/dist/esm/utils/formatting.js +6 -0
  125. package/dist/esm/utils/retryBackoff.js +7 -0
  126. package/dist/esm/utils/stateErrorHelpers.js +37 -0
  127. package/dist/esm/utils/stateListener.js +106 -0
  128. package/dist/types/ParaCore.d.ts +190 -119
  129. package/dist/types/PlatformUtils.d.ts +23 -0
  130. package/dist/types/constants.d.ts +1 -0
  131. package/dist/types/index.d.ts +4 -2
  132. package/dist/types/services/AuthService.d.ts +72 -0
  133. package/dist/types/services/BaseAuthFlowService.d.ts +28 -0
  134. package/dist/types/services/ExternalWalletService.d.ts +44 -0
  135. package/dist/types/services/LoginFlowService.d.ts +9 -0
  136. package/dist/types/services/PollingService.d.ts +35 -0
  137. package/dist/types/services/PortalUrlService.d.ts +26 -0
  138. package/dist/types/services/PregenWalletService.d.ts +38 -0
  139. package/dist/types/services/SessionManagementService.d.ts +28 -0
  140. package/dist/types/services/SignupFlowService.d.ts +10 -0
  141. package/dist/types/services/VerificationFlowService.d.ts +17 -0
  142. package/dist/types/services/WalletService.d.ts +54 -0
  143. package/dist/types/services/types/AuthServiceTypes.d.ts +147 -0
  144. package/dist/types/services/types/BaseAuthFlowServiceTypes.d.ts +4 -0
  145. package/dist/types/services/types/ExternalWalletServiceTypes.d.ts +67 -0
  146. package/dist/types/services/types/LoginFlowServiceTypes.d.ts +19 -0
  147. package/dist/types/services/types/PollingServiceTypes.d.ts +82 -0
  148. package/dist/types/services/types/PortalUrlServiceTypes.d.ts +46 -0
  149. package/dist/types/services/types/PregenWalletServiceTypes.d.ts +73 -0
  150. package/dist/types/services/types/SessionManagementServiceTypes.d.ts +27 -0
  151. package/dist/types/services/types/SignupFlowServiceTypes.d.ts +18 -0
  152. package/dist/types/services/types/VerificationFlowServiceTypes.d.ts +90 -0
  153. package/dist/types/services/types/WalletServiceTypes.d.ts +109 -0
  154. package/dist/types/services/types/index.d.ts +11 -0
  155. package/dist/types/state/CoreStateManager.d.ts +36 -0
  156. package/dist/types/state/actors/authenticateWithEmailOrPhone.d.ts +8 -0
  157. package/dist/types/state/actors/authenticateWithExternalWallet.d.ts +8 -0
  158. package/dist/types/state/actors/authenticateWithFarcaster.d.ts +3 -0
  159. package/dist/types/state/actors/authenticateWithFarcasterLegacy.d.ts +3 -0
  160. package/dist/types/state/actors/authenticateWithTelegram.d.ts +3 -0
  161. package/dist/types/state/actors/authenticateWithTelegramLegacy.d.ts +8 -0
  162. package/dist/types/state/actors/checkUserState.d.ts +6 -0
  163. package/dist/types/state/actors/claimWallets.d.ts +8 -0
  164. package/dist/types/state/actors/connectExternalConnectors.d.ts +4 -0
  165. package/dist/types/state/actors/connectExternalWallet.d.ts +3 -0
  166. package/dist/types/state/actors/createGuestWallets.d.ts +3 -0
  167. package/dist/types/state/actors/createWallets.d.ts +10 -0
  168. package/dist/types/state/actors/polling.d.ts +3 -0
  169. package/dist/types/state/actors/processAuthentication.d.ts +10 -0
  170. package/dist/types/state/actors/setupAfterLogin.d.ts +5 -0
  171. package/dist/types/state/actors/setupPara.d.ts +2 -0
  172. package/dist/types/state/actors/signExternalWalletVerification.d.ts +7 -0
  173. package/dist/types/state/actors/switchExternalWallet.d.ts +3 -0
  174. package/dist/types/state/actors/verifyExternalWallet.d.ts +8 -0
  175. package/dist/types/state/actors/verifyNewAccount.d.ts +8 -0
  176. package/dist/types/state/actors/waitForExternalWalletProviders.d.ts +2 -0
  177. package/dist/types/state/machines/authStateMachine.d.ts +2570 -0
  178. package/dist/types/state/machines/authStateMachine.helpers.d.ts +57 -0
  179. package/dist/types/state/machines/coreStateMachine.d.ts +22033 -0
  180. package/dist/types/state/machines/walletStateMachine.d.ts +1049 -0
  181. package/dist/types/state/types/auth.d.ts +113 -0
  182. package/dist/types/state/types/core.d.ts +114 -0
  183. package/dist/types/state/types/wallet.d.ts +76 -0
  184. package/dist/types/types/authState.d.ts +66 -0
  185. package/dist/types/types/config.d.ts +5 -0
  186. package/dist/types/types/coreApi.d.ts +148 -298
  187. package/dist/types/types/index.d.ts +3 -1
  188. package/dist/types/types/methods.d.ts +1 -191
  189. package/dist/types/types/serviceInterfaces.d.ts +125 -0
  190. package/dist/types/types/util.d.ts +43 -0
  191. package/dist/types/types/wallet.d.ts +3 -1
  192. package/dist/types/utils/retryBackoff.d.ts +2 -0
  193. package/dist/types/utils/stateErrorHelpers.d.ts +2 -0
  194. package/dist/types/utils/stateListener.d.ts +47 -0
  195. package/package.json +5 -4
  196. /package/dist/esm/types/{auth.js → accountLinking.js} +0 -0
  197. /package/dist/types/types/{auth.d.ts → accountLinking.d.ts} +0 -0
@@ -0,0 +1,2570 @@
1
+ import { type AuthState } from '../../types/index.js';
2
+ import { StateMachineInterface } from '../../types/serviceInterfaces.js';
3
+ import { ServerAuthState } from '@getpara/user-management-client';
4
+ import type { AuthContext, AuthenticationOutput, AuthEvents, AuthInput } from '../types/auth.js';
5
+ import { BaseVerifyExternalWalletParams } from '../../services/types/VerificationFlowServiceTypes.js';
6
+ export declare function createAuthStateMachine(paraCoreInterface: StateMachineInterface): import("xstate").StateMachine<AuthContext, AuthEvents, {
7
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
8
+ authState: ServerAuthState;
9
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
10
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
11
+ authState: ServerAuthState;
12
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
13
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
14
+ authState: ServerAuthState;
15
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
16
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
17
+ isAuthenticated: boolean;
18
+ isFullyLoggedIn: boolean;
19
+ isGuestMode: boolean;
20
+ }, {}, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
21
+ authState: ServerAuthState;
22
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
23
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
24
+ authState: ServerAuthState;
25
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
26
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<AuthState, {
27
+ authState: ServerAuthState;
28
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
29
+ sessionLookupId?: string;
30
+ isFromExternalWallet?: boolean;
31
+ };
32
+ }, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
33
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
34
+ }, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>>;
35
+ }, import("xstate").Values<{
36
+ connectExternalWallet: {
37
+ src: "connectExternalWallet";
38
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
39
+ id: string;
40
+ };
41
+ verifyNewAccount: {
42
+ src: "verifyNewAccount";
43
+ logic: import("xstate").PromiseActorLogic<{
44
+ authState: ServerAuthState;
45
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
46
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
47
+ id: string;
48
+ };
49
+ verifyExternalWallet: {
50
+ src: "verifyExternalWallet";
51
+ logic: import("xstate").PromiseActorLogic<{
52
+ authState: ServerAuthState;
53
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
54
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
55
+ id: string;
56
+ };
57
+ authenticateWithEmailOrPhone: {
58
+ src: "authenticateWithEmailOrPhone";
59
+ logic: import("xstate").PromiseActorLogic<{
60
+ authState: ServerAuthState;
61
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
62
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
63
+ id: string;
64
+ };
65
+ polling: {
66
+ src: "polling";
67
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
68
+ id: string;
69
+ };
70
+ checkUserState: {
71
+ src: "checkUserState";
72
+ logic: import("xstate").PromiseActorLogic<{
73
+ isAuthenticated: boolean;
74
+ isFullyLoggedIn: boolean;
75
+ isGuestMode: boolean;
76
+ }, {}, import("xstate").EventObject>;
77
+ id: string;
78
+ };
79
+ authenticateWithExternalWallet: {
80
+ src: "authenticateWithExternalWallet";
81
+ logic: import("xstate").PromiseActorLogic<{
82
+ authState: ServerAuthState;
83
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
84
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
85
+ id: string;
86
+ };
87
+ authenticateWithTelegram: {
88
+ src: "authenticateWithTelegram";
89
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
90
+ id: string;
91
+ };
92
+ authenticateWithTelegramLegacy: {
93
+ src: "authenticateWithTelegramLegacy";
94
+ logic: import("xstate").PromiseActorLogic<{
95
+ authState: ServerAuthState;
96
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
97
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
98
+ id: string;
99
+ };
100
+ authenticateWithFarcaster: {
101
+ src: "authenticateWithFarcaster";
102
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
103
+ id: string;
104
+ };
105
+ authenticateWithFarcasterLegacy: {
106
+ src: "authenticateWithFarcasterLegacy";
107
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
108
+ id: string;
109
+ };
110
+ processAuthentication: {
111
+ src: "processAuthentication";
112
+ logic: import("xstate").PromiseActorLogic<AuthState, {
113
+ authState: ServerAuthState;
114
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
115
+ sessionLookupId?: string;
116
+ isFromExternalWallet?: boolean;
117
+ };
118
+ }, import("xstate").EventObject>;
119
+ id: string;
120
+ };
121
+ signExternalWalletVerification: {
122
+ src: "signExternalWalletVerification";
123
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
124
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
125
+ }, import("xstate").EventObject>;
126
+ id: string;
127
+ };
128
+ switchExternalWallet: {
129
+ src: "switchExternalWallet";
130
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
131
+ id: string;
132
+ };
133
+ logoutActor: {
134
+ src: "logoutActor";
135
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
136
+ id: string;
137
+ };
138
+ }>, import("xstate").Values<{
139
+ setPollingCallbacks: {
140
+ type: "setPollingCallbacks";
141
+ params: unknown;
142
+ };
143
+ logTransition: {
144
+ type: "logTransition";
145
+ params: {
146
+ to: string;
147
+ detail?: string;
148
+ };
149
+ };
150
+ fetchPregenWalletsFromOverride: {
151
+ type: "fetchPregenWalletsFromOverride";
152
+ params: {
153
+ authInfo: ServerAuthState["auth"];
154
+ };
155
+ };
156
+ storeAuthStateResult: {
157
+ type: "storeAuthStateResult";
158
+ params: unknown;
159
+ };
160
+ setAutoCreate: {
161
+ type: "setAutoCreate";
162
+ params: unknown;
163
+ };
164
+ setSessionOptions: {
165
+ type: "setSessionOptions";
166
+ params: unknown;
167
+ };
168
+ setIsLegacy: {
169
+ type: "setIsLegacy";
170
+ params: unknown;
171
+ };
172
+ resetState: {
173
+ type: "resetState";
174
+ params: unknown;
175
+ };
176
+ resetError: {
177
+ type: "resetError";
178
+ params: unknown;
179
+ };
180
+ incrementRetryAttempt: {
181
+ type: "incrementRetryAttempt";
182
+ params: {
183
+ type: "externalWalletVerification" | "newAccountVerification";
184
+ };
185
+ };
186
+ resetRetryAttempts: {
187
+ type: "resetRetryAttempts";
188
+ params: unknown;
189
+ };
190
+ }>, import("xstate").Values<{
191
+ isNewUser: {
192
+ type: "isNewUser";
193
+ params: unknown;
194
+ };
195
+ authStageIsVerify: {
196
+ type: "authStageIsVerify";
197
+ params: unknown;
198
+ };
199
+ authStageIsLogin: {
200
+ type: "authStageIsLogin";
201
+ params: unknown;
202
+ };
203
+ authStageIsSignup: {
204
+ type: "authStageIsSignup";
205
+ params: unknown;
206
+ };
207
+ authStageIsDone: {
208
+ type: "authStageIsDone";
209
+ params: unknown;
210
+ };
211
+ canRetryExternalWallet: {
212
+ type: "canRetryExternalWallet";
213
+ params: unknown;
214
+ };
215
+ canRetryNewAccount: {
216
+ type: "canRetryNewAccount";
217
+ params: unknown;
218
+ };
219
+ }>, never, "error" | "checking_state" | "clearing_state" | "unauthenticated" | "authenticating_email_phone" | "authenticating_oauth" | "connecting_external_wallet" | "switching_external_wallet" | "authenticating_external_wallet" | "authenticating_telegram" | "authenticating_telegram_legacy" | "authenticating_farcaster" | "authenticating_farcaster_legacy" | "waiting_for_farcaster" | "processing_authentication" | "awaiting_wallet_signature" | "awaiting_wallet_verification" | "awaiting_account_verification" | "awaiting_session_start" | "verifying_new_account" | "verifying_external_wallet" | "waiting_for_session" | "authenticated" | "guest_mode" | "signing_external_wallet_verification", string, AuthInput, {}, import("xstate").EventObject, import("xstate").MetaObject, {
220
+ readonly id: "auth";
221
+ readonly initial: "checking_state";
222
+ readonly context: ({ input: { coreRef } }: {
223
+ spawn: {
224
+ <TSrc extends "connectExternalWallet" | "verifyNewAccount" | "verifyExternalWallet" | "authenticateWithEmailOrPhone" | "polling" | "checkUserState" | "authenticateWithExternalWallet" | "authenticateWithTelegram" | "authenticateWithTelegramLegacy" | "authenticateWithFarcaster" | "authenticateWithFarcasterLegacy" | "processAuthentication" | "signExternalWalletVerification" | "switchExternalWallet" | "logoutActor">(logic: TSrc, ...[options]: ({
225
+ src: "connectExternalWallet";
226
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
227
+ id: string;
228
+ } extends infer T ? T extends {
229
+ src: "connectExternalWallet";
230
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
231
+ id: string;
232
+ } ? T extends {
233
+ src: TSrc;
234
+ } ? import("xstate").ConditionalRequired<[options?: {
235
+ id?: T["id"];
236
+ systemId?: string;
237
+ input?: import("xstate").InputFrom<T["logic"]>;
238
+ syncSnapshot?: boolean;
239
+ } & { [K in import("xstate").RequiredActorOptions<T>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T>>> : never : never : never) | ({
240
+ src: "verifyNewAccount";
241
+ logic: import("xstate").PromiseActorLogic<{
242
+ authState: ServerAuthState;
243
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
244
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
245
+ id: string;
246
+ } extends infer T_1 ? T_1 extends {
247
+ src: "verifyNewAccount";
248
+ logic: import("xstate").PromiseActorLogic<{
249
+ authState: ServerAuthState;
250
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
251
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
252
+ id: string;
253
+ } ? T_1 extends {
254
+ src: TSrc;
255
+ } ? import("xstate").ConditionalRequired<[options?: {
256
+ id?: T_1["id"];
257
+ systemId?: string;
258
+ input?: import("xstate").InputFrom<T_1["logic"]>;
259
+ syncSnapshot?: boolean;
260
+ } & { [K_1 in import("xstate").RequiredActorOptions<T_1>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_1>>> : never : never : never) | ({
261
+ src: "verifyExternalWallet";
262
+ logic: import("xstate").PromiseActorLogic<{
263
+ authState: ServerAuthState;
264
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
265
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
266
+ id: string;
267
+ } extends infer T_2 ? T_2 extends {
268
+ src: "verifyExternalWallet";
269
+ logic: import("xstate").PromiseActorLogic<{
270
+ authState: ServerAuthState;
271
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
272
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
273
+ id: string;
274
+ } ? T_2 extends {
275
+ src: TSrc;
276
+ } ? import("xstate").ConditionalRequired<[options?: {
277
+ id?: T_2["id"];
278
+ systemId?: string;
279
+ input?: import("xstate").InputFrom<T_2["logic"]>;
280
+ syncSnapshot?: boolean;
281
+ } & { [K_2 in import("xstate").RequiredActorOptions<T_2>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_2>>> : never : never : never) | ({
282
+ src: "authenticateWithEmailOrPhone";
283
+ logic: import("xstate").PromiseActorLogic<{
284
+ authState: ServerAuthState;
285
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
286
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
287
+ id: string;
288
+ } extends infer T_3 ? T_3 extends {
289
+ src: "authenticateWithEmailOrPhone";
290
+ logic: import("xstate").PromiseActorLogic<{
291
+ authState: ServerAuthState;
292
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
293
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
294
+ id: string;
295
+ } ? T_3 extends {
296
+ src: TSrc;
297
+ } ? import("xstate").ConditionalRequired<[options?: {
298
+ id?: T_3["id"];
299
+ systemId?: string;
300
+ input?: import("xstate").InputFrom<T_3["logic"]>;
301
+ syncSnapshot?: boolean;
302
+ } & { [K_3 in import("xstate").RequiredActorOptions<T_3>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_3>>> : never : never : never) | ({
303
+ src: "polling";
304
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
305
+ id: string;
306
+ } extends infer T_4 ? T_4 extends {
307
+ src: "polling";
308
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
309
+ id: string;
310
+ } ? T_4 extends {
311
+ src: TSrc;
312
+ } ? import("xstate").ConditionalRequired<[options?: {
313
+ id?: T_4["id"];
314
+ systemId?: string;
315
+ input?: import("xstate").InputFrom<T_4["logic"]>;
316
+ syncSnapshot?: boolean;
317
+ } & { [K_4 in import("xstate").RequiredActorOptions<T_4>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_4>>> : never : never : never) | ({
318
+ src: "checkUserState";
319
+ logic: import("xstate").PromiseActorLogic<{
320
+ isAuthenticated: boolean;
321
+ isFullyLoggedIn: boolean;
322
+ isGuestMode: boolean;
323
+ }, {}, import("xstate").EventObject>;
324
+ id: string;
325
+ } extends infer T_5 ? T_5 extends {
326
+ src: "checkUserState";
327
+ logic: import("xstate").PromiseActorLogic<{
328
+ isAuthenticated: boolean;
329
+ isFullyLoggedIn: boolean;
330
+ isGuestMode: boolean;
331
+ }, {}, import("xstate").EventObject>;
332
+ id: string;
333
+ } ? T_5 extends {
334
+ src: TSrc;
335
+ } ? import("xstate").ConditionalRequired<[options?: {
336
+ id?: T_5["id"];
337
+ systemId?: string;
338
+ input?: import("xstate").InputFrom<T_5["logic"]>;
339
+ syncSnapshot?: boolean;
340
+ } & { [K_5 in import("xstate").RequiredActorOptions<T_5>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_5>>> : never : never : never) | ({
341
+ src: "authenticateWithExternalWallet";
342
+ logic: import("xstate").PromiseActorLogic<{
343
+ authState: ServerAuthState;
344
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
345
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
346
+ id: string;
347
+ } extends infer T_6 ? T_6 extends {
348
+ src: "authenticateWithExternalWallet";
349
+ logic: import("xstate").PromiseActorLogic<{
350
+ authState: ServerAuthState;
351
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
352
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
353
+ id: string;
354
+ } ? T_6 extends {
355
+ src: TSrc;
356
+ } ? import("xstate").ConditionalRequired<[options?: {
357
+ id?: T_6["id"];
358
+ systemId?: string;
359
+ input?: import("xstate").InputFrom<T_6["logic"]>;
360
+ syncSnapshot?: boolean;
361
+ } & { [K_6 in import("xstate").RequiredActorOptions<T_6>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_6>>> : never : never : never) | ({
362
+ src: "authenticateWithTelegram";
363
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
364
+ id: string;
365
+ } extends infer T_7 ? T_7 extends {
366
+ src: "authenticateWithTelegram";
367
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
368
+ id: string;
369
+ } ? T_7 extends {
370
+ src: TSrc;
371
+ } ? import("xstate").ConditionalRequired<[options?: {
372
+ id?: T_7["id"];
373
+ systemId?: string;
374
+ input?: import("xstate").InputFrom<T_7["logic"]>;
375
+ syncSnapshot?: boolean;
376
+ } & { [K_7 in import("xstate").RequiredActorOptions<T_7>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_7>>> : never : never : never) | ({
377
+ src: "authenticateWithTelegramLegacy";
378
+ logic: import("xstate").PromiseActorLogic<{
379
+ authState: ServerAuthState;
380
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
381
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
382
+ id: string;
383
+ } extends infer T_8 ? T_8 extends {
384
+ src: "authenticateWithTelegramLegacy";
385
+ logic: import("xstate").PromiseActorLogic<{
386
+ authState: ServerAuthState;
387
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
388
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
389
+ id: string;
390
+ } ? T_8 extends {
391
+ src: TSrc;
392
+ } ? import("xstate").ConditionalRequired<[options?: {
393
+ id?: T_8["id"];
394
+ systemId?: string;
395
+ input?: import("xstate").InputFrom<T_8["logic"]>;
396
+ syncSnapshot?: boolean;
397
+ } & { [K_8 in import("xstate").RequiredActorOptions<T_8>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_8>>> : never : never : never) | ({
398
+ src: "authenticateWithFarcaster";
399
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
400
+ id: string;
401
+ } extends infer T_9 ? T_9 extends {
402
+ src: "authenticateWithFarcaster";
403
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
404
+ id: string;
405
+ } ? T_9 extends {
406
+ src: TSrc;
407
+ } ? import("xstate").ConditionalRequired<[options?: {
408
+ id?: T_9["id"];
409
+ systemId?: string;
410
+ input?: import("xstate").InputFrom<T_9["logic"]>;
411
+ syncSnapshot?: boolean;
412
+ } & { [K_9 in import("xstate").RequiredActorOptions<T_9>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_9>>> : never : never : never) | ({
413
+ src: "authenticateWithFarcasterLegacy";
414
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
415
+ id: string;
416
+ } extends infer T_10 ? T_10 extends {
417
+ src: "authenticateWithFarcasterLegacy";
418
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
419
+ id: string;
420
+ } ? T_10 extends {
421
+ src: TSrc;
422
+ } ? import("xstate").ConditionalRequired<[options?: {
423
+ id?: T_10["id"];
424
+ systemId?: string;
425
+ input?: import("xstate").InputFrom<T_10["logic"]>;
426
+ syncSnapshot?: boolean;
427
+ } & { [K_10 in import("xstate").RequiredActorOptions<T_10>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_10>>> : never : never : never) | ({
428
+ src: "processAuthentication";
429
+ logic: import("xstate").PromiseActorLogic<AuthState, {
430
+ authState: ServerAuthState;
431
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
432
+ sessionLookupId?: string;
433
+ isFromExternalWallet?: boolean;
434
+ };
435
+ }, import("xstate").EventObject>;
436
+ id: string;
437
+ } extends infer T_11 ? T_11 extends {
438
+ src: "processAuthentication";
439
+ logic: import("xstate").PromiseActorLogic<AuthState, {
440
+ authState: ServerAuthState;
441
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
442
+ sessionLookupId?: string;
443
+ isFromExternalWallet?: boolean;
444
+ };
445
+ }, import("xstate").EventObject>;
446
+ id: string;
447
+ } ? T_11 extends {
448
+ src: TSrc;
449
+ } ? import("xstate").ConditionalRequired<[options?: {
450
+ id?: T_11["id"];
451
+ systemId?: string;
452
+ input?: import("xstate").InputFrom<T_11["logic"]>;
453
+ syncSnapshot?: boolean;
454
+ } & { [K_11 in import("xstate").RequiredActorOptions<T_11>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_11>>> : never : never : never) | ({
455
+ src: "signExternalWalletVerification";
456
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
457
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
458
+ }, import("xstate").EventObject>;
459
+ id: string;
460
+ } extends infer T_12 ? T_12 extends {
461
+ src: "signExternalWalletVerification";
462
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
463
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
464
+ }, import("xstate").EventObject>;
465
+ id: string;
466
+ } ? T_12 extends {
467
+ src: TSrc;
468
+ } ? import("xstate").ConditionalRequired<[options?: {
469
+ id?: T_12["id"];
470
+ systemId?: string;
471
+ input?: import("xstate").InputFrom<T_12["logic"]>;
472
+ syncSnapshot?: boolean;
473
+ } & { [K_12 in import("xstate").RequiredActorOptions<T_12>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_12>>> : never : never : never) | ({
474
+ src: "switchExternalWallet";
475
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
476
+ id: string;
477
+ } extends infer T_13 ? T_13 extends {
478
+ src: "switchExternalWallet";
479
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
480
+ id: string;
481
+ } ? T_13 extends {
482
+ src: TSrc;
483
+ } ? import("xstate").ConditionalRequired<[options?: {
484
+ id?: T_13["id"];
485
+ systemId?: string;
486
+ input?: import("xstate").InputFrom<T_13["logic"]>;
487
+ syncSnapshot?: boolean;
488
+ } & { [K_13 in import("xstate").RequiredActorOptions<T_13>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_13>>> : never : never : never) | ({
489
+ src: "logoutActor";
490
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
491
+ id: string;
492
+ } extends infer T_14 ? T_14 extends {
493
+ src: "logoutActor";
494
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
495
+ id: string;
496
+ } ? T_14 extends {
497
+ src: TSrc;
498
+ } ? import("xstate").ConditionalRequired<[options?: {
499
+ id?: T_14["id"];
500
+ systemId?: string;
501
+ input?: import("xstate").InputFrom<T_14["logic"]>;
502
+ syncSnapshot?: boolean;
503
+ } & { [K_14 in import("xstate").RequiredActorOptions<T_14>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_14>>> : never : never : never)): import("xstate").ActorRefFromLogic<import("xstate").GetConcreteByKey<import("xstate").Values<{
504
+ connectExternalWallet: {
505
+ src: "connectExternalWallet";
506
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
507
+ id: string;
508
+ };
509
+ verifyNewAccount: {
510
+ src: "verifyNewAccount";
511
+ logic: import("xstate").PromiseActorLogic<{
512
+ authState: ServerAuthState;
513
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
514
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
515
+ id: string;
516
+ };
517
+ verifyExternalWallet: {
518
+ src: "verifyExternalWallet";
519
+ logic: import("xstate").PromiseActorLogic<{
520
+ authState: ServerAuthState;
521
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
522
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
523
+ id: string;
524
+ };
525
+ authenticateWithEmailOrPhone: {
526
+ src: "authenticateWithEmailOrPhone";
527
+ logic: import("xstate").PromiseActorLogic<{
528
+ authState: ServerAuthState;
529
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
530
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
531
+ id: string;
532
+ };
533
+ polling: {
534
+ src: "polling";
535
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
536
+ id: string;
537
+ };
538
+ checkUserState: {
539
+ src: "checkUserState";
540
+ logic: import("xstate").PromiseActorLogic<{
541
+ isAuthenticated: boolean;
542
+ isFullyLoggedIn: boolean;
543
+ isGuestMode: boolean;
544
+ }, {}, import("xstate").EventObject>;
545
+ id: string;
546
+ };
547
+ authenticateWithExternalWallet: {
548
+ src: "authenticateWithExternalWallet";
549
+ logic: import("xstate").PromiseActorLogic<{
550
+ authState: ServerAuthState;
551
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
552
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
553
+ id: string;
554
+ };
555
+ authenticateWithTelegram: {
556
+ src: "authenticateWithTelegram";
557
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
558
+ id: string;
559
+ };
560
+ authenticateWithTelegramLegacy: {
561
+ src: "authenticateWithTelegramLegacy";
562
+ logic: import("xstate").PromiseActorLogic<{
563
+ authState: ServerAuthState;
564
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
565
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
566
+ id: string;
567
+ };
568
+ authenticateWithFarcaster: {
569
+ src: "authenticateWithFarcaster";
570
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
571
+ id: string;
572
+ };
573
+ authenticateWithFarcasterLegacy: {
574
+ src: "authenticateWithFarcasterLegacy";
575
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
576
+ id: string;
577
+ };
578
+ processAuthentication: {
579
+ src: "processAuthentication";
580
+ logic: import("xstate").PromiseActorLogic<AuthState, {
581
+ authState: ServerAuthState;
582
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
583
+ sessionLookupId?: string;
584
+ isFromExternalWallet?: boolean;
585
+ };
586
+ }, import("xstate").EventObject>;
587
+ id: string;
588
+ };
589
+ signExternalWalletVerification: {
590
+ src: "signExternalWalletVerification";
591
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
592
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
593
+ }, import("xstate").EventObject>;
594
+ id: string;
595
+ };
596
+ switchExternalWallet: {
597
+ src: "switchExternalWallet";
598
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
599
+ id: string;
600
+ };
601
+ logoutActor: {
602
+ src: "logoutActor";
603
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
604
+ id: string;
605
+ };
606
+ }>, "src", TSrc>["logic"]>;
607
+ <TLogic extends import("xstate").AnyActorLogic>(src: TLogic, ...[options]: import("xstate").ConditionalRequired<[options?: {
608
+ id?: never;
609
+ systemId?: string;
610
+ input?: import("xstate").InputFrom<TLogic>;
611
+ syncSnapshot?: boolean;
612
+ } & { [K in import("xstate").RequiredLogicInput<TLogic>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredLogicInput<TLogic>>>): import("xstate").ActorRefFromLogic<TLogic>;
613
+ };
614
+ input: AuthInput;
615
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
616
+ }) => {
617
+ coreRef: import("../types/core.js").CoreActor;
618
+ authStateResult: any;
619
+ serverAuthStateResult: any;
620
+ isNewUser: false;
621
+ error: any;
622
+ pollingCallbacks: any;
623
+ shouldAutoCreateWallets: false;
624
+ skipSessionRefreshOnSetup: false;
625
+ isLegacy: false;
626
+ retryAttempts: {};
627
+ };
628
+ readonly states: {
629
+ readonly checking_state: {
630
+ readonly invoke: {
631
+ readonly src: "checkUserState";
632
+ readonly onDone: readonly [{
633
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").DoneActorEvent<{
634
+ isAuthenticated: boolean;
635
+ isFullyLoggedIn: boolean;
636
+ isGuestMode: boolean;
637
+ }, string>>) => boolean;
638
+ readonly target: "guest_mode";
639
+ }, {
640
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").DoneActorEvent<{
641
+ isAuthenticated: boolean;
642
+ isFullyLoggedIn: boolean;
643
+ isGuestMode: boolean;
644
+ }, string>>) => boolean;
645
+ readonly target: "authenticated";
646
+ }, {
647
+ readonly target: "clearing_state";
648
+ }];
649
+ readonly onError: {
650
+ readonly target: "error";
651
+ readonly actions: any;
652
+ };
653
+ };
654
+ };
655
+ readonly clearing_state: {
656
+ readonly invoke: {
657
+ readonly src: "logoutActor";
658
+ readonly onDone: "unauthenticated";
659
+ readonly onError: "unauthenticated";
660
+ };
661
+ };
662
+ readonly unauthenticated: {
663
+ readonly on: {
664
+ readonly INITIALIZE_GUEST_MODE: "guest_mode";
665
+ readonly SESSION_IMPORTED: "authenticated";
666
+ readonly AUTHENTICATE_EMAIL_PHONE: "authenticating_email_phone";
667
+ readonly AUTHENTICATE_OAUTH: "authenticating_oauth";
668
+ readonly AUTHENTICATE_EXTERNAL_WALLET: "authenticating_external_wallet";
669
+ readonly CONNECT_EXTERNAL_WALLET: "connecting_external_wallet";
670
+ readonly AUTHENTICATE_TELEGRAM: "authenticating_telegram";
671
+ readonly AUTHENTICATE_FARCASTER: "authenticating_farcaster";
672
+ readonly AUTHENTICATE_FARCASTER_LEGACY: "authenticating_farcaster_legacy";
673
+ readonly AUTHENTICATE_TELEGRAM_LEGACY: "authenticating_telegram_legacy";
674
+ };
675
+ };
676
+ readonly guest_mode: {
677
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, never, never, never, never, never>];
678
+ readonly on: {
679
+ readonly AUTHENTICATE_EMAIL_PHONE: "authenticating_email_phone";
680
+ readonly AUTHENTICATE_OAUTH: "authenticating_oauth";
681
+ };
682
+ };
683
+ readonly authenticating_email_phone: {
684
+ readonly entry: readonly ["setIsLegacy"];
685
+ readonly invoke: {
686
+ readonly src: "authenticateWithEmailOrPhone";
687
+ readonly input: ({ event }: {
688
+ context: AuthContext;
689
+ event: AuthEvents;
690
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
691
+ }) => import("../../index.js").PerformSignUpOrLogInParams & {
692
+ isLegacy: boolean;
693
+ };
694
+ readonly onDone: readonly [{
695
+ readonly target: "processing_authentication";
696
+ readonly actions: readonly [any, {
697
+ readonly type: "fetchPregenWalletsFromOverride";
698
+ readonly params: ({ event }: {
699
+ context: AuthContext;
700
+ event: import("xstate").DoneActorEvent<{
701
+ authState: ServerAuthState;
702
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
703
+ }, string>;
704
+ }) => {
705
+ authInfo: import("@getpara/user-management-client").PrimaryAuth;
706
+ };
707
+ }];
708
+ }];
709
+ readonly onError: {
710
+ readonly target: "error";
711
+ readonly actions: any;
712
+ };
713
+ };
714
+ readonly on: {
715
+ readonly CANCEL: {
716
+ readonly target: "unauthenticated";
717
+ readonly actions: readonly ["resetState"];
718
+ };
719
+ };
720
+ };
721
+ readonly authenticating_oauth: {
722
+ readonly invoke: {
723
+ readonly src: "polling";
724
+ readonly input: ({ event }: {
725
+ context: AuthContext;
726
+ event: AuthEvents;
727
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
728
+ }) => {
729
+ init: () => Promise<void>;
730
+ checkCondition: () => Promise<{
731
+ data: {
732
+ authState: ServerAuthState;
733
+ sessionLookupId: string;
734
+ portalTheme: import("@getpara/user-management-client").Theme;
735
+ useShortUrls: boolean;
736
+ };
737
+ finished: boolean;
738
+ }>;
739
+ onPoll: () => void;
740
+ onCancel: () => void;
741
+ isCanceled: () => boolean;
742
+ id: string;
743
+ };
744
+ readonly onError: {
745
+ readonly target: "error";
746
+ readonly actions: any;
747
+ };
748
+ };
749
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
750
+ connectExternalWallet: {
751
+ src: "connectExternalWallet";
752
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
753
+ id: string;
754
+ };
755
+ verifyNewAccount: {
756
+ src: "verifyNewAccount";
757
+ logic: import("xstate").PromiseActorLogic<{
758
+ authState: ServerAuthState;
759
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
760
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
761
+ id: string;
762
+ };
763
+ verifyExternalWallet: {
764
+ src: "verifyExternalWallet";
765
+ logic: import("xstate").PromiseActorLogic<{
766
+ authState: ServerAuthState;
767
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
768
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
769
+ id: string;
770
+ };
771
+ authenticateWithEmailOrPhone: {
772
+ src: "authenticateWithEmailOrPhone";
773
+ logic: import("xstate").PromiseActorLogic<{
774
+ authState: ServerAuthState;
775
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
776
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
777
+ id: string;
778
+ };
779
+ polling: {
780
+ src: "polling";
781
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
782
+ id: string;
783
+ };
784
+ checkUserState: {
785
+ src: "checkUserState";
786
+ logic: import("xstate").PromiseActorLogic<{
787
+ isAuthenticated: boolean;
788
+ isFullyLoggedIn: boolean;
789
+ isGuestMode: boolean;
790
+ }, {}, import("xstate").EventObject>;
791
+ id: string;
792
+ };
793
+ authenticateWithExternalWallet: {
794
+ src: "authenticateWithExternalWallet";
795
+ logic: import("xstate").PromiseActorLogic<{
796
+ authState: ServerAuthState;
797
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
798
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
799
+ id: string;
800
+ };
801
+ authenticateWithTelegram: {
802
+ src: "authenticateWithTelegram";
803
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
804
+ id: string;
805
+ };
806
+ authenticateWithTelegramLegacy: {
807
+ src: "authenticateWithTelegramLegacy";
808
+ logic: import("xstate").PromiseActorLogic<{
809
+ authState: ServerAuthState;
810
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
811
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
812
+ id: string;
813
+ };
814
+ authenticateWithFarcaster: {
815
+ src: "authenticateWithFarcaster";
816
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
817
+ id: string;
818
+ };
819
+ authenticateWithFarcasterLegacy: {
820
+ src: "authenticateWithFarcasterLegacy";
821
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
822
+ id: string;
823
+ };
824
+ processAuthentication: {
825
+ src: "processAuthentication";
826
+ logic: import("xstate").PromiseActorLogic<AuthState, {
827
+ authState: ServerAuthState;
828
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
829
+ sessionLookupId?: string;
830
+ isFromExternalWallet?: boolean;
831
+ };
832
+ }, import("xstate").EventObject>;
833
+ id: string;
834
+ };
835
+ signExternalWalletVerification: {
836
+ src: "signExternalWalletVerification";
837
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
838
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
839
+ }, import("xstate").EventObject>;
840
+ id: string;
841
+ };
842
+ switchExternalWallet: {
843
+ src: "switchExternalWallet";
844
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
845
+ id: string;
846
+ };
847
+ logoutActor: {
848
+ src: "logoutActor";
849
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
850
+ id: string;
851
+ };
852
+ }>, never, never, never, never>, "setIsLegacy"];
853
+ readonly on: any;
854
+ };
855
+ readonly switching_external_wallet: {
856
+ readonly invoke: {
857
+ readonly src: "switchExternalWallet";
858
+ readonly input: ({ event }: {
859
+ context: AuthContext;
860
+ event: AuthEvents;
861
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
862
+ }) => import("../../index.js").WatchWalletChangeCallbackParams;
863
+ readonly onDone: readonly [{
864
+ readonly target: "authenticated";
865
+ readonly actions: readonly [import("xstate").ActionFunction<AuthContext, import("xstate").DoneActorEvent<import("../../index.js").PerformSwitchExternalWalletResponse, string>, AuthEvents, undefined, import("xstate").Values<{
866
+ connectExternalWallet: {
867
+ src: "connectExternalWallet";
868
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
869
+ id: string;
870
+ };
871
+ verifyNewAccount: {
872
+ src: "verifyNewAccount";
873
+ logic: import("xstate").PromiseActorLogic<{
874
+ authState: ServerAuthState;
875
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
876
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
877
+ id: string;
878
+ };
879
+ verifyExternalWallet: {
880
+ src: "verifyExternalWallet";
881
+ logic: import("xstate").PromiseActorLogic<{
882
+ authState: ServerAuthState;
883
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
884
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
885
+ id: string;
886
+ };
887
+ authenticateWithEmailOrPhone: {
888
+ src: "authenticateWithEmailOrPhone";
889
+ logic: import("xstate").PromiseActorLogic<{
890
+ authState: ServerAuthState;
891
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
892
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
893
+ id: string;
894
+ };
895
+ polling: {
896
+ src: "polling";
897
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
898
+ id: string;
899
+ };
900
+ checkUserState: {
901
+ src: "checkUserState";
902
+ logic: import("xstate").PromiseActorLogic<{
903
+ isAuthenticated: boolean;
904
+ isFullyLoggedIn: boolean;
905
+ isGuestMode: boolean;
906
+ }, {}, import("xstate").EventObject>;
907
+ id: string;
908
+ };
909
+ authenticateWithExternalWallet: {
910
+ src: "authenticateWithExternalWallet";
911
+ logic: import("xstate").PromiseActorLogic<{
912
+ authState: ServerAuthState;
913
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
914
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
915
+ id: string;
916
+ };
917
+ authenticateWithTelegram: {
918
+ src: "authenticateWithTelegram";
919
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
920
+ id: string;
921
+ };
922
+ authenticateWithTelegramLegacy: {
923
+ src: "authenticateWithTelegramLegacy";
924
+ logic: import("xstate").PromiseActorLogic<{
925
+ authState: ServerAuthState;
926
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
927
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
928
+ id: string;
929
+ };
930
+ authenticateWithFarcaster: {
931
+ src: "authenticateWithFarcaster";
932
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
933
+ id: string;
934
+ };
935
+ authenticateWithFarcasterLegacy: {
936
+ src: "authenticateWithFarcasterLegacy";
937
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
938
+ id: string;
939
+ };
940
+ processAuthentication: {
941
+ src: "processAuthentication";
942
+ logic: import("xstate").PromiseActorLogic<AuthState, {
943
+ authState: ServerAuthState;
944
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
945
+ sessionLookupId?: string;
946
+ isFromExternalWallet?: boolean;
947
+ };
948
+ }, import("xstate").EventObject>;
949
+ id: string;
950
+ };
951
+ signExternalWalletVerification: {
952
+ src: "signExternalWalletVerification";
953
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
954
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
955
+ }, import("xstate").EventObject>;
956
+ id: string;
957
+ };
958
+ switchExternalWallet: {
959
+ src: "switchExternalWallet";
960
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
961
+ id: string;
962
+ };
963
+ logoutActor: {
964
+ src: "logoutActor";
965
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
966
+ id: string;
967
+ };
968
+ }>, never, never, never, never>];
969
+ }];
970
+ readonly onError: {
971
+ readonly target: "error";
972
+ readonly actions: any;
973
+ };
974
+ };
975
+ readonly on: {
976
+ readonly CANCEL: {
977
+ readonly target: "unauthenticated";
978
+ readonly actions: readonly ["resetState"];
979
+ };
980
+ };
981
+ };
982
+ readonly connecting_external_wallet: {
983
+ readonly invoke: {
984
+ readonly src: "connectExternalWallet";
985
+ readonly input: ({ event }: {
986
+ context: AuthContext;
987
+ event: AuthEvents;
988
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
989
+ }) => import("../../index.js").ConnectExternalWalletParams;
990
+ readonly onDone: readonly [{
991
+ readonly target: "authenticating_external_wallet";
992
+ readonly actions: readonly [import("xstate").ActionFunction<AuthContext, import("xstate").DoneActorEvent<import("../../index.js").PerformConnectExternalWalletResponse, string>, AuthEvents, undefined, import("xstate").Values<{
993
+ connectExternalWallet: {
994
+ src: "connectExternalWallet";
995
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
996
+ id: string;
997
+ };
998
+ verifyNewAccount: {
999
+ src: "verifyNewAccount";
1000
+ logic: import("xstate").PromiseActorLogic<{
1001
+ authState: ServerAuthState;
1002
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1003
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1004
+ id: string;
1005
+ };
1006
+ verifyExternalWallet: {
1007
+ src: "verifyExternalWallet";
1008
+ logic: import("xstate").PromiseActorLogic<{
1009
+ authState: ServerAuthState;
1010
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1011
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1012
+ id: string;
1013
+ };
1014
+ authenticateWithEmailOrPhone: {
1015
+ src: "authenticateWithEmailOrPhone";
1016
+ logic: import("xstate").PromiseActorLogic<{
1017
+ authState: ServerAuthState;
1018
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1019
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1020
+ id: string;
1021
+ };
1022
+ polling: {
1023
+ src: "polling";
1024
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1025
+ id: string;
1026
+ };
1027
+ checkUserState: {
1028
+ src: "checkUserState";
1029
+ logic: import("xstate").PromiseActorLogic<{
1030
+ isAuthenticated: boolean;
1031
+ isFullyLoggedIn: boolean;
1032
+ isGuestMode: boolean;
1033
+ }, {}, import("xstate").EventObject>;
1034
+ id: string;
1035
+ };
1036
+ authenticateWithExternalWallet: {
1037
+ src: "authenticateWithExternalWallet";
1038
+ logic: import("xstate").PromiseActorLogic<{
1039
+ authState: ServerAuthState;
1040
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1041
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1042
+ id: string;
1043
+ };
1044
+ authenticateWithTelegram: {
1045
+ src: "authenticateWithTelegram";
1046
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1047
+ id: string;
1048
+ };
1049
+ authenticateWithTelegramLegacy: {
1050
+ src: "authenticateWithTelegramLegacy";
1051
+ logic: import("xstate").PromiseActorLogic<{
1052
+ authState: ServerAuthState;
1053
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1054
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1055
+ id: string;
1056
+ };
1057
+ authenticateWithFarcaster: {
1058
+ src: "authenticateWithFarcaster";
1059
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1060
+ id: string;
1061
+ };
1062
+ authenticateWithFarcasterLegacy: {
1063
+ src: "authenticateWithFarcasterLegacy";
1064
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1065
+ id: string;
1066
+ };
1067
+ processAuthentication: {
1068
+ src: "processAuthentication";
1069
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1070
+ authState: ServerAuthState;
1071
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1072
+ sessionLookupId?: string;
1073
+ isFromExternalWallet?: boolean;
1074
+ };
1075
+ }, import("xstate").EventObject>;
1076
+ id: string;
1077
+ };
1078
+ signExternalWalletVerification: {
1079
+ src: "signExternalWalletVerification";
1080
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1081
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1082
+ }, import("xstate").EventObject>;
1083
+ id: string;
1084
+ };
1085
+ switchExternalWallet: {
1086
+ src: "switchExternalWallet";
1087
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1088
+ id: string;
1089
+ };
1090
+ logoutActor: {
1091
+ src: "logoutActor";
1092
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1093
+ id: string;
1094
+ };
1095
+ }>, never, never, never, never>];
1096
+ }];
1097
+ readonly onError: {
1098
+ readonly target: "error";
1099
+ readonly actions: any;
1100
+ };
1101
+ };
1102
+ readonly on: {
1103
+ readonly CANCEL: {
1104
+ readonly target: "unauthenticated";
1105
+ readonly actions: readonly ["resetState"];
1106
+ };
1107
+ };
1108
+ };
1109
+ readonly authenticating_external_wallet: {
1110
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
1111
+ connectExternalWallet: {
1112
+ src: "connectExternalWallet";
1113
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
1114
+ id: string;
1115
+ };
1116
+ verifyNewAccount: {
1117
+ src: "verifyNewAccount";
1118
+ logic: import("xstate").PromiseActorLogic<{
1119
+ authState: ServerAuthState;
1120
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1121
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1122
+ id: string;
1123
+ };
1124
+ verifyExternalWallet: {
1125
+ src: "verifyExternalWallet";
1126
+ logic: import("xstate").PromiseActorLogic<{
1127
+ authState: ServerAuthState;
1128
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1129
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1130
+ id: string;
1131
+ };
1132
+ authenticateWithEmailOrPhone: {
1133
+ src: "authenticateWithEmailOrPhone";
1134
+ logic: import("xstate").PromiseActorLogic<{
1135
+ authState: ServerAuthState;
1136
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1137
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1138
+ id: string;
1139
+ };
1140
+ polling: {
1141
+ src: "polling";
1142
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1143
+ id: string;
1144
+ };
1145
+ checkUserState: {
1146
+ src: "checkUserState";
1147
+ logic: import("xstate").PromiseActorLogic<{
1148
+ isAuthenticated: boolean;
1149
+ isFullyLoggedIn: boolean;
1150
+ isGuestMode: boolean;
1151
+ }, {}, import("xstate").EventObject>;
1152
+ id: string;
1153
+ };
1154
+ authenticateWithExternalWallet: {
1155
+ src: "authenticateWithExternalWallet";
1156
+ logic: import("xstate").PromiseActorLogic<{
1157
+ authState: ServerAuthState;
1158
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1159
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1160
+ id: string;
1161
+ };
1162
+ authenticateWithTelegram: {
1163
+ src: "authenticateWithTelegram";
1164
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1165
+ id: string;
1166
+ };
1167
+ authenticateWithTelegramLegacy: {
1168
+ src: "authenticateWithTelegramLegacy";
1169
+ logic: import("xstate").PromiseActorLogic<{
1170
+ authState: ServerAuthState;
1171
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1172
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1173
+ id: string;
1174
+ };
1175
+ authenticateWithFarcaster: {
1176
+ src: "authenticateWithFarcaster";
1177
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1178
+ id: string;
1179
+ };
1180
+ authenticateWithFarcasterLegacy: {
1181
+ src: "authenticateWithFarcasterLegacy";
1182
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1183
+ id: string;
1184
+ };
1185
+ processAuthentication: {
1186
+ src: "processAuthentication";
1187
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1188
+ authState: ServerAuthState;
1189
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1190
+ sessionLookupId?: string;
1191
+ isFromExternalWallet?: boolean;
1192
+ };
1193
+ }, import("xstate").EventObject>;
1194
+ id: string;
1195
+ };
1196
+ signExternalWalletVerification: {
1197
+ src: "signExternalWalletVerification";
1198
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1199
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1200
+ }, import("xstate").EventObject>;
1201
+ id: string;
1202
+ };
1203
+ switchExternalWallet: {
1204
+ src: "switchExternalWallet";
1205
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1206
+ id: string;
1207
+ };
1208
+ logoutActor: {
1209
+ src: "logoutActor";
1210
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1211
+ id: string;
1212
+ };
1213
+ }>, never, never, never, never>];
1214
+ readonly invoke: {
1215
+ readonly src: "authenticateWithExternalWallet";
1216
+ readonly input: ({ event, context }: {
1217
+ context: AuthContext;
1218
+ event: AuthEvents;
1219
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1220
+ }) => import("../../index.js").PerformConnectExternalWalletResponse | import("../../index.js").LoginExternalWalletParams;
1221
+ readonly onDone: readonly [{
1222
+ readonly target: "processing_authentication";
1223
+ readonly actions: readonly [any];
1224
+ }];
1225
+ readonly onError: {
1226
+ readonly target: "error";
1227
+ readonly actions: any;
1228
+ };
1229
+ };
1230
+ readonly on: {
1231
+ readonly CANCEL: {
1232
+ readonly target: "unauthenticated";
1233
+ readonly actions: readonly ["resetState"];
1234
+ };
1235
+ };
1236
+ };
1237
+ readonly authenticating_telegram_legacy: {
1238
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
1239
+ connectExternalWallet: {
1240
+ src: "connectExternalWallet";
1241
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
1242
+ id: string;
1243
+ };
1244
+ verifyNewAccount: {
1245
+ src: "verifyNewAccount";
1246
+ logic: import("xstate").PromiseActorLogic<{
1247
+ authState: ServerAuthState;
1248
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1249
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1250
+ id: string;
1251
+ };
1252
+ verifyExternalWallet: {
1253
+ src: "verifyExternalWallet";
1254
+ logic: import("xstate").PromiseActorLogic<{
1255
+ authState: ServerAuthState;
1256
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1257
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1258
+ id: string;
1259
+ };
1260
+ authenticateWithEmailOrPhone: {
1261
+ src: "authenticateWithEmailOrPhone";
1262
+ logic: import("xstate").PromiseActorLogic<{
1263
+ authState: ServerAuthState;
1264
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1265
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1266
+ id: string;
1267
+ };
1268
+ polling: {
1269
+ src: "polling";
1270
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1271
+ id: string;
1272
+ };
1273
+ checkUserState: {
1274
+ src: "checkUserState";
1275
+ logic: import("xstate").PromiseActorLogic<{
1276
+ isAuthenticated: boolean;
1277
+ isFullyLoggedIn: boolean;
1278
+ isGuestMode: boolean;
1279
+ }, {}, import("xstate").EventObject>;
1280
+ id: string;
1281
+ };
1282
+ authenticateWithExternalWallet: {
1283
+ src: "authenticateWithExternalWallet";
1284
+ logic: import("xstate").PromiseActorLogic<{
1285
+ authState: ServerAuthState;
1286
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1287
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1288
+ id: string;
1289
+ };
1290
+ authenticateWithTelegram: {
1291
+ src: "authenticateWithTelegram";
1292
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1293
+ id: string;
1294
+ };
1295
+ authenticateWithTelegramLegacy: {
1296
+ src: "authenticateWithTelegramLegacy";
1297
+ logic: import("xstate").PromiseActorLogic<{
1298
+ authState: ServerAuthState;
1299
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1300
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1301
+ id: string;
1302
+ };
1303
+ authenticateWithFarcaster: {
1304
+ src: "authenticateWithFarcaster";
1305
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1306
+ id: string;
1307
+ };
1308
+ authenticateWithFarcasterLegacy: {
1309
+ src: "authenticateWithFarcasterLegacy";
1310
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1311
+ id: string;
1312
+ };
1313
+ processAuthentication: {
1314
+ src: "processAuthentication";
1315
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1316
+ authState: ServerAuthState;
1317
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1318
+ sessionLookupId?: string;
1319
+ isFromExternalWallet?: boolean;
1320
+ };
1321
+ }, import("xstate").EventObject>;
1322
+ id: string;
1323
+ };
1324
+ signExternalWalletVerification: {
1325
+ src: "signExternalWalletVerification";
1326
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1327
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1328
+ }, import("xstate").EventObject>;
1329
+ id: string;
1330
+ };
1331
+ switchExternalWallet: {
1332
+ src: "switchExternalWallet";
1333
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1334
+ id: string;
1335
+ };
1336
+ logoutActor: {
1337
+ src: "logoutActor";
1338
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1339
+ id: string;
1340
+ };
1341
+ }>, never, never, never, never>];
1342
+ readonly invoke: {
1343
+ readonly src: "authenticateWithTelegramLegacy";
1344
+ readonly input: ({ event }: {
1345
+ context: AuthContext;
1346
+ event: AuthEvents;
1347
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1348
+ }) => import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams;
1349
+ readonly onDone: readonly [{
1350
+ readonly target: "processing_authentication";
1351
+ readonly actions: readonly [any];
1352
+ }];
1353
+ readonly onError: readonly [{
1354
+ readonly target: "unauthenticated";
1355
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").ErrorActorEvent<unknown, string>>) => boolean;
1356
+ readonly actions: readonly ["resetState"];
1357
+ }, {
1358
+ readonly target: "error";
1359
+ readonly actions: any;
1360
+ }];
1361
+ };
1362
+ };
1363
+ readonly authenticating_telegram: {
1364
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
1365
+ connectExternalWallet: {
1366
+ src: "connectExternalWallet";
1367
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
1368
+ id: string;
1369
+ };
1370
+ verifyNewAccount: {
1371
+ src: "verifyNewAccount";
1372
+ logic: import("xstate").PromiseActorLogic<{
1373
+ authState: ServerAuthState;
1374
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1375
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1376
+ id: string;
1377
+ };
1378
+ verifyExternalWallet: {
1379
+ src: "verifyExternalWallet";
1380
+ logic: import("xstate").PromiseActorLogic<{
1381
+ authState: ServerAuthState;
1382
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1383
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1384
+ id: string;
1385
+ };
1386
+ authenticateWithEmailOrPhone: {
1387
+ src: "authenticateWithEmailOrPhone";
1388
+ logic: import("xstate").PromiseActorLogic<{
1389
+ authState: ServerAuthState;
1390
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1391
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1392
+ id: string;
1393
+ };
1394
+ polling: {
1395
+ src: "polling";
1396
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1397
+ id: string;
1398
+ };
1399
+ checkUserState: {
1400
+ src: "checkUserState";
1401
+ logic: import("xstate").PromiseActorLogic<{
1402
+ isAuthenticated: boolean;
1403
+ isFullyLoggedIn: boolean;
1404
+ isGuestMode: boolean;
1405
+ }, {}, import("xstate").EventObject>;
1406
+ id: string;
1407
+ };
1408
+ authenticateWithExternalWallet: {
1409
+ src: "authenticateWithExternalWallet";
1410
+ logic: import("xstate").PromiseActorLogic<{
1411
+ authState: ServerAuthState;
1412
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1413
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1414
+ id: string;
1415
+ };
1416
+ authenticateWithTelegram: {
1417
+ src: "authenticateWithTelegram";
1418
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1419
+ id: string;
1420
+ };
1421
+ authenticateWithTelegramLegacy: {
1422
+ src: "authenticateWithTelegramLegacy";
1423
+ logic: import("xstate").PromiseActorLogic<{
1424
+ authState: ServerAuthState;
1425
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1426
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1427
+ id: string;
1428
+ };
1429
+ authenticateWithFarcaster: {
1430
+ src: "authenticateWithFarcaster";
1431
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1432
+ id: string;
1433
+ };
1434
+ authenticateWithFarcasterLegacy: {
1435
+ src: "authenticateWithFarcasterLegacy";
1436
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1437
+ id: string;
1438
+ };
1439
+ processAuthentication: {
1440
+ src: "processAuthentication";
1441
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1442
+ authState: ServerAuthState;
1443
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1444
+ sessionLookupId?: string;
1445
+ isFromExternalWallet?: boolean;
1446
+ };
1447
+ }, import("xstate").EventObject>;
1448
+ id: string;
1449
+ };
1450
+ signExternalWalletVerification: {
1451
+ src: "signExternalWalletVerification";
1452
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1453
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1454
+ }, import("xstate").EventObject>;
1455
+ id: string;
1456
+ };
1457
+ switchExternalWallet: {
1458
+ src: "switchExternalWallet";
1459
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1460
+ id: string;
1461
+ };
1462
+ logoutActor: {
1463
+ src: "logoutActor";
1464
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1465
+ id: string;
1466
+ };
1467
+ }>, never, never, never, never>];
1468
+ readonly invoke: {
1469
+ readonly src: "authenticateWithTelegram";
1470
+ readonly input: ({ event }: {
1471
+ context: AuthContext;
1472
+ event: AuthEvents;
1473
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1474
+ }) => import("../../index.js").WaitForTelegramEventParams;
1475
+ readonly onDone: readonly [{
1476
+ readonly target: "processing_authentication";
1477
+ readonly actions: readonly [any];
1478
+ }];
1479
+ readonly onError: readonly [{
1480
+ readonly target: "unauthenticated";
1481
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").ErrorActorEvent<unknown, string>>) => boolean;
1482
+ readonly actions: readonly ["resetState"];
1483
+ }, {
1484
+ readonly target: "error";
1485
+ readonly actions: any;
1486
+ }];
1487
+ };
1488
+ };
1489
+ readonly authenticating_farcaster_legacy: {
1490
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
1491
+ connectExternalWallet: {
1492
+ src: "connectExternalWallet";
1493
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
1494
+ id: string;
1495
+ };
1496
+ verifyNewAccount: {
1497
+ src: "verifyNewAccount";
1498
+ logic: import("xstate").PromiseActorLogic<{
1499
+ authState: ServerAuthState;
1500
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1501
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1502
+ id: string;
1503
+ };
1504
+ verifyExternalWallet: {
1505
+ src: "verifyExternalWallet";
1506
+ logic: import("xstate").PromiseActorLogic<{
1507
+ authState: ServerAuthState;
1508
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1509
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1510
+ id: string;
1511
+ };
1512
+ authenticateWithEmailOrPhone: {
1513
+ src: "authenticateWithEmailOrPhone";
1514
+ logic: import("xstate").PromiseActorLogic<{
1515
+ authState: ServerAuthState;
1516
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1517
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1518
+ id: string;
1519
+ };
1520
+ polling: {
1521
+ src: "polling";
1522
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1523
+ id: string;
1524
+ };
1525
+ checkUserState: {
1526
+ src: "checkUserState";
1527
+ logic: import("xstate").PromiseActorLogic<{
1528
+ isAuthenticated: boolean;
1529
+ isFullyLoggedIn: boolean;
1530
+ isGuestMode: boolean;
1531
+ }, {}, import("xstate").EventObject>;
1532
+ id: string;
1533
+ };
1534
+ authenticateWithExternalWallet: {
1535
+ src: "authenticateWithExternalWallet";
1536
+ logic: import("xstate").PromiseActorLogic<{
1537
+ authState: ServerAuthState;
1538
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1539
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1540
+ id: string;
1541
+ };
1542
+ authenticateWithTelegram: {
1543
+ src: "authenticateWithTelegram";
1544
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1545
+ id: string;
1546
+ };
1547
+ authenticateWithTelegramLegacy: {
1548
+ src: "authenticateWithTelegramLegacy";
1549
+ logic: import("xstate").PromiseActorLogic<{
1550
+ authState: ServerAuthState;
1551
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1552
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1553
+ id: string;
1554
+ };
1555
+ authenticateWithFarcaster: {
1556
+ src: "authenticateWithFarcaster";
1557
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1558
+ id: string;
1559
+ };
1560
+ authenticateWithFarcasterLegacy: {
1561
+ src: "authenticateWithFarcasterLegacy";
1562
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1563
+ id: string;
1564
+ };
1565
+ processAuthentication: {
1566
+ src: "processAuthentication";
1567
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1568
+ authState: ServerAuthState;
1569
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1570
+ sessionLookupId?: string;
1571
+ isFromExternalWallet?: boolean;
1572
+ };
1573
+ }, import("xstate").EventObject>;
1574
+ id: string;
1575
+ };
1576
+ signExternalWalletVerification: {
1577
+ src: "signExternalWalletVerification";
1578
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1579
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1580
+ }, import("xstate").EventObject>;
1581
+ id: string;
1582
+ };
1583
+ switchExternalWallet: {
1584
+ src: "switchExternalWallet";
1585
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1586
+ id: string;
1587
+ };
1588
+ logoutActor: {
1589
+ src: "logoutActor";
1590
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1591
+ id: string;
1592
+ };
1593
+ }>, never, never, never, never>, import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
1594
+ connectExternalWallet: {
1595
+ src: "connectExternalWallet";
1596
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
1597
+ id: string;
1598
+ };
1599
+ verifyNewAccount: {
1600
+ src: "verifyNewAccount";
1601
+ logic: import("xstate").PromiseActorLogic<{
1602
+ authState: ServerAuthState;
1603
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1604
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1605
+ id: string;
1606
+ };
1607
+ verifyExternalWallet: {
1608
+ src: "verifyExternalWallet";
1609
+ logic: import("xstate").PromiseActorLogic<{
1610
+ authState: ServerAuthState;
1611
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1612
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1613
+ id: string;
1614
+ };
1615
+ authenticateWithEmailOrPhone: {
1616
+ src: "authenticateWithEmailOrPhone";
1617
+ logic: import("xstate").PromiseActorLogic<{
1618
+ authState: ServerAuthState;
1619
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1620
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1621
+ id: string;
1622
+ };
1623
+ polling: {
1624
+ src: "polling";
1625
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1626
+ id: string;
1627
+ };
1628
+ checkUserState: {
1629
+ src: "checkUserState";
1630
+ logic: import("xstate").PromiseActorLogic<{
1631
+ isAuthenticated: boolean;
1632
+ isFullyLoggedIn: boolean;
1633
+ isGuestMode: boolean;
1634
+ }, {}, import("xstate").EventObject>;
1635
+ id: string;
1636
+ };
1637
+ authenticateWithExternalWallet: {
1638
+ src: "authenticateWithExternalWallet";
1639
+ logic: import("xstate").PromiseActorLogic<{
1640
+ authState: ServerAuthState;
1641
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1642
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1643
+ id: string;
1644
+ };
1645
+ authenticateWithTelegram: {
1646
+ src: "authenticateWithTelegram";
1647
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1648
+ id: string;
1649
+ };
1650
+ authenticateWithTelegramLegacy: {
1651
+ src: "authenticateWithTelegramLegacy";
1652
+ logic: import("xstate").PromiseActorLogic<{
1653
+ authState: ServerAuthState;
1654
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1655
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1656
+ id: string;
1657
+ };
1658
+ authenticateWithFarcaster: {
1659
+ src: "authenticateWithFarcaster";
1660
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1661
+ id: string;
1662
+ };
1663
+ authenticateWithFarcasterLegacy: {
1664
+ src: "authenticateWithFarcasterLegacy";
1665
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1666
+ id: string;
1667
+ };
1668
+ processAuthentication: {
1669
+ src: "processAuthentication";
1670
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1671
+ authState: ServerAuthState;
1672
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1673
+ sessionLookupId?: string;
1674
+ isFromExternalWallet?: boolean;
1675
+ };
1676
+ }, import("xstate").EventObject>;
1677
+ id: string;
1678
+ };
1679
+ signExternalWalletVerification: {
1680
+ src: "signExternalWalletVerification";
1681
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1682
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1683
+ }, import("xstate").EventObject>;
1684
+ id: string;
1685
+ };
1686
+ switchExternalWallet: {
1687
+ src: "switchExternalWallet";
1688
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1689
+ id: string;
1690
+ };
1691
+ logoutActor: {
1692
+ src: "logoutActor";
1693
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1694
+ id: string;
1695
+ };
1696
+ }>, never, never, never, never>];
1697
+ readonly invoke: {
1698
+ readonly src: "authenticateWithFarcasterLegacy";
1699
+ readonly input: ({ event }: {
1700
+ context: AuthContext;
1701
+ event: AuthEvents;
1702
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1703
+ }) => import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams;
1704
+ readonly onDone: readonly [{
1705
+ readonly target: "waiting_for_farcaster";
1706
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").DoneActorEvent<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, string>>) => boolean;
1707
+ }, {
1708
+ readonly target: "processing_authentication";
1709
+ readonly actions: readonly [any];
1710
+ }];
1711
+ readonly onError: readonly [{
1712
+ readonly target: "unauthenticated";
1713
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").ErrorActorEvent<unknown, string>>) => boolean;
1714
+ readonly actions: readonly ["resetState"];
1715
+ }, {
1716
+ readonly target: "error";
1717
+ readonly actions: any;
1718
+ }];
1719
+ };
1720
+ };
1721
+ readonly waiting_for_farcaster: {
1722
+ readonly invoke: {
1723
+ readonly src: "polling";
1724
+ readonly input: ({ context }: {
1725
+ context: AuthContext;
1726
+ event: AuthEvents;
1727
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1728
+ }) => {
1729
+ checkCondition: () => Promise<{
1730
+ data: {
1731
+ authState: ServerAuthState;
1732
+ };
1733
+ finished: boolean;
1734
+ }>;
1735
+ onPoll: () => void;
1736
+ onCancel: () => void;
1737
+ isCanceled: () => boolean;
1738
+ id: string;
1739
+ };
1740
+ readonly onError: {
1741
+ readonly target: "error";
1742
+ readonly actions: any;
1743
+ };
1744
+ };
1745
+ readonly on: any;
1746
+ };
1747
+ readonly authenticating_farcaster: {
1748
+ readonly entry: readonly [import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, import("xstate").Values<{
1749
+ connectExternalWallet: {
1750
+ src: "connectExternalWallet";
1751
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
1752
+ id: string;
1753
+ };
1754
+ verifyNewAccount: {
1755
+ src: "verifyNewAccount";
1756
+ logic: import("xstate").PromiseActorLogic<{
1757
+ authState: ServerAuthState;
1758
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1759
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
1760
+ id: string;
1761
+ };
1762
+ verifyExternalWallet: {
1763
+ src: "verifyExternalWallet";
1764
+ logic: import("xstate").PromiseActorLogic<{
1765
+ authState: ServerAuthState;
1766
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1767
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
1768
+ id: string;
1769
+ };
1770
+ authenticateWithEmailOrPhone: {
1771
+ src: "authenticateWithEmailOrPhone";
1772
+ logic: import("xstate").PromiseActorLogic<{
1773
+ authState: ServerAuthState;
1774
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1775
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
1776
+ id: string;
1777
+ };
1778
+ polling: {
1779
+ src: "polling";
1780
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
1781
+ id: string;
1782
+ };
1783
+ checkUserState: {
1784
+ src: "checkUserState";
1785
+ logic: import("xstate").PromiseActorLogic<{
1786
+ isAuthenticated: boolean;
1787
+ isFullyLoggedIn: boolean;
1788
+ isGuestMode: boolean;
1789
+ }, {}, import("xstate").EventObject>;
1790
+ id: string;
1791
+ };
1792
+ authenticateWithExternalWallet: {
1793
+ src: "authenticateWithExternalWallet";
1794
+ logic: import("xstate").PromiseActorLogic<{
1795
+ authState: ServerAuthState;
1796
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1797
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
1798
+ id: string;
1799
+ };
1800
+ authenticateWithTelegram: {
1801
+ src: "authenticateWithTelegram";
1802
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
1803
+ id: string;
1804
+ };
1805
+ authenticateWithTelegramLegacy: {
1806
+ src: "authenticateWithTelegramLegacy";
1807
+ logic: import("xstate").PromiseActorLogic<{
1808
+ authState: ServerAuthState;
1809
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
1810
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
1811
+ id: string;
1812
+ };
1813
+ authenticateWithFarcaster: {
1814
+ src: "authenticateWithFarcaster";
1815
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
1816
+ id: string;
1817
+ };
1818
+ authenticateWithFarcasterLegacy: {
1819
+ src: "authenticateWithFarcasterLegacy";
1820
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
1821
+ id: string;
1822
+ };
1823
+ processAuthentication: {
1824
+ src: "processAuthentication";
1825
+ logic: import("xstate").PromiseActorLogic<AuthState, {
1826
+ authState: ServerAuthState;
1827
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1828
+ sessionLookupId?: string;
1829
+ isFromExternalWallet?: boolean;
1830
+ };
1831
+ }, import("xstate").EventObject>;
1832
+ id: string;
1833
+ };
1834
+ signExternalWalletVerification: {
1835
+ src: "signExternalWalletVerification";
1836
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
1837
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
1838
+ }, import("xstate").EventObject>;
1839
+ id: string;
1840
+ };
1841
+ switchExternalWallet: {
1842
+ src: "switchExternalWallet";
1843
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
1844
+ id: string;
1845
+ };
1846
+ logoutActor: {
1847
+ src: "logoutActor";
1848
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
1849
+ id: string;
1850
+ };
1851
+ }>, never, never, never, never>];
1852
+ readonly invoke: {
1853
+ readonly src: "authenticateWithFarcaster";
1854
+ readonly input: ({ event }: {
1855
+ context: AuthContext;
1856
+ event: AuthEvents;
1857
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1858
+ }) => import("../../index.js").WaitForFarcasterEventParams;
1859
+ readonly onDone: readonly [{
1860
+ readonly target: "processing_authentication";
1861
+ readonly actions: readonly [any];
1862
+ }];
1863
+ readonly onError: readonly [{
1864
+ readonly target: "unauthenticated";
1865
+ readonly guard: ({ event }: import("xstate/dist/declarations/src/guards.js").GuardArgs<AuthContext, import("xstate").ErrorActorEvent<unknown, string>>) => boolean;
1866
+ readonly actions: readonly ["resetState"];
1867
+ }, {
1868
+ readonly target: "error";
1869
+ readonly actions: any;
1870
+ }];
1871
+ };
1872
+ };
1873
+ readonly processing_authentication: {
1874
+ readonly entry: readonly [{
1875
+ readonly type: "logTransition";
1876
+ readonly params: {
1877
+ readonly to: "processing_authentication";
1878
+ };
1879
+ }];
1880
+ readonly invoke: {
1881
+ readonly src: "processAuthentication";
1882
+ readonly input: ({ context }: {
1883
+ context: AuthContext;
1884
+ event: AuthEvents;
1885
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
1886
+ }) => {
1887
+ authState: ServerAuthState | null;
1888
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
1889
+ sessionLookupId?: string;
1890
+ isFromExternalWallet?: boolean;
1891
+ };
1892
+ };
1893
+ readonly onDone: readonly [{
1894
+ readonly target: "authenticated";
1895
+ readonly actions: readonly ["storeAuthStateResult", {
1896
+ readonly type: "logTransition";
1897
+ readonly params: {
1898
+ readonly to: "authenticated";
1899
+ readonly detail: "external wallet, no full auth";
1900
+ };
1901
+ }];
1902
+ readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<AuthContext, import("xstate").DoneActorEvent<AuthState, string>, unknown, never>;
1903
+ }, {
1904
+ readonly target: "verifying_external_wallet";
1905
+ readonly actions: readonly ["storeAuthStateResult", {
1906
+ readonly type: "logTransition";
1907
+ readonly params: {
1908
+ readonly to: "verifying_external_wallet";
1909
+ readonly detail: "external wallet with verification";
1910
+ };
1911
+ }];
1912
+ readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<AuthContext, import("xstate").DoneActorEvent<AuthState, string>, unknown, never>;
1913
+ }, {
1914
+ readonly target: "awaiting_wallet_signature";
1915
+ readonly actions: readonly ["storeAuthStateResult", {
1916
+ readonly type: "logTransition";
1917
+ readonly params: {
1918
+ readonly to: "awaiting_wallet_signature";
1919
+ readonly detail: "external wallet with full auth";
1920
+ };
1921
+ }];
1922
+ readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<AuthContext, import("xstate").DoneActorEvent<AuthState, string>, unknown, never>;
1923
+ }, {
1924
+ readonly target: "awaiting_account_verification";
1925
+ readonly actions: readonly ["storeAuthStateResult", {
1926
+ readonly type: "logTransition";
1927
+ readonly params: {
1928
+ readonly to: "awaiting_account_verification";
1929
+ readonly detail: "non-enclave verify";
1930
+ };
1931
+ }];
1932
+ readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<AuthContext, import("xstate").DoneActorEvent<AuthState, string>, unknown, never>;
1933
+ }, {
1934
+ readonly target: "awaiting_session_start";
1935
+ readonly actions: readonly ["storeAuthStateResult", {
1936
+ readonly type: "logTransition";
1937
+ readonly params: {
1938
+ readonly to: "awaiting_session_start";
1939
+ readonly detail: "default route";
1940
+ };
1941
+ }];
1942
+ }];
1943
+ readonly onError: {
1944
+ readonly target: "error";
1945
+ readonly actions: any;
1946
+ };
1947
+ };
1948
+ };
1949
+ readonly awaiting_wallet_signature: {
1950
+ readonly on: {
1951
+ readonly SIGN_EXTERNAL_WALLET_VERIFICATION: {
1952
+ readonly target: "signing_external_wallet_verification";
1953
+ readonly actions: readonly ["resetError"];
1954
+ };
1955
+ readonly CANCEL: {
1956
+ readonly target: "unauthenticated";
1957
+ readonly actions: readonly ["resetState"];
1958
+ };
1959
+ };
1960
+ };
1961
+ readonly awaiting_wallet_verification: {
1962
+ readonly on: {
1963
+ readonly VERIFY_EXTERNAL_WALLET: {
1964
+ readonly target: "verifying_external_wallet";
1965
+ readonly actions: readonly ["resetError"];
1966
+ };
1967
+ readonly CANCEL: {
1968
+ readonly target: "unauthenticated";
1969
+ readonly actions: readonly ["resetState"];
1970
+ };
1971
+ };
1972
+ };
1973
+ readonly awaiting_account_verification: {
1974
+ readonly on: {
1975
+ readonly VERIFY_NEW_ACCOUNT: {
1976
+ readonly target: "verifying_new_account";
1977
+ readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<AuthContext, {
1978
+ type: "VERIFY_NEW_ACCOUNT";
1979
+ data: import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams;
1980
+ }, unknown, {
1981
+ type: "authStageIsVerify";
1982
+ params: undefined;
1983
+ }>;
1984
+ readonly actions: readonly ["resetError"];
1985
+ };
1986
+ readonly CANCEL: {
1987
+ readonly target: "unauthenticated";
1988
+ readonly actions: readonly ["resetState"];
1989
+ };
1990
+ };
1991
+ };
1992
+ readonly awaiting_session_start: {
1993
+ readonly on: {
1994
+ readonly WAIT_FOR_SESSION: {
1995
+ readonly target: "waiting_for_session";
1996
+ readonly actions: readonly ["setPollingCallbacks", "setSessionOptions", "resetError"];
1997
+ };
1998
+ readonly WAIT_FOR_WALLET_CREATION: {
1999
+ readonly target: "waiting_for_session";
2000
+ readonly actions: readonly ["setPollingCallbacks", "setAutoCreate", "resetError"];
2001
+ };
2002
+ readonly CANCEL: {
2003
+ readonly target: "unauthenticated";
2004
+ readonly actions: readonly ["resetState"];
2005
+ };
2006
+ };
2007
+ };
2008
+ readonly verifying_new_account: {
2009
+ readonly invoke: {
2010
+ readonly src: "verifyNewAccount";
2011
+ readonly input: ({ event }: {
2012
+ context: AuthContext;
2013
+ event: AuthEvents;
2014
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
2015
+ }) => import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams;
2016
+ readonly onDone: {
2017
+ readonly target: "processing_authentication";
2018
+ readonly actions: readonly ["resetRetryAttempts", any];
2019
+ };
2020
+ readonly onError: readonly [{
2021
+ readonly target: "awaiting_account_verification";
2022
+ readonly guard: "canRetryNewAccount";
2023
+ readonly actions: readonly [{
2024
+ readonly type: "incrementRetryAttempt";
2025
+ readonly params: {
2026
+ readonly type: "newAccountVerification";
2027
+ };
2028
+ }, any];
2029
+ }, {
2030
+ readonly target: "error";
2031
+ readonly actions: import("xstate").ActionFunction<AuthContext, import("xstate").ErrorActorEvent<unknown, string>, AuthEvents, undefined, import("xstate").Values<{
2032
+ connectExternalWallet: {
2033
+ src: "connectExternalWallet";
2034
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
2035
+ id: string;
2036
+ };
2037
+ verifyNewAccount: {
2038
+ src: "verifyNewAccount";
2039
+ logic: import("xstate").PromiseActorLogic<{
2040
+ authState: ServerAuthState;
2041
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2042
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
2043
+ id: string;
2044
+ };
2045
+ verifyExternalWallet: {
2046
+ src: "verifyExternalWallet";
2047
+ logic: import("xstate").PromiseActorLogic<{
2048
+ authState: ServerAuthState;
2049
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2050
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
2051
+ id: string;
2052
+ };
2053
+ authenticateWithEmailOrPhone: {
2054
+ src: "authenticateWithEmailOrPhone";
2055
+ logic: import("xstate").PromiseActorLogic<{
2056
+ authState: ServerAuthState;
2057
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2058
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
2059
+ id: string;
2060
+ };
2061
+ polling: {
2062
+ src: "polling";
2063
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
2064
+ id: string;
2065
+ };
2066
+ checkUserState: {
2067
+ src: "checkUserState";
2068
+ logic: import("xstate").PromiseActorLogic<{
2069
+ isAuthenticated: boolean;
2070
+ isFullyLoggedIn: boolean;
2071
+ isGuestMode: boolean;
2072
+ }, {}, import("xstate").EventObject>;
2073
+ id: string;
2074
+ };
2075
+ authenticateWithExternalWallet: {
2076
+ src: "authenticateWithExternalWallet";
2077
+ logic: import("xstate").PromiseActorLogic<{
2078
+ authState: ServerAuthState;
2079
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2080
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
2081
+ id: string;
2082
+ };
2083
+ authenticateWithTelegram: {
2084
+ src: "authenticateWithTelegram";
2085
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
2086
+ id: string;
2087
+ };
2088
+ authenticateWithTelegramLegacy: {
2089
+ src: "authenticateWithTelegramLegacy";
2090
+ logic: import("xstate").PromiseActorLogic<{
2091
+ authState: ServerAuthState;
2092
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2093
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
2094
+ id: string;
2095
+ };
2096
+ authenticateWithFarcaster: {
2097
+ src: "authenticateWithFarcaster";
2098
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
2099
+ id: string;
2100
+ };
2101
+ authenticateWithFarcasterLegacy: {
2102
+ src: "authenticateWithFarcasterLegacy";
2103
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
2104
+ id: string;
2105
+ };
2106
+ processAuthentication: {
2107
+ src: "processAuthentication";
2108
+ logic: import("xstate").PromiseActorLogic<AuthState, {
2109
+ authState: ServerAuthState;
2110
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
2111
+ sessionLookupId?: string;
2112
+ isFromExternalWallet?: boolean;
2113
+ };
2114
+ }, import("xstate").EventObject>;
2115
+ id: string;
2116
+ };
2117
+ signExternalWalletVerification: {
2118
+ src: "signExternalWalletVerification";
2119
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
2120
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
2121
+ }, import("xstate").EventObject>;
2122
+ id: string;
2123
+ };
2124
+ switchExternalWallet: {
2125
+ src: "switchExternalWallet";
2126
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
2127
+ id: string;
2128
+ };
2129
+ logoutActor: {
2130
+ src: "logoutActor";
2131
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
2132
+ id: string;
2133
+ };
2134
+ }>, never, never, never, never>;
2135
+ }];
2136
+ };
2137
+ };
2138
+ readonly verifying_external_wallet: {
2139
+ readonly invoke: {
2140
+ readonly src: "verifyExternalWallet";
2141
+ readonly input: ({ event, context }: {
2142
+ context: AuthContext;
2143
+ event: AuthEvents;
2144
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
2145
+ }) => import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams;
2146
+ readonly onDone: {
2147
+ readonly target: "processing_authentication";
2148
+ readonly actions: readonly ["resetRetryAttempts", any];
2149
+ };
2150
+ readonly onError: readonly [{
2151
+ readonly target: "awaiting_wallet_verification";
2152
+ readonly guard: "canRetryExternalWallet";
2153
+ readonly actions: readonly [{
2154
+ readonly type: "incrementRetryAttempt";
2155
+ readonly params: {
2156
+ readonly type: "externalWalletVerification";
2157
+ };
2158
+ }, any];
2159
+ }, {
2160
+ readonly target: "error";
2161
+ readonly actions: import("xstate").ActionFunction<AuthContext, import("xstate").ErrorActorEvent<unknown, string>, AuthEvents, undefined, import("xstate").Values<{
2162
+ connectExternalWallet: {
2163
+ src: "connectExternalWallet";
2164
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
2165
+ id: string;
2166
+ };
2167
+ verifyNewAccount: {
2168
+ src: "verifyNewAccount";
2169
+ logic: import("xstate").PromiseActorLogic<{
2170
+ authState: ServerAuthState;
2171
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2172
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
2173
+ id: string;
2174
+ };
2175
+ verifyExternalWallet: {
2176
+ src: "verifyExternalWallet";
2177
+ logic: import("xstate").PromiseActorLogic<{
2178
+ authState: ServerAuthState;
2179
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2180
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
2181
+ id: string;
2182
+ };
2183
+ authenticateWithEmailOrPhone: {
2184
+ src: "authenticateWithEmailOrPhone";
2185
+ logic: import("xstate").PromiseActorLogic<{
2186
+ authState: ServerAuthState;
2187
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2188
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
2189
+ id: string;
2190
+ };
2191
+ polling: {
2192
+ src: "polling";
2193
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
2194
+ id: string;
2195
+ };
2196
+ checkUserState: {
2197
+ src: "checkUserState";
2198
+ logic: import("xstate").PromiseActorLogic<{
2199
+ isAuthenticated: boolean;
2200
+ isFullyLoggedIn: boolean;
2201
+ isGuestMode: boolean;
2202
+ }, {}, import("xstate").EventObject>;
2203
+ id: string;
2204
+ };
2205
+ authenticateWithExternalWallet: {
2206
+ src: "authenticateWithExternalWallet";
2207
+ logic: import("xstate").PromiseActorLogic<{
2208
+ authState: ServerAuthState;
2209
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2210
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
2211
+ id: string;
2212
+ };
2213
+ authenticateWithTelegram: {
2214
+ src: "authenticateWithTelegram";
2215
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
2216
+ id: string;
2217
+ };
2218
+ authenticateWithTelegramLegacy: {
2219
+ src: "authenticateWithTelegramLegacy";
2220
+ logic: import("xstate").PromiseActorLogic<{
2221
+ authState: ServerAuthState;
2222
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2223
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
2224
+ id: string;
2225
+ };
2226
+ authenticateWithFarcaster: {
2227
+ src: "authenticateWithFarcaster";
2228
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
2229
+ id: string;
2230
+ };
2231
+ authenticateWithFarcasterLegacy: {
2232
+ src: "authenticateWithFarcasterLegacy";
2233
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
2234
+ id: string;
2235
+ };
2236
+ processAuthentication: {
2237
+ src: "processAuthentication";
2238
+ logic: import("xstate").PromiseActorLogic<AuthState, {
2239
+ authState: ServerAuthState;
2240
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
2241
+ sessionLookupId?: string;
2242
+ isFromExternalWallet?: boolean;
2243
+ };
2244
+ }, import("xstate").EventObject>;
2245
+ id: string;
2246
+ };
2247
+ signExternalWalletVerification: {
2248
+ src: "signExternalWalletVerification";
2249
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
2250
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
2251
+ }, import("xstate").EventObject>;
2252
+ id: string;
2253
+ };
2254
+ switchExternalWallet: {
2255
+ src: "switchExternalWallet";
2256
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
2257
+ id: string;
2258
+ };
2259
+ logoutActor: {
2260
+ src: "logoutActor";
2261
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
2262
+ id: string;
2263
+ };
2264
+ }>, never, never, never, never>;
2265
+ }];
2266
+ };
2267
+ };
2268
+ readonly signing_external_wallet_verification: {
2269
+ readonly invoke: {
2270
+ readonly src: "signExternalWalletVerification";
2271
+ readonly input: ({ event, context }: {
2272
+ context: AuthContext;
2273
+ event: AuthEvents;
2274
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
2275
+ }) => {
2276
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
2277
+ type: import("@getpara/user-management-client").TExternalWalletType;
2278
+ address: string;
2279
+ message: string;
2280
+ };
2281
+ readonly onDone: {
2282
+ readonly target: "awaiting_wallet_verification";
2283
+ readonly actions: readonly ["resetRetryAttempts", import("xstate").ActionFunction<AuthContext, import("xstate").DoneActorEvent<BaseVerifyExternalWalletParams, string>, AuthEvents, undefined, import("xstate").Values<{
2284
+ connectExternalWallet: {
2285
+ src: "connectExternalWallet";
2286
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
2287
+ id: string;
2288
+ };
2289
+ verifyNewAccount: {
2290
+ src: "verifyNewAccount";
2291
+ logic: import("xstate").PromiseActorLogic<{
2292
+ authState: ServerAuthState;
2293
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2294
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
2295
+ id: string;
2296
+ };
2297
+ verifyExternalWallet: {
2298
+ src: "verifyExternalWallet";
2299
+ logic: import("xstate").PromiseActorLogic<{
2300
+ authState: ServerAuthState;
2301
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2302
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
2303
+ id: string;
2304
+ };
2305
+ authenticateWithEmailOrPhone: {
2306
+ src: "authenticateWithEmailOrPhone";
2307
+ logic: import("xstate").PromiseActorLogic<{
2308
+ authState: ServerAuthState;
2309
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2310
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
2311
+ id: string;
2312
+ };
2313
+ polling: {
2314
+ src: "polling";
2315
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
2316
+ id: string;
2317
+ };
2318
+ checkUserState: {
2319
+ src: "checkUserState";
2320
+ logic: import("xstate").PromiseActorLogic<{
2321
+ isAuthenticated: boolean;
2322
+ isFullyLoggedIn: boolean;
2323
+ isGuestMode: boolean;
2324
+ }, {}, import("xstate").EventObject>;
2325
+ id: string;
2326
+ };
2327
+ authenticateWithExternalWallet: {
2328
+ src: "authenticateWithExternalWallet";
2329
+ logic: import("xstate").PromiseActorLogic<{
2330
+ authState: ServerAuthState;
2331
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2332
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
2333
+ id: string;
2334
+ };
2335
+ authenticateWithTelegram: {
2336
+ src: "authenticateWithTelegram";
2337
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
2338
+ id: string;
2339
+ };
2340
+ authenticateWithTelegramLegacy: {
2341
+ src: "authenticateWithTelegramLegacy";
2342
+ logic: import("xstate").PromiseActorLogic<{
2343
+ authState: ServerAuthState;
2344
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2345
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
2346
+ id: string;
2347
+ };
2348
+ authenticateWithFarcaster: {
2349
+ src: "authenticateWithFarcaster";
2350
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
2351
+ id: string;
2352
+ };
2353
+ authenticateWithFarcasterLegacy: {
2354
+ src: "authenticateWithFarcasterLegacy";
2355
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
2356
+ id: string;
2357
+ };
2358
+ processAuthentication: {
2359
+ src: "processAuthentication";
2360
+ logic: import("xstate").PromiseActorLogic<AuthState, {
2361
+ authState: ServerAuthState;
2362
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
2363
+ sessionLookupId?: string;
2364
+ isFromExternalWallet?: boolean;
2365
+ };
2366
+ }, import("xstate").EventObject>;
2367
+ id: string;
2368
+ };
2369
+ signExternalWalletVerification: {
2370
+ src: "signExternalWalletVerification";
2371
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
2372
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
2373
+ }, import("xstate").EventObject>;
2374
+ id: string;
2375
+ };
2376
+ switchExternalWallet: {
2377
+ src: "switchExternalWallet";
2378
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
2379
+ id: string;
2380
+ };
2381
+ logoutActor: {
2382
+ src: "logoutActor";
2383
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
2384
+ id: string;
2385
+ };
2386
+ }>, never, never, never, never>];
2387
+ };
2388
+ readonly onError: readonly [{
2389
+ readonly target: "awaiting_wallet_signature";
2390
+ readonly guard: "canRetryExternalWallet";
2391
+ readonly actions: readonly [{
2392
+ readonly type: "incrementRetryAttempt";
2393
+ readonly params: {
2394
+ readonly type: "externalWalletVerification";
2395
+ };
2396
+ }, any];
2397
+ }, {
2398
+ readonly target: "error";
2399
+ readonly actions: import("xstate").ActionFunction<AuthContext, import("xstate").ErrorActorEvent<unknown, string>, AuthEvents, undefined, import("xstate").Values<{
2400
+ connectExternalWallet: {
2401
+ src: "connectExternalWallet";
2402
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformConnectExternalWalletResponse, import("../../index.js").ConnectExternalWalletParams, import("xstate").EventObject>;
2403
+ id: string;
2404
+ };
2405
+ verifyNewAccount: {
2406
+ src: "verifyNewAccount";
2407
+ logic: import("xstate").PromiseActorLogic<{
2408
+ authState: ServerAuthState;
2409
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2410
+ }, import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyNewAccountParams, import("xstate").EventObject>;
2411
+ id: string;
2412
+ };
2413
+ verifyExternalWallet: {
2414
+ src: "verifyExternalWallet";
2415
+ logic: import("xstate").PromiseActorLogic<{
2416
+ authState: ServerAuthState;
2417
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2418
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyExternalWalletParams, import("xstate").EventObject>;
2419
+ id: string;
2420
+ };
2421
+ authenticateWithEmailOrPhone: {
2422
+ src: "authenticateWithEmailOrPhone";
2423
+ logic: import("xstate").PromiseActorLogic<{
2424
+ authState: ServerAuthState;
2425
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2426
+ }, import("../../index.js").SignUpOrLogInParams, import("xstate").EventObject>;
2427
+ id: string;
2428
+ };
2429
+ polling: {
2430
+ src: "polling";
2431
+ logic: import("xstate").CallbackActorLogic<any, import("../../index.js").PollingConfig<any>, import("xstate").EventObject>;
2432
+ id: string;
2433
+ };
2434
+ checkUserState: {
2435
+ src: "checkUserState";
2436
+ logic: import("xstate").PromiseActorLogic<{
2437
+ isAuthenticated: boolean;
2438
+ isFullyLoggedIn: boolean;
2439
+ isGuestMode: boolean;
2440
+ }, {}, import("xstate").EventObject>;
2441
+ id: string;
2442
+ };
2443
+ authenticateWithExternalWallet: {
2444
+ src: "authenticateWithExternalWallet";
2445
+ logic: import("xstate").PromiseActorLogic<{
2446
+ authState: ServerAuthState;
2447
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2448
+ }, import("../../index.js").LoginExternalWalletParams, import("xstate").EventObject>;
2449
+ id: string;
2450
+ };
2451
+ authenticateWithTelegram: {
2452
+ src: "authenticateWithTelegram";
2453
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForTelegramEventParams, import("xstate").EventObject>;
2454
+ id: string;
2455
+ };
2456
+ authenticateWithTelegramLegacy: {
2457
+ src: "authenticateWithTelegramLegacy";
2458
+ logic: import("xstate").PromiseActorLogic<{
2459
+ authState: ServerAuthState;
2460
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls;
2461
+ }, import("../../services/types/VerificationFlowServiceTypes.js").VerifyTelegramParams, import("xstate").EventObject>;
2462
+ id: string;
2463
+ };
2464
+ authenticateWithFarcaster: {
2465
+ src: "authenticateWithFarcaster";
2466
+ logic: import("xstate").PromiseActorLogic<AuthenticationOutput, import("../../index.js").WaitForFarcasterEventParams, import("xstate").EventObject>;
2467
+ id: string;
2468
+ };
2469
+ authenticateWithFarcasterLegacy: {
2470
+ src: "authenticateWithFarcasterLegacy";
2471
+ logic: import("xstate").PromiseActorLogic<import("../../services/types/VerificationFlowServiceTypes.js").PerformVerifyFarcasterResponse, import("../../services/types/VerificationFlowServiceTypes.js").VerifyFarcasterParams, import("xstate").EventObject>;
2472
+ id: string;
2473
+ };
2474
+ processAuthentication: {
2475
+ src: "processAuthentication";
2476
+ logic: import("xstate").PromiseActorLogic<AuthState, {
2477
+ authState: ServerAuthState;
2478
+ opts: import("../../types/util.js").WithCustomTheme & import("../../types/util.js").WithUseShortUrls & {
2479
+ sessionLookupId?: string;
2480
+ isFromExternalWallet?: boolean;
2481
+ };
2482
+ }, import("xstate").EventObject>;
2483
+ id: string;
2484
+ };
2485
+ signExternalWalletVerification: {
2486
+ src: "signExternalWalletVerification";
2487
+ logic: import("xstate").PromiseActorLogic<BaseVerifyExternalWalletParams, import("../../index.js").ExternalSignMessageParams & {
2488
+ externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
2489
+ }, import("xstate").EventObject>;
2490
+ id: string;
2491
+ };
2492
+ switchExternalWallet: {
2493
+ src: "switchExternalWallet";
2494
+ logic: import("xstate").PromiseActorLogic<import("../../index.js").PerformSwitchExternalWalletResponse, import("../../index.js").WatchWalletChangeCallbackParams, import("xstate").EventObject>;
2495
+ id: string;
2496
+ };
2497
+ logoutActor: {
2498
+ src: "logoutActor";
2499
+ logic: import("xstate").PromiseActorLogic<void, {}, import("xstate").EventObject>;
2500
+ id: string;
2501
+ };
2502
+ }>, never, never, never, never>;
2503
+ }];
2504
+ };
2505
+ readonly on: {
2506
+ readonly CANCEL: {
2507
+ readonly target: "unauthenticated";
2508
+ readonly actions: readonly ["resetState"];
2509
+ };
2510
+ };
2511
+ };
2512
+ readonly waiting_for_session: {
2513
+ readonly invoke: {
2514
+ readonly src: "polling";
2515
+ readonly input: ({ context }: {
2516
+ context: AuthContext;
2517
+ event: AuthEvents;
2518
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<AuthContext, AuthEvents, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, AuthEvents, import("xstate").AnyEventObject>;
2519
+ }) => {
2520
+ init: () => Promise<void>;
2521
+ checkCondition: () => Promise<{
2522
+ finished: boolean;
2523
+ data?: null;
2524
+ }>;
2525
+ onPoll: () => void;
2526
+ onCancel: () => void;
2527
+ isCanceled: () => boolean;
2528
+ id: string;
2529
+ };
2530
+ readonly onError: {
2531
+ readonly target: "error";
2532
+ readonly actions: any;
2533
+ };
2534
+ };
2535
+ readonly entry: readonly ["setPollingCallbacks", {
2536
+ readonly type: "logTransition";
2537
+ readonly params: {
2538
+ readonly to: "waiting_for_session";
2539
+ };
2540
+ }];
2541
+ readonly on: any;
2542
+ };
2543
+ readonly authenticated: {
2544
+ readonly entry: readonly [{
2545
+ readonly type: "logTransition";
2546
+ readonly params: {
2547
+ readonly to: "authenticated";
2548
+ };
2549
+ }, import("xstate").ActionFunction<AuthContext, AuthEvents, AuthEvents, undefined, never, never, never, never, never>, ({ context }: import("xstate").ActionArgs<AuthContext, AuthEvents, AuthEvents>) => void];
2550
+ readonly on: {
2551
+ readonly SWITCH_EXTERNAL_WALLET: {
2552
+ readonly target: "switching_external_wallet";
2553
+ readonly guard: import("xstate/dist/declarations/src/guards.js").GuardPredicate<AuthContext, {
2554
+ type: "SWITCH_EXTERNAL_WALLET";
2555
+ data: import("../../index.js").SwitchExternalWalletParams;
2556
+ }, unknown, never>;
2557
+ };
2558
+ };
2559
+ };
2560
+ readonly error: {
2561
+ readonly entry: readonly [({ context }: import("xstate").ActionArgs<AuthContext, AuthEvents, AuthEvents>) => void];
2562
+ readonly on: {
2563
+ readonly RESET: {
2564
+ readonly target: "unauthenticated";
2565
+ readonly actions: "resetState";
2566
+ };
2567
+ };
2568
+ };
2569
+ };
2570
+ }>;