@frontegg/redux-store 5.59.1 → 5.61.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.
- package/auth/LoginState/index.d.ts +14 -2
- package/auth/LoginState/interfaces.d.ts +21 -2
- package/auth/LoginState/saga.d.ts +5 -1
- package/auth/SecurityPolicyState/index.d.ts +47 -1
- package/auth/SecurityPolicyState/interfaces.d.ts +3 -1
- package/auth/SecurityPolicyState/saga.d.ts +6 -0
- package/auth/TeamState/index.d.ts +21 -1
- package/auth/TeamState/interfaces.d.ts +10 -1
- package/auth/TenantsState/index.d.ts +6 -0
- package/auth/TenantsState/interfaces.d.ts +2 -1
- package/auth/dummy.d.ts +3 -1
- package/auth/index.d.ts +30 -0
- package/auth/index.js +493 -36
- package/auth/reducer.d.ts +30 -0
- package/auth/utils.d.ts +3 -0
- package/index.js +1 -1
- package/node/auth/index.js +15 -3
- package/node/{index-c7535125.js → index-5642a636.js} +513 -146
- package/node/index-6906e508.js +151 -0
- package/node/index.js +14 -2
- package/node/toolkit/index.js +2 -2
- package/node/vendor/index.js +1 -1
- package/package.json +2 -2
- package/node/index-2ab7009b.js +0 -52
package/auth/reducer.d.ts
CHANGED
|
@@ -38,6 +38,11 @@ declare const actions: {
|
|
|
38
38
|
} | undefined)?], {
|
|
39
39
|
callback?: ((data: boolean | null, error?: string | undefined) => void) | undefined;
|
|
40
40
|
} | undefined, string, never, never>;
|
|
41
|
+
loadSubTenantsTree: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
42
|
+
callback?: ((data: boolean | null, error?: string | undefined) => void) | undefined;
|
|
43
|
+
} | undefined)?], {
|
|
44
|
+
callback?: ((data: boolean | null, error?: string | undefined) => void) | undefined;
|
|
45
|
+
} | undefined, string, never, never>;
|
|
41
46
|
loadAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("../interfaces").WithCallback<{
|
|
42
47
|
silentLoading?: boolean | undefined;
|
|
43
48
|
}, boolean> | undefined)?], import("../interfaces").WithCallback<{
|
|
@@ -55,6 +60,7 @@ declare const actions: {
|
|
|
55
60
|
loadSecurityPolicyPasswordHistory: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
56
61
|
saveSecurityPolicyPasswordHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ISaveSecurityPolicyPasswordHistory, import("@frontegg/rest-api").ISecurityPolicyPasswordHistory>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ISaveSecurityPolicyPasswordHistory, import("@frontegg/rest-api").ISecurityPolicyPasswordHistory>, string, never, never>;
|
|
57
62
|
loadVendorPasswordConfig: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
63
|
+
loadPublicAuthStrategiesPolicy: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
58
64
|
loadApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("../interfaces").WithSilentLoad<{
|
|
59
65
|
callback?: ((data: boolean | null, error?: string | undefined) => void) | undefined;
|
|
60
66
|
}> | undefined)?], import("../interfaces").WithSilentLoad<{
|
|
@@ -66,6 +72,7 @@ declare const actions: {
|
|
|
66
72
|
deleteUserApiToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
67
73
|
deleteTenantApiToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[string], string, string, never, never>;
|
|
68
74
|
loadUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("../interfaces").WithSilentLoad<import("@frontegg/rest-api").ILoadUsers>, import("@frontegg/rest-api").ITeamUser[]>], import("../interfaces").WithCallback<import("../interfaces").WithSilentLoad<import("@frontegg/rest-api").ILoadUsers>, import("@frontegg/rest-api").ITeamUser[]>, string, never, never>;
|
|
75
|
+
loadAllSubTenantsUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("../interfaces").WithSilentLoad<Partial<import("@frontegg/rest-api").ILoadAllUsers>>, import("@frontegg/rest-api").ISubTenantUser[]>], import("../interfaces").WithCallback<import("../interfaces").WithSilentLoad<Partial<import("@frontegg/rest-api").ILoadAllUsers>>, import("@frontegg/rest-api").ISubTenantUser[]>, string, never, never>;
|
|
69
76
|
loadRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
70
77
|
callback?: ((data: {
|
|
71
78
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
@@ -78,8 +85,16 @@ declare const actions: {
|
|
|
78
85
|
} | null, error?: string | undefined) => void) | undefined;
|
|
79
86
|
} | undefined, string, never, never>;
|
|
80
87
|
addUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IAddUser, import("@frontegg/rest-api").ITeamUser>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IAddUser, import("@frontegg/rest-api").ITeamUser>, string, never, never>;
|
|
88
|
+
addUserToSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").AddUserToSubTenantsRequest, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").AddUserToSubTenantsRequest, boolean>, string, never, never>;
|
|
81
89
|
updateUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<Partial<import("@frontegg/rest-api").ITeamUser>, import("@frontegg/rest-api").ITeamUser>], import("../interfaces").WithCallback<Partial<import("@frontegg/rest-api").ITeamUser>, import("@frontegg/rest-api").ITeamUser>, string, never, never>;
|
|
82
90
|
deleteUser: 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>;
|
|
91
|
+
setUserRolesForSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").UpdateUserRolesForSubTenantsRequestDto & {
|
|
92
|
+
userId: string;
|
|
93
|
+
}, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").UpdateUserRolesForSubTenantsRequestDto & {
|
|
94
|
+
userId: string;
|
|
95
|
+
}, boolean>, string, never, never>;
|
|
96
|
+
deleteUserFromSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").RemoveUserFromSubTenantsRequest, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").RemoveUserFromSubTenantsRequest, boolean>, string, never, never>;
|
|
97
|
+
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>;
|
|
83
98
|
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>;
|
|
84
99
|
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>;
|
|
85
100
|
getInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -94,6 +109,8 @@ declare const actions: {
|
|
|
94
109
|
closeAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[any?], any, string, never, never>;
|
|
95
110
|
openDeleteUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(Pick<import(".").DeleteUserDialogState, "email" | "onClose" | "userId"> | undefined)?], Pick<import(".").DeleteUserDialogState, "email" | "onClose" | "userId"> | undefined, string, never, never>;
|
|
96
111
|
closeDeleteUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[any?], any, string, never, never>;
|
|
112
|
+
openLockUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(Pick<import(".").DeleteUserDialogState, "email" | "onClose" | "userId"> | undefined)?], Pick<import(".").DeleteUserDialogState, "email" | "onClose" | "userId"> | undefined, string, never, never>;
|
|
113
|
+
closeLockUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[any?], any, string, never, never>;
|
|
97
114
|
enrollMfa: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
98
115
|
verifyMfa: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IVerifyMfa, string | undefined>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IVerifyMfa, string | undefined>, string, never, never>;
|
|
99
116
|
verifyMfaAfterForce: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ILoginWithMfa, string | undefined>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ILoginWithMfa, string | undefined>, string, never, never>;
|
|
@@ -248,6 +265,14 @@ declare const actions: {
|
|
|
248
265
|
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>;
|
|
249
266
|
passwordlessPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import(".").IPasswordlessPostLoginPayload, boolean>], import("../interfaces").WithCallback<import(".").IPasswordlessPostLoginPayload, boolean>, string, never, never>;
|
|
250
267
|
verifyInviteToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IVerifyInviteToken], import("@frontegg/rest-api").IVerifyInviteToken, string, never, never>;
|
|
268
|
+
webAuthnPrelogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IWebAuthnPreLogin, import("@frontegg/rest-api").IWebAuthnPreLoginResponse | null>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IWebAuthnPreLogin, import("@frontegg/rest-api").IWebAuthnPreLoginResponse | null>, string, never, never>;
|
|
269
|
+
webAuthnPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IWebAuthnPostLoginPayload], import(".").IWebAuthnPostLoginPayload, string, never, never>;
|
|
270
|
+
webAuthnCreateNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
271
|
+
callback?: ((data: import("@frontegg/rest-api").ICreateNewDeviceSessionResponse | null, error?: string | undefined) => void) | undefined;
|
|
272
|
+
}], {
|
|
273
|
+
callback?: ((data: import("@frontegg/rest-api").ICreateNewDeviceSessionResponse | null, error?: string | undefined) => void) | undefined;
|
|
274
|
+
}, string, never, never>;
|
|
275
|
+
webAuthnVerifyNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IVerifyNewWebAuthnDevicePayload], import(".").IVerifyNewWebAuthnDevicePayload, string, never, never>;
|
|
251
276
|
setRolesState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import(".").RolesState>], Partial<import(".").RolesState>, string, never, never>;
|
|
252
277
|
resetRolesState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
253
278
|
setTenantsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import(".").TenantsState>], Partial<import(".").TenantsState>, string, never, never>;
|
|
@@ -265,6 +290,11 @@ declare const actions: {
|
|
|
265
290
|
}>], Partial<import("../interfaces").WithStatus & {
|
|
266
291
|
policy?: import("@frontegg/rest-api").IVendorConfig | undefined;
|
|
267
292
|
}>, string, never, never>;
|
|
293
|
+
setSecurityPolicyAuthStrategyPublicState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("../interfaces").WithStatus & {
|
|
294
|
+
policy?: import("@frontegg/rest-api").IAuthStrategiesConfig | undefined;
|
|
295
|
+
}>], Partial<import("../interfaces").WithStatus & {
|
|
296
|
+
policy?: import("@frontegg/rest-api").IAuthStrategiesConfig | undefined;
|
|
297
|
+
}>, string, never, never>;
|
|
268
298
|
setSecurityPolicyMfaState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("../interfaces").WithStatus & {
|
|
269
299
|
policy?: import("@frontegg/rest-api").ISecurityPolicyMfa | undefined;
|
|
270
300
|
}>], Partial<import("../interfaces").WithStatus & {
|
package/auth/utils.d.ts
CHANGED
|
@@ -160,3 +160,6 @@ export declare const errorsReducerForKey: <T extends {
|
|
|
160
160
|
}) => AuthState;
|
|
161
161
|
};
|
|
162
162
|
export declare const delay: (delayTime?: number) => Promise<unknown>;
|
|
163
|
+
export declare const base64urlEncode: (arraybuffer: any) => string;
|
|
164
|
+
export declare const base64urlDecode: (base64string: string) => ArrayBufferLike;
|
|
165
|
+
export declare const publicKeyCredentialToJSON: (pubKeyCred: unknown) => unknown;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AcceptInvitationStep, ActivateAccountStep, ApiStateKeys, AuthenticationTypes, ForgotPasswordStep, LoginStep, MFAStep, ResetPhoneNumberStep, SSOStateKeys, SamlVendors, SignUpStage, TeamStateKeys, UserVeirifedOriginTypes, acceptInvitationActions, acceptInvitationReducers, acceptInvitationState, accountSettingsActions, accountSettingsReducers, accountSettingsState, activateAccountActions, activateAccountReducers, activateState, apiTokensActions, apiTokensReducers, apiTokensState, default as auth, authActions, authInitialState, authMockSagas, authReducers, authSagas, forgotPasswordActions, forgotPasswordReducers, forgotPasswordState, loginActions, loginReducers, loginState, mfaActions, mfaReducers, mfaState, profileActions, profileReducers, profileState, resetPhoneNumberActions, resetPhoneNumberReducers, resetPhoneNumberState, rolesActions, rolesReducers, rolesState, securityPolicyActions, securityPolicyReducers, securityPolicyState, signUpActions, signUpReducers, signUpState, socialLoginState, socialLoginsActions, socialLoginsReducer, ssoActions, ssoReducers, ssoState, teamActions, teamReducers, teamState, tenantsActions, tenantsReducers, tenantsState } from './auth/index.js';
|
|
1
|
+
export { AcceptInvitationStep, ActivateAccountStep, ApiStateKeys, AuthenticationTypes, ForgotPasswordStep, LoginFlow, LoginStep, MFAStep, QuickLoginStrategy, ResetPhoneNumberStep, SSOStateKeys, SamlVendors, SignUpStage, TeamStateKeys, UserVeirifedOriginTypes, acceptInvitationActions, acceptInvitationReducers, acceptInvitationState, accountSettingsActions, accountSettingsReducers, accountSettingsState, activateAccountActions, activateAccountReducers, activateState, apiTokensActions, apiTokensReducers, apiTokensState, default as auth, authActions, authInitialState, authMockSagas, authReducers, authSagas, forgotPasswordActions, forgotPasswordReducers, forgotPasswordState, loginActions, loginReducers, loginState, mfaActions, mfaReducers, mfaState, profileActions, profileReducers, profileState, resetPhoneNumberActions, resetPhoneNumberReducers, resetPhoneNumberState, rolesActions, rolesReducers, rolesState, securityPolicyActions, securityPolicyReducers, securityPolicyState, signUpActions, signUpReducers, signUpState, socialLoginState, socialLoginsActions, socialLoginsReducer, ssoActions, ssoReducers, ssoState, teamActions, teamReducers, teamState, tenantsActions, tenantsReducers, tenantsState } from './auth/index.js';
|
|
2
2
|
export { auditLogsActions, auditLogsReducers, auditLogsState, default as audits, auditsActions, auditsInitialState, auditsMetadataActions, auditsMetadataReducers, auditsMetadataState, auditsMockSagas, auditsReducers, auditsSagas } from './audits/index.js';
|
|
3
3
|
export { default as connectivity, connectivityActions, connectivityInitialState, connectivityReducers, connectivitySagas } from './connectivity/index.js';
|
|
4
4
|
export { PaymentMethodType, PaymentProvider, SubscriptionCancellationPolicy, SubscriptionStatus, subscriptionActions, subscriptionInitialState, subscriptionReducers, subscriptionSagas, subscriptionSagasMock, default as subscriptions } from './subscriptions/index.js';
|
package/node/auth/index.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('../index-
|
|
5
|
+
var auth_index = require('../index-5642a636.js');
|
|
6
6
|
var constants = require('../constants-52e37c08.js');
|
|
7
7
|
var restApi = require('@frontegg/rest-api');
|
|
8
8
|
require('@reduxjs/toolkit');
|
|
9
|
-
require('
|
|
9
|
+
require('../index-6906e508.js');
|
|
10
10
|
require('redux-saga/effects');
|
|
11
|
-
require('
|
|
11
|
+
require('tslib');
|
|
12
12
|
require('uuid');
|
|
13
13
|
require('../audits/index.js');
|
|
14
14
|
require('../connectivity/index.js');
|
|
@@ -48,6 +48,12 @@ Object.defineProperty(exports, 'ForgotPasswordStep', {
|
|
|
48
48
|
return auth_index.ForgotPasswordStep;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
+
Object.defineProperty(exports, 'LoginFlow', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return auth_index.LoginFlow;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
51
57
|
Object.defineProperty(exports, 'LoginStep', {
|
|
52
58
|
enumerable: true,
|
|
53
59
|
get: function () {
|
|
@@ -60,6 +66,12 @@ Object.defineProperty(exports, 'MFAStep', {
|
|
|
60
66
|
return auth_index.MFAStep;
|
|
61
67
|
}
|
|
62
68
|
});
|
|
69
|
+
Object.defineProperty(exports, 'QuickLoginStrategy', {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () {
|
|
72
|
+
return auth_index.QuickLoginStrategy;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
63
75
|
Object.defineProperty(exports, 'ResetPhoneNumberStep', {
|
|
64
76
|
enumerable: true,
|
|
65
77
|
get: function () {
|