UNPKG

@casoon/auditmysite

Version:

Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe

66 lines 1.66 kB
/** * 🚀 AuditMySite REST API Server * * Express.js-based REST API for remote accessibility auditing. * Clean implementation for v1.8.0 with full TypeScript compatibility. */ import { Express } from 'express'; declare global { namespace Express { interface Request { requestId: string; apiKey?: string; } } } interface APIConfig { port: number; host: string; apiKeyRequired: boolean; validApiKeys: string[]; maxConcurrentJobs: number; jobTimeout: number; enableSwagger: boolean; corsOrigins: string[]; } export declare class AuditAPIServer { private app; private config; private jobManager; private sdk; private server; constructor(config?: Partial<APIConfig>); /** * Start the API server */ start(): Promise<void>; /** * Get Express app instance (for testing) */ getApp(): Express; /** * Shutdown server and clean up resources */ shutdown(): Promise<void>; private mergeConfig; private setupMiddleware; private setupRoutes; private setupErrorHandling; private authenticateApiKey; private handleCreateAudit; private handleGetAudit; private handleCancelAudit; private handleListAudits; private handleQuickAudit; private handlePerformanceAudit; private handleSeoAudit; private handleContentWeightAudit; private handleAccessibilityAudit; private handleTestConnection; private handleGetReports; private handleDownloadReport; private startAuditJob; private createErrorResponse; } export {}; //# sourceMappingURL=server.d.ts.map