@frontegg/redux-store 7.0.0-alpha.1 → 7.0.0-alpha.10

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 (1082) hide show
  1. package/audits/AuditLogsState/actions.d.ts +9 -0
  2. package/audits/AuditLogsState/actions.js +103 -0
  3. package/audits/AuditLogsState/index.d.ts +3 -47
  4. package/audits/AuditLogsState/index.js +3 -39
  5. package/audits/AuditLogsState/state.d.ts +4 -0
  6. package/audits/AuditLogsState/state.js +12 -0
  7. package/audits/AuditsMetadataState/actions.d.ts +8 -0
  8. package/audits/AuditsMetadataState/actions.js +36 -0
  9. package/audits/AuditsMetadataState/index.d.ts +3 -35
  10. package/audits/AuditsMetadataState/index.js +3 -29
  11. package/audits/AuditsMetadataState/state.d.ts +4 -0
  12. package/audits/AuditsMetadataState/state.js +5 -0
  13. package/audits/index.d.ts +19 -39
  14. package/audits/index.js +11 -21
  15. package/audits/interfaces.d.ts +2 -0
  16. package/audits/interfaces.js +2 -0
  17. package/audits-backward-compatibility/actions.d.ts +12 -0
  18. package/audits-backward-compatibility/actions.js +256 -0
  19. package/audits-backward-compatibility/index.d.ts +5 -0
  20. package/audits-backward-compatibility/index.js +6 -0
  21. package/audits-backward-compatibility/interfaces.d.ts +60 -0
  22. package/audits-backward-compatibility/package.json +6 -0
  23. package/audits-backward-compatibility/state.d.ts +5 -0
  24. package/audits-backward-compatibility/state.js +24 -0
  25. package/auth/AcceptInvitationState/actions.d.ts +12 -0
  26. package/auth/AcceptInvitationState/actions.js +43 -0
  27. package/auth/AcceptInvitationState/index.d.ts +3 -117
  28. package/auth/AcceptInvitationState/index.js +3 -31
  29. package/auth/AcceptInvitationState/state.d.ts +4 -0
  30. package/auth/AcceptInvitationState/state.js +6 -0
  31. package/auth/AccountSettingsState/actions.d.ts +23 -0
  32. package/auth/AccountSettingsState/actions.js +93 -0
  33. package/auth/AccountSettingsState/index.d.ts +3 -124
  34. package/auth/AccountSettingsState/index.js +3 -33
  35. package/auth/AccountSettingsState/state.d.ts +4 -0
  36. package/auth/AccountSettingsState/state.js +5 -0
  37. package/auth/ActivateAccountState/actions.d.ts +26 -0
  38. package/auth/ActivateAccountState/actions.js +192 -0
  39. package/auth/ActivateAccountState/index.d.ts +3 -0
  40. package/auth/ActivateAccountState/index.js +3 -0
  41. package/auth/ActivateAccountState/state.d.ts +4 -0
  42. package/auth/ActivateAccountState/state.js +11 -0
  43. package/auth/ApiTokensState/actions.d.ts +16 -0
  44. package/auth/ApiTokensState/actions.js +371 -0
  45. package/auth/ApiTokensState/index.d.ts +3 -171
  46. package/auth/ApiTokensState/index.js +3 -71
  47. package/auth/ApiTokensState/interfaces.d.ts +4 -1
  48. package/auth/ApiTokensState/state.d.ts +4 -0
  49. package/auth/ApiTokensState/state.js +23 -0
  50. package/auth/ApplicationsState/actions.d.ts +25 -0
  51. package/auth/ApplicationsState/actions.js +221 -0
  52. package/auth/ApplicationsState/helpers.d.ts +3 -0
  53. package/auth/ApplicationsState/helpers.js +13 -0
  54. package/auth/ApplicationsState/index.d.ts +3 -0
  55. package/auth/ApplicationsState/index.js +3 -0
  56. package/auth/ApplicationsState/interfaces.d.ts +12 -0
  57. package/auth/ApplicationsState/state.d.ts +4 -0
  58. package/auth/ApplicationsState/state.js +9 -0
  59. package/auth/CustomLoginState/actions.d.ts +11 -0
  60. package/auth/CustomLoginState/actions.js +116 -0
  61. package/auth/CustomLoginState/index.d.ts +3 -119
  62. package/auth/CustomLoginState/index.js +3 -32
  63. package/auth/CustomLoginState/state.d.ts +4 -0
  64. package/auth/CustomLoginState/state.js +6 -0
  65. package/auth/Entitlements/actions.d.ts +9 -0
  66. package/auth/Entitlements/actions.js +40 -0
  67. package/auth/Entitlements/helpers.d.ts +38 -0
  68. package/auth/Entitlements/helpers.js +66 -0
  69. package/auth/Entitlements/index.d.ts +6 -2
  70. package/auth/Entitlements/index.js +6 -3
  71. package/auth/ForgotPasswordState/actions.d.ts +11 -0
  72. package/auth/ForgotPasswordState/actions.js +84 -0
  73. package/auth/ForgotPasswordState/index.d.ts +3 -121
  74. package/auth/ForgotPasswordState/index.js +3 -40
  75. package/auth/ForgotPasswordState/interfaces.d.ts +2 -2
  76. package/auth/ForgotPasswordState/state.d.ts +4 -0
  77. package/auth/ForgotPasswordState/state.js +9 -0
  78. package/auth/GroupsDialogsState/actions.d.ts +17 -0
  79. package/auth/GroupsDialogsState/actions.js +77 -0
  80. package/auth/GroupsDialogsState/index.d.ts +3 -0
  81. package/auth/GroupsDialogsState/index.js +3 -0
  82. package/auth/GroupsDialogsState/interfaces.d.ts +32 -0
  83. package/auth/GroupsDialogsState/state.d.ts +4 -0
  84. package/auth/GroupsDialogsState/state.js +25 -0
  85. package/auth/GroupsState/actions.d.ts +21 -0
  86. package/auth/GroupsState/actions.js +403 -0
  87. package/auth/GroupsState/index.d.ts +3 -178
  88. package/auth/GroupsState/index.js +3 -58
  89. package/auth/GroupsState/interfaces.d.ts +1 -32
  90. package/auth/GroupsState/interfaces.js +2 -0
  91. package/auth/GroupsState/state.d.ts +4 -0
  92. package/auth/GroupsState/state.js +8 -0
  93. package/auth/ImpersonateState/actions.d.ts +8 -0
  94. package/auth/ImpersonateState/actions.js +52 -0
  95. package/auth/ImpersonateState/index.d.ts +3 -0
  96. package/auth/ImpersonateState/index.js +3 -0
  97. package/auth/ImpersonateState/interfaces.d.ts +14 -0
  98. package/auth/ImpersonateState/state.d.ts +4 -0
  99. package/auth/ImpersonateState/state.js +7 -0
  100. package/auth/LoginState/actions/afterAuthNavigation.actions.d.ts +11 -0
  101. package/auth/LoginState/actions/afterAuthNavigation.actions.js +183 -0
  102. package/auth/LoginState/actions/handleVerifyMFAResponse.actions.d.ts +8 -0
  103. package/auth/LoginState/actions/handleVerifyMFAResponse.actions.js +92 -0
  104. package/auth/LoginState/actions/hostedLoginAuthorize.actions.d.ts +15 -0
  105. package/auth/LoginState/actions/hostedLoginAuthorize.actions.js +203 -0
  106. package/auth/LoginState/actions/index.d.ts +79 -0
  107. package/auth/LoginState/actions/index.js +1298 -0
  108. package/auth/LoginState/actions/mfaRequiredState.actions.d.ts +11 -0
  109. package/auth/LoginState/actions/mfaRequiredState.actions.js +63 -0
  110. package/auth/LoginState/actions/mfaWithAuthenticator.actions.d.ts +8 -0
  111. package/auth/LoginState/actions/mfaWithAuthenticator.actions.js +137 -0
  112. package/auth/LoginState/actions/mfaWithEmailCode.actions.d.ts +10 -0
  113. package/auth/LoginState/actions/mfaWithEmailCode.actions.js +101 -0
  114. package/auth/LoginState/actions/mfaWithSMS.actions.d.ts +10 -0
  115. package/auth/LoginState/actions/mfaWithSMS.actions.js +108 -0
  116. package/auth/LoginState/actions/mfaWithWebAuthn.actions.d.ts +10 -0
  117. package/auth/LoginState/actions/mfaWithWebAuthn.actions.js +119 -0
  118. package/auth/LoginState/consts.d.ts +6 -22
  119. package/auth/LoginState/consts.js +7 -6
  120. package/auth/LoginState/helpers.d.ts +31 -0
  121. package/auth/LoginState/helpers.js +131 -0
  122. package/auth/LoginState/index.d.ts +3 -233
  123. package/auth/LoginState/index.js +3 -142
  124. package/auth/LoginState/interfaces.d.ts +29 -1
  125. package/auth/LoginState/interfaces.js +7 -1
  126. package/auth/LoginState/state.d.ts +4 -0
  127. package/auth/LoginState/state.js +10 -0
  128. package/auth/MSP/actions.d.ts +28 -0
  129. package/auth/MSP/actions.js +962 -0
  130. package/auth/MSP/dialogs/actions.d.ts +25 -0
  131. package/auth/MSP/dialogs/actions.js +124 -0
  132. package/auth/MSP/dialogs/state.d.ts +4 -0
  133. package/auth/MSP/dialogs/state.js +76 -0
  134. package/auth/MSP/helpers/appendChildrenToNode.d.ts +2 -0
  135. package/auth/MSP/helpers/getAccountsWithUsersCount.d.ts +15 -0
  136. package/auth/MSP/helpers/getAccountsWithUsersCount.js +21 -0
  137. package/auth/MSP/helpers/index.d.ts +5 -0
  138. package/auth/MSP/helpers/index.js +5 -0
  139. package/auth/MSP/helpers/removeNodeFromTree.d.ts +2 -0
  140. package/auth/MSP/helpers/updateNodeIsReseller.d.ts +2 -0
  141. package/auth/MSP/helpers/updateNodeIsReseller.js +14 -0
  142. package/auth/MSP/helpers/updateNodeName.d.ts +2 -0
  143. package/auth/MSP/helpers/updateNodeSubAccountAccessType.d.ts +3 -0
  144. package/auth/MSP/helpers/updateNodeSubAccountAccessType.js +13 -0
  145. package/auth/MSP/index.d.ts +5 -1
  146. package/auth/MSP/index.js +5 -1
  147. package/auth/MSP/interfaces/dialogsStateTypes.d.ts +63 -0
  148. package/auth/MSP/interfaces/stateTypes.d.ts +114 -0
  149. package/auth/MSP/interfaces/stateTypes.js +24 -0
  150. package/auth/MSP/state.d.ts +4 -0
  151. package/auth/MSP/state.js +38 -0
  152. package/auth/MfaState/actions.d.ts +24 -0
  153. package/auth/MfaState/actions.js +431 -0
  154. package/auth/MfaState/index.d.ts +3 -157
  155. package/auth/MfaState/index.js +3 -66
  156. package/auth/MfaState/interfaces.d.ts +5 -4
  157. package/auth/MfaState/interfaces.js +1 -0
  158. package/auth/MfaState/state.d.ts +4 -0
  159. package/auth/MfaState/state.js +8 -0
  160. package/auth/PasskeysState/actions.d.ts +12 -0
  161. package/auth/PasskeysState/actions.js +102 -0
  162. package/auth/PasskeysState/index.d.ts +3 -125
  163. package/auth/PasskeysState/index.js +3 -33
  164. package/auth/PasskeysState/state.d.ts +4 -0
  165. package/auth/PasskeysState/state.js +7 -0
  166. package/auth/ProfileState/actions.d.ts +11 -0
  167. package/auth/ProfileState/actions.js +112 -0
  168. package/auth/ProfileState/index.d.ts +3 -122
  169. package/auth/ProfileState/index.js +3 -35
  170. package/auth/ProfileState/state.d.ts +4 -0
  171. package/auth/ProfileState/state.js +6 -0
  172. package/auth/ProvisioningState/actions.d.ts +21 -0
  173. package/auth/ProvisioningState/actions.js +130 -0
  174. package/auth/ProvisioningState/index.d.ts +3 -0
  175. package/auth/ProvisioningState/index.js +3 -0
  176. package/auth/ProvisioningState/state.d.ts +4 -0
  177. package/auth/ProvisioningState/state.js +5 -0
  178. package/auth/ResetPhoneNumberState/actions.d.ts +11 -0
  179. package/auth/ResetPhoneNumberState/actions.js +115 -0
  180. package/auth/ResetPhoneNumberState/index.d.ts +3 -128
  181. package/auth/ResetPhoneNumberState/index.js +3 -38
  182. package/auth/ResetPhoneNumberState/state.d.ts +4 -0
  183. package/auth/ResetPhoneNumberState/state.js +7 -0
  184. package/auth/RolesState/actions.d.ts +24 -0
  185. package/auth/RolesState/actions.js +274 -0
  186. package/auth/RolesState/index.d.ts +3 -132
  187. package/auth/RolesState/index.js +3 -48
  188. package/auth/RolesState/interfaces.d.ts +17 -2
  189. package/auth/RolesState/interfaces.js +8 -1
  190. package/auth/RolesState/state.d.ts +4 -0
  191. package/auth/RolesState/state.js +9 -0
  192. package/auth/SSOState/actions/actions.v1.d.ts +20 -0
  193. package/auth/SSOState/actions/actions.v1.js +387 -0
  194. package/auth/SSOState/actions/actions.v2.d.ts +19 -0
  195. package/auth/SSOState/actions/actions.v2.js +359 -0
  196. package/auth/SSOState/actions/index.d.ts +75 -0
  197. package/auth/SSOState/actions/index.js +6 -0
  198. package/auth/SSOState/index.d.ts +3 -274
  199. package/auth/SSOState/index.js +3 -101
  200. package/auth/SSOState/state.d.ts +4 -0
  201. package/auth/SSOState/state.js +10 -0
  202. package/auth/Security/RestrictionsState/actions.d.ts +24 -0
  203. package/auth/Security/RestrictionsState/actions.js +444 -0
  204. package/auth/Security/RestrictionsState/index.d.ts +3 -214
  205. package/auth/Security/RestrictionsState/index.js +3 -63
  206. package/auth/Security/RestrictionsState/state.d.ts +4 -0
  207. package/auth/Security/RestrictionsState/state.js +18 -0
  208. package/auth/Security/SecurityCenterState/actions.d.ts +17 -0
  209. package/auth/Security/SecurityCenterState/actions.js +308 -0
  210. package/auth/Security/SecurityCenterState/index.d.ts +3 -156
  211. package/auth/Security/SecurityCenterState/index.js +3 -81
  212. package/auth/Security/SecurityCenterState/interfaces.d.ts +28 -1
  213. package/auth/Security/SecurityCenterState/interfaces.js +10 -1
  214. package/auth/Security/SecurityCenterState/state.d.ts +4 -0
  215. package/auth/Security/SecurityCenterState/state.js +40 -0
  216. package/auth/Security/SecurityPolicyState/actions.d.ts +35 -0
  217. package/auth/Security/SecurityPolicyState/actions.js +413 -0
  218. package/auth/Security/SecurityPolicyState/index.d.ts +3 -802
  219. package/auth/Security/SecurityPolicyState/index.js +3 -90
  220. package/auth/Security/SecurityPolicyState/interfaces.d.ts +1 -1
  221. package/auth/Security/SecurityPolicyState/state.d.ts +4 -0
  222. package/auth/Security/SecurityPolicyState/state.js +37 -0
  223. package/auth/Security/SessionsPolicyState/actions.d.ts +10 -0
  224. package/auth/Security/SessionsPolicyState/actions.js +57 -0
  225. package/auth/Security/SessionsPolicyState/index.d.ts +3 -120
  226. package/auth/Security/SessionsPolicyState/index.js +3 -32
  227. package/auth/Security/SessionsPolicyState/state.d.ts +4 -0
  228. package/auth/Security/SessionsPolicyState/state.js +6 -0
  229. package/auth/SessionsState/actions.d.ts +14 -0
  230. package/auth/SessionsState/actions.js +111 -0
  231. package/auth/SessionsState/index.d.ts +3 -137
  232. package/auth/SessionsState/index.js +3 -37
  233. package/auth/SessionsState/interfaces.d.ts +1 -0
  234. package/auth/SessionsState/state.d.ts +4 -0
  235. package/auth/SessionsState/state.js +6 -0
  236. package/auth/SignUpState/actions.d.ts +10 -0
  237. package/auth/SignUpState/actions.js +146 -0
  238. package/auth/SignUpState/index.d.ts +3 -0
  239. package/auth/SignUpState/index.js +3 -0
  240. package/auth/SignUpState/state.d.ts +4 -0
  241. package/auth/SignUpState/state.js +10 -0
  242. package/auth/SmsState/actions.d.ts +15 -0
  243. package/auth/SmsState/actions.js +181 -0
  244. package/auth/SmsState/index.d.ts +3 -0
  245. package/auth/SmsState/index.js +3 -0
  246. package/auth/SmsState/interfaces.d.ts +10 -0
  247. package/auth/SmsState/state.d.ts +4 -0
  248. package/auth/SmsState/state.js +7 -0
  249. package/auth/SocialLoginState/actions.d.ts +14 -0
  250. package/auth/SocialLoginState/actions.js +163 -0
  251. package/auth/SocialLoginState/index.d.ts +3 -0
  252. package/auth/SocialLoginState/index.js +3 -0
  253. package/auth/SocialLoginState/state.d.ts +4 -0
  254. package/auth/SocialLoginState/state.js +7 -0
  255. package/auth/StepUpState/actions/generateStepUpSession.actions.d.ts +6 -0
  256. package/auth/StepUpState/actions/generateStepUpSession.actions.js +104 -0
  257. package/auth/StepUpState/actions/index.d.ts +18 -0
  258. package/auth/StepUpState/actions/index.js +98 -0
  259. package/auth/StepUpState/actions/stepUpHostedLogin.actions.d.ts +6 -0
  260. package/auth/StepUpState/actions/stepUpHostedLogin.actions.js +32 -0
  261. package/auth/StepUpState/consts.d.ts +21 -0
  262. package/auth/StepUpState/consts.js +25 -0
  263. package/auth/StepUpState/helpers.d.ts +29 -0
  264. package/auth/StepUpState/helpers.js +54 -0
  265. package/auth/StepUpState/index.d.ts +3 -0
  266. package/auth/StepUpState/index.js +3 -0
  267. package/auth/StepUpState/interfaces.d.ts +36 -0
  268. package/auth/StepUpState/interfaces.js +1 -0
  269. package/auth/StepUpState/state.d.ts +4 -0
  270. package/auth/StepUpState/state.js +7 -0
  271. package/auth/TeamState/actions/activation-link.actions.d.ts +9 -0
  272. package/auth/TeamState/actions/activation-link.actions.js +84 -0
  273. package/auth/TeamState/actions/index.d.ts +52 -0
  274. package/auth/TeamState/actions/index.js +88 -0
  275. package/auth/TeamState/actions/invitation-link.actions.d.ts +11 -0
  276. package/auth/TeamState/actions/invitation-link.actions.js +131 -0
  277. package/auth/TeamState/actions/sub-tenants.actions.d.ts +11 -0
  278. package/auth/TeamState/actions/sub-tenants.actions.js +214 -0
  279. package/auth/TeamState/actions/users.actions.d.ts +27 -0
  280. package/auth/TeamState/actions/users.actions.js +580 -0
  281. package/auth/TeamState/index.d.ts +3 -211
  282. package/auth/TeamState/index.js +3 -133
  283. package/auth/TeamState/interfaces.d.ts +19 -2
  284. package/auth/TeamState/interfaces.js +2 -0
  285. package/auth/TeamState/state.d.ts +4 -0
  286. package/auth/TeamState/state.js +41 -0
  287. package/auth/TenantsState/actions.d.ts +18 -0
  288. package/auth/TenantsState/actions.js +109 -0
  289. package/auth/TenantsState/index.d.ts +3 -136
  290. package/auth/TenantsState/index.js +3 -42
  291. package/auth/TenantsState/interfaces.d.ts +3 -1
  292. package/auth/TenantsState/state.d.ts +4 -0
  293. package/auth/TenantsState/state.js +8 -0
  294. package/auth/helpers.d.ts +20 -0
  295. package/auth/helpers.js +55 -0
  296. package/auth/index.d.ts +134 -745
  297. package/auth/index.js +205 -67
  298. package/auth/interfaces.d.ts +101 -71
  299. package/auth/interfaces.js +2 -0
  300. package/connectivity/actions.d.ts +44 -0
  301. package/connectivity/actions.js +534 -0
  302. package/connectivity/consts.d.ts +0 -3
  303. package/connectivity/consts.js +3 -23
  304. package/connectivity/index.d.ts +4 -40
  305. package/connectivity/index.js +3 -16
  306. package/connectivity/interfaces.d.ts +6 -5
  307. package/connectivity/state.d.ts +4 -0
  308. package/connectivity/state.js +11 -0
  309. package/constants.d.ts +2 -6
  310. package/constants.js +2 -6
  311. package/helpers/common.d.ts +8 -0
  312. package/helpers/common.js +44 -0
  313. package/helpers/converters.d.ts +3 -0
  314. package/helpers/converters.js +64 -0
  315. package/helpers/encoders.d.ts +2 -0
  316. package/helpers/encoders.js +46 -0
  317. package/helpers/gtm.d.ts +27 -0
  318. package/helpers/gtm.js +25 -0
  319. package/helpers/index.d.ts +6 -0
  320. package/helpers/index.js +6 -0
  321. package/helpers/package.json +6 -0
  322. package/helpers/random.d.ts +4 -0
  323. package/helpers/random.js +28 -0
  324. package/helpers/sha256.d.ts +21 -0
  325. package/helpers/sha256.js +424 -0
  326. package/index.d.ts +11 -12
  327. package/index.js +13 -11
  328. package/interfaces.d.ts +80 -6
  329. package/mocks/audits-mocks/auditLogsActions.mocks.d.ts +13 -0
  330. package/mocks/audits-mocks/auditLogsActions.mocks.js +52 -0
  331. package/mocks/audits-mocks/auditsMetadataActions.mocks.d.ts +7 -0
  332. package/mocks/audits-mocks/auditsMetadataActions.mocks.js +28 -0
  333. package/mocks/audits-mocks/index.d.ts +15 -0
  334. package/mocks/audits-mocks/index.js +8 -0
  335. package/mocks/auth-mocks/acceptInvitationActions.mocks.d.ts +10 -0
  336. package/mocks/auth-mocks/acceptInvitationActions.mocks.js +6 -0
  337. package/mocks/auth-mocks/accountSettingsActions.mocks.d.ts +22 -0
  338. package/mocks/auth-mocks/accountSettingsActions.mocks.js +52 -0
  339. package/mocks/auth-mocks/activateAccountActions.mocks.d.ts +24 -0
  340. package/mocks/auth-mocks/activateAccountActions.mocks.js +7 -0
  341. package/mocks/auth-mocks/allAccountsActions.mocks.d.ts +37 -0
  342. package/mocks/auth-mocks/allAccountsActions.mocks.js +6 -0
  343. package/mocks/auth-mocks/apiTokensActions.mocks.d.ts +17 -0
  344. package/mocks/auth-mocks/apiTokensActions.mocks.js +127 -0
  345. package/mocks/auth-mocks/applicationsActions.mocks.d.ts +23 -0
  346. package/mocks/auth-mocks/applicationsActions.mocks.js +7 -0
  347. package/mocks/auth-mocks/customLoginActions.mocks.d.ts +11 -0
  348. package/mocks/auth-mocks/customLoginActions.mocks.js +32 -0
  349. package/mocks/auth-mocks/entitlementsActions.mocks.d.ts +7 -0
  350. package/mocks/auth-mocks/entitlementsActions.mocks.js +6 -0
  351. package/mocks/auth-mocks/forgotPasswordActions.mocks.d.ts +10 -0
  352. package/mocks/auth-mocks/forgotPasswordActions.mocks.js +30 -0
  353. package/mocks/auth-mocks/groupsActions.mocks.d.ts +33 -0
  354. package/mocks/auth-mocks/groupsActions.mocks.js +234 -0
  355. package/mocks/auth-mocks/impersonateActions.mocks.d.ts +7 -0
  356. package/mocks/auth-mocks/impersonateActions.mocks.js +6 -0
  357. package/mocks/auth-mocks/index.d.ts +6 -0
  358. package/mocks/auth-mocks/index.js +130 -0
  359. package/mocks/auth-mocks/loginActions.mocks.d.ts +77 -0
  360. package/mocks/auth-mocks/loginActions.mocks.js +39 -0
  361. package/mocks/auth-mocks/mfaActions.mocks.d.ts +29 -0
  362. package/mocks/auth-mocks/mfaActions.mocks.js +220 -0
  363. package/mocks/auth-mocks/passkeysActions.mocks.d.ts +11 -0
  364. package/mocks/auth-mocks/passkeysActions.mocks.js +6 -0
  365. package/mocks/auth-mocks/profileActions.mocks.d.ts +10 -0
  366. package/mocks/auth-mocks/profileActions.mocks.js +67 -0
  367. package/mocks/auth-mocks/provisioningActions.mocks.d.ts +19 -0
  368. package/mocks/auth-mocks/provisioningActions.mocks.js +6 -0
  369. package/mocks/auth-mocks/resetPhoneNumberActions.mocks.d.ts +12 -0
  370. package/mocks/auth-mocks/resetPhoneNumberActions.mocks.js +6 -0
  371. package/mocks/auth-mocks/rolesActions.mocks.d.ts +17 -0
  372. package/mocks/auth-mocks/rolesActions.mocks.js +33 -0
  373. package/mocks/auth-mocks/security/restrictionsActions.mocks.d.ts +23 -0
  374. package/mocks/auth-mocks/security/restrictionsActions.mocks.js +248 -0
  375. package/mocks/auth-mocks/security/securityCenterActions.mocks.d.ts +16 -0
  376. package/mocks/auth-mocks/security/securityCenterActions.mocks.js +102 -0
  377. package/mocks/auth-mocks/security/securityPolicyActions.mocks.d.ts +56 -0
  378. package/mocks/auth-mocks/security/securityPolicyActions.mocks.js +179 -0
  379. package/mocks/auth-mocks/security/sessionsPolicyActions.mocks.d.ts +10 -0
  380. package/mocks/auth-mocks/security/sessionsPolicyActions.mocks.js +35 -0
  381. package/mocks/auth-mocks/sessionsActions.mocks.d.ts +13 -0
  382. package/mocks/auth-mocks/sessionsActions.mocks.js +44 -0
  383. package/mocks/auth-mocks/signUpActions.mocks.d.ts +9 -0
  384. package/mocks/auth-mocks/signUpActions.mocks.js +6 -0
  385. package/mocks/auth-mocks/smsActions.mocks.d.ts +12 -0
  386. package/mocks/auth-mocks/smsActions.mocks.js +6 -0
  387. package/mocks/auth-mocks/socialLoginActions.mocks.d.ts +12 -0
  388. package/mocks/auth-mocks/socialLoginActions.mocks.js +6 -0
  389. package/mocks/auth-mocks/ssoActions.mocks.d.ts +77 -0
  390. package/mocks/auth-mocks/ssoActions.mocks.js +128 -0
  391. package/mocks/auth-mocks/stepUpActions.mocks.d.ts +15 -0
  392. package/mocks/auth-mocks/stepUpActions.mocks.js +6 -0
  393. package/mocks/auth-mocks/teamActions.mocks.d.ts +52 -0
  394. package/mocks/auth-mocks/teamActions.mocks.js +378 -0
  395. package/mocks/auth-mocks/tenantsActions.mocks.d.ts +16 -0
  396. package/mocks/auth-mocks/tenantsActions.mocks.js +18 -0
  397. package/mocks/connectivity-mocks/index.d.ts +41 -0
  398. package/mocks/connectivity-mocks/index.js +7 -0
  399. package/mocks/dummy.d.ts +41 -0
  400. package/mocks/dummy.js +965 -0
  401. package/mocks/helpers.d.ts +1 -0
  402. package/mocks/helpers.js +16 -0
  403. package/mocks/index.d.ts +68 -0
  404. package/mocks/index.js +25 -0
  405. package/mocks/package.json +6 -0
  406. package/mocks/subscriptions-mocks/billingActions-mocks/index.d.ts +4 -0
  407. package/mocks/subscriptions-mocks/billingActions-mocks/index.js +17 -0
  408. package/mocks/subscriptions-mocks/billingActions-mocks/informationActions.mocks.d.ts +8 -0
  409. package/mocks/subscriptions-mocks/billingActions-mocks/informationActions.mocks.js +36 -0
  410. package/mocks/subscriptions-mocks/billingActions-mocks/invoicesActions.mocks.d.ts +10 -0
  411. package/mocks/subscriptions-mocks/billingActions-mocks/invoicesActions.mocks.js +27 -0
  412. package/mocks/subscriptions-mocks/billingActions-mocks/paymentMethodActions.mocks.d.ts +11 -0
  413. package/mocks/subscriptions-mocks/billingActions-mocks/paymentMethodActions.mocks.js +20 -0
  414. package/mocks/subscriptions-mocks/billingActions-mocks/subscriptionActions.mocks.d.ts +14 -0
  415. package/mocks/subscriptions-mocks/billingActions-mocks/subscriptionActions.mocks.js +21 -0
  416. package/mocks/subscriptions-mocks/checkoutActions.mocks.d.ts +11 -0
  417. package/mocks/subscriptions-mocks/checkoutActions.mocks.js +7 -0
  418. package/mocks/subscriptions-mocks/configActions.mocks.d.ts +7 -0
  419. package/mocks/subscriptions-mocks/configActions.mocks.js +23 -0
  420. package/mocks/subscriptions-mocks/index.d.ts +3 -0
  421. package/mocks/subscriptions-mocks/index.js +23 -0
  422. package/mocks/subscriptions-mocks/plansActions.mocks.d.ts +7 -0
  423. package/mocks/subscriptions-mocks/plansActions.mocks.js +28 -0
  424. package/mocks/subscriptions-mocks/stripeActions.mocks.d.ts +5 -0
  425. package/mocks/subscriptions-mocks/stripeActions.mocks.js +6 -0
  426. package/mocks/subscriptions-mocks/vendorPublicConfigActions.mocks.d.ts +9 -0
  427. package/mocks/subscriptions-mocks/vendorPublicConfigActions.mocks.js +18 -0
  428. package/mocks/vendor-mocks/index.d.ts +7 -0
  429. package/mocks/vendor-mocks/index.js +19 -0
  430. package/node/audits/AuditLogsState/actions.js +111 -0
  431. package/node/audits/AuditLogsState/index.js +14 -41
  432. package/node/audits/AuditLogsState/state.js +20 -0
  433. package/node/audits/AuditsMetadataState/actions.js +43 -0
  434. package/node/audits/AuditsMetadataState/index.js +14 -31
  435. package/node/audits/AuditsMetadataState/state.js +13 -0
  436. package/node/audits/index.js +13 -117
  437. package/node/audits/interfaces.js +22 -0
  438. package/node/audits-backward-compatibility/actions.js +265 -0
  439. package/node/audits-backward-compatibility/index.js +20 -0
  440. package/node/audits-backward-compatibility/state.js +32 -0
  441. package/node/auth/AcceptInvitationState/actions.js +50 -0
  442. package/node/auth/AcceptInvitationState/index.js +15 -33
  443. package/node/auth/AcceptInvitationState/state.js +14 -0
  444. package/node/auth/AccountSettingsState/actions.js +101 -0
  445. package/node/auth/AccountSettingsState/index.js +15 -35
  446. package/node/auth/AccountSettingsState/state.js +13 -0
  447. package/node/auth/ActivateAccountState/actions.js +200 -0
  448. package/node/auth/ActivateAccountState/index.js +20 -0
  449. package/node/auth/ActivateAccountState/state.js +19 -0
  450. package/node/auth/ApiTokensState/actions.js +379 -0
  451. package/node/auth/ApiTokensState/index.js +15 -73
  452. package/node/auth/ApiTokensState/state.js +31 -0
  453. package/node/auth/ApplicationsState/actions.js +229 -0
  454. package/node/auth/ApplicationsState/helpers.js +20 -0
  455. package/node/auth/ApplicationsState/index.js +20 -0
  456. package/node/auth/ApplicationsState/state.js +17 -0
  457. package/node/auth/CustomLoginState/actions.js +124 -0
  458. package/node/auth/CustomLoginState/index.js +15 -34
  459. package/node/auth/CustomLoginState/state.js +14 -0
  460. package/node/auth/Entitlements/actions.js +47 -0
  461. package/node/auth/Entitlements/helpers.js +77 -0
  462. package/node/auth/Entitlements/index.js +7 -21
  463. package/node/auth/ForgotPasswordState/actions.js +92 -0
  464. package/node/auth/ForgotPasswordState/index.js +15 -42
  465. package/node/auth/ForgotPasswordState/state.js +17 -0
  466. package/node/auth/GroupsDialogsState/actions.js +85 -0
  467. package/node/auth/GroupsDialogsState/index.js +20 -0
  468. package/node/auth/GroupsDialogsState/state.js +33 -0
  469. package/node/auth/GroupsState/actions.js +411 -0
  470. package/node/auth/GroupsState/index.js +15 -61
  471. package/node/auth/GroupsState/interfaces.js +1 -0
  472. package/node/auth/GroupsState/state.js +16 -0
  473. package/node/auth/ImpersonateState/actions.js +60 -0
  474. package/node/auth/ImpersonateState/index.js +20 -0
  475. package/node/auth/ImpersonateState/state.js +15 -0
  476. package/node/auth/LoginState/actions/afterAuthNavigation.actions.js +191 -0
  477. package/node/auth/LoginState/actions/handleVerifyMFAResponse.actions.js +98 -0
  478. package/node/auth/LoginState/actions/hostedLoginAuthorize.actions.js +211 -0
  479. package/node/auth/LoginState/actions/index.js +1304 -0
  480. package/node/auth/LoginState/actions/mfaRequiredState.actions.js +71 -0
  481. package/node/auth/LoginState/actions/mfaWithAuthenticator.actions.js +145 -0
  482. package/node/auth/LoginState/actions/mfaWithEmailCode.actions.js +109 -0
  483. package/node/auth/LoginState/actions/mfaWithSMS.actions.js +116 -0
  484. package/node/auth/LoginState/actions/mfaWithWebAuthn.actions.js +127 -0
  485. package/node/auth/LoginState/consts.js +7 -6
  486. package/node/auth/LoginState/helpers.js +150 -0
  487. package/node/auth/LoginState/index.js +11 -146
  488. package/node/auth/LoginState/interfaces.js +9 -2
  489. package/node/auth/LoginState/state.js +18 -0
  490. package/node/auth/MSP/actions.js +970 -0
  491. package/node/auth/MSP/dialogs/actions.js +132 -0
  492. package/node/auth/MSP/dialogs/state.js +84 -0
  493. package/node/auth/MSP/helpers/getAccountsWithUsersCount.js +28 -0
  494. package/node/auth/MSP/helpers/index.js +60 -0
  495. package/node/auth/MSP/helpers/updateNodeIsReseller.js +22 -0
  496. package/node/auth/MSP/helpers/updateNodeSubAccountAccessType.js +21 -0
  497. package/node/auth/MSP/index.js +29 -11
  498. package/node/auth/MSP/interfaces/stateTypes.js +29 -0
  499. package/node/auth/MSP/state.js +46 -0
  500. package/node/auth/MfaState/actions.js +439 -0
  501. package/node/auth/MfaState/index.js +15 -68
  502. package/node/auth/MfaState/interfaces.js +1 -0
  503. package/node/auth/MfaState/state.js +16 -0
  504. package/node/auth/PasskeysState/actions.js +109 -0
  505. package/node/auth/PasskeysState/index.js +15 -35
  506. package/node/auth/PasskeysState/state.js +15 -0
  507. package/node/auth/ProfileState/actions.js +120 -0
  508. package/node/auth/ProfileState/index.js +15 -37
  509. package/node/auth/ProfileState/state.js +14 -0
  510. package/node/auth/ProvisioningState/actions.js +138 -0
  511. package/node/auth/ProvisioningState/index.js +20 -0
  512. package/node/auth/ProvisioningState/state.js +13 -0
  513. package/node/auth/ResetPhoneNumberState/actions.js +123 -0
  514. package/node/auth/ResetPhoneNumberState/index.js +15 -40
  515. package/node/auth/ResetPhoneNumberState/state.js +15 -0
  516. package/node/auth/RolesState/actions.js +282 -0
  517. package/node/auth/RolesState/index.js +15 -50
  518. package/node/auth/RolesState/interfaces.js +11 -1
  519. package/node/auth/RolesState/state.js +17 -0
  520. package/node/auth/SSOState/actions/actions.v1.js +395 -0
  521. package/node/auth/SSOState/actions/actions.v2.js +367 -0
  522. package/node/auth/SSOState/actions/index.js +14 -0
  523. package/node/auth/SSOState/index.js +15 -103
  524. package/node/auth/SSOState/state.js +18 -0
  525. package/node/auth/Security/RestrictionsState/actions.js +452 -0
  526. package/node/auth/Security/RestrictionsState/index.js +14 -64
  527. package/node/auth/Security/RestrictionsState/state.js +26 -0
  528. package/node/auth/Security/SecurityCenterState/actions.js +316 -0
  529. package/node/auth/Security/SecurityCenterState/index.js +14 -82
  530. package/node/auth/Security/SecurityCenterState/interfaces.js +13 -1
  531. package/node/auth/Security/SecurityCenterState/state.js +48 -0
  532. package/node/auth/Security/SecurityPolicyState/actions.js +421 -0
  533. package/node/auth/Security/SecurityPolicyState/index.js +14 -91
  534. package/node/auth/Security/SecurityPolicyState/state.js +45 -0
  535. package/node/auth/Security/SessionsPolicyState/actions.js +65 -0
  536. package/node/auth/Security/SessionsPolicyState/index.js +15 -34
  537. package/node/auth/Security/SessionsPolicyState/state.js +14 -0
  538. package/node/auth/SessionsState/actions.js +118 -0
  539. package/node/auth/SessionsState/index.js +15 -39
  540. package/node/auth/SessionsState/state.js +14 -0
  541. package/node/auth/SignUpState/actions.js +154 -0
  542. package/node/auth/SignUpState/index.js +20 -0
  543. package/node/auth/SignUpState/state.js +18 -0
  544. package/node/auth/SmsState/actions.js +189 -0
  545. package/node/auth/SmsState/index.js +20 -0
  546. package/node/auth/SmsState/state.js +15 -0
  547. package/node/auth/SocialLoginState/actions.js +171 -0
  548. package/node/auth/SocialLoginState/index.js +20 -0
  549. package/node/auth/SocialLoginState/state.js +15 -0
  550. package/node/auth/StepUpState/actions/generateStepUpSession.actions.js +111 -0
  551. package/node/auth/StepUpState/actions/index.js +106 -0
  552. package/node/auth/StepUpState/actions/stepUpHostedLogin.actions.js +39 -0
  553. package/node/auth/StepUpState/consts.js +36 -0
  554. package/node/auth/StepUpState/helpers.js +63 -0
  555. package/node/auth/StepUpState/index.js +20 -0
  556. package/node/auth/StepUpState/interfaces.js +5 -0
  557. package/node/auth/StepUpState/state.js +15 -0
  558. package/node/auth/TeamState/actions/activation-link.actions.js +92 -0
  559. package/node/auth/TeamState/actions/index.js +96 -0
  560. package/node/auth/TeamState/actions/invitation-link.actions.js +139 -0
  561. package/node/auth/TeamState/actions/sub-tenants.actions.js +222 -0
  562. package/node/auth/TeamState/actions/users.actions.js +588 -0
  563. package/node/auth/TeamState/index.js +14 -134
  564. package/node/auth/TeamState/interfaces.js +2 -0
  565. package/node/auth/TeamState/state.js +49 -0
  566. package/node/auth/TenantsState/actions.js +116 -0
  567. package/node/auth/TenantsState/index.js +15 -44
  568. package/node/auth/TenantsState/state.js +16 -0
  569. package/node/auth/helpers.js +107 -0
  570. package/node/auth/index.js +237 -422
  571. package/node/auth/interfaces.js +1 -1
  572. package/node/connectivity/actions.js +542 -0
  573. package/node/connectivity/consts.js +4 -28
  574. package/node/connectivity/index.js +7 -55
  575. package/node/connectivity/state.js +19 -0
  576. package/node/constants.js +30 -14
  577. package/node/helpers/common.js +57 -0
  578. package/node/helpers/converters.js +73 -0
  579. package/node/helpers/encoders.js +54 -0
  580. package/node/helpers/gtm.js +31 -0
  581. package/node/helpers/index.js +71 -0
  582. package/node/helpers/random.js +37 -0
  583. package/node/index.js +90 -72
  584. package/node/mocks/audits-mocks/auditLogsActions.mocks.js +59 -0
  585. package/node/mocks/audits-mocks/auditsMetadataActions.mocks.js +35 -0
  586. package/node/mocks/audits-mocks/index.js +16 -0
  587. package/node/mocks/auth-mocks/acceptInvitationActions.mocks.js +13 -0
  588. package/node/mocks/auth-mocks/accountSettingsActions.mocks.js +60 -0
  589. package/node/mocks/auth-mocks/activateAccountActions.mocks.js +14 -0
  590. package/node/mocks/auth-mocks/allAccountsActions.mocks.js +13 -0
  591. package/node/mocks/auth-mocks/apiTokensActions.mocks.js +135 -0
  592. package/node/mocks/auth-mocks/applicationsActions.mocks.js +14 -0
  593. package/node/mocks/auth-mocks/customLoginActions.mocks.js +39 -0
  594. package/node/mocks/auth-mocks/entitlementsActions.mocks.js +13 -0
  595. package/node/mocks/auth-mocks/forgotPasswordActions.mocks.js +37 -0
  596. package/node/mocks/auth-mocks/groupsActions.mocks.js +242 -0
  597. package/node/mocks/auth-mocks/impersonateActions.mocks.js +13 -0
  598. package/node/mocks/auth-mocks/index.js +140 -0
  599. package/node/mocks/auth-mocks/loginActions.mocks.js +46 -0
  600. package/node/mocks/auth-mocks/mfaActions.mocks.js +228 -0
  601. package/node/mocks/auth-mocks/passkeysActions.mocks.js +13 -0
  602. package/node/mocks/auth-mocks/profileActions.mocks.js +75 -0
  603. package/node/mocks/auth-mocks/provisioningActions.mocks.js +13 -0
  604. package/node/mocks/auth-mocks/resetPhoneNumberActions.mocks.js +13 -0
  605. package/node/mocks/auth-mocks/rolesActions.mocks.js +40 -0
  606. package/node/mocks/auth-mocks/security/restrictionsActions.mocks.js +256 -0
  607. package/node/mocks/auth-mocks/security/securityCenterActions.mocks.js +109 -0
  608. package/node/mocks/auth-mocks/security/securityPolicyActions.mocks.js +187 -0
  609. package/node/mocks/auth-mocks/security/sessionsPolicyActions.mocks.js +43 -0
  610. package/node/mocks/auth-mocks/sessionsActions.mocks.js +51 -0
  611. package/node/mocks/auth-mocks/signUpActions.mocks.js +13 -0
  612. package/node/mocks/auth-mocks/smsActions.mocks.js +13 -0
  613. package/node/mocks/auth-mocks/socialLoginActions.mocks.js +13 -0
  614. package/node/mocks/auth-mocks/ssoActions.mocks.js +136 -0
  615. package/node/mocks/auth-mocks/stepUpActions.mocks.js +13 -0
  616. package/node/mocks/auth-mocks/teamActions.mocks.js +386 -0
  617. package/node/mocks/auth-mocks/tenantsActions.mocks.js +25 -0
  618. package/node/mocks/connectivity-mocks/index.js +14 -0
  619. package/node/mocks/dummy.js +1010 -0
  620. package/node/mocks/helpers.js +24 -0
  621. package/node/mocks/index.js +32 -0
  622. package/node/mocks/subscriptions-mocks/billingActions-mocks/index.js +25 -0
  623. package/node/mocks/subscriptions-mocks/billingActions-mocks/informationActions.mocks.js +44 -0
  624. package/node/mocks/subscriptions-mocks/billingActions-mocks/invoicesActions.mocks.js +35 -0
  625. package/node/mocks/subscriptions-mocks/billingActions-mocks/paymentMethodActions.mocks.js +27 -0
  626. package/node/mocks/subscriptions-mocks/billingActions-mocks/subscriptionActions.mocks.js +28 -0
  627. package/node/mocks/subscriptions-mocks/checkoutActions.mocks.js +14 -0
  628. package/node/mocks/subscriptions-mocks/configActions.mocks.js +30 -0
  629. package/node/mocks/subscriptions-mocks/index.js +31 -0
  630. package/node/mocks/subscriptions-mocks/plansActions.mocks.js +36 -0
  631. package/node/mocks/subscriptions-mocks/stripeActions.mocks.js +13 -0
  632. package/node/mocks/subscriptions-mocks/vendorPublicConfigActions.mocks.js +25 -0
  633. package/node/mocks/vendor-mocks/index.js +26 -0
  634. package/node/subscriptions/Billing/Information/actions.js +96 -0
  635. package/node/subscriptions/Billing/Information/index.js +13 -28
  636. package/node/subscriptions/Billing/Information/state.js +15 -0
  637. package/node/subscriptions/Billing/Invoices/actions.js +80 -0
  638. package/node/subscriptions/Billing/Invoices/index.js +11 -40
  639. package/node/subscriptions/Billing/Invoices/state.js +20 -0
  640. package/node/subscriptions/Billing/PaymentMethod/actions.js +92 -0
  641. package/node/subscriptions/Billing/PaymentMethod/index.js +11 -37
  642. package/node/subscriptions/Billing/PaymentMethod/interfaces.js +0 -1
  643. package/node/subscriptions/Billing/PaymentMethod/state.js +15 -0
  644. package/node/subscriptions/Billing/Subscription/actions.js +145 -0
  645. package/node/subscriptions/Billing/Subscription/index.js +11 -38
  646. package/node/subscriptions/Billing/Subscription/state.js +23 -0
  647. package/node/subscriptions/Billing/index.js +25 -22
  648. package/node/subscriptions/Checkout/actions.js +108 -0
  649. package/node/subscriptions/Checkout/index.js +13 -34
  650. package/node/subscriptions/Checkout/state.js +16 -0
  651. package/node/subscriptions/Config/actions.js +69 -0
  652. package/node/subscriptions/Config/index.js +13 -26
  653. package/node/subscriptions/Config/state.js +16 -0
  654. package/node/subscriptions/Plans/actions.js +56 -0
  655. package/node/subscriptions/Plans/index.js +13 -25
  656. package/node/subscriptions/Plans/state.js +16 -0
  657. package/node/subscriptions/Stripe/actions.js +50 -0
  658. package/node/subscriptions/Stripe/index.js +13 -26
  659. package/node/subscriptions/Stripe/state.js +15 -0
  660. package/node/subscriptions/VendorPublicConfig/actions.js +51 -0
  661. package/node/subscriptions/VendorPublicConfig/index.js +13 -24
  662. package/node/subscriptions/VendorPublicConfig/state.js +15 -0
  663. package/node/subscriptions/helpers.js +36 -0
  664. package/node/subscriptions/index.js +98 -55
  665. package/node/subscriptions/interfaces.js +20 -77
  666. package/node/toolkit/FronteggNativeModule.js +64 -0
  667. package/node/toolkit/index.js +22 -146
  668. package/node/toolkit/proxy.js +17 -0
  669. package/node/toolkit/store.js +233 -0
  670. package/node/vendor/actions.js +46 -0
  671. package/node/vendor/index.js +7 -55
  672. package/node/vendor/state.js +13 -0
  673. package/package.json +6 -5
  674. package/subscriptions/Billing/Information/actions.d.ts +9 -0
  675. package/subscriptions/Billing/Information/actions.js +88 -0
  676. package/subscriptions/Billing/Information/index.d.ts +3 -12
  677. package/subscriptions/Billing/Information/index.js +3 -26
  678. package/subscriptions/Billing/Information/interfaces.d.ts +1 -1
  679. package/subscriptions/Billing/Information/state.d.ts +4 -0
  680. package/subscriptions/Billing/Information/state.js +7 -0
  681. package/subscriptions/Billing/Invoices/actions.d.ts +11 -0
  682. package/subscriptions/Billing/Invoices/actions.js +73 -0
  683. package/subscriptions/Billing/Invoices/index.d.ts +3 -18
  684. package/subscriptions/Billing/Invoices/index.js +3 -40
  685. package/subscriptions/Billing/Invoices/interfaces.d.ts +1 -1
  686. package/subscriptions/Billing/Invoices/state.d.ts +4 -0
  687. package/subscriptions/Billing/Invoices/state.js +12 -0
  688. package/subscriptions/Billing/PaymentMethod/actions.d.ts +12 -0
  689. package/subscriptions/Billing/PaymentMethod/actions.js +84 -0
  690. package/subscriptions/Billing/PaymentMethod/index.d.ts +3 -20
  691. package/subscriptions/Billing/PaymentMethod/index.js +3 -37
  692. package/subscriptions/Billing/PaymentMethod/interfaces.d.ts +1 -1
  693. package/subscriptions/Billing/PaymentMethod/interfaces.js +0 -2
  694. package/subscriptions/Billing/PaymentMethod/state.d.ts +4 -0
  695. package/subscriptions/Billing/PaymentMethod/state.js +7 -0
  696. package/subscriptions/Billing/Subscription/actions.d.ts +14 -0
  697. package/subscriptions/Billing/Subscription/actions.js +138 -0
  698. package/subscriptions/Billing/Subscription/index.d.ts +3 -16
  699. package/subscriptions/Billing/Subscription/index.js +3 -38
  700. package/subscriptions/Billing/Subscription/interfaces.d.ts +0 -3
  701. package/subscriptions/Billing/Subscription/state.d.ts +4 -0
  702. package/subscriptions/Billing/Subscription/state.js +15 -0
  703. package/subscriptions/Billing/index.d.ts +13 -52
  704. package/subscriptions/Billing/index.js +25 -22
  705. package/subscriptions/Billing/interfaces.d.ts +4 -10
  706. package/subscriptions/Billing/interfaces.js +0 -2
  707. package/subscriptions/Checkout/actions.d.ts +12 -0
  708. package/subscriptions/Checkout/actions.js +100 -0
  709. package/subscriptions/Checkout/index.d.ts +3 -14
  710. package/subscriptions/Checkout/index.js +3 -32
  711. package/subscriptions/Checkout/interfaces.d.ts +0 -7
  712. package/subscriptions/Checkout/state.d.ts +4 -0
  713. package/subscriptions/Checkout/state.js +8 -0
  714. package/subscriptions/Config/actions.d.ts +8 -0
  715. package/subscriptions/Config/actions.js +62 -0
  716. package/subscriptions/Config/index.d.ts +3 -10
  717. package/subscriptions/Config/index.js +3 -24
  718. package/subscriptions/Config/interfaces.d.ts +1 -1
  719. package/subscriptions/Config/state.d.ts +4 -0
  720. package/subscriptions/Config/state.js +8 -0
  721. package/subscriptions/Plans/actions.d.ts +8 -0
  722. package/subscriptions/Plans/actions.js +49 -0
  723. package/subscriptions/Plans/index.d.ts +3 -10
  724. package/subscriptions/Plans/index.js +3 -23
  725. package/subscriptions/Plans/interfaces.d.ts +1 -4
  726. package/subscriptions/Plans/state.d.ts +4 -0
  727. package/subscriptions/Plans/state.js +8 -0
  728. package/subscriptions/Stripe/actions.d.ts +6 -0
  729. package/subscriptions/Stripe/actions.js +43 -0
  730. package/subscriptions/Stripe/index.d.ts +3 -11
  731. package/subscriptions/Stripe/index.js +3 -24
  732. package/subscriptions/Stripe/state.d.ts +4 -0
  733. package/subscriptions/Stripe/state.js +7 -0
  734. package/subscriptions/VendorPublicConfig/actions.d.ts +10 -0
  735. package/subscriptions/VendorPublicConfig/actions.js +44 -0
  736. package/subscriptions/VendorPublicConfig/index.d.ts +3 -10
  737. package/subscriptions/VendorPublicConfig/index.js +3 -22
  738. package/subscriptions/VendorPublicConfig/state.d.ts +4 -0
  739. package/subscriptions/VendorPublicConfig/state.js +7 -0
  740. package/subscriptions/helpers.d.ts +5 -0
  741. package/subscriptions/helpers.js +28 -0
  742. package/subscriptions/index.d.ts +28 -106
  743. package/subscriptions/index.js +40 -17
  744. package/subscriptions/interfaces.d.ts +56 -22
  745. package/subscriptions/interfaces.js +16 -8
  746. package/toolkit/FronteggNativeModule.d.ts +29 -0
  747. package/toolkit/FronteggNativeModule.js +57 -0
  748. package/toolkit/index.d.ts +5 -23
  749. package/toolkit/index.js +3 -128
  750. package/toolkit/proxy.d.ts +1 -0
  751. package/toolkit/proxy.js +9 -0
  752. package/toolkit/store.d.ts +59 -0
  753. package/toolkit/store.js +198 -0
  754. package/vendor/actions.d.ts +12 -0
  755. package/vendor/actions.js +38 -0
  756. package/vendor/index.d.ts +4 -17
  757. package/vendor/index.js +3 -16
  758. package/vendor/interfaces.d.ts +4 -1
  759. package/vendor/state.d.ts +4 -0
  760. package/vendor/state.js +5 -0
  761. package/audits/AuditLogsState/saga.d.ts +0 -2
  762. package/audits/AuditLogsState/saga.js +0 -153
  763. package/audits/AuditsMetadataState/saga.d.ts +0 -2
  764. package/audits/AuditsMetadataState/saga.js +0 -55
  765. package/audits/backward-compatibility/index.d.ts +0 -4
  766. package/audits/backward-compatibility/index.js +0 -4
  767. package/audits/backward-compatibility/initialState.d.ts +0 -2
  768. package/audits/backward-compatibility/initialState.js +0 -20
  769. package/audits/backward-compatibility/interfaces.d.ts +0 -55
  770. package/audits/backward-compatibility/reducer.d.ts +0 -35
  771. package/audits/backward-compatibility/reducer.js +0 -129
  772. package/audits/backward-compatibility/saga.d.ts +0 -1
  773. package/audits/backward-compatibility/saga.js +0 -173
  774. package/audits/initialState.d.ts +0 -2
  775. package/audits/initialState.js +0 -6
  776. package/audits/reducer.d.ts +0 -31
  777. package/audits/reducer.js +0 -21
  778. package/audits/saga.d.ts +0 -2
  779. package/audits/saga.js +0 -9
  780. package/audits/utils.d.ts +0 -14
  781. package/audits/utils.js +0 -13
  782. package/auth/AcceptInvitationState/saga.d.ts +0 -1
  783. package/auth/AcceptInvitationState/saga.js +0 -39
  784. package/auth/AccountSettingsState/saga.d.ts +0 -2
  785. package/auth/AccountSettingsState/saga.js +0 -127
  786. package/auth/ActivateState/index.d.ts +0 -190
  787. package/auth/ActivateState/index.js +0 -46
  788. package/auth/ActivateState/saga.d.ts +0 -1
  789. package/auth/ActivateState/saga.js +0 -191
  790. package/auth/ApiTokensState/saga.d.ts +0 -2
  791. package/auth/ApiTokensState/saga.js +0 -485
  792. package/auth/CustomLoginState/saga.d.ts +0 -20
  793. package/auth/CustomLoginState/saga.js +0 -152
  794. package/auth/CustomLoginState/utils.d.ts +0 -2
  795. package/auth/CustomLoginState/utils.js +0 -11
  796. package/auth/Entitlements/saga.d.ts +0 -30
  797. package/auth/Entitlements/saga.js +0 -51
  798. package/auth/Entitlements/utils.d.ts +0 -23
  799. package/auth/Entitlements/utils.js +0 -71
  800. package/auth/ForgotPasswordState/saga.d.ts +0 -8
  801. package/auth/ForgotPasswordState/saga.js +0 -81
  802. package/auth/GroupsState/groupsDialogsState.d.ts +0 -614
  803. package/auth/GroupsState/groupsDialogsState.js +0 -79
  804. package/auth/GroupsState/saga.d.ts +0 -2
  805. package/auth/GroupsState/saga.js +0 -640
  806. package/auth/Helpers/base64ToFormData.d.ts +0 -1
  807. package/auth/Helpers/base64ToFormData.js +0 -37
  808. package/auth/Helpers/index.d.ts +0 -2
  809. package/auth/Helpers/index.js +0 -2
  810. package/auth/Helpers/isAuthRoute.d.ts +0 -2
  811. package/auth/Helpers/isAuthRoute.js +0 -9
  812. package/auth/ImpersonationState/index.d.ts +0 -117
  813. package/auth/ImpersonationState/index.js +0 -32
  814. package/auth/ImpersonationState/interfaces.d.ts +0 -14
  815. package/auth/ImpersonationState/saga.d.ts +0 -1
  816. package/auth/ImpersonationState/saga.js +0 -37
  817. package/auth/LoginState/mfaRequiredState.saga.d.ts +0 -32
  818. package/auth/LoginState/mfaRequiredState.saga.js +0 -61
  819. package/auth/LoginState/saga.d.ts +0 -35
  820. package/auth/LoginState/saga.js +0 -1967
  821. package/auth/LoginState/utils.d.ts +0 -27
  822. package/auth/LoginState/utils.js +0 -126
  823. package/auth/MSP/AllAccountsState/allAccountsDialogsState.d.ts +0 -767
  824. package/auth/MSP/AllAccountsState/allAccountsDialogsState.js +0 -89
  825. package/auth/MSP/AllAccountsState/index.d.ts +0 -232
  826. package/auth/MSP/AllAccountsState/index.js +0 -101
  827. package/auth/MSP/AllAccountsState/saga.d.ts +0 -3
  828. package/auth/MSP/AllAccountsState/saga.js +0 -825
  829. package/auth/MSP/AllAccountsState/types/dialogsStateTypes.d.ts +0 -49
  830. package/auth/MSP/AllAccountsState/types/stateTypes.d.ts +0 -106
  831. package/auth/MSP/AllAccountsState/types/stateTypes.js +0 -22
  832. package/auth/MSP/AllAccountsState/utils/appendChildrenToNode.d.ts +0 -2
  833. package/auth/MSP/AllAccountsState/utils/getAccountsWithUsersCount.d.ts +0 -13
  834. package/auth/MSP/AllAccountsState/utils/getAccountsWithUsersCount.js +0 -19
  835. package/auth/MSP/AllAccountsState/utils/removeNodeFromTree.d.ts +0 -2
  836. package/auth/MSP/AllAccountsState/utils/updateNodeName.d.ts +0 -2
  837. package/auth/MfaState/saga.d.ts +0 -2
  838. package/auth/MfaState/saga.js +0 -673
  839. package/auth/PasskeysState/helpers.d.ts +0 -2
  840. package/auth/PasskeysState/helpers.js +0 -8
  841. package/auth/PasskeysState/saga.d.ts +0 -14
  842. package/auth/PasskeysState/saga.js +0 -56
  843. package/auth/ProfileState/saga.d.ts +0 -2
  844. package/auth/ProfileState/saga.js +0 -178
  845. package/auth/Provisioning/index.d.ts +0 -128
  846. package/auth/Provisioning/index.js +0 -37
  847. package/auth/Provisioning/saga.d.ts +0 -1
  848. package/auth/Provisioning/saga.js +0 -121
  849. package/auth/ResetPhoneNumberState/saga.d.ts +0 -17
  850. package/auth/ResetPhoneNumberState/saga.js +0 -119
  851. package/auth/RolesState/saga.d.ts +0 -2
  852. package/auth/RolesState/saga.js +0 -208
  853. package/auth/SSOState/saga.d.ts +0 -2
  854. package/auth/SSOState/saga.js +0 -478
  855. package/auth/SSOState/saga.v2.d.ts +0 -1
  856. package/auth/SSOState/saga.v2.js +0 -546
  857. package/auth/Security/RestrictionsState/saga.d.ts +0 -2
  858. package/auth/Security/RestrictionsState/saga.js +0 -698
  859. package/auth/Security/SecurityCenterState/saga.d.ts +0 -129
  860. package/auth/Security/SecurityCenterState/saga.js +0 -419
  861. package/auth/Security/SecurityCenterState/types.d.ts +0 -28
  862. package/auth/Security/SecurityCenterState/types.js +0 -10
  863. package/auth/Security/SecurityPolicyState/saga.d.ts +0 -50
  864. package/auth/Security/SecurityPolicyState/saga.js +0 -560
  865. package/auth/Security/SessionsPolicyState/saga.d.ts +0 -2
  866. package/auth/Security/SessionsPolicyState/saga.js +0 -87
  867. package/auth/SessionsState/saga.d.ts +0 -2
  868. package/auth/SessionsState/saga.js +0 -152
  869. package/auth/SignUp/index.d.ts +0 -118
  870. package/auth/SignUp/index.js +0 -36
  871. package/auth/SignUp/saga.d.ts +0 -64
  872. package/auth/SignUp/saga.js +0 -134
  873. package/auth/SocialLogins/index.d.ts +0 -123
  874. package/auth/SocialLogins/index.js +0 -37
  875. package/auth/SocialLogins/saga.d.ts +0 -11
  876. package/auth/SocialLogins/saga.js +0 -152
  877. package/auth/TeamState/saga.d.ts +0 -2
  878. package/auth/TeamState/saga.js +0 -1278
  879. package/auth/TenantsState/saga.d.ts +0 -2
  880. package/auth/TenantsState/saga.js +0 -125
  881. package/auth/dummy.d.ts +0 -45
  882. package/auth/dummy.js +0 -590
  883. package/auth/initialState.d.ts +0 -3
  884. package/auth/initialState.js +0 -66
  885. package/auth/reducer.d.ts +0 -720
  886. package/auth/reducer.js +0 -54
  887. package/auth/saga.d.ts +0 -2
  888. package/auth/saga.js +0 -41
  889. package/auth/utils.d.ts +0 -327
  890. package/auth/utils.js +0 -159
  891. package/connectivity/ConnectivityState/index.d.ts +0 -301
  892. package/connectivity/ConnectivityState/index.js +0 -101
  893. package/connectivity/reducer.d.ts +0 -31
  894. package/connectivity/reducer.js +0 -23
  895. package/connectivity/saga.d.ts +0 -1
  896. package/connectivity/saga.js +0 -562
  897. package/fronteggState.d.ts +0 -28
  898. package/helpers.d.ts +0 -8
  899. package/helpers.js +0 -56
  900. package/node/audits/AuditLogsState/saga.js +0 -161
  901. package/node/audits/AuditsMetadataState/saga.js +0 -62
  902. package/node/audits/backward-compatibility/index.js +0 -49
  903. package/node/audits/backward-compatibility/initialState.js +0 -27
  904. package/node/audits/backward-compatibility/reducer.js +0 -139
  905. package/node/audits/backward-compatibility/saga.js +0 -180
  906. package/node/audits/initialState.js +0 -13
  907. package/node/audits/reducer.js +0 -29
  908. package/node/audits/saga.js +0 -16
  909. package/node/audits/utils.js +0 -21
  910. package/node/auth/AcceptInvitationState/saga.js +0 -45
  911. package/node/auth/AccountSettingsState/saga.js +0 -135
  912. package/node/auth/ActivateState/index.js +0 -53
  913. package/node/auth/ActivateState/saga.js +0 -198
  914. package/node/auth/ApiTokensState/saga.js +0 -493
  915. package/node/auth/CustomLoginState/saga.js +0 -163
  916. package/node/auth/CustomLoginState/utils.js +0 -18
  917. package/node/auth/Entitlements/saga.js +0 -61
  918. package/node/auth/Entitlements/utils.js +0 -80
  919. package/node/auth/ForgotPasswordState/saga.js +0 -89
  920. package/node/auth/GroupsState/groupsDialogsState.js +0 -87
  921. package/node/auth/GroupsState/saga.js +0 -648
  922. package/node/auth/Helpers/base64ToFormData.js +0 -43
  923. package/node/auth/Helpers/index.js +0 -27
  924. package/node/auth/Helpers/isAuthRoute.js +0 -17
  925. package/node/auth/ImpersonationState/index.js +0 -39
  926. package/node/auth/ImpersonationState/saga.js +0 -44
  927. package/node/auth/LoginState/mfaRequiredState.saga.js +0 -68
  928. package/node/auth/LoginState/saga.js +0 -1981
  929. package/node/auth/LoginState/utils.js +0 -142
  930. package/node/auth/MSP/AllAccountsState/allAccountsDialogsState.js +0 -96
  931. package/node/auth/MSP/AllAccountsState/index.js +0 -126
  932. package/node/auth/MSP/AllAccountsState/saga.js +0 -835
  933. package/node/auth/MSP/AllAccountsState/types/stateTypes.js +0 -27
  934. package/node/auth/MSP/AllAccountsState/utils/getAccountsWithUsersCount.js +0 -26
  935. package/node/auth/MfaState/saga.js +0 -681
  936. package/node/auth/PasskeysState/helpers.js +0 -15
  937. package/node/auth/PasskeysState/saga.js +0 -64
  938. package/node/auth/ProfileState/saga.js +0 -186
  939. package/node/auth/Provisioning/index.js +0 -44
  940. package/node/auth/Provisioning/saga.js +0 -128
  941. package/node/auth/ResetPhoneNumberState/saga.js +0 -127
  942. package/node/auth/RolesState/saga.js +0 -216
  943. package/node/auth/SSOState/saga.js +0 -486
  944. package/node/auth/SSOState/saga.v2.js +0 -553
  945. package/node/auth/Security/RestrictionsState/saga.js +0 -706
  946. package/node/auth/Security/SecurityCenterState/saga.js +0 -441
  947. package/node/auth/Security/SecurityCenterState/types.js +0 -17
  948. package/node/auth/Security/SecurityPolicyState/saga.js +0 -574
  949. package/node/auth/Security/SessionsPolicyState/saga.js +0 -95
  950. package/node/auth/SessionsState/saga.js +0 -159
  951. package/node/auth/SignUp/index.js +0 -43
  952. package/node/auth/SignUp/saga.js +0 -144
  953. package/node/auth/SocialLogins/index.js +0 -44
  954. package/node/auth/SocialLogins/saga.js +0 -161
  955. package/node/auth/TeamState/saga.js +0 -1286
  956. package/node/auth/TenantsState/saga.js +0 -132
  957. package/node/auth/dummy.js +0 -633
  958. package/node/auth/initialState.js +0 -75
  959. package/node/auth/reducer.js +0 -62
  960. package/node/auth/saga.js +0 -48
  961. package/node/auth/utils.js +0 -178
  962. package/node/connectivity/ConnectivityState/index.js +0 -108
  963. package/node/connectivity/reducer.js +0 -32
  964. package/node/connectivity/saga.js +0 -567
  965. package/node/helpers.js +0 -70
  966. package/node/subscriptions/Billing/Information/saga.js +0 -122
  967. package/node/subscriptions/Billing/Invoices/saga.js +0 -85
  968. package/node/subscriptions/Billing/PaymentMethod/saga.js +0 -87
  969. package/node/subscriptions/Billing/Subscription/loadSubscription.saga.js +0 -26
  970. package/node/subscriptions/Billing/Subscription/saga.js +0 -101
  971. package/node/subscriptions/Billing/saga.js +0 -18
  972. package/node/subscriptions/Checkout/saga.js +0 -116
  973. package/node/subscriptions/Config/saga.js +0 -65
  974. package/node/subscriptions/Plans/saga.js +0 -66
  975. package/node/subscriptions/Stripe/saga.js +0 -37
  976. package/node/subscriptions/VendorPublicConfig/saga.js +0 -45
  977. package/node/subscriptions/general.interfaces.js +0 -25
  978. package/node/subscriptions/mapper.js +0 -40
  979. package/node/subscriptions/reducer.js +0 -48
  980. package/node/subscriptions/saga.js +0 -20
  981. package/node/subscriptions/utils.js +0 -62
  982. package/node/toolkit/redux-saga-tools.js +0 -56
  983. package/node/toolkit/redux.js +0 -42
  984. package/node/utils/gtm.js +0 -29
  985. package/node/utils/index.js +0 -38
  986. package/node/vendor/VendorState/index.js +0 -31
  987. package/node/vendor/reducer.js +0 -26
  988. package/node/vendor/saga.js +0 -52
  989. package/subscriptions/Billing/Information/saga.d.ts +0 -34
  990. package/subscriptions/Billing/Information/saga.js +0 -111
  991. package/subscriptions/Billing/Invoices/saga.d.ts +0 -13
  992. package/subscriptions/Billing/Invoices/saga.js +0 -76
  993. package/subscriptions/Billing/PaymentMethod/saga.d.ts +0 -13
  994. package/subscriptions/Billing/PaymentMethod/saga.js +0 -78
  995. package/subscriptions/Billing/Subscription/loadSubscription.saga.d.ts +0 -1
  996. package/subscriptions/Billing/Subscription/loadSubscription.saga.js +0 -21
  997. package/subscriptions/Billing/Subscription/saga.d.ts +0 -2
  998. package/subscriptions/Billing/Subscription/saga.js +0 -94
  999. package/subscriptions/Billing/saga.d.ts +0 -2
  1000. package/subscriptions/Billing/saga.js +0 -11
  1001. package/subscriptions/Checkout/saga.d.ts +0 -5
  1002. package/subscriptions/Checkout/saga.js +0 -108
  1003. package/subscriptions/Config/saga.d.ts +0 -2
  1004. package/subscriptions/Config/saga.js +0 -58
  1005. package/subscriptions/Plans/saga.d.ts +0 -2
  1006. package/subscriptions/Plans/saga.js +0 -58
  1007. package/subscriptions/Stripe/saga.d.ts +0 -1
  1008. package/subscriptions/Stripe/saga.js +0 -31
  1009. package/subscriptions/VendorPublicConfig/saga.d.ts +0 -2
  1010. package/subscriptions/VendorPublicConfig/saga.js +0 -38
  1011. package/subscriptions/general.interfaces.d.ts +0 -49
  1012. package/subscriptions/general.interfaces.js +0 -16
  1013. package/subscriptions/mapper.d.ts +0 -6
  1014. package/subscriptions/mapper.js +0 -31
  1015. package/subscriptions/reducer.d.ts +0 -99
  1016. package/subscriptions/reducer.js +0 -33
  1017. package/subscriptions/saga.d.ts +0 -2
  1018. package/subscriptions/saga.js +0 -13
  1019. package/subscriptions/utils.d.ts +0 -68
  1020. package/subscriptions/utils.js +0 -52
  1021. package/toolkit/interfaces.d.ts +0 -7
  1022. package/toolkit/redux-saga-tools.d.ts +0 -4
  1023. package/toolkit/redux-saga-tools.js +0 -3
  1024. package/toolkit/redux-types.d.ts +0 -3
  1025. package/toolkit/redux.d.ts +0 -4
  1026. package/toolkit/redux.js +0 -1
  1027. package/utils/gtm.d.ts +0 -28
  1028. package/utils/gtm.js +0 -22
  1029. package/utils/index.d.ts +0 -3
  1030. package/utils/index.js +0 -3
  1031. package/utils/package.json +0 -6
  1032. package/utils/sha256.d.ts +0 -22
  1033. package/utils/sha256.js +0 -425
  1034. package/vendor/VendorState/index.d.ts +0 -21
  1035. package/vendor/VendorState/index.js +0 -24
  1036. package/vendor/reducer.d.ts +0 -8
  1037. package/vendor/reducer.js +0 -17
  1038. package/vendor/saga.d.ts +0 -8
  1039. package/vendor/saga.js +0 -44
  1040. /package/{audits/backward-compatibility → audits-backward-compatibility}/interfaces.js +0 -0
  1041. /package/auth/{ActivateState → ActivateAccountState}/interfaces.d.ts +0 -0
  1042. /package/auth/{ActivateState → ActivateAccountState}/interfaces.js +0 -0
  1043. /package/auth/{Provisioning → ApplicationsState}/interfaces.js +0 -0
  1044. /package/auth/{SocialLogins → GroupsDialogsState}/interfaces.js +0 -0
  1045. /package/auth/{ImpersonationState → ImpersonateState}/interfaces.js +0 -0
  1046. /package/auth/MSP/{AllAccountsState/utils → helpers}/appendChildrenToNode.js +0 -0
  1047. /package/auth/MSP/{AllAccountsState/utils → helpers}/removeNodeFromTree.js +0 -0
  1048. /package/auth/MSP/{AllAccountsState/utils → helpers}/updateNodeName.js +0 -0
  1049. /package/auth/MSP/{AllAccountsState/types → interfaces}/dialogsStateTypes.js +0 -0
  1050. /package/auth/MSP/{AllAccountsState/types → interfaces}/index.d.ts +0 -0
  1051. /package/auth/MSP/{AllAccountsState/types → interfaces}/index.js +0 -0
  1052. /package/auth/{Provisioning → ProvisioningState}/interfaces.d.ts +0 -0
  1053. /package/{toolkit → auth/ProvisioningState}/interfaces.js +0 -0
  1054. /package/auth/{SignUp → SignUpState}/interfaces.d.ts +0 -0
  1055. /package/auth/{SignUp → SignUpState}/interfaces.js +0 -0
  1056. /package/{fronteggState.js → auth/SmsState/interfaces.js} +0 -0
  1057. /package/auth/{SocialLogins → SocialLoginState}/interfaces.d.ts +0 -0
  1058. /package/{toolkit/redux-types.js → auth/SocialLoginState/interfaces.js} +0 -0
  1059. /package/{utils/errorHandler.d.ts → helpers/handlers.d.ts} +0 -0
  1060. /package/{utils/errorHandler.js → helpers/handlers.js} +0 -0
  1061. /package/{audits → mocks/audits-mocks}/dummy.d.ts +0 -0
  1062. /package/{audits → mocks/audits-mocks}/dummy.js +0 -0
  1063. /package/{subscriptions → mocks/subscriptions-mocks}/dummy.d.ts +0 -0
  1064. /package/{subscriptions → mocks/subscriptions-mocks}/dummy.js +0 -0
  1065. /package/node/{audits/backward-compatibility → audits-backward-compatibility}/interfaces.js +0 -0
  1066. /package/node/auth/{ActivateState → ActivateAccountState}/interfaces.js +0 -0
  1067. /package/node/auth/{Provisioning → ApplicationsState}/interfaces.js +0 -0
  1068. /package/node/auth/{SocialLogins → GroupsDialogsState}/interfaces.js +0 -0
  1069. /package/node/auth/{ImpersonationState → ImpersonateState}/interfaces.js +0 -0
  1070. /package/node/auth/MSP/{AllAccountsState/utils → helpers}/appendChildrenToNode.js +0 -0
  1071. /package/node/auth/MSP/{AllAccountsState/utils → helpers}/removeNodeFromTree.js +0 -0
  1072. /package/node/auth/MSP/{AllAccountsState/utils → helpers}/updateNodeName.js +0 -0
  1073. /package/node/auth/MSP/{AllAccountsState/types → interfaces}/dialogsStateTypes.js +0 -0
  1074. /package/node/auth/MSP/{AllAccountsState/types → interfaces}/index.js +0 -0
  1075. /package/node/{toolkit → auth/ProvisioningState}/interfaces.js +0 -0
  1076. /package/node/auth/{SignUp → SignUpState}/interfaces.js +0 -0
  1077. /package/node/{fronteggState.js → auth/SmsState/interfaces.js} +0 -0
  1078. /package/node/{toolkit/redux-types.js → auth/SocialLoginState/interfaces.js} +0 -0
  1079. /package/node/{utils/errorHandler.js → helpers/handlers.js} +0 -0
  1080. /package/node/{utils → helpers}/sha256.js +0 -0
  1081. /package/node/{audits → mocks/audits-mocks}/dummy.js +0 -0
  1082. /package/node/{subscriptions → mocks/subscriptions-mocks}/dummy.js +0 -0
