koruai
Version:
AI-powered security monitoring middleware for Express.js applications. Detects anomalies and threats in real-time with intelligent request analysis.
15 lines • 874 B
TypeScript
import { RequestHandler } from "express";
import { KoruAIMiddlewareConfig } from "../interfaces/KoruAIMiddlewareInterface";
/**
* Creates Express middleware for AI-powered security monitoring.
* @param config - Configuration object for the Anomaly middleware
* @param config.apiKey - Your API key for authentication with Anomaly AI servers
* @param config.appId - Your application ID for identifying your app
* @param config.blockRealtime - Whether to check for anomaly in real-time.
* If true, the middleware will check for anomaly in real-time and block the request if anomaly is detected.
* If false, the middleware will check for anomaly in our servers and send report to dashboard.
* Default is false.
* @returns Express middleware function
*/
export declare function KoruAI(config: KoruAIMiddlewareConfig): RequestHandler;
//# sourceMappingURL=index.d.ts.map