1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//! # synth-banking
//!
//! KYC/AML banking transaction generator for synthetic data.
//!
//! This crate provides comprehensive banking transaction simulation for:
//! - Compliance testing and model training
//! - AML/fraud detection system evaluation
//! - KYC process simulation
//! - Regulatory reporting testing
//!
//! ## Features
//!
//! - **Customer Generation**: Retail, business, and trust customers with realistic KYC profiles
//! - **Account Generation**: Multiple account types with proper feature sets
//! - **Transaction Engine**: Persona-based transaction generation with causal drivers
//! - **AML Typologies**: Structuring, funnel accounts, layering, mule networks, and more
//! - **Ground Truth Labels**: Multi-level labels for ML training
//! - **Spoofing Mode**: Adversarial transaction generation for robustness testing
//!
//! ## Architecture
//!
//! The crate follows a layered architecture:
//!
//! ```text
//! BankingOrchestrator (orchestration)
//! ↓
//! Generators (customer, account, transaction, counterparty)
//! ↓
//! Typologies (AML pattern injection)
//! ↓
//! Labels (ground truth generation)
//! ↓
//! Models (customer, account, transaction, KYC)
//! ```
//!
//! ## Usage
//!
//! ```rust,ignore
//! use datasynth_banking::{BankingOrchestrator, BankingConfig};
//!
//! let config = BankingConfig::default();
//! let mut orchestrator = BankingOrchestrator::new(config, 12345);
//!
//! // Generate customers and accounts
//! let customers = orchestrator.generate_customers();
//! let accounts = orchestrator.generate_accounts(&customers);
//!
//! // Generate transaction stream
//! let transactions = orchestrator.generate_transactions(&accounts);
//! ```
/// Parse a start date string in YYYY-MM-DD format, logging a warning and
/// falling back to 2024-01-01 when the string is malformed.
pub
pub use *;
pub use *;
// Re-export key types for convenience
pub use ;
pub use ;