/** * Platform Service Error Codes * * This file contains all error codes used across the platform service. * * Format: PREFIX_ERROR_TYPE * - PREFIX: Component/domain prefix (e.g., EMAIL, MTA, SMS) * - ERROR_TYPE: Specific error type within the domain */ export declare const PLATFORM_INITIALIZATION_ERROR = "PLATFORM_INITIALIZATION_ERROR"; export declare const PLATFORM_CONFIGURATION_ERROR = "PLATFORM_CONFIGURATION_ERROR"; export declare const PLATFORM_OPERATION_ERROR = "PLATFORM_OPERATION_ERROR"; export declare const PLATFORM_NOT_IMPLEMENTED = "PLATFORM_NOT_IMPLEMENTED"; export declare const PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED"; export declare const PLATFORM_SERVICE_UNAVAILABLE = "PLATFORM_SERVICE_UNAVAILABLE"; export declare const EMAIL_SERVICE_ERROR = "EMAIL_SERVICE_ERROR"; export declare const EMAIL_TEMPLATE_ERROR = "EMAIL_TEMPLATE_ERROR"; export declare const EMAIL_VALIDATION_ERROR = "EMAIL_VALIDATION_ERROR"; export declare const EMAIL_SEND_ERROR = "EMAIL_SEND_ERROR"; export declare const EMAIL_RECEIVE_ERROR = "EMAIL_RECEIVE_ERROR"; export declare const EMAIL_ATTACHMENT_ERROR = "EMAIL_ATTACHMENT_ERROR"; export declare const EMAIL_PARSE_ERROR = "EMAIL_PARSE_ERROR"; export declare const EMAIL_RATE_LIMIT_EXCEEDED = "EMAIL_RATE_LIMIT_EXCEEDED"; export declare const MTA_CONNECTION_ERROR = "MTA_CONNECTION_ERROR"; export declare const MTA_AUTHENTICATION_ERROR = "MTA_AUTHENTICATION_ERROR"; export declare const MTA_DELIVERY_ERROR = "MTA_DELIVERY_ERROR"; export declare const MTA_CONFIGURATION_ERROR = "MTA_CONFIGURATION_ERROR"; export declare const MTA_DNS_ERROR = "MTA_DNS_ERROR"; export declare const MTA_TIMEOUT_ERROR = "MTA_TIMEOUT_ERROR"; export declare const MTA_PROTOCOL_ERROR = "MTA_PROTOCOL_ERROR"; export declare const BOUNCE_PROCESSING_ERROR = "BOUNCE_PROCESSING_ERROR"; export declare const BOUNCE_STORAGE_ERROR = "BOUNCE_STORAGE_ERROR"; export declare const BOUNCE_CLASSIFICATION_ERROR = "BOUNCE_CLASSIFICATION_ERROR"; export declare const AUTH_SPF_ERROR = "AUTH_SPF_ERROR"; export declare const AUTH_DKIM_ERROR = "AUTH_DKIM_ERROR"; export declare const AUTH_DMARC_ERROR = "AUTH_DMARC_ERROR"; export declare const AUTH_KEY_ERROR = "AUTH_KEY_ERROR"; export declare const SCAN_ANALYSIS_ERROR = "SCAN_ANALYSIS_ERROR"; export declare const SCAN_MALWARE_DETECTED = "SCAN_MALWARE_DETECTED"; export declare const SCAN_PHISHING_DETECTED = "SCAN_PHISHING_DETECTED"; export declare const SCAN_CONTENT_REJECTED = "SCAN_CONTENT_REJECTED"; export declare const REPUTATION_CHECK_ERROR = "REPUTATION_CHECK_ERROR"; export declare const REPUTATION_DATA_ERROR = "REPUTATION_DATA_ERROR"; export declare const REPUTATION_BLOCKLIST_ERROR = "REPUTATION_BLOCKLIST_ERROR"; export declare const REPUTATION_UPDATE_ERROR = "REPUTATION_UPDATE_ERROR"; export declare const WARMUP_ALLOCATION_ERROR = "WARMUP_ALLOCATION_ERROR"; export declare const WARMUP_LIMIT_EXCEEDED = "WARMUP_LIMIT_EXCEEDED"; export declare const WARMUP_SCHEDULE_ERROR = "WARMUP_SCHEDULE_ERROR"; export declare const NETWORK_CONNECTION_ERROR = "NETWORK_CONNECTION_ERROR"; export declare const NETWORK_TIMEOUT = "NETWORK_TIMEOUT"; export declare const NETWORK_DNS_ERROR = "NETWORK_DNS_ERROR"; export declare const NETWORK_TLS_ERROR = "NETWORK_TLS_ERROR"; export declare const QUEUE_FULL_ERROR = "QUEUE_FULL_ERROR"; export declare const QUEUE_PROCESSING_ERROR = "QUEUE_PROCESSING_ERROR"; export declare const QUEUE_PERSISTENCE_ERROR = "QUEUE_PERSISTENCE_ERROR"; export declare const QUEUE_ITEM_NOT_FOUND = "QUEUE_ITEM_NOT_FOUND"; export declare const DCR_ROUTING_ERROR = "DCR_ROUTING_ERROR"; export declare const DCR_CONFIGURATION_ERROR = "DCR_CONFIGURATION_ERROR"; export declare const DCR_PROXY_ERROR = "DCR_PROXY_ERROR"; export declare const DCR_DOMAIN_ERROR = "DCR_DOMAIN_ERROR"; /** A certificate requirement or authoritative DNS zone was requested for a domain we cannot prove we own. */ export declare const DCR_DOMAIN_OWNERSHIP_UNVERIFIED = "DCR_DOMAIN_OWNERSHIP_UNVERIFIED"; /** ACME failed for a configuration cause that no amount of retrying can resolve. */ export declare const DCR_ACME_PERMANENT_FAILURE = "DCR_ACME_PERMANENT_FAILURE"; export declare const SMS_SERVICE_ERROR = "SMS_SERVICE_ERROR"; export declare const SMS_SEND_ERROR = "SMS_SEND_ERROR"; export declare const SMS_VALIDATION_ERROR = "SMS_VALIDATION_ERROR"; export declare const SMS_RATE_LIMIT_EXCEEDED = "SMS_RATE_LIMIT_EXCEEDED"; export declare const STORAGE_WRITE_ERROR = "STORAGE_WRITE_ERROR"; export declare const STORAGE_READ_ERROR = "STORAGE_READ_ERROR"; export declare const STORAGE_DELETE_ERROR = "STORAGE_DELETE_ERROR"; export declare const STORAGE_QUOTA_EXCEEDED = "STORAGE_QUOTA_EXCEEDED"; export declare const RULE_VALIDATION_ERROR = "RULE_VALIDATION_ERROR"; export declare const RULE_EXECUTION_ERROR = "RULE_EXECUTION_ERROR"; export declare const RULE_NOT_FOUND = "RULE_NOT_FOUND"; export declare enum ErrorSeverity { /** Critical errors that require immediate attention */ CRITICAL = "CRITICAL", /** High-impact errors that may affect service functioning */ HIGH = "HIGH", /** Medium-impact errors that cause partial degradation */ MEDIUM = "MEDIUM", /** Low-impact errors that have minimal or local impact */ LOW = "LOW", /** Informational errors that are not problematic */ INFO = "INFO" } export declare enum ErrorCategory { /** Errors related to configuration */ CONFIGURATION = "CONFIGURATION", /** Errors related to network connectivity */ CONNECTIVITY = "CONNECTIVITY", /** Errors related to authentication/authorization */ AUTHENTICATION = "AUTHENTICATION", /** Errors related to data validation */ VALIDATION = "VALIDATION", /** Errors related to resource availability */ RESOURCE = "RESOURCE", /** Errors related to service operations */ OPERATION = "OPERATION", /** Errors related to third-party integrations */ INTEGRATION = "INTEGRATION", /** Errors related to security */ SECURITY = "SECURITY", /** Errors related to data storage */ STORAGE = "STORAGE", /** Errors that don't fit into other categories */ OTHER = "OTHER" } export declare enum ErrorRecoverability { /** Error cannot be automatically recovered from */ NON_RECOVERABLE = "NON_RECOVERABLE", /** Error might be recoverable with retry */ MAYBE_RECOVERABLE = "MAYBE_RECOVERABLE", /** Error is definitely recoverable with retries */ RECOVERABLE = "RECOVERABLE", /** Error is transient and should resolve without action */ TRANSIENT = "TRANSIENT" }