From 3dc9156242d2d6a0a8e6db476ad677de1e988e60 Mon Sep 17 00:00:00 2001 From: Facundo Rodriguez Date: Wed, 10 Jun 2026 00:03:35 -0300 Subject: [PATCH] feat: add per-component remediations type to EolScanComponent --- src/types/eol-scan.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/types/eol-scan.ts b/src/types/eol-scan.ts index b555257..c3144a1 100644 --- a/src/types/eol-scan.ts +++ b/src/types/eol-scan.ts @@ -32,10 +32,45 @@ export interface NesRemediation { }[]; } +export type RemediationType = + | 'nes_available' + | 'nes_ready' + | 'version_update' + | 'package_replacement'; + +export type RemediationActionType = + | 'direct' + | 'contact' + | 'enterprise_portal' + | 'automated' + | 'reference'; + +export interface RemediationAction { + type: RemediationActionType; + url?: string; +} + +export interface RemediationTarget { + purl: string; + version?: string | null; + releasedAt?: string | null; + publishPurl?: string | null; + nesPurl?: string | null; + ossPurl?: string | null; +} + +export interface Remediation { + type: RemediationType; + description: string; + action: RemediationAction; + target?: RemediationTarget; +} + export interface EolScanComponent { metadata: EolScanComponentMetadata | null; purl: string; nesRemediation?: NesRemediation | null; + remediations?: Remediation[] | null; } export interface EolReportMetadata {