cloudiful_redactor/
lib.rs1mod detect;
2mod input;
3mod llm;
4mod redactor;
5mod replace;
6mod service;
7mod session;
8#[cfg(test)]
9mod tests;
10mod types;
11
12pub use input::InputKind;
13pub use llm::LlmConfig;
14pub use redactor::{Redactor, RedactorBuilder, SessionRedactor};
15pub use service::{
16 EncryptedRedactionArtifact, decrypt_redaction_session, redact_text_artifact,
17 redact_text_artifact_with_source, redact_text_with_encrypted_session,
18 redact_text_with_encrypted_session_and_source, restore_text_from_encrypted_session,
19};
20pub use session::{
21 decrypt_session_from_str, encrypt_session_to_string, ensure_restore_valid,
22 inspect_encrypted_session, restore_patch_with_session, restore_text_with_session,
23};
24use thiserror::Error;
25pub use types::{
26 AppliedReplacement, CustomFileRule, CustomStringMatch, CustomStringRule, CustomStringScope,
27 Finding, FindingKind, FindingSource, RedactionArtifact, RedactionPolicy, RedactionResult,
28 RedactionRules, RedactionSession, RedactionStats, ReplacementStrategy, RestorationEntry,
29 RestoreResult, SessionEntrySummary, SessionSummary,
30};
31
32#[derive(Debug, Error)]
33pub enum RedactorError {
34 #[error("llm error: {0}")]
35 Llm(String),
36 #[error("validation error: {0}")]
37 Validation(String),
38}