@frontegg/redux-store 6.119.0 → 6.121.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 (69) 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 -0
  4. package/auth/ApiTokensState/index.d.ts +2 -0
  5. package/auth/CustomLoginState/index.d.ts +2 -0
  6. package/auth/CustomLoginState/saga.js +4 -4
  7. package/auth/EntitlementsState/index.d.ts +1 -0
  8. package/auth/ForgotPasswordState/index.d.ts +2 -0
  9. package/auth/GroupsState/groupsDialogsState.d.ts +12 -0
  10. package/auth/GroupsState/index.d.ts +2 -0
  11. package/auth/ImpersonationState/index.d.ts +2 -0
  12. package/auth/LoginState/index.d.ts +2 -0
  13. package/auth/LoginState/saga.js +1 -2
  14. package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +14 -0
  15. package/auth/MSP/AllAccountsState/index.d.ts +3 -0
  16. package/auth/MfaState/index.d.ts +2 -0
  17. package/auth/PasskeysState/index.d.ts +2 -0
  18. package/auth/ProfileState/index.d.ts +3 -1
  19. package/auth/ProfileState/saga.js +2 -1
  20. package/auth/Provisioning/index.d.ts +2 -0
  21. package/auth/ResetPhoneNumberState/index.d.ts +2 -0
  22. package/auth/RestrictionsState/index.d.ts +6 -12
  23. package/auth/RolesState/index.d.ts +2 -0
  24. package/auth/SSOState/index.d.ts +2 -0
  25. package/auth/SecurityCenterState/index.d.ts +141 -0
  26. package/auth/SecurityCenterState/index.js +35 -0
  27. package/auth/SecurityCenterState/interfaces.d.ts +10 -0
  28. package/auth/SecurityCenterState/interfaces.js +1 -0
  29. package/auth/SecurityCenterState/saga.d.ts +16 -0
  30. package/auth/SecurityCenterState/saga.js +61 -0
  31. package/auth/SecurityCenterState/types.d.ts +8 -0
  32. package/auth/SecurityCenterState/types.js +5 -0
  33. package/auth/SecurityPolicyState/index.d.ts +13 -0
  34. package/auth/SessionsPolicyState/index.d.ts +2 -0
  35. package/auth/SessionsState/index.d.ts +2 -0
  36. package/auth/SignUp/index.d.ts +2 -0
  37. package/auth/SocialLogins/index.d.ts +2 -0
  38. package/auth/TeamState/index.d.ts +2 -0
  39. package/auth/TenantsState/index.d.ts +2 -0
  40. package/auth/dummy.d.ts +2 -2
  41. package/auth/dummy.js +6 -5
  42. package/auth/index.d.ts +9 -1
  43. package/auth/index.js +2 -0
  44. package/auth/interfaces.d.ts +2 -0
  45. package/auth/interfaces.js +0 -2
  46. package/auth/reducer.d.ts +9 -2
  47. package/auth/reducer.js +3 -2
  48. package/auth/utils.d.ts +6 -0
  49. package/index.js +1 -1
  50. package/interfaces.d.ts +3 -0
  51. package/node/auth/CustomLoginState/saga.js +4 -4
  52. package/node/auth/LoginState/saga.js +1 -2
  53. package/node/auth/ProfileState/saga.js +2 -1
  54. package/node/auth/SecurityCenterState/index.js +42 -0
  55. package/node/auth/SecurityCenterState/interfaces.js +5 -0
  56. package/node/auth/SecurityCenterState/saga.js +69 -0
  57. package/node/auth/SecurityCenterState/types.js +12 -0
  58. package/node/auth/dummy.js +6 -5
  59. package/node/auth/index.js +28 -4
  60. package/node/auth/interfaces.js +0 -1
  61. package/node/auth/reducer.js +3 -2
  62. package/node/index.js +1 -1
  63. package/node/toolkit/index.js +13 -14
  64. package/package.json +2 -2
  65. package/toolkit/index.d.ts +2 -2
  66. package/toolkit/index.js +2 -2
  67. /package/node/toolkit/{redux-saga.js → redux-saga-tools.js} +0 -0
  68. /package/toolkit/{redux-saga.d.ts → redux-saga-tools.d.ts} +0 -0
  69. /package/toolkit/{redux-saga.js → redux-saga-tools.js} +0 -0
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  entitlementsState?: import("..").EntitlementsState | undefined;
53
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
100
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
54
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
101
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
54
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
101
+ securityCenterState?: import("..").SecurityCenterState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -149,6 +151,7 @@ declare const reducers: {
149
151
  allAccountsState?: import("..").IAllAccountsState | undefined;
150
152
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
151
153
  entitlementsState?: import("..").EntitlementsState | undefined;
154
+ securityCenterState?: import("..").SecurityCenterState | undefined;
152
155
  routes: import("..").AuthPageRoutes;
153
156
  header?: any;
154
157
  loaderComponent?: any;
@@ -68,6 +68,7 @@ declare const reducers: {
68
68
  allAccountsState?: import("..").IAllAccountsState | undefined;
69
69
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
70
70
  entitlementsState?: import("..").EntitlementsState | undefined;
71
+ securityCenterState?: import("..").SecurityCenterState | undefined;
71
72
  routes: import("..").AuthPageRoutes;
72
73
  header?: any;
73
74
  loaderComponent?: any;
@@ -114,6 +115,7 @@ declare const reducers: {
114
115
  allAccountsState?: import("..").IAllAccountsState | undefined;
115
116
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
116
117
  entitlementsState?: import("..").EntitlementsState | undefined;
118
+ securityCenterState?: import("..").SecurityCenterState | undefined;
117
119
  routes: import("..").AuthPageRoutes;
118
120
  header?: any;
119
121
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  entitlementsState?: import("..").EntitlementsState | undefined;
53
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
100
+ securityCenterState?: import("..").SecurityCenterState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  const _excluded = ["callback"],
3
3
  _excluded2 = ["callback"];
4
- import { getAdminBoxMetadata, updateAdminBoxMetadata } from '@frontegg/rest-api/metadata';
4
+ import { api } from '@frontegg/rest-api';
5
5
  import { call, put, takeLeading } from 'redux-saga/effects';
6
6
  import { actions } from '../reducer';
7
7
  import { delay } from '../utils';
@@ -12,7 +12,7 @@ export function* loadTenantMetadata() {
12
12
  loading: true
13
13
  }));
14
14
  try {
15
- const tenantMetadata = yield call(getAdminBoxMetadata);
15
+ const tenantMetadata = yield call(api.metadata.getAdminBoxMetadata);
16
16
  yield put(actions.setCustomLoginState({
17
17
  tenantMetadata,
18
18
  loading: false
@@ -40,10 +40,10 @@ function* updateTenantMetadata(_ref) {
40
40
  if (requestActions.length === 0) {
41
41
  throw new Error('No changes to update');
42
42
  }
43
- yield call(updateAdminBoxMetadata, {
43
+ yield call(api.metadata.updateAdminBoxMetadata, {
44
44
  actions: requestActions
45
45
  });
46
- const tenantMetadata = yield call(getAdminBoxMetadata);
46
+ const tenantMetadata = yield call(api.metadata.getAdminBoxMetadata);
47
47
  yield put(actions.setCustomLoginState({
48
48
  tenantMetadata,
49
49
  saving: false
@@ -49,6 +49,7 @@ declare const reducers: {
49
49
  allAccountsState?: import("..").IAllAccountsState | undefined;
50
50
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
51
51
  entitlementsState?: EntitlementsState | undefined;
52
+ securityCenterState?: import("..").SecurityCenterState | undefined;
52
53
  routes: import("..").AuthPageRoutes;
53
54
  header?: any;
54
55
  loaderComponent?: any;
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("..").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
52
52
  entitlementsState?: import("..").EntitlementsState | undefined;
53
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
100
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
52
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
99
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
145
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
191
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
244
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
291
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
365
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
412
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
458
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
504
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
557
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
604
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
70
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
117
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
53
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
100
+ securityCenterState?: import("..").SecurityCenterState | undefined;
99
101
  routes: import("..").AuthPageRoutes;
100
102
  header?: any;
101
103
  loaderComponent?: any;
@@ -52,6 +52,7 @@ declare const reducers: {
52
52
  allAccountsState?: import("..").IAllAccountsState | undefined;
53
53
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
54
54
  entitlementsState?: import("..").EntitlementsState | undefined;
55
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
102
+ securityCenterState?: import("..").SecurityCenterState | undefined;
101
103
  routes: import("..").AuthPageRoutes;
102
104
  header?: any;
103
105
  loaderComponent?: any;
@@ -38,7 +38,6 @@ import { base64urlDecode, delay, publicKeyCredentialToJSON } from '../utils';
38
38
  import { loadPublicAuthStrategiesPolicy } from '../SecurityPolicyState/saga';
39
39
  import { getPasskeysVendorPolicy } from '../PasskeysState/helpers';
40
40
  import { getPathAndSearchParamsFromUrl, getRedirectUrl, getSearchParamsFromUrl, getSearchParam, TENANT_ID_PARAM_KEY, getMfaStepForEnrolledUsers, getMfaStepForNotEnrolledUsers, isMfaRequired } from './utils';
41
- import { getPublicSettings } from '@frontegg/rest-api/account-settings';
42
41
  import { errorHandler } from '../../utils';
43
42
  import { loadEntitlements } from '../EntitlementsState/saga';
44
43
  import { authStrategyLoginStepMap } from './consts';
@@ -457,7 +456,7 @@ function* loadCustomLoginRoutes() {
457
456
  const {
458
457
  applicationUrl,
459
458
  loginUrl
460
- } = yield call(getPublicSettings);
459
+ } = yield call(api.accountSettings.getPublicSettings);
461
460
  if (applicationUrl && loginUrl) {
462
461
  var _getSearchParamsFromU;
463
462
  const searchParams = (_getSearchParamsFromU = getSearchParamsFromUrl(applicationUrl)) != null ? _getSearchParamsFromU : '';
@@ -50,6 +50,7 @@ declare const reducers: {
50
50
  allAccountsState?: import("./types").IAllAccountsState | undefined;
51
51
  allAccountsDialogsState?: IAllAccountsDialogsState | undefined;
52
52
  entitlementsState?: import("../..").EntitlementsState | undefined;
53
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
100
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
165
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
212
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
265
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
312
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
377
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
424
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
489
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
536
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
607
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
654
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
707
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
754
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
72
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
126
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("../..").EntitlementsState | undefined;
173
+ securityCenterState?: import("../..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
55
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
102
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
53
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
100
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
54
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
101
+ securityCenterState?: import("..").SecurityCenterState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -104,7 +106,7 @@ declare const reducers: {
104
106
  };
105
107
  declare const actions: {
106
108
  loadProfile: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
107
- saveProfile: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<WithCallback<import("@frontegg/rest-api").IUserProfile, import("@frontegg/rest-api").IUserProfile>>], Partial<WithCallback<import("@frontegg/rest-api").IUserProfile, import("@frontegg/rest-api").IUserProfile>>, string, never, never>;
109
+ saveProfile: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<WithCallback<import("@frontegg/rest-api").IGetUsersV2Response, import("@frontegg/rest-api").IGetUsersV2Response>>], Partial<WithCallback<import("@frontegg/rest-api").IGetUsersV2Response, import("@frontegg/rest-api").IGetUsersV2Response>>, string, never, never>;
108
110
  changePassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IChangePassword, boolean>], WithCallback<IChangePassword, boolean>, string, never, never>;
109
111
  };
110
112
  /**
@@ -60,7 +60,8 @@ function* saveProfile(_ref) {
60
60
  const newProfileData = _extends({}, oldProfileData, payload, {
61
61
  profilePictureUrl: newProfilePictureUrl
62
62
  });
63
- const profile = yield call(api.teams.updateProfile, newProfileData);
63
+ //TODO: change the payload type to IUpdateUserProfile which is the right type to send, currently we send more data then actually needed.
64
+ const profile = yield call(api.users.updateUserProfileV2, newProfileData);
64
65
  const currentUser = yield select(state => state.auth.user);
65
66
  yield put(actions.setUser(_extends({}, currentUser, profile)));
66
67
  yield put(actions.setProfileState({
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  entitlementsState?: import("..").EntitlementsState | undefined;
54
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
101
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
54
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
101
+ securityCenterState?: import("..").SecurityCenterState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;
@@ -47,17 +47,15 @@ declare const reducers: {
47
47
  sessionsPolicyState: import("..").SessionsPolicyState;
48
48
  impersonateState?: import("..").ImpersonateState | undefined;
49
49
  passkeysState?: import("..").PasskeysState | undefined;
50
+ customLoginState?: import("..").CustomLoginState | undefined;
50
51
  /**
51
52
  * if you see error in matcher that's mean the DispatchAction does not
52
53
  * contains the same functions in reducers and actions
53
54
  */
54
- customLoginState?: import("..").CustomLoginState | undefined; /**
55
- * if you see error in matcher that's mean the DispatchAction does not
56
- * contains the same functions in reducers and actions
57
- */
58
55
  allAccountsState?: import("..").IAllAccountsState | undefined;
59
56
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
60
57
  entitlementsState?: import("..").EntitlementsState | undefined;
58
+ securityCenterState?: import("..").SecurityCenterState | undefined;
61
59
  routes: import("..").AuthPageRoutes;
62
60
  header?: any;
63
61
  loaderComponent?: any;
@@ -107,17 +105,15 @@ declare const reducers: {
107
105
  sessionsPolicyState: import("..").SessionsPolicyState;
108
106
  impersonateState?: import("..").ImpersonateState | undefined;
109
107
  passkeysState?: import("..").PasskeysState | undefined;
108
+ customLoginState?: import("..").CustomLoginState | undefined;
110
109
  /**
111
110
  * if you see error in matcher that's mean the DispatchAction does not
112
111
  * contains the same functions in reducers and actions
113
112
  */
114
- customLoginState?: import("..").CustomLoginState | undefined; /**
115
- * if you see error in matcher that's mean the DispatchAction does not
116
- * contains the same functions in reducers and actions
117
- */
118
113
  allAccountsState?: import("..").IAllAccountsState | undefined;
119
114
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
120
115
  entitlementsState?: import("..").EntitlementsState | undefined;
116
+ securityCenterState?: import("..").SecurityCenterState | undefined;
121
117
  routes: import("..").AuthPageRoutes;
122
118
  header?: any;
123
119
  loaderComponent?: any;
@@ -167,17 +163,15 @@ declare const reducers: {
167
163
  sessionsPolicyState: import("..").SessionsPolicyState;
168
164
  impersonateState?: import("..").ImpersonateState | undefined;
169
165
  passkeysState?: import("..").PasskeysState | undefined;
166
+ customLoginState?: import("..").CustomLoginState | undefined;
170
167
  /**
171
168
  * if you see error in matcher that's mean the DispatchAction does not
172
169
  * contains the same functions in reducers and actions
173
170
  */
174
- customLoginState?: import("..").CustomLoginState | undefined; /**
175
- * if you see error in matcher that's mean the DispatchAction does not
176
- * contains the same functions in reducers and actions
177
- */
178
171
  allAccountsState?: import("..").IAllAccountsState | undefined;
179
172
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
180
173
  entitlementsState?: import("..").EntitlementsState | undefined;
174
+ securityCenterState?: import("..").SecurityCenterState | undefined;
181
175
  routes: import("..").AuthPageRoutes;
182
176
  header?: any;
183
177
  loaderComponent?: any;
@@ -51,6 +51,7 @@ declare const reducers: {
51
51
  allAccountsState?: import("..").IAllAccountsState | undefined;
52
52
  allAccountsDialogsState?: import("..").IAllAccountsDialogsState | undefined;
53
53
  entitlementsState?: import("..").EntitlementsState | undefined;
54
+ securityCenterState?: import("..").SecurityCenterState | 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
  entitlementsState?: import("..").EntitlementsState | undefined;
101
+ securityCenterState?: import("..").SecurityCenterState | undefined;
100
102
  routes: import("..").AuthPageRoutes;
101
103
  header?: any;
102
104
  loaderComponent?: any;