@frontegg/redux-store 5.62.2 → 5.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { ICreateNewDeviceSessionResponse, ILogin, ILoginWithMfa, IPasswordlessPreLogin, IPostLogin, IPreLogin, IRecoverMFAToken, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api';
2
- import { HostedLoginCallback, IPasswordlessPostLoginPayload, IVerifyNewWebAuthnDevicePayload, IWebAuthnPostLoginPayload, LoginState } from './interfaces';
1
+ import { IChangePhoneNumberWithVerification, ICreateNewDeviceSessionResponse, ILogin, ILoginWithMfa, IPasswordlessPreLogin, IPostLogin, IPreLogin, IRecoverMFAToken, IVerifyChangePhoneNumber, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api';
2
+ import { HostedLoginCallback, IPasswordlessPostLoginPayload, IQuickSmsPasswordlessPreLoginPayload, IVerifyNewWebAuthnDevicePayload, IWebAuthnPostLoginPayload, LoginState } from './interfaces';
3
3
  import { WithCallback } from '../../interfaces';
4
4
  import { IVerifyInviteToken } from '@frontegg/rest-api';
5
5
  declare const loginState: LoginState;
@@ -95,6 +95,9 @@ declare const actions: {
95
95
  }], {
96
96
  mfaToken: string;
97
97
  }, string, never, never>;
98
+ changePhoneNumberWithVerification: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IChangePhoneNumberWithVerification, boolean>], WithCallback<IChangePhoneNumberWithVerification, boolean>, string, never, never>;
99
+ verifyChangePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IVerifyChangePhoneNumber, boolean>], WithCallback<IVerifyChangePhoneNumber, boolean>, string, never, never>;
100
+ quickSmsPasswordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IQuickSmsPasswordlessPreLoginPayload, boolean>], WithCallback<IQuickSmsPasswordlessPreLoginPayload, boolean>, string, never, never>;
98
101
  passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPreLogin, void>], WithCallback<IPasswordlessPreLogin, void>, string, never, never>;
99
102
  passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPasswordlessPostLoginPayload, boolean>], WithCallback<IPasswordlessPostLoginPayload, boolean>, string, never, never>;
100
103
  verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IVerifyInviteToken], IVerifyInviteToken, string, never, never>;
@@ -132,6 +135,9 @@ declare type DispatchedActions = {
132
135
  checkIfAllowToRememberMfaDevice: (payload: {
133
136
  mfaToken: string;
134
137
  }) => void;
138
+ changePhoneNumberWithVerification: (payload: WithCallback<IChangePhoneNumberWithVerification>) => void;
139
+ verifyChangePhoneNumber: (payload: WithCallback<IVerifyChangePhoneNumber>) => void;
140
+ quickSmsPasswordlessPreLogin: (payload: WithCallback<IQuickSmsPasswordlessPreLoginPayload>) => void;
135
141
  passwordlessPreLogin: (payload: IPasswordlessPreLogin) => void;
136
142
  passwordlessPostLogin: (payload: WithCallback<IPasswordlessPostLoginPayload>) => void;
137
143
  verifyInviteToken: (payload: IVerifyInviteToken) => void;
@@ -5,6 +5,7 @@ export declare enum LoginStep {
5
5
  'preLogin' = "preLogin",
6
6
  'magicLinkPreLoginSuccess' = "magicLinkPreLoginSuccess",
7
7
  'loginWithSmsOtc' = "loginWithSmsOtc",
8
+ 'loginWithQuickSmsOtc' = "loginWithQuickSmsOtc",
8
9
  'loginWithOtc' = "loginWithOtc",
9
10
  'loginWithPassword' = "loginWithPassword",
10
11
  'loginWithTwoFactor' = "loginWithTwoFactor",
@@ -42,12 +43,18 @@ export interface LoginState {
42
43
  isNewUser?: boolean;
43
44
  phoneNumber?: string;
44
45
  quickLoginToRegister?: QuickLoginStrategy;
46
+ changePhoneId?: string;
45
47
  }
46
48
  export interface HostedLoginCallback {
47
49
  code: string;
48
50
  state?: string;
49
51
  nonce?: string;
50
52
  }
53
+ export interface IQuickSmsPasswordlessPreLoginPayload {
54
+ email: string;
55
+ recaptchaToken?: string;
56
+ invitationToken?: string;
57
+ }
51
58
  export interface IPasswordlessPostLoginPayload extends IPasswordlessPostLogin {
52
59
  events?: CustomEventsOptions;
53
60
  }
@@ -38,6 +38,7 @@ export declare function getMfaRequiredState(user: any): Generator<import("redux-
38
38
  isNewUser?: boolean | undefined;
39
39
  phoneNumber?: string | undefined;
40
40
  quickLoginToRegister?: QuickLoginStrategy | undefined;
41
+ changePhoneId?: string | undefined;
41
42
  };
42
43
  user: undefined;
43
44
  isAuthenticated: boolean;
@@ -70,6 +71,7 @@ export declare function refreshToken(): Generator<import("redux-saga/effects").S
70
71
  isNewUser?: boolean | undefined;
71
72
  phoneNumber?: string | undefined;
72
73
  quickLoginToRegister?: QuickLoginStrategy | undefined;
74
+ changePhoneId?: string | undefined;
73
75
  };
74
76
  user: undefined;
75
77
  isAuthenticated: boolean;
@@ -115,6 +115,7 @@ declare const actions: {
115
115
  lockUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IDeleteUser, boolean>], WithCallback<IDeleteUser, boolean>, string, never, never>;
116
116
  resendActivationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResendActivationLink, boolean>], WithCallback<IResendActivationLink, boolean>, string, never, never>;