@@ -1,129 +0,0 @@
1
- import { PayloadAction } from '@reduxjs/toolkit';
2
- import { GetRecommendationsResponse, GetInsightsResponse, ISearchUserQueryParamsV3, FronteggPaginationWrapper, IRole, GetUserRolesResponse, IBaseGetUserResponse } from '@frontegg/rest-api';
3
- import { ISecurityCenterTable, LoadUsersTableSecurityCenter } from './types';
4
- import { WithCallback } from '../../../interfaces';
5
- import { IUserV3 } from '../../TeamState/interfaces';
6
- /**
7
- * This function is used to wrap sagas of the security page.
8
- * This function returns function,
9
- * that execute the saga it gets as a parameter,
10
- * and after it execute loadRecommendations and loadInsights sagas.
11
- * We need to call loadRecommendations and loadInsights after all change in the security page,
12
- * in order to keep the recommendations and insights updated.
13
- * @param action - saga to execute
14
- */
15
- export declare function securityCenterSagaWrapper<T>(action: (props: T) => void): (props: T) => Generator<void | import("redux-saga/effects").CallEffect<boolean[]> | Generator<import("redux-saga/effects").PutEffect<{
16
- payload: import("./types").SecurityCenterStateIndicator;
17
- type: string;
18
- }> | import("redux-saga/effects").CallEffect<GetRecommendationsResponse> | import("redux-saga/effects").PutEffect<{
19
- payload: Partial<import("./interfaces").SecurityCenterState>;
20
- type: string;
21
- }>, void, GetRecommendationsResponse> | Generator<import("redux-saga/effects").PutEffect<{
22
- payload: import("./types").SecurityCenterStateIndicator;
23
- type: string;
24
- }> | import("redux-saga/effects").PutEffect<{
25
- payload: Partial<import("./interfaces").SecurityCenterState>;
26
- type: string;
27
- }> | import("redux-saga/effects").CallEffect<GetInsightsResponse>, void, GetInsightsResponse>, void, boolean[]>;
28
- export declare function loadRecommendations(): Generator<import("redux-saga/effects").PutEffect<{
29
- payload: import("./types").SecurityCenterStateIndicator;
30
- type: string;
31
- }> | import("redux-saga/effects").CallEffect<GetRecommendationsResponse> | import("redux-saga/effects").PutEffect<{
32
- payload: Partial<import("./interfaces").SecurityCenterState>;
33
- type: string;
34
- }>, void, GetRecommendationsResponse>;
35
- export declare function loadInsights(): Generator<import("redux-saga/effects").PutEffect<{
36
- payload: import("./types").SecurityCenterStateIndicator;
37
- type: string;
38
- }> | import("redux-saga/effects").PutEffect<{
39
- payload: Partial<import("./interfaces").SecurityCenterState>;
40
- type: string;
41
- }> | import("redux-saga/effects").CallEffect<GetInsightsResponse>, void, GetInsightsResponse>;
42
- export declare function sendBulkResetBreachedPasswordEmails({ payload: { callback } }: PayloadAction<WithCallback>): Generator<import("redux-saga/effects").PutEffect<{
43
- payload: import("./types").SecurityCenterStateIndicator;
44
- type: string;
45
- }> | import("redux-saga/effects").CallEffect<void>, void, unknown>;
46
- /**
47
- * This function gets users as we got from getUsersV3,
48
- * and returns the combined object of those users with their roles.
49
- * @param users - array of users
50
- */
51
- export declare function getUsersWithRoles(users: IBaseGetUserResponse[]): Generator<import("redux-saga/effects").CallEffect<IRole[]> | import("redux-saga/effects").CallEffect<GetUserRolesResponse[]>, IUserV3[], IRole[] & GetUserRolesResponse[]>;
52
- /**
53
- * This function is doing the logic needed in order to display a table in a generic way.
54
- * It calls getUsersV3 based on the params, combined the response of users with roles,
55
- * and load it to the correct state by the updateStateKey.
56
- * @param key - key for loaders / errors
57
- * @param tableState - the state of the specific table
58
- * @param updateStateKey - the key of the specific table to be updated in the state
59
- * @param _offset - page offset
60
- * @param _limit - limit per page
61
- * @param _preset - preset to be send according to the table type
62
- * @param _email - email input as searched
63
- *
64
- */
65
- export declare function loadUsersTableSecurityCenter({ key, tableState, updateStateKey, _offset: offset, _limit: limit, _preset, _email, _maxInactiveSeconds, }: LoadUsersTableSecurityCenter): Generator<import("redux-saga/effects").PutEffect<{
66
- payload: import("./types").SecurityCenterStateIndicator;
67
- type: string;
68
- }> | import("redux-saga/effects").PutEffect<{
69
- payload: Partial<import("./interfaces").SecurityCenterState>;
70
- type: string;
71
- }> | Generator<import("redux-saga/effects").CallEffect<IRole[]> | import("redux-saga/effects").CallEffect<GetUserRolesResponse[]>, IUserV3[], IRole[] & GetUserRolesResponse[]> | import("redux-saga/effects").CallEffect<FronteggPaginationWrapper<IBaseGetUserResponse>>, void, FronteggPaginationWrapper<IBaseGetUserResponse> & IUserV3[]>;
72
- export declare function loadBreachedPasswordUsers({ payload }: PayloadAction<ISearchUserQueryParamsV3>): Generator<import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").PutEffect<{
73
- payload: import("./types").SecurityCenterStateIndicator;
74
- type: string;
75
- }> | import("redux-saga/effects").PutEffect<{
76
- payload: Partial<import("./interfaces").SecurityCenterState>;
77
- type: string;
78
- }> | Generator<import("redux-saga/effects").CallEffect<IRole[]> | import("redux-saga/effects").CallEffect<GetUserRolesResponse[]>, IUserV3[], IRole[] & GetUserRolesResponse[]> | import("redux-saga/effects").CallEffect<FronteggPaginationWrapper<IBaseGetUserResponse>>, void, FronteggPaginationWrapper<IBaseGetUserResponse> & IUserV3[]>, void, ISecurityCenterTable>;
79
- export declare function loadUnenrolledMfaUsers({ payload }: PayloadAction<ISearchUserQueryParamsV3>): Generator<import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").PutEffect<{
80
- payload: import("./types").SecurityCenterStateIndicator;
81
- type: string;
82
- }> | import("redux-saga/effects").PutEffect<{
83
- payload: Partial<import("./interfaces").SecurityCenterState>;
84
- type: string;
85
- }> | Generator<import("redux-saga/effects").CallEffect<IRole[]> | import("redux-saga/effects").CallEffect<GetUserRolesResponse[]>, IUserV3[], IRole[] & GetUserRolesResponse[]> | import("redux-saga/effects").CallEffect<FronteggPaginationWrapper<IBaseGetUserResponse>>, void, FronteggPaginationWrapper<IBaseGetUserResponse> & IUserV3[]>, void, ISecurityCenterTable>;
86
- export declare function loadInactiveUsers({ payload }: PayloadAction<ISearchUserQueryParamsV3>): Generator<import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").PutEffect<{
87
- payload: import("./types").SecurityCenterStateIndicator;
88
- type: string;
89
- }> | import("redux-saga/effects").PutEffect<{
90
- payload: Partial<import("./interfaces").SecurityCenterState>;
91
- type: string;
92
- }> | Generator<import("redux-saga/effects").CallEffect<IRole[]> | import("redux-saga/effects").CallEffect<GetUserRolesResponse[]>, IUserV3[], IRole[] & GetUserRolesResponse[]> | import("redux-saga/effects").CallEffect<FronteggPaginationWrapper<IBaseGetUserResponse>>, void, FronteggPaginationWrapper<IBaseGetUserResponse> & IUserV3[]>, void, ISecurityCenterTable>;
93
- export declare function securityCenterSagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
94
- export declare function loadRecommendationsMock(): Generator<import("redux-saga/effects").PutEffect<{
95
- payload: import("./types").SecurityCenterStateIndicator;
96
- type: string;
97
- }> | import("redux-saga/effects").PutEffect<{
98
- payload: Partial<import("./interfaces").SecurityCenterState>;
99
- type: string;
100
- }> | import("redux-saga/effects").CallEffect<true>, void, unknown>;
101
- export declare function loadInsightsMock(): Generator<import("redux-saga/effects").PutEffect<{
102
- payload: import("./types").SecurityCenterStateIndicator;
103
- type: string;
104
- }> | import("redux-saga/effects").PutEffect<{
105
- payload: Partial<import("./interfaces").SecurityCenterState>;
106
- type: string;
107
- }> | import("redux-saga/effects").CallEffect<true>, void, unknown>;
108
- export declare function loadBreachedPasswordUsersMock(): Generator<import("redux-saga/effects").PutEffect<{
109
- payload: import("./types").SecurityCenterStateIndicator;
110
- type: string;
111
- }> | import("redux-saga/effects").PutEffect<{
112
- payload: Partial<import("./interfaces").SecurityCenterState>;
113
- type: string;
114
- }> | import("redux-saga/effects").CallEffect<true>, void, unknown>;
115
- export declare function loadUnenrolledMfaUsersMock(): Generator<import("redux-saga/effects").PutEffect<{
116
- payload: import("./types").SecurityCenterStateIndicator;
117
- type: string;
118
- }> | import("redux-saga/effects").PutEffect<{
119
- payload: Partial<import("./interfaces").SecurityCenterState>;
120
- type: string;
121
- }> | import("redux-saga/effects").CallEffect<true>, void, unknown>;
122
- export declare function loadInactiveUsersMock(): Generator<import("redux-saga/effects").PutEffect<{
123
- payload: import("./types").SecurityCenterStateIndicator;
124
- type: string;
125
- }> | import("redux-saga/effects").PutEffect<{
126
- payload: Partial<import("./interfaces").SecurityCenterState>;
127
- type: string;
128
- }> | import("redux-saga/effects").CallEffect<true>, void, unknown>;
129
- export declare function securityCenterSagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
@@ -1,419 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["callback"];
4
- import { call, delay, put, takeEvery, select } from 'redux-saga/effects';
5
- import { actions } from '../../reducer';
6
- import { errorHandler } from '../../../utils';
7
- import { api, GetUsersFilterPreset } from '@frontegg/rest-api';
8
- import { SecurityCenterStateKeys } from './types';
9
- import { getFeatureFlags } from '../../../helpers';
10
- import { securityCenterBreachedPasswordUsersMock, securityCenterInactivityPasswordUsersMock, securityCenterInsightsMock, securityCenterRecommendationsMock, securityCenterUnenrolledMfaUsersMock } from '../../dummy';
11
- /**
12
- * This function is used to wrap sagas of the security page.
13
- * This function returns function,
14
- * that execute the saga it gets as a parameter,
15
- * and after it execute loadRecommendations and loadInsights sagas.
16
- * We need to call loadRecommendations and loadInsights after all change in the security page,
17
- * in order to keep the recommendations and insights updated.
18
- * @param action - saga to execute
19
- */
20
- export function securityCenterSagaWrapper(action) {
21
- return function* (props) {
22
- const [securityCenterFeatureFlag] = yield call(getFeatureFlags, ['security-center-admin-portal']);
23
- yield action(props);
24
- if (securityCenterFeatureFlag) {
25
- yield loadRecommendations();
26
- yield loadInsights();
27
- }
28
- };
29
- }
30
- export function* loadRecommendations() {
31
- const key = SecurityCenterStateKeys.RECOMMENDATIONS;
32
- yield put(actions.setSecurityCenterStateLoader({
33
- key,
34
- value: true
35
- }));
36
- try {
37
- var _scoring$score;
38
- const {
39
- recommendations,
40
- scoring
41
- } = yield call(api.securityCenter.getRecommendations);
42
- yield put(actions.setSecurityCenterState({
43
- recommendations: recommendations.items,
44
- score: (_scoring$score = scoring == null ? void 0 : scoring.score) != null ? _scoring$score : 0
45
- }));
46
- } catch (e) {
47
- yield put(actions.setSecurityCenterStateError({
48
- key,
49
- value: errorHandler(e)
50
- }));
51
- } finally {
52
- yield put(actions.setSecurityCenterStateLoader({
53
- key,
54
- value: false
55
- }));
56
- }
57
- }
58
- export function* loadInsights() {
59
- const key = SecurityCenterStateKeys.INSIGHTS;
60
- yield put(actions.setSecurityCenterStateLoader({
61
- key,
62
- value: true
63
- }));
64
- try {
65
- const {
66
- insights
67
- } = yield call(api.securityCenter.getInsights);
68
- yield put(actions.setSecurityCenterState({
69
- insights: insights.items
70
- }));
71
- } catch (e) {
72
- yield put(actions.setSecurityCenterStateError({
73
- key,
74
- value: errorHandler(e)
75
- }));
76
- } finally {
77
- yield put(actions.setSecurityCenterStateLoader({
78
- key,
79
- value: false
80
- }));
81
- }
82
- }
83
- function* sendResetBreachedPasswordEmail(_ref) {
84
- let {
85
- payload: {
86
- callback
87
- }
88
- } = _ref,
89
- payload = _objectWithoutPropertiesLoose(_ref.payload, _excluded);
90
- const key = SecurityCenterStateKeys.SEND_BREACHED_PASSWORD_EMAIL;
91
- yield put(actions.setSecurityCenterStateError({
92
- key,
93
- value: false
94
- }));
95
- yield put(actions.setSecurityCenterStateLoader({
96
- key,
97
- value: true
98
- }));
99
- try {
100
- yield call(api.auth.forgotPassword, payload);
101
- callback == null ? void 0 : callback(true);
102
- } catch (e) {
103
- yield put(actions.setSecurityCenterStateError({
104
- key,
105
- value: errorHandler(e)
106
- }));
107
- callback == null ? void 0 : callback(false, e);
108
- } finally {
109
- yield put(actions.setSecurityCenterStateLoader({
110
- key,
111
- value: false
112
- }));
113
- }
114
- }
115
- export function* sendBulkResetBreachedPasswordEmails({
116
- payload: {
117
- callback
118
- }
119
- }) {
120
- const key = SecurityCenterStateKeys.SEND_BULK_RESET_BREACHED_PASSWORD_EMAILS;
121
- yield put(actions.setSecurityCenterStateError({
122
- key,
123
- value: false
124
- }));
125
- yield put(actions.setSecurityCenterStateLoader({
126
- key,
127
- value: true
128
- }));
129
- try {
130
- yield call(api.users.sendResetBreachedPasswordEmails);
131
- callback == null ? void 0 : callback(true);
132
- } catch (e) {
133
- yield put(actions.setSecurityCenterStateError({
134
- key,
135
- value: errorHandler(e)
136
- }));
137
- callback == null ? void 0 : callback(false);
138
- } finally {
139
- yield put(actions.setSecurityCenterStateLoader({
140
- key,
141
- value: false
142
- }));
143
- }
144
- }
145
-
146
- /**
147
- * This function gets users as we got from getUsersV3,
148
- * and returns the combined object of those users with their roles.
149
- * @param users - array of users
150
- */
151
- export function* getUsersWithRoles(users) {
152
- const usersIds = users.map(user => user.id);
153
- const allRoles = yield call(api.roles.getRoles);
154
- const usersRoles = yield call(api.users.getUsersRoles, {
155
- ids: usersIds
156
- });
157
- const usersWithRoles = users.map(user => {
158
- var _usersRoles$find, _ref2;
159
- const userRolesIds = usersRoles == null ? void 0 : (_usersRoles$find = usersRoles.find(role => role.userId === user.id)) == null ? void 0 : _usersRoles$find.roleIds;
160
- return _extends({}, user, {
161
- roles: (_ref2 = userRolesIds == null ? void 0 : userRolesIds.map(roleId => {
162
- var _allRoles$find;
163
- return (_allRoles$find = allRoles == null ? void 0 : allRoles.find(role => role.id === roleId)) != null ? _allRoles$find : [];
164
- })) != null ? _ref2 : []
165
- });
166
- });
167
- return usersWithRoles;
168
- }
169
-
170
- /**
171
- * This function is doing the logic needed in order to display a table in a generic way.
172
- * It calls getUsersV3 based on the params, combined the response of users with roles,
173
- * and load it to the correct state by the updateStateKey.
174
- * @param key - key for loaders / errors
175
- * @param tableState - the state of the specific table
176
- * @param updateStateKey - the key of the specific table to be updated in the state
177
- * @param _offset - page offset
178
- * @param _limit - limit per page
179
- * @param _preset - preset to be send according to the table type
180
- * @param _email - email input as searched
181
- *
182
- */
183
- export function* loadUsersTableSecurityCenter({
184
- key,
185
- tableState,
186
- updateStateKey,
187
- _offset: offset,
188
- _limit: limit,
189
- _preset,
190
- _email,
191
- _maxInactiveSeconds
192
- }) {
193
- var _ref3, _tableState$queryPara, _ref4, _tableState$queryPara2;
194
- yield put(actions.setSecurityCenterStateError({
195
- key,
196
- value: false
197
- }));
198
- yield put(actions.setSecurityCenterStateLoader({
199
- key,
200
- value: true
201
- }));
202
- const _offset = (_ref3 = offset != null ? offset : tableState == null ? void 0 : (_tableState$queryPara = tableState.queryParams) == null ? void 0 : _tableState$queryPara._offset) != null ? _ref3 : 0;
203
- const _limit = (_ref4 = limit != null ? limit : tableState == null ? void 0 : (_tableState$queryPara2 = tableState.queryParams) == null ? void 0 : _tableState$queryPara2._limit) != null ? _ref4 : 10;
204
- const tableStateQueryParams = _extends({
205
- _offset,
206
- _limit,
207
- _includeSubTenants: false,
208
- _preset,
209
- _maxInactiveSeconds
210
- }, !!_email && {
211
- _email
212
- });
213
- try {
214
- const {
215
- items: usersItems,
216
- _metadata: {
217
- totalItems,
218
- totalPages
219
- }
220
- } = yield call(api.users.getUsersV3, tableStateQueryParams);
221
- const partialTableObj = {
222
- totalUsersItems: totalItems,
223
- totalUsersPages: totalPages,
224
- usersPageOffset: _offset,
225
- queryParams: _extends({
226
- _offset,
227
- _limit,
228
- _maxInactiveSeconds
229
- }, !!_email && {
230
- _email
231
- })
232
- };
233
- if (usersItems.length) {
234
- const usersWithRoles = yield getUsersWithRoles(usersItems);
235
- yield put(actions.setSecurityCenterState({
236
- [updateStateKey]: _extends({
237
- users: usersWithRoles
238
- }, partialTableObj)
239
- }));
240
- } else {
241
- yield put(actions.setSecurityCenterState({
242
- [updateStateKey]: _extends({
243
- users: []
244
- }, partialTableObj)
245
- }));
246
- }
247
- } catch (e) {
248
- yield put(actions.setSecurityCenterStateError({
249
- key,
250
- value: errorHandler(e)
251
- }));
252
- } finally {
253
- yield put(actions.setSecurityCenterStateLoader({
254
- key,
255
- value: false
256
- }));
257
- }
258
- }
259
- export function* loadBreachedPasswordUsers({
260
- payload
261
- }) {
262
- var _select;
263
- const key = SecurityCenterStateKeys.BREACHED_PASSWORD_USERS_TABLE;
264
- const breachedPasswordUsersTable = yield (_select = select(state => {
265
- var _state$auth$securityC;
266
- return (_state$auth$securityC = state.auth.securityCenterState) == null ? void 0 : _state$auth$securityC.breachedPasswordUsersTable;
267
- })) != null ? _select : {};
268
- yield loadUsersTableSecurityCenter(_extends({
269
- key,
270
- updateStateKey: 'breachedPasswordUsersTable',
271
- _preset: GetUsersFilterPreset.BREACHED_PASSWORDS,
272
- tableState: breachedPasswordUsersTable
273
- }, payload));
274
- }
275
- export function* loadUnenrolledMfaUsers({
276
- payload
277
- }) {
278
- var _select2;
279
- const key = SecurityCenterStateKeys.UNENROLLED_MFA_USERS_TABLE;
280
- const unenrolledMfaUsersTable = yield (_select2 = select(state => {
281
- var _state$auth$securityC2;
282
- return (_state$auth$securityC2 = state.auth.securityCenterState) == null ? void 0 : _state$auth$securityC2.unenrolledMfaUsersTable;
283
- })) != null ? _select2 : {};
284
- yield loadUsersTableSecurityCenter(_extends({
285
- key,
286
- updateStateKey: 'unenrolledMfaUsersTable',
287
- _preset: GetUsersFilterPreset.MFA_UNENROLLED,
288
- tableState: unenrolledMfaUsersTable
289
- }, payload));
290
- }
291
- export function* loadInactiveUsers({
292
- payload
293
- }) {
294
- var _select3;
295
- const key = SecurityCenterStateKeys.INACTIVE_USERS_TABLE;
296
- const inactiveUsersTable = yield (_select3 = select(state => {
297
- var _state$auth$securityC3;
298
- return (_state$auth$securityC3 = state.auth.securityCenterState) == null ? void 0 : _state$auth$securityC3.inactiveUsersTable;
299
- })) != null ? _select3 : {};
300
- yield loadUsersTableSecurityCenter(_extends({
301
- key,
302
- updateStateKey: 'inactiveUsersTable',
303
- _preset: GetUsersFilterPreset.INACTIVE,
304
- tableState: inactiveUsersTable
305
- }, payload));
306
- }
307
- export function* securityCenterSagas() {
308
- yield takeEvery(actions.loadRecommendations, loadRecommendations);
309
- yield takeEvery(actions.loadInsights, loadInsights);
310
- yield takeEvery(actions.sendResetBreachedPasswordEmail, sendResetBreachedPasswordEmail);
311
- yield takeEvery(actions.sendBulkResetBreachedPasswordEmails, sendBulkResetBreachedPasswordEmails);
312
- yield takeEvery(actions.loadBreachedPasswordUsers, loadBreachedPasswordUsers);
313
- yield takeEvery(actions.loadUnenrolledMfaUsers, loadUnenrolledMfaUsers);
314
- yield takeEvery(actions.loadInactiveUsers, loadInactiveUsers);
315
- }
316
-
317
- //MOCK SAGAS
318
-
319
- export function* loadRecommendationsMock() {
320
- const key = SecurityCenterStateKeys.RECOMMENDATIONS;
321
- yield put(actions.setSecurityCenterStateLoader({
322
- key,
323
- value: true
324
- }));
325
- yield delay(500);
326
- yield put(actions.setSecurityCenterState({
327
- recommendations: securityCenterRecommendationsMock.recommendations.items,
328
- score: securityCenterRecommendationsMock.scoring.score
329
- }));
330
- yield put(actions.setSecurityCenterStateLoader({
331
- key,
332
- value: false
333
- }));
334
- }
335
- export function* loadInsightsMock() {
336
- const key = SecurityCenterStateKeys.INSIGHTS;
337
- yield put(actions.setSecurityCenterStateLoader({
338
- key,
339
- value: true
340
- }));
341
- yield delay(500);
342
- yield put(actions.setSecurityCenterState({
343
- insights: securityCenterInsightsMock.insights.items
344
- }));
345
- yield put(actions.setSecurityCenterStateLoader({
346
- key,
347
- value: false
348
- }));
349
- }
350
- export function* loadBreachedPasswordUsersMock() {
351
- const key = SecurityCenterStateKeys.BREACHED_PASSWORD_USERS_TABLE;
352
- yield put(actions.setSecurityCenterStateLoader({
353
- key,
354
- value: true
355
- }));
356
- yield delay(500);
357
- yield put(actions.setSecurityCenterState({
358
- breachedPasswordUsersTable: securityCenterBreachedPasswordUsersMock
359
- }));
360
- yield put(actions.setSecurityCenterStateLoader({
361
- key,
362
- value: false
363
- }));
364
- }
365
- export function* loadUnenrolledMfaUsersMock() {
366
- const key = SecurityCenterStateKeys.UNENROLLED_MFA_USERS_TABLE;
367
- yield put(actions.setSecurityCenterStateLoader({
368
- key,
369
- value: true
370
- }));
371
- yield delay(500);
372
- yield put(actions.setSecurityCenterState({
373
- unenrolledMfaUsersTable: securityCenterUnenrolledMfaUsersMock
374
- }));
375
- yield put(actions.setSecurityCenterStateLoader({
376
- key,
377
- value: false
378
- }));
379
- }
380
- export function* loadInactiveUsersMock() {
381
- const key = SecurityCenterStateKeys.INACTIVE_USERS_TABLE;
382
- yield put(actions.setSecurityCenterStateLoader({
383
- key,
384
- value: true
385
- }));
386
- yield delay(500);
387
- yield put(actions.setSecurityCenterState({
388
- inactiveUsersTable: securityCenterInactivityPasswordUsersMock
389
- }));
390
- yield put(actions.setSecurityCenterStateLoader({
391
- key,
392
- value: false
393
- }));
394
- }
395
- function* sendResetBreachedPasswordEmailMock({
396
- payload: {
397
- callback
398
- }
399
- }) {
400
- const key = SecurityCenterStateKeys.SEND_BREACHED_PASSWORD_EMAIL;
401
- yield put(actions.setSecurityCenterStateLoader({
402
- key,
403
- value: true
404
- }));
405
- yield delay(500);
406
- callback == null ? void 0 : callback(true);
407
- yield put(actions.setSecurityCenterStateLoader({
408
- key,
409
- value: false
410
- }));
411
- }
412
- export function* securityCenterSagasMock() {
413
- yield takeEvery(actions.loadRecommendations, loadRecommendationsMock);
414
- yield takeEvery(actions.loadInsights, loadInsightsMock);
415
- yield takeEvery(actions.loadBreachedPasswordUsers, loadBreachedPasswordUsersMock);
416
- yield takeEvery(actions.loadUnenrolledMfaUsers, loadUnenrolledMfaUsersMock);
417
- yield takeEvery(actions.loadInactiveUsers, loadInactiveUsersMock);
418
- yield takeEvery(actions.sendResetBreachedPasswordEmail, sendResetBreachedPasswordEmailMock);
419
- }
@@ -1,28 +0,0 @@
1
- import { ISearchUserQueryParamsV3 } from '@frontegg/rest-api';
2
- import { IUserV3 } from '../../TeamState/interfaces';
3
- export declare enum SecurityCenterStateKeys {
4
- RECOMMENDATIONS = "recommendations",
5
- INSIGHTS = "insights",
6
- SEND_BULK_RESET_BREACHED_PASSWORD_EMAILS = "sendBulkResetBreachedPasswordEmails",
7
- SEND_BREACHED_PASSWORD_EMAIL = "sendBreachedPasswordEmail",
8
- BREACHED_PASSWORD_USERS_TABLE = "breachedPasswordUsersTable",
9
- UNENROLLED_MFA_USERS_TABLE = "unenrolledMfaUsersTable",
10
- INACTIVE_USERS_TABLE = "inactiveUsersTable"
11
- }
12
- export declare type SecurityCenterStateIndicator = {
13
- key: SecurityCenterStateKeys;
14
- value: boolean | string;
15
- };
16
- export interface ISecurityCenterTable {
17
- users?: IUserV3[];
18
- totalUsersItems?: number;
19
- totalUsersPages?: number;
20
- usersPageOffset?: number;
21
- queryParams?: ISearchUserQueryParamsV3;
22
- }
23
- export declare type SecurityCenterTablesKeys = 'breachedPasswordUsersTable' | 'unenrolledMfaUsersTable' | 'inactiveUsersTable';
24
- export declare type LoadUsersTableSecurityCenter = ISearchUserQueryParamsV3 & {
25
- key: SecurityCenterStateKeys;
26
- tableState: ISecurityCenterTable;
27
- updateStateKey: SecurityCenterTablesKeys;
28
- };
@@ -1,10 +0,0 @@
1
- export let SecurityCenterStateKeys;
2
- (function (SecurityCenterStateKeys) {
3
- SecurityCenterStateKeys["RECOMMENDATIONS"] = "recommendations";
4
- SecurityCenterStateKeys["INSIGHTS"] = "insights";
5
- SecurityCenterStateKeys["SEND_BULK_RESET_BREACHED_PASSWORD_EMAILS"] = "sendBulkResetBreachedPasswordEmails";
6
- SecurityCenterStateKeys["SEND_BREACHED_PASSWORD_EMAIL"] = "sendBreachedPasswordEmail";
7
- SecurityCenterStateKeys["BREACHED_PASSWORD_USERS_TABLE"] = "breachedPasswordUsersTable";
8
- SecurityCenterStateKeys["UNENROLLED_MFA_USERS_TABLE"] = "unenrolledMfaUsersTable";
9
- SecurityCenterStateKeys["INACTIVE_USERS_TABLE"] = "inactiveUsersTable";
10
- })(SecurityCenterStateKeys || (SecurityCenterStateKeys = {}));
@@ -1,50 +0,0 @@
1
- import { IVendorConfig } from '@frontegg/rest-api';
2
- import { IAuthStrategiesConfig } from '@frontegg/rest-api';
3
- export declare function getSecurityPolicyPublicStateWithCustomLogin(securityPolicyPublicState?: IVendorConfig): Generator<import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").CallEffect<IAuthStrategiesConfig>, IVendorConfig | {
4
- authStrategy: import("@frontegg/rest-api").AuthStrategyEnum;
5
- } | undefined, (false & IAuthStrategiesConfig) | (true & IAuthStrategiesConfig)>;
6
- export declare function setSecurityPolicyPublicStateForCustomLogin(authStrategy?: IVendorConfig['authStrategy']): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").PutEffect<{
7
- payload: Partial<import("../../../interfaces").WithStatus & {
8
- policy?: IVendorConfig | undefined;
9
- }>;
10
- type: string;
11
- }>, void, (false & Required<import("../../../interfaces").WithStatus & {
12
- policy?: IVendorConfig | undefined;
13
- }>) | (true & Required<import("../../../interfaces").WithStatus & {
14
- policy?: IVendorConfig | undefined;
15
- }>)>;
16
- export declare function loadPublicSecurityPolicy(): Generator<Generator<import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").CallEffect<IAuthStrategiesConfig>, IVendorConfig | {
17
- authStrategy: import("@frontegg/rest-api").AuthStrategyEnum;
18
- } | undefined, (false & IAuthStrategiesConfig) | (true & IAuthStrategiesConfig)> | import("redux-saga/effects").PutEffect<{
19
- payload: Partial<import("../../../interfaces").WithStatus & {
20
- policy?: IVendorConfig | undefined;
21
- }>;
22
- type: string;
23
- }> | import("redux-saga/effects").CallEffect<IVendorConfig>, void, IVendorConfig>;
24
- export declare function getAuthStrategy(): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<IAuthStrategiesConfig>, IAuthStrategiesConfig, (false & IAuthStrategiesConfig) | (true & IAuthStrategiesConfig)>;
25
- export declare function loadPublicAuthStrategiesPolicy(): Generator<import("redux-saga/effects").CallEffect<IAuthStrategiesConfig> | Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").PutEffect<{
26
- payload: Partial<import("../../../interfaces").WithStatus & {
27
- policy?: IVendorConfig | undefined;
28
- }>;
29
- type: string;
30
- }>, void, (false & Required<import("../../../interfaces").WithStatus & {
31
- policy?: IVendorConfig | undefined;
32
- }>) | (true & Required<import("../../../interfaces").WithStatus & {
33
- policy?: IVendorConfig | undefined;
34
- }>)> | import("redux-saga/effects").PutEffect<{
35
- payload: Partial<import("../../../interfaces").WithStatus & {
36
- policy?: IAuthStrategiesConfig | undefined;
37
- }>;
38
- type: string;
39
- }>, void, IAuthStrategiesConfig>;
40
- export declare function securityPolicySagas(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
41
- /*********************************
42
- * Preview Sagas
43
- *********************************/
44
- export declare function loadPublicSecurityPolicyMock(): Generator<import("redux-saga/effects").PutEffect<{
45
- payload: Partial<import("../../../interfaces").WithStatus & {
46
- policy?: IVendorConfig | undefined;
47
- }>;
48
- type: string;
49
- }>, void, unknown>;
50
- export declare function securityPolicySagasMock(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;