import { FronteggApiError, Insight, Recommendation } from '@frontegg/rest-api'; import { ErrorsIndicatorState, LoaderIndicatorState } from '../../../interfaces'; import { ISearchUserQueryParamsV3 } from '@frontegg/rest-api'; import { IUserV3 } from '../../TeamState/interfaces'; export interface SecurityCenterState { loaders: LoaderIndicatorState; errors: ErrorsIndicatorState; recommendations?: Recommendation[]; insights?: Insight[]; score: number; hasSecurityChanges: boolean; breachedPasswordUsersTable: ISecurityCenterTable; unenrolledMfaUsersTable: ISecurityCenterTable; inactiveUsersTable: ISecurityCenterTable; } export declare enum SecurityCenterStateKeys { RECOMMENDATIONS = "recommendations", INSIGHTS = "insights", SEND_BULK_RESET_BREACHED_PASSWORD_EMAILS = "sendBulkResetBreachedPasswordEmails", SEND_BREACHED_PASSWORD_EMAIL = "sendBreachedPasswordEmail", BREACHED_PASSWORD_USERS_TABLE = "breachedPasswordUsersTable", UNENROLLED_MFA_USERS_TABLE = "unenrolledMfaUsersTable", INACTIVE_USERS_TABLE = "inactiveUsersTable" } export type SecurityCenterStateIndicator = { key: SecurityCenterStateKeys; value: boolean | FronteggApiError; }; export interface ISecurityCenterTable { users?: IUserV3[]; totalUsersItems?: number; totalUsersPages?: number; usersPageOffset?: number; queryParams?: ISearchUserQueryParamsV3; } export type SecurityCenterTablesKeys = 'breachedPasswordUsersTable' | 'unenrolledMfaUsersTable' | 'inactiveUsersTable'; export type LoadUsersTableSecurityCenter = ISearchUserQueryParamsV3 & { key: SecurityCenterStateKeys; tableState: ISecurityCenterTable; updateStateKey: SecurityCenterTablesKeys; };