117
117
  resendInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResendInvitationLink, boolean>], WithCallback<IResendInvitationLink, boolean>, string, never, never>;
118
+ resendInvitationLinkToAllSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResendInvitationLink, boolean>], WithCallback<IResendInvitationLink, boolean>, string, never, never>;
118
119
  getInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
119
120
  createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ICreateOrUpdateInviteUserLink, string>], WithCallback<ICreateOrUpdateInviteUserLink, string>, string, never, never>;
120
121
  updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ICreateOrUpdateInviteUserLink, boolean>], WithCallback<ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
@@ -153,6 +154,7 @@ declare type DispatchedActions = {
153
154
  lockUser: (payload: WithCallback<IDeleteUser>) => void;
154
155
  resendActivationLink: (payload: WithCallback<IResendActivationLink>) => void;
155
156
  resendInvitationLink: (payload: WithCallback<IResendInvitationLink>) => void;
157
+ resendInvitationLinkToAllSubTenants: (payload: WithCallback<IResendInvitationLink>) => void;
156
158
  getInvitationLink: () => void;
157
159
  createInvitationLink: (payload: WithCallback<ICreateOrUpdateInviteUserLink, string>) => void;
158
160
  updateInvitationLink: (payload: WithCallback<ICreateOrUpdateInviteUserLink>) => void;
package/auth/index.d.ts CHANGED
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  lockUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IDeleteUser, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IDeleteUser, boolean>, string, never, never>;
125
125
  resendActivationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendActivationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendActivationLink, boolean>, string, never, never>;
126
126
  resendInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>, string, never, never>;
127
+ resendInvitationLinkToAllSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>, string, never, never>;
127
128
  getInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
128
129
  createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>, string, never, never>;
129
130
  updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
@@ -289,6 +290,9 @@ declare const _default: {
289
290
  }], {
290
291
  mfaToken: string;
291
292
  }, string, never, never>;
293
+ changePhoneNumberWithVerification: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IChangePhoneNumberWithVerification, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IChangePhoneNumberWithVerification, boolean>, string, never, never>;
294
+ verifyChangePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IVerifyChangePhoneNumber, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IVerifyChangePhoneNumber, boolean>, string, never, never>;
295
+ quickSmsPasswordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("./LoginState/interfaces").IQuickSmsPasswordlessPreLoginPayload, boolean>], import("../interfaces").WithCallback<import("./LoginState/interfaces").IQuickSmsPasswordlessPreLoginPayload, boolean>, string, never, never>;
292
296
  passwordlessPreLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IPasswordlessPreLogin, void>, string, never, never>;
293
297
  passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("./LoginState/interfaces").IPasswordlessPostLoginPayload, boolean>], import("../interfaces").WithCallback<import("./LoginState/interfaces").IPasswordlessPostLoginPayload, boolean>, string, never, never>;
294
298
  verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IVerifyInviteToken], import("@frontegg/rest-api").IVerifyInviteToken, string, never, never>;