@serve.zone/dcrouter 11.0.27 → 11.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist_serve/bundle.js +1 -1
  2. package/dist_ts/config/classes.route-config-manager.js +231 -0
  3. package/dist_ts/config/validator.d.ts +104 -0
  4. package/dist_ts/config/validator.js +152 -0
  5. package/dist_ts/errors/base.errors.d.ts +224 -0
  6. package/dist_ts/errors/base.errors.js +320 -0
  7. package/dist_ts/errors/error.codes.d.ts +115 -0
  8. package/dist_ts/errors/error.codes.js +136 -0
  9. package/dist_ts/monitoring/classes.metricsmanager.d.ts +178 -0
  10. package/dist_ts/monitoring/classes.metricsmanager.js +642 -0
  11. package/dist_ts/monitoring/index.d.ts +1 -0
  12. package/dist_ts/monitoring/index.js +2 -0
  13. package/dist_ts/opsserver/classes.opsserver.d.ts +37 -0
  14. package/dist_ts/opsserver/classes.opsserver.js +85 -0
  15. package/dist_ts/opsserver/handlers/api-token.handler.d.ts +6 -0
  16. package/dist_ts/opsserver/handlers/api-token.handler.js +62 -0
  17. package/dist_ts/opsserver/handlers/certificate.handler.d.ts +32 -0
  18. package/dist_ts/opsserver/handlers/certificate.handler.js +421 -0
  19. package/dist_ts/opsserver/handlers/email-ops.handler.d.ts +30 -0
  20. package/dist_ts/opsserver/handlers/email-ops.handler.js +227 -0
  21. package/dist_ts/opsserver/handlers/index.d.ts +11 -0
  22. package/dist_ts/opsserver/handlers/index.js +12 -0
  23. package/dist_ts/opsserver/handlers/radius.handler.d.ts +6 -0
  24. package/dist_ts/opsserver/handlers/radius.handler.js +295 -0
  25. package/dist_ts/opsserver/handlers/remoteingress.handler.d.ts +6 -0
  26. package/dist_ts/opsserver/handlers/remoteingress.handler.js +156 -0
  27. package/dist_ts/opsserver/handlers/route-management.handler.d.ts +14 -0
  28. package/dist_ts/opsserver/handlers/route-management.handler.js +117 -0
  29. package/dist_ts/opsserver/handlers/security.handler.d.ts +9 -0
  30. package/dist_ts/opsserver/handlers/security.handler.js +231 -0
  31. package/dist_ts/opsserver/handlers/stats.handler.d.ts +11 -0
  32. package/dist_ts/opsserver/handlers/stats.handler.js +399 -0
  33. package/dist_ts/opsserver/helpers/guards.d.ts +27 -0
  34. package/dist_ts/opsserver/helpers/guards.js +43 -0
  35. package/dist_ts/opsserver/index.d.ts +1 -0
  36. package/dist_ts/opsserver/index.js +2 -0
  37. package/dist_ts/radius/classes.accounting.manager.d.ts +218 -0
  38. package/dist_ts/radius/classes.accounting.manager.js +417 -0
  39. package/dist_ts/radius/classes.radius.server.d.ts +171 -0
  40. package/dist_ts/radius/classes.radius.server.js +385 -0
  41. package/dist_ts/radius/classes.vlan.manager.d.ts +128 -0
  42. package/dist_ts/radius/classes.vlan.manager.js +279 -0
  43. package/dist_ts/radius/index.d.ts +13 -0
  44. package/dist_ts/radius/index.js +14 -0
  45. package/dist_ts/remoteingress/classes.remoteingress-manager.d.ts +82 -0
  46. package/dist_ts/remoteingress/classes.remoteingress-manager.js +227 -0
  47. package/dist_ts/remoteingress/classes.tunnel-manager.d.ts +59 -0
  48. package/dist_ts/remoteingress/classes.tunnel-manager.js +165 -0
  49. package/dist_ts/remoteingress/index.d.ts +2 -0
  50. package/dist_ts/remoteingress/index.js +3 -0
  51. package/dist_ts/security/classes.securitylogger.d.ts +144 -0
  52. package/dist_ts_web/00_commitinfo_data.js +1 -1
  53. package/package.json +2 -2
  54. package/ts/00_commitinfo_data.ts +1 -1
  55. package/ts_web/00_commitinfo_data.ts +1 -1
