@frontegg/redux-store 6.143.0 → 6.144.0-alpha.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 (57) hide show
  1. package/auth/AcceptInvitationState/index.d.ts +2 -0
  2. package/auth/AccountSettingsState/index.d.ts +2 -0
  3. package/auth/ActivateState/index.d.ts +3 -12
  4. package/auth/ApiTokensState/index.d.ts +2 -8
  5. package/auth/CustomLoginState/index.d.ts +2 -0
  6. package/auth/ForgotPasswordState/index.d.ts +2 -0
  7. package/auth/GroupsState/groupsDialogsState.d.ts +12 -0
  8. package/auth/GroupsState/index.d.ts +2 -0
  9. package/auth/ImpersonationState/index.d.ts +2 -0
  10. package/auth/LoginState/index.d.ts +5 -3
  11. package/auth/LoginState/interfaces.d.ts +3 -0
  12. package/auth/LoginState/saga.js +8 -22
  13. package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +14 -0
  14. package/auth/MSP/AllAccountsState/index.d.ts +3 -0
  15. package/auth/MfaState/index.d.ts +2 -0
  16. package/auth/PasskeysState/index.d.ts +2 -0
  17. package/auth/ProfileState/index.d.ts +2 -0
  18. package/auth/Provisioning/index.d.ts +2 -0
  19. package/auth/ResetPhoneNumberState/index.d.ts +2 -0
  20. package/auth/ResetPhoneNumberState/saga.d.ts +2 -2
  21. package/auth/RolesState/index.d.ts +2 -0
  22. package/auth/SSOState/index.d.ts +2 -0
  23. package/auth/Security/RestrictionsState/index.d.ts +15 -0
  24. package/auth/Security/SecurityCenterState/index.d.ts +2 -0
  25. package/auth/Security/SecurityPolicyState/index.d.ts +13 -0
  26. package/auth/Security/SessionsPolicyState/index.d.ts +2 -0
  27. package/auth/SessionsState/index.d.ts +2 -0
  28. package/auth/SignUp/index.d.ts +2 -0
  29. package/auth/SmsState/index.d.ts +139 -0
  30. package/auth/SmsState/index.js +45 -0
  31. package/auth/SmsState/interfaces.d.ts +10 -0
  32. package/auth/SmsState/interfaces.js +1 -0
  33. package/auth/SmsState/saga.d.ts +30 -0
  34. package/auth/SmsState/saga.js +174 -0
  35. package/auth/SocialLogins/index.d.ts +2 -0
  36. package/auth/TeamState/index.d.ts +2 -0
  37. package/auth/TenantsState/index.d.ts +2 -0
  38. package/auth/index.d.ts +11 -1
  39. package/auth/index.js +2 -0
  40. package/auth/initialState.js +3 -1
  41. package/auth/interfaces.d.ts +2 -0
  42. package/auth/reducer.d.ts +11 -2
  43. package/auth/reducer.js +3 -2
  44. package/auth/saga.js +2 -1
  45. package/auth/utils.d.ts +6 -0
  46. package/index.js +1 -1
  47. package/node/auth/LoginState/saga.js +8 -22
  48. package/node/auth/SmsState/index.js +52 -0
  49. package/node/auth/SmsState/interfaces.js +5 -0
  50. package/node/auth/SmsState/saga.js +187 -0
  51. package/node/auth/index.js +32 -8
  52. package/node/auth/initialState.js +3 -1
  53. package/node/auth/reducer.js +3 -2
  54. package/node/auth/saga.js +2 -1
  55. package/node/index.js +1 -1
  56. package/package.json +2 -2
  57. package/toolkit/index.d.ts +1 -1
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
+ smsState?: import("..").SmsState | undefined;
53
54
  routes: import("..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -96,6 +97,7 @@ declare const reducers: {
96
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
97
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
+ smsState?: import("..").SmsState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
+ smsState?: import("..").SmsState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -97,6 +98,7 @@ declare const reducers: {
97
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
+ smsState?: import("..").SmsState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -12,10 +12,6 @@ declare const reducers: {
12
12
  type: string;
13
13
  }) => {
14
14
  onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
15
- /**
16
- * if you see error in matcher that's mean the DispatchAction does not
17
- * contains the same functions in reducers and actions
18
- */
19
15
  error?: any;
20
16
  isAuthenticated: boolean;
21
17
  userIp?: string | undefined;
@@ -55,6 +51,7 @@ declare const reducers: {
55
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
56
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
57
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
+ smsState?: import("..").SmsState | undefined;
58
55
  routes: import("..").AuthPageRoutes;
59
56
  header?: any;
60
57
  loaderComponent?: any;
@@ -62,10 +59,6 @@ declare const reducers: {
62
59
  };
63
60
  resetActivateState: (state: import("..").AuthState) => {
64
61
  onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
65
- /**
66
- * if you see error in matcher that's mean the DispatchAction does not
67
- * contains the same functions in reducers and actions
68
- */
69
62
  error?: any;
70
63
  isAuthenticated: boolean;
71
64
  userIp?: string | undefined;
@@ -105,6 +98,7 @@ declare const reducers: {
105
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
106
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
107
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
+ smsState?: import("..").SmsState | undefined;
108
102
  routes: import("..").AuthPageRoutes;
109
103
  header?: any;
110
104
  loaderComponent?: any;
@@ -118,10 +112,6 @@ declare const reducers: {
118
112
  type: string;
119
113
  }) => {
120
114
  onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
121
- /**
122
- * if you see error in matcher that's mean the DispatchAction does not
123
- * contains the same functions in reducers and actions
124
- */
125
115
  error?: any;
126
116
  isAuthenticated: boolean;
127
117
  userIp?: string | undefined;
@@ -161,6 +151,7 @@ declare const reducers: {
161
151
  allAccountsState?: import("..").IAllAccountsState | undefined;
162
152
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
163
153
  securityCenterState?: import("..").SecurityCenterState | undefined;
154
+ smsState?: import("..").SmsState | undefined;
164
155
  routes: import("..").AuthPageRoutes;
165
156
  header?: any;
166
157
  loaderComponent?: any;
@@ -49,10 +49,6 @@ declare const reducers: {
49
49
  teamState: import("..").TeamState;
50
50
  groupsState: import("..").GroupsState;
51
51
  groupsDialogsState: import("..").GroupsDialogsState;
52
- /**
53
- * if you see error in matcher that's mean the DispatchAction does not
54
- * contains the same functions in reducers and actions
55
- */
56
52
  socialLoginState: import("..").SocialLoginState;
57
53
  signUpState: import("..").SignUpState;
58
54
  apiTokensState: ApiTokensState;
@@ -72,6 +68,7 @@ declare const reducers: {
72
68
  allAccountsState?: import("..").IAllAccountsState | undefined;
73
69
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
74
70
  securityCenterState?: import("..").SecurityCenterState | undefined;
71
+ smsState?: import("..").SmsState | undefined;
75
72
  routes: import("..").AuthPageRoutes;
76
73
  header?: any;
77
74
  loaderComponent?: any;
@@ -99,10 +96,6 @@ declare const reducers: {
99
96
  teamState: import("..").TeamState;
100
97
  groupsState: import("..").GroupsState;
101
98
  groupsDialogsState: import("..").GroupsDialogsState;
102
- /**
103
- * if you see error in matcher that's mean the DispatchAction does not
104
- * contains the same functions in reducers and actions
105
- */
106
99
  socialLoginState: import("..").SocialLoginState;
107
100
  signUpState: import("..").SignUpState;
108
101
  apiTokensState: ApiTokensState;
@@ -122,6 +115,7 @@ declare const reducers: {
122
115
  allAccountsState?: import("..").IAllAccountsState | undefined;
123
116
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
124
117
  securityCenterState?: import("..").SecurityCenterState | undefined;
118
+ smsState?: import("..").SmsState | undefined;
125
119
  routes: import("..").AuthPageRoutes;
126
120
  header?: any;
127
121
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
+ smsState?: import("..").SmsState | undefined;
53
54
  routes: import("..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -96,6 +97,7 @@ declare const reducers: {
96
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
97
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
+ smsState?: import("..").SmsState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
+ smsState?: import("..").SmsState | undefined;
53
54
  routes: import("..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -96,6 +97,7 @@ declare const reducers: {
96
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
97
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
+ smsState?: import("..").SmsState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -49,6 +49,7 @@ declare const reducers: {
49
49
  allAccountsState?: import("..").IAllAccountsState | undefined;
50
50
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
51
51
  securityCenterState?: import("..").SecurityCenterState | undefined;
52
+ smsState?: import("..").SmsState | undefined;
52
53
  routes: import("..").AuthPageRoutes;
53
54
  header?: any;
54
55
  loaderComponent?: any;
@@ -95,6 +96,7 @@ declare const reducers: {
95
96
  allAccountsState?: import("..").IAllAccountsState | undefined;
96
97
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
97
98
  securityCenterState?: import("..").SecurityCenterState | undefined;
99
+ smsState?: import("..").SmsState | undefined;
98
100
  routes: import("..").AuthPageRoutes;
99
101
  header?: any;
100
102
  loaderComponent?: any;
@@ -140,6 +142,7 @@ declare const reducers: {
140
142
  allAccountsState?: import("..").IAllAccountsState | undefined;
141
143
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
142
144
  securityCenterState?: import("..").SecurityCenterState | undefined;
145
+ smsState?: import("..").SmsState | undefined;
143
146
  routes: import("..").AuthPageRoutes;
144
147
  header?: any;
145
148
  loaderComponent?: any;
@@ -185,6 +188,7 @@ declare const reducers: {
185
188
  allAccountsState?: import("..").IAllAccountsState | undefined;
186
189
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
187
190
  securityCenterState?: import("..").SecurityCenterState | undefined;
191
+ smsState?: import("..").SmsState | undefined;
188
192
  routes: import("..").AuthPageRoutes;
189
193
  header?: any;
190
194
  loaderComponent?: any;
@@ -237,6 +241,7 @@ declare const reducers: {
237
241
  allAccountsState?: import("..").IAllAccountsState | undefined;
238
242
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
239
243
  securityCenterState?: import("..").SecurityCenterState | undefined;
244
+ smsState?: import("..").SmsState | undefined;
240
245
  routes: import("..").AuthPageRoutes;
241
246
  header?: any;
242
247
  loaderComponent?: any;
@@ -283,6 +288,7 @@ declare const reducers: {
283
288
  allAccountsState?: import("..").IAllAccountsState | undefined;
284
289
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
285
290
  securityCenterState?: import("..").SecurityCenterState | undefined;
291
+ smsState?: import("..").SmsState | undefined;
286
292
  routes: import("..").AuthPageRoutes;
287
293
  header?: any;
288
294
  loaderComponent?: any;
@@ -356,6 +362,7 @@ declare const reducers: {
356
362
  allAccountsState?: import("..").IAllAccountsState | undefined;
357
363
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
358
364
  securityCenterState?: import("..").SecurityCenterState | undefined;
365
+ smsState?: import("..").SmsState | undefined;
359
366
  routes: import("..").AuthPageRoutes;
360
367
  header?: any;
361
368
  loaderComponent?: any;
@@ -402,6 +409,7 @@ declare const reducers: {
402
409
  allAccountsState?: import("..").IAllAccountsState | undefined;
403
410
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
404
411
  securityCenterState?: import("..").SecurityCenterState | undefined;
412
+ smsState?: import("..").SmsState | undefined;
405
413
  routes: import("..").AuthPageRoutes;
406
414
  header?: any;
407
415
  loaderComponent?: any;
@@ -447,6 +455,7 @@ declare const reducers: {
447
455
  allAccountsState?: import("..").IAllAccountsState | undefined;
448
456
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
449
457
  securityCenterState?: import("..").SecurityCenterState | undefined;
458
+ smsState?: import("..").SmsState | undefined;
450
459
  routes: import("..").AuthPageRoutes;
451
460
  header?: any;
452
461
  loaderComponent?: any;
@@ -492,6 +501,7 @@ declare const reducers: {
492
501
  allAccountsState?: import("..").IAllAccountsState | undefined;
493
502
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
494
503
  securityCenterState?: import("..").SecurityCenterState | undefined;
504
+ smsState?: import("..").SmsState | undefined;
495
505
  routes: import("..").AuthPageRoutes;
496
506
  header?: any;
497
507
  loaderComponent?: any;
@@ -544,6 +554,7 @@ declare const reducers: {
544
554
  allAccountsState?: import("..").IAllAccountsState | undefined;
545
555
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
546
556
  securityCenterState?: import("..").SecurityCenterState | undefined;
557
+ smsState?: import("..").SmsState | undefined;
547
558
  routes: import("..").AuthPageRoutes;
548
559
  header?: any;
549
560
  loaderComponent?: any;
@@ -590,6 +601,7 @@ declare const reducers: {
590
601
  allAccountsState?: import("..").IAllAccountsState | undefined;
591
602
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
592
603
  securityCenterState?: import("..").SecurityCenterState | undefined;
604
+ smsState?: import("..").SmsState | undefined;
593
605
  routes: import("..").AuthPageRoutes;
594
606
  header?: any;
595
607
  loaderComponent?: any;
@@ -67,6 +67,7 @@ declare const reducers: {
67
67
  allAccountsState?: import("..").IAllAccountsState | undefined;
68
68
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
69
69
  securityCenterState?: import("..").SecurityCenterState | undefined;
70
+ smsState?: import("..").SmsState | undefined;
70
71
  routes: import("..").AuthPageRoutes;
71
72
  header?: any;
72
73
  loaderComponent?: any;
@@ -113,6 +114,7 @@ declare const reducers: {
113
114
  allAccountsState?: import("..").IAllAccountsState | undefined;
114
115
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
115
116
  securityCenterState?: import("..").SecurityCenterState | undefined;
117
+ smsState?: import("..").SmsState | undefined;
116
118
  routes: import("..").AuthPageRoutes;
117
119
  header?: any;
118
120
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
+ smsState?: import("..").SmsState | undefined;
53
54
  routes: import("..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -96,6 +97,7 @@ declare const reducers: {
96
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
97
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
+ smsState?: import("..").SmsState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -1,4 +1,4 @@
1
- import { IChangePhoneNumberWithVerification, ICreateNewDeviceSessionResponse, IEmailPasswordlessPreLogin, IEnrollMFAAuthenticatorApp, IEnrollMFASMS, IForgotPassword, ILogin, ILoginWithMfa, IPostLogin, IPreEnrollMFA, IPreEnrollMFASMS, IPreLogin, IPreVerifyMFA, IVerifyChangePhoneNumber, IVerifyMFAEmailCode, IVerifyMFASMS, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api';
1
+ import { IChangePhoneNumberWithVerification, ICreateNewDeviceSessionResponse, IEnrollMFAAuthenticatorApp, IEnrollMFASMS, IForgotPassword, ILogin, ILoginWithMfa, IPasswordlessPreLogin, IPostLogin, IPreEnrollMFA, IPreEnrollMFASMS, IPreLogin, IPreVerifyMFA, IVerifyChangePhoneNumber, IVerifyMFAEmailCode, IVerifyMFASMS, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api';
2
2
  import { FronteggNextJSSession, HostedLoginCallback, IEnrollMFAWebAuthnPayload, IPasswordlessPostLoginPayload, IPreEnrollMFAWebAuthNForLoginResponse, IPreVerifyMFAWebAuthNForLoginResponse, IQuickSmsPasswordlessPreLoginPayload, IRecoverMFATokenPayload, IVerifyMFAWebAuthnPayload, IVerifyNewWebAuthnDevicePayload, IWebAuthnPostLoginPayload, LoginState, WithDeviceId } from './interfaces';
3
3
  import { WithCallback } from '../../interfaces';
4
4
  import { IVerifyInviteToken } from '@frontegg/rest-api';
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsState?: import("..").IAllAccountsState | undefined;
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  securityCenterState?: import("..").SecurityCenterState | undefined;
55
+ smsState?: import("..").SmsState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
102
+ smsState?: import("..").SmsState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -143,7 +145,7 @@ declare const actions: {
143
145
  changePhoneNumberWithVerification: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IChangePhoneNumberWithVerification, boolean>], WithCallback<IChangePhoneNumberWithVerification, boolean>, string, never, never>;
144
146
  verifyChangePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IVerifyChangePhoneNumber, boolean>], WithCallback<IVerifyChangePhoneNumber, boolean>, string, never, never>;
145
147
  quickSmsPasswordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IQuickSmsPasswordlessPreLoginPayload, boolean>], WithCallback<IQuickSmsPasswordlessPreLoginPayload, boolean>, string, never, never>;
146
- passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IEmailPasswordlessPreLogin, void>], WithCallback<IEmailPasswordlessPreLogin, void>, string, never, never>;
148
+ passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPreLogin, void>], WithCallback<IPasswordlessPreLogin, void>, string, never, never>;
147
149
  passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPostLoginPayload, boolean>], WithCallback<IPasswordlessPostLoginPayload, boolean>, string, never, never>;
148
150
  verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IVerifyInviteToken], IVerifyInviteToken, string, never, never>;
149
151
  webAuthnPrelogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>], WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>, string, never, never>;
@@ -207,7 +209,7 @@ declare type DispatchedActions = {
207
209
  changePhoneNumberWithVerification: (payload: WithCallback<IChangePhoneNumberWithVerification>) => void;
208
210
  verifyChangePhoneNumber: (payload: WithCallback<IVerifyChangePhoneNumber>) => void;
209
211
  quickSmsPasswordlessPreLogin: (payload: WithCallback<IQuickSmsPasswordlessPreLoginPayload>) => void;
210
- passwordlessPreLogin: (payload: WithCallback<IEmailPasswordlessPreLogin, void>) => void;
212
+ passwordlessPreLogin: (payload: WithCallback<IPasswordlessPreLogin, void>) => void;
211
213
  passwordlessPostLogin: (payload: WithCallback<IPasswordlessPostLoginPayload>) => void;
212
214
  verifyInviteToken: (payload: IVerifyInviteToken) => void;
213
215
  webAuthnPrelogin: (payload: WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>) => void;
@@ -85,6 +85,9 @@ export interface IPreVerifyMFAWebAuthNForLoginResponse {
85
85
  export declare type WithDeviceId<T> = T & {
86
86
  deviceId: string;
87
87
  };
88
+ export declare type WithPhoneId<T> = T & {
89
+ phoneId: string;
90
+ };
88
91
  export declare type IEnrollMFAWebAuthnPayload = WithCallback<Omit<IEnrollMFAWebAuthn, 'options'>> & {
89
92
  publicKey: Credential;
90
93
  };
@@ -34,7 +34,6 @@ import { dummyIps, userDemo } from '../dummy';
34
34
  import { SamlVendors } from '../SSOState/interfaces';
35
35
  import { loadVendorPublicInfo } from '../../vendor/saga';
36
36
  import { createRandomString, generateCodeChallenge, getFeatureFlags } from '../../helpers';
37
- import { ResetPhoneNumberStep } from '../ResetPhoneNumberState/interfaces';
38
37
  import { base64urlDecode, delay, publicKeyCredentialToJSON } from '../utils';
39
38
  import { loadPublicAuthStrategiesPolicy } from '../Security/SecurityPolicyState/saga';
40
39
  import { getPasskeysVendorPolicy } from '../PasskeysState/helpers';
@@ -747,6 +746,9 @@ function* quickSmsPasswordlessPreLogin(_ref6) {
747
746
  callback == null ? void 0 : callback(e);
748
747
  }
749
748
  }
749
+ function isEmailPayload(payload) {
750
+ return 'email' in payload;
751
+ }
750
752
  function* passwordlessPreLogin(_ref7) {
751
753
  let {
752
754
  payload: {
@@ -755,39 +757,23 @@ function* passwordlessPreLogin(_ref7) {
755
757
  } = _ref7,
756
758
  payload = _objectWithoutPropertiesLoose(_ref7.payload, _excluded4);
757
759
  try {
758
- const {
759
- onRedirectTo,
760
- routes
761
- } = yield select(({
762
- auth: {
763
- onRedirectTo,
764
- routes
765
- }
766
- }) => ({
767
- onRedirectTo,
768
- routes
769
- }));
770
760
  yield put(actions.setLoginState({
771
761
  loading: true
772
762
  }));
763
+ let email;
764
+ if (isEmailPayload(payload)) {
765
+ email = payload.email;
766
+ }
773
767
 
774
768
  // TODO: [Typescript 4.8] fix @frontegg/rest-api return value
775
769
  // @ts-ignore
776
770
  const preloginRes = yield call(api.auth.passwordlessPreLogin, payload);
777
771
  const step = authStrategyLoginStepMap[payload.type];
778
- if (step === LoginStep.loginWithSmsOtc && preloginRes.resetPhoneNumberToken) {
779
- yield put(actions.setResetPhoneNumberState({
780
- resetPhoneNumberToken: preloginRes.resetPhoneNumberToken,
781
- step: ResetPhoneNumberStep.VerifyResetPhoneNumber
782
- }));
783
- onRedirectTo(routes.resetPhoneNumberUrl);
784
- return;
785
- }
786
772
  yield put(actions.setLoginState({
787
773
  step,
788
774
  loading: false,
789
775
  phoneNumber: preloginRes == null ? void 0 : preloginRes.phoneNumber,
790
- email: payload.email,
776
+ email,
791
777
  error: undefined
792
778
  }));
793
779
  callback == null ? void 0 : callback();
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("./types").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("../..").SecurityCenterState | undefined;
53
+ smsState?: import("../..").SmsState | undefined;
53
54
  routes: import("../..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -96,6 +97,7 @@ declare const reducers: {
96
97
  allAccountsState?: import("./types").IAllAccountsState | undefined;
97
98
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("../..").SecurityCenterState | undefined;
100
+ smsState?: import("../..").SmsState | undefined;
99
101
  routes: import("../..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -160,6 +162,7 @@ declare const reducers: {
160
162
  allAccountsState?: import("./types").IAllAccountsState | undefined;
161
163
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
162
164
  securityCenterState?: import("../..").SecurityCenterState | undefined;
165
+ smsState?: import("../..").SmsState | undefined;
163
166
  routes: import("../..").AuthPageRoutes;
164
167
  header?: any;
165
168
  loaderComponent?: any;
@@ -206,6 +209,7 @@ declare const reducers: {
206
209
  allAccountsState?: import("./types").IAllAccountsState | undefined;
207
210
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
208
211
  securityCenterState?: import("../..").SecurityCenterState | undefined;
212
+ smsState?: import("../..").SmsState | undefined;
209
213
  routes: import("../..").AuthPageRoutes;
210
214
  header?: any;
211
215
  loaderComponent?: any;
@@ -258,6 +262,7 @@ declare const reducers: {
258
262
  allAccountsState?: import("./types").IAllAccountsState | undefined;
259
263
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
260
264
  securityCenterState?: import("../..").SecurityCenterState | undefined;
265
+ smsState?: import("../..").SmsState | undefined;
261
266
  routes: import("../..").AuthPageRoutes;
262
267
  header?: any;
263
268
  loaderComponent?: any;
@@ -304,6 +309,7 @@ declare const reducers: {
304
309
  allAccountsState?: import("./types").IAllAccountsState | undefined;
305
310
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
306
311
  securityCenterState?: import("../..").SecurityCenterState | undefined;
312
+ smsState?: import("../..").SmsState | undefined;
307
313
  routes: import("../..").AuthPageRoutes;
308
314
  header?: any;
309
315
  loaderComponent?: any;
@@ -368,6 +374,7 @@ declare const reducers: {
368
374
  allAccountsState?: import("./types").IAllAccountsState | undefined;
369
375
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
370
376
  securityCenterState?: import("../..").SecurityCenterState | undefined;
377
+ smsState?: import("../..").SmsState | undefined;
371
378
  routes: import("../..").AuthPageRoutes;
372
379
  header?: any;
373
380
  loaderComponent?: any;
@@ -414,6 +421,7 @@ declare const reducers: {
414
421
  allAccountsState?: import("./types").IAllAccountsState | undefined;
415
422
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
416
423
  securityCenterState?: import("../..").SecurityCenterState | undefined;
424
+ smsState?: import("../..").SmsState | undefined;
417
425
  routes: import("../..").AuthPageRoutes;
418
426
  header?: any;
419
427
  loaderComponent?: any;
@@ -478,6 +486,7 @@ declare const reducers: {
478
486
  allAccountsState?: import("./types").IAllAccountsState | undefined;
479
487
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
480
488
  securityCenterState?: import("../..").SecurityCenterState | undefined;
489
+ smsState?: import("../..").SmsState | undefined;
481
490
  routes: import("../..").AuthPageRoutes;
482
491
  header?: any;
483
492
  loaderComponent?: any;
@@ -524,6 +533,7 @@ declare const reducers: {
524
533
  allAccountsState?: import("./types").IAllAccountsState | undefined;
525
534
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
526
535
  securityCenterState?: import("../..").SecurityCenterState | undefined;
536
+ smsState?: import("../..").SmsState | undefined;
527
537
  routes: import("../..").AuthPageRoutes;
528
538
  header?: any;
529
539
  loaderComponent?: any;
@@ -594,6 +604,7 @@ declare const reducers: {
594
604
  allAccountsState?: import("./types").IAllAccountsState | undefined;
595
605
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
596
606
  securityCenterState?: import("../..").SecurityCenterState | undefined;
607
+ smsState?: import("../..").SmsState | undefined;
597
608
  routes: import("../..").AuthPageRoutes;
598
609
  header?: any;
599
610
  loaderComponent?: any;
@@ -640,6 +651,7 @@ declare const reducers: {
640
651
  allAccountsState?: import("./types").IAllAccountsState | undefined;
641
652
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
642
653
  securityCenterState?: import("../..").SecurityCenterState | undefined;
654
+ smsState?: import("../..").SmsState | undefined;
643
655
  routes: import("../..").AuthPageRoutes;
644
656
  header?: any;
645
657
  loaderComponent?: any;
@@ -692,6 +704,7 @@ declare const reducers: {
692
704
  allAccountsState?: import("./types").IAllAccountsState | undefined;
693
705
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
694
706
  securityCenterState?: import("../..").SecurityCenterState | undefined;
707
+ smsState?: import("../..").SmsState | undefined;
695
708
  routes: import("../..").AuthPageRoutes;
696
709
  header?: any;
697
710
  loaderComponent?: any;
@@ -738,6 +751,7 @@ declare const reducers: {
738
751
  allAccountsState?: import("./types").IAllAccountsState | undefined;
739
752
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
740
753
  securityCenterState?: import("../..").SecurityCenterState | undefined;
754
+ smsState?: import("../..").SmsState | undefined;
741
755
  routes: import("../..").AuthPageRoutes;
742
756
  header?: any;
743
757
  loaderComponent?: any;
@@ -69,6 +69,7 @@ declare const reducers: {
69
69
  allAccountsState?: IAllAccountsState | undefined;
70
70
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
71
71
  securityCenterState?: import("../..").SecurityCenterState | undefined;
72
+ smsState?: import("../..").SmsState | undefined;
72
73
  routes: import("../..").AuthPageRoutes;
73
74
  header?: any;
74
75
  loaderComponent?: any;
@@ -122,6 +123,7 @@ declare const reducers: {
122
123
  allAccountsState?: IAllAccountsState | undefined;
123
124
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
124
125
  securityCenterState?: import("../..").SecurityCenterState | undefined;
126
+ smsState?: import("../..").SmsState | undefined;
125
127
  routes: import("../..").AuthPageRoutes;
126
128
  header?: any;
127
129
  loaderComponent?: any;
@@ -168,6 +170,7 @@ declare const reducers: {
168
170
  allAccountsState?: IAllAccountsState | undefined;
169
171
  allAccountsDialogsState?: import("./types").IAllAccountsDialogsState | undefined;
170
172
  securityCenterState?: import("../..").SecurityCenterState | undefined;
173
+ smsState?: import("../..").SmsState | undefined;
171
174
  routes: import("../..").AuthPageRoutes;
172
175
  header?: any;
173
176
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsState?: import("..").IAllAccountsState | undefined;
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  securityCenterState?: import("..").SecurityCenterState | undefined;
55
+ smsState?: import("..").SmsState | undefined;
55
56
  routes: import("..").AuthPageRoutes;
56
57
  header?: any;
57
58
  loaderComponent?: any;
@@ -98,6 +99,7 @@ declare const reducers: {
98
99
  allAccountsState?: import("..").IAllAccountsState | undefined;
99
100
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
100
101
  securityCenterState?: import("..").SecurityCenterState | undefined;
102
+ smsState?: import("..").SmsState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  securityCenterState?: import("..").SecurityCenterState | undefined;
53
+ smsState?: import("..").SmsState | undefined;
53
54
  routes: import("..").AuthPageRoutes;
54
55
  header?: any;
55
56
  loaderComponent?: any;
@@ -96,6 +97,7 @@ declare const reducers: {
96
97
  allAccountsState?: import("..").IAllAccountsState | undefined;
97
98
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
99
  securityCenterState?: import("..").SecurityCenterState | undefined;
100
+ smsState?: import("..").SmsState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
+ smsState?: import("..").SmsState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -97,6 +98,7 @@ declare const reducers: {
97
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
+ smsState?: import("..").SmsState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
+ smsState?: import("..").SmsState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -97,6 +98,7 @@ declare const reducers: {
97
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
+ smsState?: import("..").SmsState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  securityCenterState?: import("..").SecurityCenterState | undefined;
54
+ smsState?: import("..").SmsState | undefined;
54
55
  routes: import("..").AuthPageRoutes;
55
56
  header?: any;
56
57
  loaderComponent?: any;
@@ -97,6 +98,7 @@ declare const reducers: {
97
98
  allAccountsState?: import("..").IAllAccountsState | undefined;
98
99
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
99
100
  securityCenterState?: import("..").SecurityCenterState | undefined;
101
+ smsState?: import("..").SmsState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -5,10 +5,10 @@ export declare function changePhoneNumber({ payload: { callback, ...body } }: Pa
5
5
  payload: Partial<import("../LoginState/interfaces").LoginState>;
6
6
  type: string;
7
7
  }> | import("redux-saga/effects").PutEffect<{
8
- payload: Partial<import("./interfaces").ResetPhoneNumberState>;
8
+ payload: WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>;
9
9
  type: string;
10
10
  }> | import("redux-saga/effects").PutEffect<{
11
- payload: WithCallback<import("@frontegg/rest-api").IEmailPasswordlessPreLogin, void>;
11
+ payload: Partial<import("./interfaces").ResetPhoneNumberState>;
12
12
  type: string;
13
13
  }>, void, {
14
14
  onRedirectTo: any;