@frontegg/redux-store 6.129.0-alpha.1 → 6.129.0-alpha.3

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 (65) hide show
  1. package/auth/ActivateState/index.d.ts +12 -0
  2. package/auth/ApiTokensState/index.d.ts +8 -0
  3. package/auth/LoginState/saga.js +1 -1
  4. package/auth/SSOState/saga.v2.js +4 -9
  5. package/auth/Security/RestrictionsState/index.d.ts +214 -0
  6. package/auth/{RestrictionsState → Security/RestrictionsState}/index.js +2 -2
  7. package/auth/{RestrictionsState → Security/RestrictionsState}/interfaces.d.ts +1 -1
  8. package/auth/{RestrictionsState → Security/RestrictionsState}/saga.js +5 -5
  9. package/auth/Security/SecurityCenterState/index.d.ts +141 -0
  10. package/auth/{SecurityCenterState → Security/SecurityCenterState}/index.js +2 -2
  11. package/auth/{SecurityCenterState → Security/SecurityCenterState}/interfaces.d.ts +1 -1
  12. package/auth/{SecurityCenterState → Security/SecurityCenterState}/saga.js +4 -4
  13. package/auth/Security/SecurityPolicyState/index.d.ts +802 -0
  14. package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/index.js +2 -2
  15. package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/interfaces.d.ts +1 -1
  16. package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/saga.d.ts +9 -9
  17. package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/saga.js +5 -5
  18. package/auth/Security/SessionsPolicyState/index.d.ts +120 -0
  19. package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/index.js +2 -2
  20. package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/saga.js +2 -2
  21. package/auth/SignUp/saga.js +1 -1
  22. package/auth/index.d.ts +17 -17
  23. package/auth/index.js +9 -9
  24. package/auth/initialState.js +4 -4
  25. package/auth/interfaces.d.ts +4 -4
  26. package/auth/reducer.d.ts +3 -3
  27. package/auth/reducer.js +4 -4
  28. package/auth/saga.js +4 -4
  29. package/index.js +1 -1
  30. package/node/auth/LoginState/saga.js +1 -1
  31. package/node/auth/SSOState/saga.v2.js +3 -8
  32. package/node/auth/{RestrictionsState → Security/RestrictionsState}/index.js +2 -2
  33. package/node/auth/{RestrictionsState → Security/RestrictionsState}/saga.js +5 -5
  34. package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/index.js +2 -2
  35. package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/saga.js +4 -4
  36. package/node/auth/{SecurityPolicyState → Security/SecurityPolicyState}/index.js +2 -2
  37. package/node/auth/{SecurityPolicyState → Security/SecurityPolicyState}/saga.js +5 -5
  38. package/node/auth/{SessionsPolicyState → Security/SessionsPolicyState}/index.js +2 -2
  39. package/node/auth/{SessionsPolicyState → Security/SessionsPolicyState}/saga.js +2 -2
  40. package/node/auth/SignUp/saga.js +1 -1
  41. package/node/auth/index.js +9 -9
  42. package/node/auth/initialState.js +4 -4
  43. package/node/auth/reducer.js +4 -4
  44. package/node/auth/saga.js +4 -4
  45. package/node/index.js +1 -1
  46. package/package.json +2 -2
  47. package/auth/RestrictionsState/index.d.ts +0 -226
  48. package/auth/SecurityCenterState/index.d.ts +0 -141
  49. package/auth/SecurityPolicyState/index.d.ts +0 -802
  50. package/auth/SessionsPolicyState/index.d.ts +0 -120
  51. /package/auth/{RestrictionsState → Security/RestrictionsState}/interfaces.js +0 -0
  52. /package/auth/{RestrictionsState → Security/RestrictionsState}/saga.d.ts +0 -0
  53. /package/auth/{SecurityCenterState → Security/SecurityCenterState}/interfaces.js +0 -0
  54. /package/auth/{SecurityCenterState → Security/SecurityCenterState}/saga.d.ts +0 -0
  55. /package/auth/{SecurityCenterState → Security/SecurityCenterState}/types.d.ts +0 -0
  56. /package/auth/{SecurityCenterState → Security/SecurityCenterState}/types.js +0 -0
  57. /package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/interfaces.js +0 -0
  58. /package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/interfaces.d.ts +0 -0
  59. /package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/interfaces.js +0 -0
  60. /package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/saga.d.ts +0 -0
  61. /package/node/auth/{RestrictionsState → Security/RestrictionsState}/interfaces.js +0 -0
  62. /package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/interfaces.js +0 -0
  63. /package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/types.js +0 -0
  64. /package/node/auth/{SecurityPolicyState → Security/SecurityPolicyState}/interfaces.js +0 -0
  65. /package/node/auth/{SessionsPolicyState → Security/SessionsPolicyState}/interfaces.js +0 -0
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.securityPolicyState = exports.securityPolicyReducers = exports.securityPolicyActions = void 0;
7
7
  var _toolkit = require("@reduxjs/toolkit");
