Skip to content

types

diapason.security.types

Security data types — threat levels, scan findings, and security events.

RedactionMode

Bases: str, Enum

Action mode when findings are detected.

ScanFinding dataclass

A single finding from a security scanner.

ScanResult dataclass

Aggregated result from one or more scanners.

clean property

Return True if no findings were detected.

highest_threat property

Return the highest threat level among findings, or None.

SecurityEvent dataclass

A recorded security event for audit logging.

SecurityEventType

Bases: str, Enum

Categories of security events.

ThreatLevel

Bases: str, Enum

Severity classification for security findings.