import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ExternalFindingSeverityType } from "./externalfindingseveritytype.js"; import { VulnerabilityType } from "./vulnerabilitytype.js"; /** * Metadata for the deactivation of the vulnerability. */ export type DeactivateMetadata = { /** * Whether the vulnerability is deactivated indefinitely. */ isVulnDeactivatedIndefinitely: boolean; /** * Date when the vulnerability will be reactivated. */ deactivatedUntilDate: Date | null; /** * Reason for deactivating the vulnerability. */ deactivationReason: string; /** * Date when the vulnerability was deactivated. */ deactivatedOnDate: Date; /** * Identifier of the user who deactivated the vulnerability. */ deactivatedBy: string; }; export type AuditorApiVulnerability = { /** * Unique identifier for the vulnerability. */ id: string; /** * Display name of the vulnerability. */ name: string; /** * Description of the vulnerability. */ description: string; /** * Integration that the vulnerability is scanned by. */ integrationId: string; /** * Identifier for the package that the vulnerability is found on. * * @remarks * Only relevant to vulnerabilities of type COMMON or GROUPED. */ packageIdentifier: string | null; vulnerabilityType: VulnerabilityType; /** * Unique identifier for the underlying resource that the vulnerability is found on. */ targetId: string; /** * Date when the vulnerability was first detected by Vanta. */ firstDetectedDate: Date; /** * Date when the vulnerability was first detected by the source. */ sourceDetectedDate: Date | null; /** * Date when the vulnerability was last detected. */ lastDetectedDate: Date | null; severity: ExternalFindingSeverityType; /** * CVSS severity score of the vulnerability. */ cvssSeverityScore: number | null; /** * Scanner score of the vulnerability. */ scannerScore: number | null; /** * Whether the vulnerability is fixable. */ isFixable: boolean; /** * Date when the vulnerability should be remediated by. */ remediateByDate: Date | null; /** * Related vulnerabilities. * * @remarks * Only relevant to vulnerabilities of type GROUPED. */ relatedVulns: Array; /** * Related URLs. */ relatedUrls: Array; /** * External URL for the vulnerability. */ externalURL: string; /** * Scanning tool that detected the vulnerability */ scanSource?: string | undefined; /** * Metadata for the deactivation of the vulnerability. */ deactivateMetadata: DeactivateMetadata | null; }; /** @internal */ export declare const DeactivateMetadata$inboundSchema: z.ZodType; export declare function deactivateMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AuditorApiVulnerability$inboundSchema: z.ZodType; export declare function auditorApiVulnerabilityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=auditorapivulnerability.d.ts.map