@iflow-mcp/claudeus-wp-mcp
Version:
The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI
28 lines (27 loc) • 772 B
TypeScript
import { ConsentType, Operation } from '../types/security.js';
interface Context {
userId?: string | number;
operation?: string;
[key: string]: unknown;
}
interface AuditLogEntry {
timestamp: string;
type: string;
operation: string;
status: 'success' | 'failure';
details: Record<string, unknown>;
consentType?: string;
context?: Record<string, unknown>;
}
export declare class UserConsentManager {
private consentStore;
private auditLog;
requestConsent(operation: Operation, context?: Context): Promise<boolean>;
private promptUserConsent;
private recordConsent;
private logConsentRequest;
hasConsent(type: ConsentType): boolean;
getAuditLog(): AuditLogEntry[];
private logConsent;
}
export {};