games_app/backend/dist-test-faq/services/securityNotificationService.d.ts

25 lines
1.2 KiB
TypeScript

/**
* User-facing security email and in-app notifications.
* Failures are logged but never block the primary action.
*/
type LoginContext = {
ipAddress?: string;
userAgent?: string;
countryCode?: string | null;
};
export declare function notifyNewLogin(userId: string, ctx: LoginContext): Promise<void>;
export declare function notifyNewCountryLogin(userId: string, ctx: LoginContext): Promise<void>;
export declare function notifyPasswordChanged(userId: string, ctx: LoginContext): Promise<void>;
export declare function notifyTotpEnabled(userId: string, ctx: LoginContext): Promise<void>;
export declare function notifyTotpDisabled(userId: string, ctx: LoginContext): Promise<void>;
/**
* Notifies the account owner after an emergency CLI break-glass 2FA reset.
*/
export declare function notifyBreakGlassAdmin2faReset(userId: string, ctx: {
operator?: string | null;
hostname?: string;
}): Promise<void>;
export declare function notifyRolesChanged(userId: string, roles: string[], ctx: LoginContext): Promise<void>;
export declare function notifyPermissionsChanged(userId: string, permissions: string[], ctx: LoginContext): Promise<void>;
export {};
//# sourceMappingURL=securityNotificationService.d.ts.map