Files
rengine/shared/enums/notification.py
T
Yogesh Ojha 69239333bc Refactor validation and DNS tools, implementation of onboarding wizard
- Added `clean_name` function to `validation.py` for name validation with max length.
- Simplified docstrings in `dnsx` client, parser, and service files for clarity.
- Enhanced error handling in `ViewDNSService` to prevent disabling keys on rate limits.
- Improved WHOIS service to handle concurrent inserts gracefully with integrity checks.
- Updated `Settings` class in worker config to inherit from `BaseAppSettings`.
- Added new dependencies in `pyproject.toml` for `apprise` and `cryptography`.
2026-06-21 21:56:20 +05:30

19 lines
358 B
Python

from enum import Enum
class NotificationType(Enum):
SCAN = "scan"
SYSTEM = "system"
SECURITY = "security"
VULNERABILITY = "vulnerability"
TARGET = "target"
RESOURCE = "resource"
INTEGRATION = "integration"
class NotificationSeverity(Enum):
SUCCESS = "success"
INFO = "info"
WARNING = "warning"
ERROR = "error"