//! API Key Management Module
//!
//! Features:
//! - API Key generation with secure random
//! - Key hashing (SHA256)
//! - Anomaly detection
//! - Forced rotation mechanism
//! - Audit logging
//! - Gitea token integration
//! - n8n API key integration
//! - Cached validation with rate limiting

pub mod anomaly;
pub mod audit_logger;
pub mod blacklist;
pub mod cleanup;
pub mod encryption;
pub mod error;
pub mod export;
pub mod gitea;
pub mod models;
pub mod n8n;
pub mod report;
pub mod rotation;
pub mod service;
pub mod strength;
pub mod validator;
pub mod webhook;

pub use audit_logger::{AsyncAuditLogger, AuditEntry, AuditLoggerConfig};
pub use blacklist::{BlacklistConfig, BlacklistEntry, IpBlacklist};
pub use cleanup::{CleanupConfig, CleanupManager, CleanupResult};
pub use encryption::{AuditEncryption, EncryptedAuditLogEntry, EncryptedData};
pub use error::{ApiKeyError, ApiKeyResult};
pub use export::{ExportFormat, ExportManager, ImportManager};
pub use gitea::*;
pub use models::*;
pub use n8n::*;
pub use report::{ApiKeyReport, ReportGenerator, ReportSummary};
pub use service::ApiKeyService;
pub use strength::{KeyStrength, KeyStrengthValidator, StrengthResult};
pub use validator::{
    ApiKeyValidator, CacheStats, RateLimitResult, RateLimitStats, ValidatorConfig,
};
pub use webhook::{WebhookConfig, WebhookEvent, WebhookNotifier, WebhookPayload};
