msexchange-mcp
Version:
MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API
47 lines • 1.05 kB
TypeScript
/**
* Input validation utilities
*/
/**
* Validate date range
*/
export declare function validateDateRange(start?: Date | string, end?: Date | string): {
valid: boolean;
error?: string;
startDate?: Date;
endDate?: Date;
};
/**
* Validate email address format
*/
export declare function validateEmail(email: string): boolean;
/**
* Validate and sanitize search query
*/
export declare function validateSearchQuery(query: string): {
valid: boolean;
error?: string;
sanitized?: string;
};
/**
* Validate folder name
*/
export declare function validateFolderName(name: string): {
valid: boolean;
error?: string;
};
/**
* Validate attachment size
*/
export declare function validateAttachmentSize(base64Content: string, maxSizeMB?: number): {
valid: boolean;
error?: string;
estimatedSizeMB?: number;
};
/**
* Validate OR query complexity
*/
export declare function validateOrQueryComplexity(orParts: string[]): {
valid: boolean;
error?: string;
};
//# sourceMappingURL=validators.d.ts.map