@@ -0,0 +1,224 @@
1
+ import { ErrorSeverity, ErrorCategory, ErrorRecoverability } from './error.codes.js';
2
+ /**
3
+ * Context information added to structured errors
4
+ */
5
+ export interface IErrorContext {
6
+ /** Component or service where the error occurred */
7
+ component?: string;
8
+ /** Operation that was being performed */
9
+ operation?: string;
10
+ /** Unique request ID if available */
11
+ requestId?: string;
12
+ /** Error occurred at timestamp */
13
+ timestamp?: number;
14
+ /** User-visible message (safe to display to end-users) */
15
+ userMessage?: string;
16
+ /** Additional structured data for debugging */
17
+ data?: Record<string, any>;
18
+ /** Related entity IDs if applicable */
19
+ entity?: {
20
+ type: string;
21
+ id: string | number;
22
+ };
23
+ /** Stack trace (if enabled in configuration) */
24
+ stack?: string;
25
+ /** Retry information if applicable */
26
+ retry?: {
27
+ /** Maximum number of retries allowed */
28
+ maxRetries?: number;
29
+ /** Current retry count */
30
+ currentRetry?: number;
31
+ /** Next retry timestamp */
32
+ nextRetryAt?: number;
33
+ /** Delay between retries (in ms) */
34
+ retryDelay?: number;
35
+ };
36
+ }
37
+ /**
38
+ * Base class for all errors in the Platform Service
39
+ * Adds structured error information, logging, and error tracking
40
+ */
41
+ export declare class PlatformError extends Error {
42
+ /** Error code identifying the specific error type */
43
+ readonly code: string;
44
+ /** Error severity level */
45
+ readonly severity: ErrorSeverity;
46
+ /** Error category for grouping related errors */
47
+ readonly category: ErrorCategory;
48
+ /** Whether the error can be recovered from automatically */
49
+ readonly recoverability: ErrorRecoverability;
50
+ /** Additional context information */
51
+ readonly context: IErrorContext;
52
+ /**
53
+ * Creates a new PlatformError
54
+ *
55
+ * @param message Error message
56
+ * @param code Error code from error.codes.ts
57
+ * @param severity Error severity level
58
+ * @param category Error category
59
+ * @param recoverability Error recoverability indication
60
+ * @param context Additional context information
61
+ */
62
+ constructor(message: string, code: string, severity?: ErrorSeverity, category?: ErrorCategory, recoverability?: ErrorRecoverability, context?: IErrorContext);
63
+ /**
64
+ * Logs the error using the platform logger
65
+ */
66
+ private logError;
67
+ /**
68
+ * Maps severity levels to log levels
69
+ */
70
+ private getLogLevelFromSeverity;
71
+ /**
72
+ * Returns a JSON representation of the error
73
+ */
74
+ toJSON(): Record<string, any>;
75
+ /**
76
+ * Creates an instance with retry information
77
+ *
78
+ * @param maxRetries Maximum number of retries
79
+ * @param currentRetry Current retry count
80
+ * @param retryDelay Delay between retries in ms
81
+ */
82
+ withRetry(maxRetries: number, currentRetry?: number, retryDelay?: number): PlatformError;
83
+ /**
84
+ * Protected method to create a new instance with updated context
85
+ * Subclasses can override this to handle their own constructor signatures
86
+ */
87
+ protected createWithContext(context: IErrorContext): PlatformError;
88
+ /**
89
+ * Checks if the error should be retried based on retry information
90
+ */
91
+ shouldRetry(): boolean;
92
+ /**
93
+ * Returns a user-friendly message that is safe to display to end users
94
+ */
95
+ getUserMessage(): string;
96
+ }
97
+ /**
98
+ * Error class for validation errors
99
+ */
100
+ export declare class ValidationError extends PlatformError {
101
+ /**
102
+ * Creates a new validation error
103
+ *
104
+ * @param message Error message
105
+ * @param code Error code
106
+ * @param context Additional context
107
+ */
108
+ constructor(message: string, code: string, context?: IErrorContext);
109
+ /**
110
+ * Creates a new instance with updated context
111
+ * Overrides the base implementation to handle ValidationError's constructor signature
112
+ */
113
+ protected createWithContext(context: IErrorContext): PlatformError;
114
+ }
115
+ /**
116
+ * Error class for configuration errors
117
+ */
118
+ export declare class ConfigurationError extends PlatformError {
119
+ /**
120
+ * Creates a new configuration error
121
+ *
122
+ * @param message Error message
123
+ * @param code Error code
124
+ * @param context Additional context
125
+ */
126
+ constructor(message: string, code: string, context?: IErrorContext);
127
+ /**
128
+ * Creates a new instance with updated context
129
+ * Overrides the base implementation to handle ConfigurationError's constructor signature
130
+ */
131
+ protected createWithContext(context: IErrorContext): PlatformError;
132
+ }
133
+ /**
134
+ * Error class for network-related errors
135
+ */
136
+ export declare class NetworkError extends PlatformError {
137
+ /**
138
+ * Creates a new network error
139
+ *
140
+ * @param message Error message
141
+ * @param code Error code
142
+ * @param context Additional context
143
+ */
144
+ constructor(message: string, code: string, context?: IErrorContext);
145
+ /**
146
+ * Creates a new instance with updated context
147
+ * Overrides the base implementation to handle NetworkError's constructor signature
148
+ */
149
+ protected createWithContext(context: IErrorContext): PlatformError;
150
+ }
151
+ /**
152
+ * Error class for resource availability errors (rate limits, quotas)
153
+ */
154
+ export declare class ResourceError extends PlatformError {
155
+ /**
156
+ * Creates a new resource error
157
+ *
158
+ * @param message Error message
159
+ * @param code Error code
160
+ * @param context Additional context
161
+ */
162
+ constructor(message: string, code: string, context?: IErrorContext);
163
+ /**
164
+ * Creates a new instance with updated context
165
+ * Overrides the base implementation to handle ResourceError's constructor signature
166
+ */
167
+ protected createWithContext(context: IErrorContext): PlatformError;
168
+ }
169
+ /**
170
+ * Error class for authentication/authorization errors
171
+ */
172
+ export declare class AuthenticationError extends PlatformError {
173
+ /**
174
+ * Creates a new authentication error
175
+ *
176
+ * @param message Error message
177
+ * @param code Error code
178
+ * @param context Additional context
179
+ */
180
+ constructor(message: string, code: string, context?: IErrorContext);
181
+ /**
182
+ * Creates a new instance with updated context
183
+ * Overrides the base implementation to handle AuthenticationError's constructor signature
184
+ */
185
+ protected createWithContext(context: IErrorContext): PlatformError;
186
+ }
187
+ /**
188
+ * Error class for operation errors (API calls, processing)
189
+ */
190
+ export declare class OperationError extends PlatformError {
191
+ /**
192
+ * Creates a new operation error
193
+ *
194
+ * @param message Error message
195
+ * @param code Error code
196
+ * @param context Additional context
197
+ */
198
+ constructor(message: string, code: string, context?: IErrorContext);
199
+ /**
200
+ * Creates a new instance with updated context
201
+ * Overrides the base implementation to handle OperationError's constructor signature
202
+ */
203
+ protected createWithContext(context: IErrorContext): PlatformError;
204
+ }
205
+ /**
206
+ * Error class for critical system errors
207
+ */
208
+ export declare class SystemError extends PlatformError {
209
+ /**
210
+ * Creates a new system error
211
+ *
212
+ * @param message Error message
213
+ * @param code Error code
214
+ * @param context Additional context
215
+ */
216
+ constructor(message: string, code: string, context?: IErrorContext);
217
+ }
218
+ /**
219
+ * Helper to get the appropriate error class based on error category
220
+ *
221
+ * @param category Error category
222
+ * @returns The appropriate error class
223
+ */
224
+ export declare function getErrorClassForCategory(category: ErrorCategory): any;
@@ -0,0 +1,320 @@
1
+ import { ErrorSeverity, ErrorCategory, ErrorRecoverability } from './error.codes.js';
2
+ import { logger } from '../logger.js';
3
+ /**
4
+ * Base class for all errors in the Platform Service
5
+ * Adds structured error information, logging, and error tracking
6
+ */
7
+ export class PlatformError extends Error {
8
+ /** Error code identifying the specific error type */
9
+ code;
10
+ /** Error severity level */
11
+ severity;
12
+ /** Error category for grouping related errors */
13
+ category;
14
+ /** Whether the error can be recovered from automatically */
15
+ recoverability;
16
+ /** Additional context information */
17
+ context;
18
+ /**
19
+ * Creates a new PlatformError
20
+ *
21
+ * @param message Error message
22
+ * @param code Error code from error.codes.ts
23
+ * @param severity Error severity level
24
+ * @param category Error category
25
+ * @param recoverability Error recoverability indication
26
+ * @param context Additional context information
27
+ */
28
+ constructor(message, code, severity = ErrorSeverity.MEDIUM, category = ErrorCategory.OTHER, recoverability = ErrorRecoverability.NON_RECOVERABLE, context = {}) {
29
+ super(message);
30
+ // Set error metadata
31
+ this.name = this.constructor.name;
32
+ this.code = code;
33
+ this.severity = severity;
34
+ this.category = category;
35
+ this.recoverability = recoverability;
36
+ // Add timestamp if not provided
37
+ this.context = {
38
+ ...context,
39
+ timestamp: context.timestamp || Date.now(),
40
+ };
41
+ // Capture stack trace
42
+ Error.captureStackTrace(this, this.constructor);
43
+ // Log the error automatically unless explicitly disabled
44
+ if (!context.data?.skipLogging) {
45
+ this.logError();
46
+ }
47
+ }
48
+ /**
49
+ * Logs the error using the platform logger
50
+ */
51
+ logError() {
52
+ const logLevel = this.getLogLevelFromSeverity();
53
+ // Construct structured log entry
54
+ const logData = {
55
+ error_code: this.code,
56
+ error_name: this.name,
57
+ severity: this.severity,
58
+ category: this.category,
59
+ recoverability: this.recoverability,
60
+ ...this.context
61
+ };
62
+ // Log with appropriate level
63
+ logger.log(logLevel, this.message, logData);
64
+ }
65
+ /**
66
+ * Maps severity levels to log levels
67
+ */
68
+ getLogLevelFromSeverity() {
69
+ switch (this.severity) {
70
+ case ErrorSeverity.CRITICAL:
71
+ case ErrorSeverity.HIGH:
72
+ return 'error';
73
+ case ErrorSeverity.MEDIUM:
74
+ return 'warn';
75
+ case ErrorSeverity.LOW:
76
+ return 'info';
77
+ case ErrorSeverity.INFO:
78
+ return 'debug';
79
+ default:
80
+ return 'error';
81
+ }
82
+ }
83
+ /**
84
+ * Returns a JSON representation of the error
85
+ */
86
+ toJSON() {
87
+ return {
88
+ name: this.name,
89
+ message: this.message,
90
+ code: this.code,
91
+ severity: this.severity,
92
+ category: this.category,
93
+ recoverability: this.recoverability,
94
+ context: this.context,
95
+ stack: process.env.NODE_ENV !== 'production' ? this.stack : undefined
96
+ };
97
+ }
98
+ /**
99
+ * Creates an instance with retry information
100
+ *
101
+ * @param maxRetries Maximum number of retries
102
+ * @param currentRetry Current retry count
103
+ * @param retryDelay Delay between retries in ms
104
+ */
105
+ withRetry(maxRetries, currentRetry = 0, retryDelay = 1000) {
106
+ const nextRetryAt = Date.now() + retryDelay;
107
+ // Clone the error with updated context
108
+ const newContext = {
109
+ ...this.context,
110
+ retry: {
111
+ maxRetries,
112
+ currentRetry,
113
+ nextRetryAt,
114
+ retryDelay
115
+ }
116
+ };
117
+ // Create a new instance using the protected method that subclasses can override
118
+ const newError = this.createWithContext(newContext);
119
+ // Update recoverability if we can retry
120
+ if (currentRetry < maxRetries && newError.recoverability === ErrorRecoverability.NON_RECOVERABLE) {
121
+ newError.recoverability = ErrorRecoverability.MAYBE_RECOVERABLE;
122
+ }
123
+ return newError;
124
+ }
125
+ /**
126
+ * Protected method to create a new instance with updated context
127
+ * Subclasses can override this to handle their own constructor signatures
128
+ */
129
+ createWithContext(context) {
130
+ // Default implementation for PlatformError
131
+ return new this.constructor(this.message, this.code, this.severity, this.category, this.recoverability, context);
132
+ }
133
+ /**
134
+ * Checks if the error should be retried based on retry information
135
+ */
136
+ shouldRetry() {
137
+ const { retry } = this.context;
138
+ if (!retry)
139
+ return false;
140
+ return retry.currentRetry < retry.maxRetries;
141
+ }
142
+ /**
143
+ * Returns a user-friendly message that is safe to display to end users
144
+ */
145
+ getUserMessage() {
146
+ return this.context.userMessage || 'An unexpected error occurred.';
147
+ }
148
+ }
149
+ /**
150
+ * Error class for validation errors
151
+ */
152
+ export class ValidationError extends PlatformError {
153
+ /**
154
+ * Creates a new validation error
155
+ *
156
+ * @param message Error message
157
+ * @param code Error code
158
+ * @param context Additional context
159
+ */
160
+ constructor(message, code, context = {}) {
161
+ super(message, code, ErrorSeverity.LOW, ErrorCategory.VALIDATION, ErrorRecoverability.NON_RECOVERABLE, context);
162
+ }
163
+ /**
164
+ * Creates a new instance with updated context
165
+ * Overrides the base implementation to handle ValidationError's constructor signature
166
+ */
167
+ createWithContext(context) {
168
+ return new this.constructor(this.message, this.code, context);
169
+ }
170
+ }
171
+ /**
172
+ * Error class for configuration errors
173
+ */
174
+ export class ConfigurationError extends PlatformError {
175
+ /**
176
+ * Creates a new configuration error
177
+ *
178
+ * @param message Error message
179
+ * @param code Error code
180
+ * @param context Additional context
181
+ */
182
+ constructor(message, code, context = {}) {
183
+ super(message, code, ErrorSeverity.MEDIUM, ErrorCategory.CONFIGURATION, ErrorRecoverability.NON_RECOVERABLE, context);
184
+ }
185
+ /**
186
+ * Creates a new instance with updated context
187
+ * Overrides the base implementation to handle ConfigurationError's constructor signature
188
+ */
189
+ createWithContext(context) {
190
+ return new this.constructor(this.message, this.code, context);
191
+ }
192
+ }
193
+ /**
194
+ * Error class for network-related errors
195
+ */
196
+ export class NetworkError extends PlatformError {
197
+ /**
198
+ * Creates a new network error
199
+ *
200
+ * @param message Error message
201
+ * @param code Error code
202
+ * @param context Additional context
203
+ */
204
+ constructor(message, code, context = {}) {
205
+ super(message, code, ErrorSeverity.MEDIUM, ErrorCategory.CONNECTIVITY, ErrorRecoverability.MAYBE_RECOVERABLE, context);
206
+ }
207
+ /**
208
+ * Creates a new instance with updated context
209
+ * Overrides the base implementation to handle NetworkError's constructor signature
210
+ */
211
+ createWithContext(context) {
212
+ return new this.constructor(this.message, this.code, context);
213
+ }
214
+ }
215
+ /**
216
+ * Error class for resource availability errors (rate limits, quotas)
217
+ */
218
+ export class ResourceError extends PlatformError {
219
+ /**
220
+ * Creates a new resource error
221
+ *
222
+ * @param message Error message
223
+ * @param code Error code
224
+ * @param context Additional context
225
+ */
226
+ constructor(message, code, context = {}) {
227
+ super(message, code, ErrorSeverity.MEDIUM, ErrorCategory.RESOURCE, ErrorRecoverability.MAYBE_RECOVERABLE, context);
228
+ }
229
+ /**
230
+ * Creates a new instance with updated context
231
+ * Overrides the base implementation to handle ResourceError's constructor signature
232
+ */
233
+ createWithContext(context) {
234
+ return new this.constructor(this.message, this.code, context);
235
+ }
236
+ }
237
+ /**
238
+ * Error class for authentication/authorization errors
239
+ */
240
+ export class AuthenticationError extends PlatformError {
241
+ /**
242
+ * Creates a new authentication error
243
+ *
244
+ * @param message Error message
245
+ * @param code Error code
246
+ * @param context Additional context
247
+ */
248
+ constructor(message, code, context = {}) {
249
+ super(message, code, ErrorSeverity.HIGH, ErrorCategory.AUTHENTICATION, ErrorRecoverability.NON_RECOVERABLE, context);
250
+ }
251
+ /**
252
+ * Creates a new instance with updated context
253
+ * Overrides the base implementation to handle AuthenticationError's constructor signature
254
+ */
255
+ createWithContext(context) {
256
+ return new this.constructor(this.message, this.code, context);
257
+ }
258
+ }
259
+ /**
260
+ * Error class for operation errors (API calls, processing)
261
+ */
262
+ export class OperationError extends PlatformError {
263
+ /**
264
+ * Creates a new operation error
265
+ *
266
+ * @param message Error message
267
+ * @param code Error code
268
+ * @param context Additional context
269
+ */
270
+ constructor(message, code, context = {}) {
271
+ super(message, code, ErrorSeverity.MEDIUM, ErrorCategory.OPERATION, ErrorRecoverability.MAYBE_RECOVERABLE, context);
272
+ }
273
+ /**
274
+ * Creates a new instance with updated context
275
+ * Overrides the base implementation to handle OperationError's constructor signature
276
+ */
277
+ createWithContext(context) {
278
+ return new this.constructor(this.message, this.code, context);
279
+ }
280
+ }
281
+ /**
282
+ * Error class for critical system errors
283
+ */
284
+ export class SystemError extends PlatformError {
285
+ /**
286
+ * Creates a new system error
287
+ *
288
+ * @param message Error message
289
+ * @param code Error code
290
+ * @param context Additional context
291
+ */
292
+ constructor(message, code, context = {}) {
293
+ super(message, code, ErrorSeverity.CRITICAL, ErrorCategory.OTHER, ErrorRecoverability.NON_RECOVERABLE, context);
294
+ }
295
+ }
296
+ /**
297
+ * Helper to get the appropriate error class based on error category
298
+ *
299
+ * @param category Error category
300
+ * @returns The appropriate error class
301
+ */
302
+ export function getErrorClassForCategory(category) {
303
+ switch (category) {
304
+ case ErrorCategory.VALIDATION:
305
+ return ValidationError;
306
+ case ErrorCategory.CONFIGURATION:
307
+ return ConfigurationError;
308
+ case ErrorCategory.CONNECTIVITY:
309
+ return NetworkError;
310
+ case ErrorCategory.RESOURCE:
311
+ return ResourceError;
312
+ case ErrorCategory.AUTHENTICATION:
313
+ return AuthenticationError;
314
+ case ErrorCategory.OPERATION:
315
+ return OperationError;
316
+ default:
317
+ return PlatformError;
318
+ }
319
+ }
320
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5lcnJvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi90cy9lcnJvcnMvYmFzZS5lcnJvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxhQUFhLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNyRixPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBb0R0Qzs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sYUFBYyxTQUFRLEtBQUs7SUFDdEMscURBQXFEO0lBQ3JDLElBQUksQ0FBUztJQUU3QiwyQkFBMkI7SUFDWCxRQUFRLENBQWdCO0lBRXhDLGlEQUFpRDtJQUNqQyxRQUFRLENBQWdCO0lBRXhDLDREQUE0RDtJQUM1QyxjQUFjLENBQXNCO0lBRXBELHFDQUFxQztJQUNyQixPQUFPLENBQWdCO0lBRXZDOzs7Ozs7Ozs7T0FTRztJQUNILFlBQ0UsT0FBZSxFQUNmL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QztRQUM3QixLQUFLLGFBQWEsQ0FBQyxTQUFTO1lBQzFCLE9BQU8sY0FBYyxDQUFDO1FBQ3hCO1lBQ0UsT0FBTyxhQUFhLENBQUM7SUFDekIsQ0FBQztBQUNILENBQUMifQ==
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Platform Service Error Codes
3
+ *
4
+ * This file contains all error codes used across the platform service.
5
+ *
6
+ * Format: PREFIX_ERROR_TYPE
7
+ * - PREFIX: Component/domain prefix (e.g., EMAIL, MTA, SMS)
8
+ * - ERROR_TYPE: Specific error type within the domain
9
+ */
10
+ export declare const PLATFORM_INITIALIZATION_ERROR = "PLATFORM_INITIALIZATION_ERROR";
11
+ export declare const PLATFORM_CONFIGURATION_ERROR = "PLATFORM_CONFIGURATION_ERROR";
12
+ export declare const PLATFORM_OPERATION_ERROR = "PLATFORM_OPERATION_ERROR";
13
+ export declare const PLATFORM_NOT_IMPLEMENTED = "PLATFORM_NOT_IMPLEMENTED";
14
+ export declare const PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED";
15
+ export declare const PLATFORM_SERVICE_UNAVAILABLE = "PLATFORM_SERVICE_UNAVAILABLE";
16
+ export declare const EMAIL_SERVICE_ERROR = "EMAIL_SERVICE_ERROR";
17
+ export declare const EMAIL_TEMPLATE_ERROR = "EMAIL_TEMPLATE_ERROR";
18
+ export declare const EMAIL_VALIDATION_ERROR = "EMAIL_VALIDATION_ERROR";
19
+ export declare const EMAIL_SEND_ERROR = "EMAIL_SEND_ERROR";
20
+ export declare const EMAIL_RECEIVE_ERROR = "EMAIL_RECEIVE_ERROR";
21
+ export declare const EMAIL_ATTACHMENT_ERROR = "EMAIL_ATTACHMENT_ERROR";
22
+ export declare const EMAIL_PARSE_ERROR = "EMAIL_PARSE_ERROR";
23
+ export declare const EMAIL_RATE_LIMIT_EXCEEDED = "EMAIL_RATE_LIMIT_EXCEEDED";
24
+ export declare const MTA_CONNECTION_ERROR = "MTA_CONNECTION_ERROR";
25
+ export declare const MTA_AUTHENTICATION_ERROR = "MTA_AUTHENTICATION_ERROR";
26
+ export declare const MTA_DELIVERY_ERROR = "MTA_DELIVERY_ERROR";
27
+ export declare const MTA_CONFIGURATION_ERROR = "MTA_CONFIGURATION_ERROR";
28
+ export declare const MTA_DNS_ERROR = "MTA_DNS_ERROR";
29
+ export declare const MTA_TIMEOUT_ERROR = "MTA_TIMEOUT_ERROR";
30
+ export declare const MTA_PROTOCOL_ERROR = "MTA_PROTOCOL_ERROR";
31
+ export declare const BOUNCE_PROCESSING_ERROR = "BOUNCE_PROCESSING_ERROR";
32
+ export declare const BOUNCE_STORAGE_ERROR = "BOUNCE_STORAGE_ERROR";
33
+ export declare const BOUNCE_CLASSIFICATION_ERROR = "BOUNCE_CLASSIFICATION_ERROR";
34
+ export declare const AUTH_SPF_ERROR = "AUTH_SPF_ERROR";
35
+ export declare const AUTH_DKIM_ERROR = "AUTH_DKIM_ERROR";
36
+ export declare const AUTH_DMARC_ERROR = "AUTH_DMARC_ERROR";
37
+ export declare const AUTH_KEY_ERROR = "AUTH_KEY_ERROR";
38
+ export declare const SCAN_ANALYSIS_ERROR = "SCAN_ANALYSIS_ERROR";
39
+ export declare const SCAN_MALWARE_DETECTED = "SCAN_MALWARE_DETECTED";
40
+ export declare const SCAN_PHISHING_DETECTED = "SCAN_PHISHING_DETECTED";
41
+ export declare const SCAN_CONTENT_REJECTED = "SCAN_CONTENT_REJECTED";
42
+ export declare const REPUTATION_CHECK_ERROR = "REPUTATION_CHECK_ERROR";
43
+ export declare const REPUTATION_DATA_ERROR = "REPUTATION_DATA_ERROR";
44
+ export declare const REPUTATION_BLOCKLIST_ERROR = "REPUTATION_BLOCKLIST_ERROR";
45
+ export declare const REPUTATION_UPDATE_ERROR = "REPUTATION_UPDATE_ERROR";
46
+ export declare const WARMUP_ALLOCATION_ERROR = "WARMUP_ALLOCATION_ERROR";
47
+ export declare const WARMUP_LIMIT_EXCEEDED = "WARMUP_LIMIT_EXCEEDED";
48
+ export declare const WARMUP_SCHEDULE_ERROR = "WARMUP_SCHEDULE_ERROR";
49
+ export declare const NETWORK_CONNECTION_ERROR = "NETWORK_CONNECTION_ERROR";
50
+ export declare const NETWORK_TIMEOUT = "NETWORK_TIMEOUT";
51
+ export declare const NETWORK_DNS_ERROR = "NETWORK_DNS_ERROR";
52
+ export declare const NETWORK_TLS_ERROR = "NETWORK_TLS_ERROR";
53
+ export declare const QUEUE_FULL_ERROR = "QUEUE_FULL_ERROR";
54
+ export declare const QUEUE_PROCESSING_ERROR = "QUEUE_PROCESSING_ERROR";
55
+ export declare const QUEUE_PERSISTENCE_ERROR = "QUEUE_PERSISTENCE_ERROR";
56
+ export declare const QUEUE_ITEM_NOT_FOUND = "QUEUE_ITEM_NOT_FOUND";
57
+ export declare const DCR_ROUTING_ERROR = "DCR_ROUTING_ERROR";
58
+ export declare const DCR_CONFIGURATION_ERROR = "DCR_CONFIGURATION_ERROR";
59
+ export declare const DCR_PROXY_ERROR = "DCR_PROXY_ERROR";
60
+ export declare const DCR_DOMAIN_ERROR = "DCR_DOMAIN_ERROR";
61
+ export declare const SMS_SERVICE_ERROR = "SMS_SERVICE_ERROR";
62
+ export declare const SMS_SEND_ERROR = "SMS_SEND_ERROR";
63
+ export declare const SMS_VALIDATION_ERROR = "SMS_VALIDATION_ERROR";
64
+ export declare const SMS_RATE_LIMIT_EXCEEDED = "SMS_RATE_LIMIT_EXCEEDED";
65
+ export declare const STORAGE_WRITE_ERROR = "STORAGE_WRITE_ERROR";
66
+ export declare const STORAGE_READ_ERROR = "STORAGE_READ_ERROR";
67
+ export declare const STORAGE_DELETE_ERROR = "STORAGE_DELETE_ERROR";
68
+ export declare const STORAGE_QUOTA_EXCEEDED = "STORAGE_QUOTA_EXCEEDED";
69
+ export declare const RULE_VALIDATION_ERROR = "RULE_VALIDATION_ERROR";
70
+ export declare const RULE_EXECUTION_ERROR = "RULE_EXECUTION_ERROR";
71
+ export declare const RULE_NOT_FOUND = "RULE_NOT_FOUND";
72
+ export declare enum ErrorSeverity {
73
+ /** Critical errors that require immediate attention */
74
+ CRITICAL = "CRITICAL",
75
+ /** High-impact errors that may affect service functioning */
76
+ HIGH = "HIGH",
77
+ /** Medium-impact errors that cause partial degradation */
78
+ MEDIUM = "MEDIUM",
79
+ /** Low-impact errors that have minimal or local impact */
80
+ LOW = "LOW",
81
+ /** Informational errors that are not problematic */
82
+ INFO = "INFO"
83
+ }
84
+ export declare enum ErrorCategory {
85
+ /** Errors related to configuration */
86
+ CONFIGURATION = "CONFIGURATION",
87
+ /** Errors related to network connectivity */
88
+ CONNECTIVITY = "CONNECTIVITY",
89
+ /** Errors related to authentication/authorization */
90
+ AUTHENTICATION = "AUTHENTICATION",
91
+ /** Errors related to data validation */
92
+ VALIDATION = "VALIDATION",
93
+ /** Errors related to resource availability */
94
+ RESOURCE = "RESOURCE",
95
+ /** Errors related to service operations */
96
+ OPERATION = "OPERATION",
97
+ /** Errors related to third-party integrations */
98
+ INTEGRATION = "INTEGRATION",
99
+ /** Errors related to security */
100
+ SECURITY = "SECURITY",
101
+ /** Errors related to data storage */
102
+ STORAGE = "STORAGE",
103
+ /** Errors that don't fit into other categories */
104
+ OTHER = "OTHER"
105
+ }
106
+ export declare enum ErrorRecoverability {
107
+ /** Error cannot be automatically recovered from */
108
+ NON_RECOVERABLE = "NON_RECOVERABLE",
109
+ /** Error might be recoverable with retry */
110
+ MAYBE_RECOVERABLE = "MAYBE_RECOVERABLE",
111
+ /** Error is definitely recoverable with retries */
112
+ RECOVERABLE = "RECOVERABLE",
113
+ /** Error is transient and should resolve without action */
114
+ TRANSIENT = "TRANSIENT"
115
+ }