anomaly-express
Version:
Anomaly Express is a security framework for Express.js that provides a set of tools and utilities to help you build secure applications.
15 lines • 869 B
TypeScript
import { RequestHandler } from "express";
import { AnomalyMiddlewareConfig } from "../interfaces/AnomalyMiddleware";
/**
* 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 Anomaly(config: AnomalyMiddlewareConfig): RequestHandler;
//# sourceMappingURL=index.d.ts.map