8
- var _utils = require("../utils");
9
- var _constants = require("../../constants");
8
+ var _utils = require("../../utils");
9
+ var _constants = require("../../../constants");
10
10
  const securityPolicyState = {
11
11
  globalPolicy: {
12
12
  loading: true
@@ -16,11 +16,11 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
16
16
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
17
17
  var _effects = require("redux-saga/effects");
18
18
  var _restApi = require("@frontegg/rest-api");
19
- var _reducer = require("../reducer");
20
- var _utils = require("../utils");
21
- var _dummy = require("../dummy");
22
- var _utils2 = require("../../utils");
23
- var _saga = require("../CustomLoginState/saga");
19
+ var _reducer = require("../../reducer");
20
+ var _utils = require("../../utils");
21
+ var _dummy = require("../../dummy");
22
+ var _utils2 = require("../../../utils");
23
+ var _saga = require("../../CustomLoginState/saga");
24
24
  var _saga2 = require("../SecurityCenterState/saga");
25
25
  const _excluded = ["callback"],
26
26
  _excluded2 = ["callback"],
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.sessionsPolicyState = exports.sessionsPolicyReducers = exports.sessionsPolicyActions = void 0;
7
7
  var _toolkit = require("@reduxjs/toolkit");
8
- var _utils = require("../utils");
9
- var _constants = require("../../constants");
8
+ var _utils = require("../../utils");
9
+ var _constants = require("../../../constants");
10
10
  const sessionsPolicyState = {
11
11
  loading: false,
12
12
  configurations: {}
@@ -10,8 +10,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
11
  var _effects = require("redux-saga/effects");
12
12
  var _restApi = require("@frontegg/rest-api");
13
- var _reducer = require("../reducer");
14
- var _dummy = require("../dummy");
13
+ var _reducer = require("../../reducer");
14
+ var _dummy = require("../../dummy");
15
15
  var _saga = require("../SecurityCenterState/saga");
16
16
  const _excluded = ["callback"],
17
17
  _excluded2 = ["callback"];
@@ -18,7 +18,7 @@ var _interfaces2 = require("../interfaces");
18
18
  var _saga = require("../LoginState/saga");
19
19
  var _utils = require("../../utils");
20
20
  var _utils2 = require("../LoginState/utils");
21
- var _saga2 = require("../SecurityPolicyState/saga");
21
+ var _saga2 = require("../Security/SecurityPolicyState/saga");
22
22
  const _excluded = ["events", "url"];
23
23
  function* loadAllowSignUps() {
24
24
  yield (0, _effects.put)(_reducer.actions.setSignUpState({
@@ -412,7 +412,7 @@ Object.keys(_ApiTokensState).forEach(function (key) {
412
412
  }
413
413
  });
414
414
  });
415
- var _interfaces16 = require("./SecurityPolicyState/interfaces");
415
+ var _interfaces16 = require("./Security/SecurityPolicyState/interfaces");
416
416
  Object.keys(_interfaces16).forEach(function (key) {
417
417
  if (key === "default" || key === "__esModule") return;
418
418
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -424,7 +424,7 @@ Object.keys(_interfaces16).forEach(function (key) {
424
424
  }
425
425
  });
426
426
  });
427
- var _SecurityPolicyState = require("./SecurityPolicyState");
427
+ var _SecurityPolicyState = require("./Security/SecurityPolicyState");
428
428
  Object.keys(_SecurityPolicyState).forEach(function (key) {
429
429
  if (key === "default" || key === "__esModule") return;
430
430
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -532,7 +532,7 @@ Object.keys(_interfaces20).forEach(function (key) {
532
532
  }
533
533
  });
534
534
  });
535
- var _SessionsPolicyState = require("./SessionsPolicyState");
535
+ var _SessionsPolicyState = require("./Security/SessionsPolicyState");
536
536
  Object.keys(_SessionsPolicyState).forEach(function (key) {
537
537
  if (key === "default" || key === "__esModule") return;
538
538
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -544,7 +544,7 @@ Object.keys(_SessionsPolicyState).forEach(function (key) {
544
544
  }
545
545
  });
546
546
  });
547
- var _interfaces21 = require("./SessionsPolicyState/interfaces");
547
+ var _interfaces21 = require("./Security/SessionsPolicyState/interfaces");
548
548
  Object.keys(_interfaces21).forEach(function (key) {
549
549
  if (key === "default" || key === "__esModule") return;
550
550
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -556,7 +556,7 @@ Object.keys(_interfaces21).forEach(function (key) {
556
556
  }
557
557
  });
558
558
  });
