UNPKG

survey-mcp-server

Version:

Survey management server handling survey creation, response collection, analysis, and reporting with database access for data management

41 lines (40 loc) 1.17 kB
export interface SecurityValidationOptions { maxDepth?: number; maxKeys?: number; allowedTypes?: string[]; blacklistedPatterns?: RegExp[]; } export declare class SecurityValidator { private static instance; private constructor(); static getInstance(): SecurityValidator; validateInput(input: any, options?: SecurityValidationOptions): { isValid: boolean; issues: string[]; }; private validateValue; private validateString; private validateArray; private validateObject; private checkForInjectionAttempts; private checkForSuspiciousKeywords; private validatePropertyKey; private checkForPrototypePollution; private isAllowedMongoOperator; validateIMO(imo: string | number): { isValid: boolean; normalizedIMO?: string; issues: string[]; }; validateEmail(email: string): { isValid: boolean; normalizedEmail?: string; issues: string[]; }; validateURL(url: string): { isValid: boolean; normalizedURL?: string; issues: string[]; }; } export declare const securityValidator: SecurityValidator;