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
//! # SDaaS Rust SDK
//!
//! Official Rust SDK for **SDaaS** — Semantic Delta as a Service.
//!
//! A clean, async-first Rust SDK for computing powerful text deltas with semantic understanding.
//!
//! ## Features
//!
//! - ✨ **Fully Async** - Built on `tokio` and `reqwest`
//! - 🔐 **Secure** - X-API-Key authentication with rustls-tls
//! - 📊 **Delta Computation** - Compute text diffs with compression metrics
//! - ✅ **Key Validation** - Check tier, quota, and rate limits
//! - 🛡️ **Type-Safe** - Full serde serialization
//!
//! ## Quick Start
//!
//! ```no_run
//! use sdaas_rs::Client;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Client::new(
//! "your-api-key",
//! "https://saas-core-production.up.railway.app"
//! );
//!
//! // Compute delta
//! let delta = client
//! .compute_delta("Hello", "Hello World")
//! .await?;
//!
//! println!("Delta: {} operations", delta.delta.len());
//! println!("Compression: {:.1}%", delta.compression_ratio * 100.0);
//!
//! // Validate key
//! let validation = client.validate_key().await?;
//! println!("Tier: {}", validation.key.tier);
//!
//! Ok(())
//! }
//! ```
pub use Client;
pub use ;
pub type Result<T> = Result;
/// Error types for the SDaaS SDK