559
- var _RestrictionsState = require("./RestrictionsState");
559
+ var _RestrictionsState = require("./Security/RestrictionsState");
560
560
  Object.keys(_RestrictionsState).forEach(function (key) {
561
561
  if (key === "default" || key === "__esModule") return;
562
562
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -568,7 +568,7 @@ Object.keys(_RestrictionsState).forEach(function (key) {
568
568
  }
569
569
  });
570
570
  });
571
- var _interfaces22 = require("./RestrictionsState/interfaces");
571
+ var _interfaces22 = require("./Security/RestrictionsState/interfaces");
572
572
  Object.keys(_interfaces22).forEach(function (key) {
573
573
  if (key === "default" || key === "__esModule") return;
574
574
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -652,7 +652,7 @@ Object.keys(_interfaces25).forEach(function (key) {
652
652
  }
653
653
  });
654
654
  });
655
- var _SecurityCenterState = require("./SecurityCenterState");
655
+ var _SecurityCenterState = require("./Security/SecurityCenterState");
656
656
  Object.keys(_SecurityCenterState).forEach(function (key) {
657
657
  if (key === "default" || key === "__esModule") return;
658
658
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -664,7 +664,7 @@ Object.keys(_SecurityCenterState).forEach(function (key) {
664
664
  }
665
665
  });
666
666
  });
667
- var _interfaces26 = require("./SecurityCenterState/interfaces");
667
+ var _interfaces26 = require("./Security/SecurityCenterState/interfaces");
668
668
  Object.keys(_interfaces26).forEach(function (key) {
669
669
  if (key === "default" || key === "__esModule") return;
670
670
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -676,7 +676,7 @@ Object.keys(_interfaces26).forEach(function (key) {
676
676
  }
677
677
  });
678
678
  });
