UNPKG

adpa-enterprise-framework-automation

Version:

Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe

20 lines 975 B
import { Request, Response, NextFunction } from 'express'; declare global { namespace Express { interface Request { user?: any; apiKey?: string; } } } export interface AuthenticatedUser { id: string; email: string; role: 'admin' | 'user' | 'service'; permissions: string[]; } export declare const authMiddleware: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; export declare const requireRole: (roles: string[]) => (req: Request, res: Response, next: NextFunction) => Response<any, Record<string, any>> | undefined; export declare const requirePermission: (permission: string) => (req: Request, res: Response, next: NextFunction) => Response<any, Record<string, any>> | undefined; export declare const apiKeyAuth: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>; //# sourceMappingURL=auth.d.ts.map