/** * Security-tab local types. These mirror the wspace-vibecontrols-svc * GraphQL schema; once that schema is published to Hive Cloud and the * microfe regenerates codegen, the typed hooks/types from * src/generated/* replace these. */ export type SecurityStage = 'REPO_ONBOARD' | 'DEVELOPER_LOCAL' | 'PULL_REQUEST_FAST' | 'PULL_REQUEST_DEEP' | 'MAIN_MERGE' | 'BUILD' | 'PACKAGE_PUBLISH' | 'DEPLOY_PREVIEW' | 'DEPLOY_ALPHA' | 'PROMOTE_PROD' | 'RUNTIME_CONTINUOUS' | 'SCHEDULED_RESCAN' | 'INCIDENT_RESPONSE' | 'ARCHIVE_OFFBOARD'; export declare const ALL_STAGES: readonly { id: SecurityStage; slug: string; label: string; }[]; export declare const STAGE_BY_ID: Map; export type SecurityScanStatus = 'QUEUED' | 'RUNNING' | 'SUCCEEDED' | 'FAILED' | 'ERRORED' | 'CANCELLED'; export type SecurityScanConclusion = 'PASS' | 'WARN' | 'FAIL' | 'SKIPPED'; export type SecuritySeverity = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW' | 'INFO'; export type SecurityFindingCategory = 'SECRET' | 'VULN' | 'SAST' | 'LICENSE' | 'POLICY' | 'CONFIG' | 'SUPPLYCHAIN'; export type SecurityFindingStatus = 'OPEN' | 'ACCEPTED' | 'FIXED' | 'FALSE_POSITIVE' | 'SUPPRESSED'; export type SecurityPolicyLevel = 'ADVISORY' | 'WARN' | 'BLOCK'; export interface SecuritySummary { critical: number; high: number; medium: number; low: number; info: number; } export interface SecurityScanRun { id: string; vibeId: string; stage: SecurityStage; status: SecurityScanStatus; conclusion?: SecurityScanConclusion | null; providerName: string; startedAt?: string | null; finishedAt?: string | null; durationMs?: number | null; summary: SecuritySummary; evidence?: SecurityEvidenceRow[]; } export interface SecurityEvidenceRow { id: string; type: string; sha256: string; sizeBytes: number; downloadUrl?: string | null; } export interface SecurityFindingRow { id: string; fingerprint: string; ruleId: string; title: string; severity: SecuritySeverity; category: SecurityFindingCategory; file?: string | null; line?: number | null; packageName?: string | null; packageVersion?: string | null; fixedVersion?: string | null; status: SecurityFindingStatus; remediation?: string | null; redactedSample?: string | null; firstSeenAt: string; lastSeenAt: string; } export interface SecurityProviderRow { id: string; pluginName: string; providerName: string; stage: SecurityStage; toolVersion: string; isDefault: boolean; enabled: boolean; } export interface SecurityStatusPayload { vibeId: string; policyLevel: SecurityPolicyLevel; lastScanAt?: string | null; perStage: Record; totals: SecuritySummary; } export type StageNodeStatus = 'never-run' | 'in-progress' | 'passed' | 'warn' | 'failed' | 'skipped'; export declare function deriveStageStatus(stage: SecurityStatusPayload['perStage'][string]): StageNodeStatus;