679
- var _types = require("./SecurityCenterState/types");
679
+ var _types = require("./Security/SecurityCenterState/types");
680
680
  Object.keys(_types).forEach(function (key) {
681
681
  if (key === "default" || key === "__esModule") return;
682
682
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -18,13 +18,13 @@ var _TeamState = require("./TeamState");
18
18
  var _SocialLogins = require("./SocialLogins");
19
19
  var _SignUp = require("./SignUp");
20
20
  var _ApiTokensState = require("./ApiTokensState");
21
- var _SecurityPolicyState = require("./SecurityPolicyState");
21
+ var _SecurityPolicyState = require("./Security/SecurityPolicyState");
22
22
  var _AccountSettingsState = require("./AccountSettingsState");
23
23
  var _TenantsState = require("./TenantsState");
24
24
  var _RolesState = require("./RolesState");
25
25
  var _SessionsState = require("./SessionsState");
26
- var _SessionsPolicyState = require("./SessionsPolicyState");
27
- var _RestrictionsState = require("./RestrictionsState");
26
+ var _SessionsPolicyState = require("./Security/SessionsPolicyState");
27
+ var _RestrictionsState = require("./Security/RestrictionsState");
28
28
  var _Provisioning = require("./Provisioning");
29
29
  var _PasskeysState = require("./PasskeysState");
30
30
  var _GroupsState = require("./GroupsState");
@@ -32,7 +32,7 @@ var _groupsDialogsState = require("./GroupsState/groupsDialogsState");
32
32
  var _CustomLoginState = require("./CustomLoginState");
33
33
  var _AllAccountsState = require("./MSP/AllAccountsState");
34
34
  var _allAccountsDialogsState = require("./MSP/AllAccountsState/allAccountsDialogsState");
35
- var _SecurityCenterState = require("./SecurityCenterState");
35
+ var _SecurityCenterState = require("./Security/SecurityCenterState");
36
36
  var _consts = require("./LoginState/consts");
37
37
  const reinitializeState = {
38
38
  isAuthenticated: false,
@@ -21,14 +21,14 @@ var _TeamState = require("./TeamState");
21
21
  var _SocialLogins = require("./SocialLogins");
22
22
  var _SignUp = require("./SignUp");
23
23
  var _ApiTokensState = require("./ApiTokensState");
24
- var _SecurityPolicyState = require("./SecurityPolicyState");
24
+ var _SecurityPolicyState = require("./Security/SecurityPolicyState");
25
25
  var _AccountSettingsState = require("./AccountSettingsState");
26
26
  var _TenantsState = require("./TenantsState");
27
27
  var _RolesState = require("./RolesState");
28
28
  var _ResetPhoneNumberState = require("./ResetPhoneNumberState");
29
29
  var _SessionsState = require("./SessionsState");
30
- var _SessionsPolicyState = require("./SessionsPolicyState");
31
- var _RestrictionsState = require("./RestrictionsState");
30
+ var _SessionsPolicyState = require("./Security/SessionsPolicyState");
31
+ var _RestrictionsState = require("./Security/RestrictionsState");
32
32
  var _Provisioning = require("./Provisioning");
33
33
  var _ImpersonationState = require("./ImpersonationState");
34
34
  var _PasskeysState = require("./PasskeysState");
@@ -37,7 +37,7 @@ var _groupsDialogsState = require("./GroupsState/groupsDialogsState");
37
37
  var _CustomLoginState = require("./CustomLoginState");
38
38
  var _AllAccountsState = require("./MSP/AllAccountsState");
39
39
  var _allAccountsDialogsState = require("./MSP/AllAccountsState/allAccountsDialogsState");
40
- var _SecurityCenterState = require("./SecurityCenterState");
40
+ var _SecurityCenterState = require("./Security/SecurityCenterState");
41
41
  const {
42
42
  reducer,
43
43
  actions: sliceActions
package/node/auth/saga.js CHANGED
@@ -18,14 +18,14 @@ var _saga10 = require("./SocialLogins/saga");
18
18
  var _saga11 = require("./SignUp/saga");
19
19
  var _effects = require("redux-saga/effects");
20
20
  var _saga12 = require("./ApiTokensState/saga");
21
- var _saga13 = require("./SecurityPolicyState/saga");
21
+ var _saga13 = require("./Security/SecurityPolicyState/saga");
22
22
  var _saga14 = require("./AccountSettingsState/saga");
23
23
  var _saga15 = require("./TenantsState/saga");
24
24
  var _saga16 = require("./RolesState/saga");
25
25
  var _saga17 = require("./ResetPhoneNumberState/saga");
26
26
  var _saga18 = require("./SessionsState/saga");
27
- var _saga19 = require("./SessionsPolicyState/saga");
28
- var _saga20 = require("./RestrictionsState/saga");
27
+ var _saga19 = require("./Security/SessionsPolicyState/saga");
28
+ var _saga20 = require("./Security/RestrictionsState/saga");
29
29
  var _saga21 = require("./Provisioning/saga");
30
30
  var _saga22 = require("./ImpersonationState/saga");
31
31
  var _saga23 = require("./PasskeysState/saga");
@@ -33,7 +33,7 @@ var _saga24 = require("./GroupsState/saga");
33
33
  var _saga25 = require("./CustomLoginState/saga");
34
34
  var _saga26 = require("./MSP/AllAccountsState/saga");
35
35
  var _saga27 = require("./Entitlements/saga");
36
- var _saga28 = require("./SecurityCenterState/saga");
36
+ var _saga28 = require("./Security/SecurityCenterState/saga");
37
37
  function* sagas() {
38
38
  yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagas), (0, _effects.call)(_saga6.activateSagas), (0, _effects.call)(_saga7.acceptInvitationSagas), (0, _effects.call)(_saga5.forgotPasswordSagas), (0, _effects.call)(_saga17.resetPhoneNumberSagas), (0, _effects.call)(_saga.ssoSagas), (0, _effects.call)(_saga2.ssoSagas), (0, _effects.call)(_saga3.profileSagas), (0, _effects.call)(_saga25.customLoginSagas), (0, _effects.call)(_saga4.mfaSagas), (0, _effects.call)(_saga9.teamSagas), (0, _effects.call)(_saga24.groupsSagas), (0, _effects.call)(_saga10.socialLoginsSaga), (0, _effects.call)(_saga11.signUpSaga), (0, _effects.call)(_saga12.apiTokensSaga), (0, _effects.call)(_saga13.securityPolicySagas), (0, _effects.call)(_saga14.accountSettingsSaga), (0, _effects.call)(_saga15.tenantsSagas), (0, _effects.call)(_saga16.rolesSagas), (0, _effects.call)(_saga18.sessionsSaga), (0, _effects.call)(_saga19.sessionsPolicySaga), (0, _effects.call)(_saga20.restrictionsSagas), (0, _effects.call)(_saga21.provisionSagas), (0, _effects.call)(_saga22.impersonateSagas), (0, _effects.call)(_saga23.passkeysSagas), (0, _effects.call)(_saga26.allAccountsSagas), (0, _effects.call)(_saga27.entitlementsSagas), (0, _effects.call)(_saga28.securityCenterSagas)]);
39
39
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.129.0-alpha.1
1
+ /** @license Frontegg v6.129.0-alpha.3
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.129.0-alpha.1",
3
+ "version": "6.129.0-alpha.3",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/rest-api": "3.1.11",
9
+ "@frontegg/rest-api": "3.1.12",
10
10
  "@reduxjs/toolkit": "1.8.5",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "redux-saga": "^1.2.1",
@@ -1,226 +0,0 @@
1
- import { WithCallback } from '../../interfaces';
2
- import { IPRestrictionsState, RestrictionsState, EmailDomainRestrictionsState, SaveEmailDomainRestrictionConfigPayload, SaveEmailDomainRestrictionsPayload } from './interfaces';
3
- import { CreateIpRestriction, IPRestrictionsConfig } from '@frontegg/rest-api';
4
- declare const restrictionsState: RestrictionsState;
5
- declare const reducers: {
6
- setRestrictionsState: {
7
- prepare: (payload: Partial<RestrictionsState>) => {
8
- payload: Partial<RestrictionsState>;
9
- };
10
- reducer: (state: import("..").AuthState, { payload }: {
11
- payload: Partial<RestrictionsState>;
12
- type: string;
13
- }) => {
14
- onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
15
- error?: any;
16
- isAuthenticated: boolean;
17
- userIp?: string | undefined;
18
- isLoading: boolean;
19
- keepSessionAlive?: boolean | undefined;
20
- /**
21
- * To be used for actions types after dispatch, and should contains
22
- * the reducers and actions as standalone function
23
- */
24
- user?: import("..").User | null | undefined;
25
- isSSOAuth: boolean;
26
- ssoACS?: string | undefined;
27
- includeQueryParam?: boolean | undefined;
28
- loginState: import("..").LoginState;
29
- activateState: import("..").ActivateAccountState;
30
- acceptInvitationState: import("..").AcceptInvitationState;
31
- forgotPasswordState: import("..").ForgotPasswordState;
32
- resetPhoneNumberState: import("..").ResetPhoneNumberState;
33
- ssoState: import("..").SSOState;
34
- profileState: import("..").ProfileState;
35
- mfaState: import("..").MFAState;
36
- teamState: import("..").TeamState;
37
- groupsState: import("..").GroupsState;
38
- groupsDialogsState: import("..").GroupsDialogsState;
39
- socialLoginState: import("..").SocialLoginState;
40
- signUpState: import("..").SignUpState;
41
- apiTokensState: import("..").ApiTokensState;
42
- securityPolicyState: import("..").SecurityPolicyState;
43
- restrictionsState: RestrictionsState;
44
- provisioningState: import("..").ProvisioningState;
45
- accountSettingsState: import("..").AccountSettingsState;
46
- tenantsState: import("..").TenantsState;
47
- rolesState: import("..").RolesState;
48
- sessionsState: import("..").SessionsState;
49
- hostedLoginBox?: boolean | undefined;
50
- disableSilentRefresh?: boolean | undefined;
51
- sessionsPolicyState: import("..").SessionsPolicyState;
52
- impersonateState?: import("..").ImpersonateState | undefined;
53
- passkeysState?: import("..").PasskeysState | undefined;
54
- customLoginState?: import("..").CustomLoginState | undefined;
55
- allAccountsState?: import("..").IAllAccountsState | undefined;
56
- allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
57
- securityCenterState?: import("..").SecurityCenterState | undefined;
58
- routes: import("..").AuthPageRoutes;
59
- header?: any;
60
- loaderComponent?: any;
61
- };
62
- };
63
- setIpRestrictionsState: {
64
- prepare: (payload: Partial<IPRestrictionsState>) => {
65
- payload: Partial<IPRestrictionsState>;
66
- };
67
- reducer: (state: import("..").AuthState, { payload }: {
68
- payload: Partial<IPRestrictionsState>;
69
- type: string;
70
- }) => {
71
- onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
72
- error?: any;
73
- isAuthenticated: boolean;
74
- userIp?: string | undefined;
75
- isLoading: boolean;
76
- keepSessionAlive?: boolean | undefined;
77
- /**
78
- * To be used for actions types after dispatch, and should contains
79
- * the reducers and actions as standalone function
80
- */
81
- user?: import("..").User | null | undefined;
82
- isSSOAuth: boolean;
83
- ssoACS?: string | undefined;
84
- includeQueryParam?: boolean | undefined;
85
- loginState: import("..").LoginState;
86
- activateState: import("..").ActivateAccountState;
87
- acceptInvitationState: import("..").AcceptInvitationState;
88
- forgotPasswordState: import("..").ForgotPasswordState;
89
- resetPhoneNumberState: import("..").ResetPhoneNumberState;
90
- ssoState: import("..").SSOState;
91
- profileState: import("..").ProfileState;
92
- mfaState: import("..").MFAState;
93
- teamState: import("..").TeamState;
94
- groupsState: import("..").GroupsState;
95
- groupsDialogsState: import("..").GroupsDialogsState;
96
- socialLoginState: import("..").SocialLoginState;
97
- signUpState: import("..").SignUpState;
98
- apiTokensState: import("..").ApiTokensState;
99
- securityPolicyState: import("..").SecurityPolicyState;
100
- restrictionsState: RestrictionsState;
101
- provisioningState: import("..").ProvisioningState;
102
- accountSettingsState: import("..").AccountSettingsState;
103
- tenantsState: import("..").TenantsState;
104
- rolesState: import("..").RolesState;
105
- sessionsState: import("..").SessionsState;
106
- hostedLoginBox?: boolean | undefined;
107
- disableSilentRefresh?: boolean | undefined;
108
- sessionsPolicyState: import("..").SessionsPolicyState;
109
- impersonateState?: import("..").ImpersonateState | undefined;
110
- passkeysState?: import("..").PasskeysState | undefined;
111
- customLoginState?: import("..").CustomLoginState | undefined;
112
- allAccountsState?: import("..").IAllAccountsState | undefined;
113
- allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
114
- securityCenterState?: import("..").SecurityCenterState | undefined;
115
- routes: import("..").AuthPageRoutes;
116
- header?: any;
117
- loaderComponent?: any;
118
- };
119
- };
120
- setEmailDomainRestrictionsState: {
121
- prepare: (payload: Partial<EmailDomainRestrictionsState>) => {
122
- payload: Partial<EmailDomainRestrictionsState>;
123
- };
124
- reducer: (state: import("..").AuthState, { payload }: {
125
- payload: Partial<EmailDomainRestrictionsState>;
126
- type: string;
127
- }) => {
128
- onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
129
- error?: any;
130
- isAuthenticated: boolean;
131
- userIp?: string | undefined;
132
- isLoading: boolean;
133
- keepSessionAlive?: boolean | undefined;
134
- /**
135
- * To be used for actions types after dispatch, and should contains
136
- * the reducers and actions as standalone function
137
- */
138
- user?: import("..").User | null | undefined;
139
- isSSOAuth: boolean;
140
- ssoACS?: string | undefined;
141
- includeQueryParam?: boolean | undefined;
142
- loginState: import("..").LoginState;
143
- activateState: import("..").ActivateAccountState;
144
- acceptInvitationState: import("..").AcceptInvitationState;
145
- forgotPasswordState: import("..").ForgotPasswordState;
146
- resetPhoneNumberState: import("..").ResetPhoneNumberState;
147
- ssoState: import("..").SSOState;
148
- profileState: import("..").ProfileState;
149
- mfaState: import("..").MFAState;
150
- teamState: import("..").TeamState;
151
- groupsState: import("..").GroupsState;
152
- groupsDialogsState: import("..").GroupsDialogsState;
153
- socialLoginState: import("..").SocialLoginState;
154
- signUpState: import("..").SignUpState;
155
- apiTokensState: import("..").ApiTokensState;
156
- securityPolicyState: import("..").SecurityPolicyState;
157
- restrictionsState: RestrictionsState;
158
- provisioningState: import("..").ProvisioningState;
159
- accountSettingsState: import("..").AccountSettingsState;
160
- tenantsState: import("..").TenantsState;
161
- rolesState: import("..").RolesState;
162
- sessionsState: import("..").SessionsState;
163
- hostedLoginBox?: boolean | undefined;
164
- disableSilentRefresh?: boolean | undefined;
165
- sessionsPolicyState: import("..").SessionsPolicyState;
166
- impersonateState?: import("..").ImpersonateState | undefined;
167
- passkeysState?: import("..").PasskeysState | undefined;
168
- customLoginState?: import("..").CustomLoginState | undefined;
169
- allAccountsState?: import("..").IAllAccountsState | undefined;
170
- allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
171
- securityCenterState?: import("..").SecurityCenterState | undefined;
172
- routes: import("..").AuthPageRoutes;
173
- header?: any;
174
- loaderComponent?: any;
175
- };
176
- };
177
- };
178
- declare const actions: {
179
- checkIfUserIpValid: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
180
- addCurrentUserIpAndActivate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
181
- callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
182
- }], {
183
- callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
184
- }, string, never, never>;
185
- loadIpRestrictions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
186
- saveIpRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<CreateIpRestriction, boolean>], WithCallback<CreateIpRestriction, boolean>, string, never, never>;
187
- saveIpRestrictionsConfig: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPRestrictionsConfig, boolean>], WithCallback<IPRestrictionsConfig, boolean>, string, never, never>;
188
- deleteIpRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<{
189
- id: string;
190
- }, boolean>], WithCallback<{
191
- id: string;
192
- }, boolean>, string, never, never>;
193
- loadEmailDomainRestrictions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
194
- saveEmailDomainRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<import("@frontegg/rest-api").CreateDomainRestriction, boolean>], WithCallback<import("@frontegg/rest-api").CreateDomainRestriction, boolean>, string, never, never>;
195
- saveEmailDomainRestrictionsConfig: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<import("@frontegg/rest-api").UpdateDomainRestrictionsConfig, boolean>], WithCallback<import("@frontegg/rest-api").UpdateDomainRestrictionsConfig, boolean>, string, never, never>;
196
- deleteEmailDomainRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
197
- id: string;
198
- }], {
199
- id: string;
200
- }, string, never, never>;
201
- };
202
- /**
203
- * To be used for actions types after dispatch, and should contains
204
- * the reducers and actions as standalone function
205
- */
206
- declare type DispatchedActions = {
207
- setRestrictionsState: (state: Partial<RestrictionsState>) => void;
208
- setIpRestrictionsState: (state: Partial<IPRestrictionsState>) => void;
209
- loadIpRestrictions: () => void;
210
- saveIpRestriction: (payload: WithCallback<CreateIpRestriction>) => void;
211
- saveIpRestrictionsConfig: (payload: WithCallback<IPRestrictionsConfig>) => void;
212
- deleteIpRestriction: (payload: WithCallback<{
213
- id: string;
214
- }>) => void;
215
- checkIfUserIpValid: () => void;
216
- addCurrentUserIpAndActivate: (payload: WithCallback) => void;
217
- setEmailDomainRestrictionsState: (state: Partial<EmailDomainRestrictionsState>) => void;
218
- loadEmailDomainRestrictions: () => void;
219
- saveEmailDomainRestriction: (payload: SaveEmailDomainRestrictionsPayload) => void;
220
- saveEmailDomainRestrictionsConfig: (payload: SaveEmailDomainRestrictionConfigPayload) => void;
221
- deleteEmailDomainRestriction: (payload: {
222
- id: string;
223
- }) => void;
224
- };
225
- export declare type RestrictionsActions = DispatchedActions;
226
- export { restrictionsState, reducers as restrictionsReducers, actions as restrictionsActions };
@@ -1,141 +0,0 @@
1
- import { SecurityCenterState } from './interfaces';
2
- import { SecurityCenterStateIndicator } from './types';
3
- declare const securityCenterState: SecurityCenterState;
4
- declare const reducers: {
5
- setSecurityCenterState: {
6
- prepare: (payload: Partial<SecurityCenterState>) => {
7
- payload: Partial<SecurityCenterState>;
8
- };
9
- reducer: (state: import("..").AuthState, { payload }: {
10
- payload: Partial<SecurityCenterState>;
11
- type: string;
12
- }) => {
13
- onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
14
- error?: any;
15
- isAuthenticated: boolean;
16
- userIp?: string | undefined;
17
- isLoading: boolean;
18
- keepSessionAlive?: boolean | undefined;
19
- user?: import("..").User | null | undefined;
20
- isSSOAuth: boolean;
21
- ssoACS?: string | undefined;
22
- includeQueryParam?: boolean | undefined;
23
- loginState: import("..").LoginState;
24
- activateState: import("..").ActivateAccountState;
25
- acceptInvitationState: import("..").AcceptInvitationState;
26
- forgotPasswordState: import("..").ForgotPasswordState;
27
- resetPhoneNumberState: import("..").ResetPhoneNumberState;
28
- ssoState: import("..").SSOState;
29
- profileState: import("..").ProfileState;
30
- mfaState: import("..").MFAState;
31
- teamState: import("..").TeamState;
32
- groupsState: import("..").GroupsState;
33
- groupsDialogsState: import("..").GroupsDialogsState;
34
- socialLoginState: import("..").SocialLoginState;
35
- signUpState: import("..").SignUpState;
36
- apiTokensState: import("..").ApiTokensState;
37
- securityPolicyState: import("..").SecurityPolicyState;
38
- restrictionsState: import("..").RestrictionsState;
39
- provisioningState: import("..").ProvisioningState;
40
- accountSettingsState: import("..").AccountSettingsState;
41
- tenantsState: import("..").TenantsState;
42
- rolesState: import("..").RolesState;
43
- sessionsState: import("..").SessionsState;
44
- hostedLoginBox?: boolean | undefined;
45
- disableSilentRefresh?: boolean | undefined;
46
- sessionsPolicyState: import("..").SessionsPolicyState;
47
- impersonateState?: import("..").ImpersonateState | undefined;
48
- passkeysState?: import("..").PasskeysState | undefined;
49
- customLoginState?: import("..").CustomLoginState | undefined;
50
- allAccountsState?: import("..").IAllAccountsState | undefined;
51
- allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
- securityCenterState?: SecurityCenterState | undefined;
53
- routes: import("..").AuthPageRoutes;
54
- header?: any;
55
- loaderComponent?: any;
56
- };
57
- };
58
- resetSecurityCenterState: (state: import("..").AuthState) => {
59
- onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
60
- error?: any;
61
- isAuthenticated: boolean;
62
- userIp?: string | undefined;
63
- isLoading: boolean;
64
- keepSessionAlive?: boolean | undefined;
65
- user?: import("..").User | null | undefined;
66
- isSSOAuth: boolean;
67
- ssoACS?: string | undefined;
68
- includeQueryParam?: boolean | undefined;
69
- loginState: import("..").LoginState;
70
- activateState: import("..").ActivateAccountState;
71
- acceptInvitationState: import("..").AcceptInvitationState;
72
- forgotPasswordState: import("..").ForgotPasswordState;
73
- resetPhoneNumberState: import("..").ResetPhoneNumberState;
74
- ssoState: import("..").SSOState;
75
- profileState: import("..").ProfileState;
76
- mfaState: import("..").MFAState;
77
- teamState: import("..").TeamState;
78
- groupsState: import("..").GroupsState;
79
- groupsDialogsState: import("..").GroupsDialogsState;
80
- socialLoginState: import("..").SocialLoginState;
81
- signUpState: import("..").SignUpState;
82
- apiTokensState: import("..").ApiTokensState;
83
- securityPolicyState: import("..").SecurityPolicyState;
84
- restrictionsState: import("..").RestrictionsState;
85
- provisioningState: import("..").ProvisioningState;
86
- accountSettingsState: import("..").AccountSettingsState;
87
- tenantsState: import("..").TenantsState;
88
- rolesState: import("..").RolesState;
89
- sessionsState: import("..").SessionsState;
90
- hostedLoginBox?: boolean | undefined;
91
- disableSilentRefresh?: boolean | undefined;
92
- sessionsPolicyState: import("..").SessionsPolicyState;
93
- impersonateState?: import("..").ImpersonateState | undefined;
94
- passkeysState?: import("..").PasskeysState | undefined;
95
- customLoginState?: import("..").CustomLoginState | undefined;
96
- allAccountsState?: import("..").IAllAccountsState | undefined;
97
- allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
98
- securityCenterState?: SecurityCenterState | undefined;
99
- routes: import("..").AuthPageRoutes;
100
- header?: any;
101
- loaderComponent?: any;
102
- };
103
- setSecurityCenterStateLoader: {
104
- prepare: (payload: SecurityCenterStateIndicator) => {
105
- payload: SecurityCenterStateIndicator;
106
- };
107
- reducer: (state: import("..").AuthState, { payload }: {
108
- payload: SecurityCenterStateIndicator;
109
- type: string;
110
- }) => import("..").AuthState;
111
- };
112
- setSecurityCenterStateError: {
113
- prepare: (payload: SecurityCenterStateIndicator) => {
114
- payload: SecurityCenterStateIndicator;
115
- };
116
- reducer: (state: import("..").AuthState, { payload }: {
117
- payload: SecurityCenterStateIndicator;
118
- type: string;
119
- }) => import("..").AuthState;
120
- };
121
- };
122
- declare const actions: {
123
- loadRecommendations: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
124
- loadInsights: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
125
- sendResetBreachedPasswordEmails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
126
- };
127
- /**
128
- * To be used for actions types after dispatch, and should contains
129
- * the reducers and actions as standalone function
130
- */
131
- declare type DispatchedActions = {
132
- setSecurityCenterState: (state: Partial<SecurityCenterState>) => void;
133
- resetSecurityCenterState: () => void;
134
- loadRecommendations: () => void;
135
- loadInsights: () => void;
136
- sendResetBreachedPasswordEmails: () => void;
137
- setSecurityCenterStateLoader: (payload: SecurityCenterStateIndicator) => void;
138
- setSecurityCenterStateError: (payload: SecurityCenterStateIndicator) => void;
139
- };
140
- export declare type SecurityCenterActions = DispatchedActions;
141
- export { securityCenterState, reducers as securityCenterReducers, actions as securityCenterActions };