/** * Shared Types * * Common types used across multiple domains. * * @packageDocumentation */ /** * Pipeline error details. * Used across pipeline, monitoring, and action domains. * * Based on official RDI SDK: `sdk/docs/Models/redis_di_api__models__errors__Error.md` */ export interface PipelineError { /** Error code */ code?: string; /** Error message */ message: string; /** Additional error details */ details?: Record; } /** * Job validation error returned by the API. * * Example response: * ```json * { * "detail": "Validation failed", * "errors": [{ * "code": "job_validation_error", * "message": "Job 'my_job' database 'db1' was not found ...", * "details": { "job": "my_job", "source_connection_databases": ["xe"] } * }] * } * ``` */ export interface JobValidationError { /** Machine-readable error code (e.g. 'job_validation_error') */ code: string; /** Human-readable error message */ message: string; /** Error details including the job name that caused the error */ details?: { /** Job name that caused the validation error */ job?: string; [key: string]: unknown; }; } /** * API error response body for validation errors (4xx). */ export interface ApiValidationErrorResponse { /** Top-level error description */ detail: string; /** Per-item validation errors */ errors: JobValidationError[]; }