UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

25 lines (24 loc) 564 B
export type Endpoint = { method: string; route: string; forceProtectionOff: boolean; graphql?: { type: "query" | "mutation"; name: string; }; allowedIPAddresses?: string[]; rateLimiting: { enabled: boolean; maxRequests: number; windowSizeInMS: number; }; }; export type Config = { endpoints: Endpoint[]; heartbeatIntervalInMS: number; configUpdatedAt: number; blockedUserIds: string[]; allowedIPAddresses: string[]; block?: boolean; receivedAnyStats?: boolean; };