UNPKG

@sectester/scan

Version:

The package defines a simple public API to manage scans and their expectations.

46 lines (45 loc) 995 B
import { Severity } from './Severity'; import { HttpMethod } from './HttpMethod'; export type Protocol = 'http' | 'ws'; export interface Request { method: HttpMethod; url: string; headers?: Record<string, string>; body?: string; protocol?: Protocol; } export interface Response { headers?: Record<string, string>; body?: string; status?: number; protocol?: Protocol; } export interface Screenshot { url: string; title: string; } export interface Comment { headline: string; links?: string[]; text?: string; } export interface Issue { id: string; entryPointId: string; details: string; name: string; certainty: boolean; severity: Severity; protocol: Protocol; remedy: string; time: Date; originalRequest: Request; request: Request; link: string; exposure?: string; resources?: string[]; comments?: Comment[]; screenshots?: Screenshot[]; cvss?: string; cwe?: string; }