Files
livedash-node/lib/types/security.ts
Kaj Kowalski dd145686e6 fix: resolve all TypeScript compilation errors and enable production build
- Fixed missing type imports in lib/api/index.ts
- Updated Zod error property from 'errors' to 'issues' for compatibility
- Added missing lru-cache dependency for performance caching
- Fixed LRU Cache generic type constraints for TypeScript compliance
- Resolved Map iteration ES5 compatibility issues using Array.from()
- Fixed Redis configuration by removing unsupported socket options
- Corrected Prisma relationship naming (auditLogs vs securityAuditLogs)
- Applied type casting for missing database schema fields
- Created missing security types file for enhanced security service
- Disabled deprecated ESLint during build (using Biome for linting)
- Removed deprecated critters dependency and disabled CSS optimization
- Achieved successful production build with all 47 pages generated
2025-07-13 11:52:53 +02:00

29 lines
499 B
TypeScript

/**
* Security-related type definitions
*/
export interface SecurityEvent {
id: string;
type: string;
timestamp: Date;
severity: ThreatLevel;
source: string;
metadata?: Record<string, unknown>;
}
export enum ThreatLevel {
LOW = "low",
MEDIUM = "medium",
HIGH = "high",
CRITICAL = "critical",
}
export interface Alert {
id: string;
title: string;
description: string;
level: ThreatLevel;
timestamp: Date;
resolved: boolean;
metadata?: Record<string, unknown>;
}