mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 19:32:08 +01:00
- Set up pre-commit hooks with husky and lint-staged for automated code quality - Improved TypeScript type safety by replacing 'any' types with proper generics - Fixed markdown linting violations (MD030 spacing) across all documentation - Fixed compound adjective hyphenation in technical documentation - Fixed invalid JSON union syntax in API documentation examples - Automated code formatting and linting on commit - Enhanced error handling with better type constraints - Configured biome and markdownlint for consistent code style - All changes verified with successful production build
30 lines
500 B
TypeScript
30 lines
500 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>;
|
|
}
|