UNPKG

endpoint-sentinel

Version:

User-friendly security scanner with interactive setup that scales from beginner to expert

51 lines 1.32 kB
/** * Interactive Setup Flow * Vercel-style progressive configuration for security scanning */ import { AuthScheme } from '../types/scanner.js'; import { DomainConfig } from './config-manager.js'; export interface SetupAnswers { hasPermission: boolean; isAuthenticated: boolean; authType: AuthScheme; token?: string; cookie?: string; appName?: string; keywords?: string[]; rateLimit?: number; saveConfig: boolean; notes?: string; } export declare class InteractiveSetup { private configManager; constructor(); /** * Main interactive setup flow */ setupDomain(url: string): Promise<DomainConfig>; /** * Ask if user wants to use existing config */ shouldUseExistingConfig(url: string): Promise<boolean>; /** * Run the complete setup question flow */ private runSetupQuestions; /** * Build domain config from answers */ private buildConfigFromAnswers; /** * Display configuration summary */ private displayConfigSummary; /** * Get display name for auth type */ private getAuthDisplayName; /** * Quick setup for power users */ quickSetup(url: string, authToken?: string): Promise<DomainConfig>; } //# sourceMappingURL=interactive-setup.d.ts.map