Skip to main content

cleanlib_client/
lib.rs

1// CleanLibrary shared client library — HTTP / auth / telemetry surface
2// shared between Rust CLI (cleanlib-cli) and any other Rust consumers.
3// Telemetry transport impl lands in subsequent CLEANLIB-N PRs per Client
4// spec rev1 §7.
5
6pub mod config;
7pub mod customer_state;
8pub mod derive_status;
9pub mod envelope;
10pub mod errors;
11pub mod proxy;
12pub mod risk_acceptance;
13pub mod transport;
14pub mod types;
15pub mod verdict_to_envelope;
16
17// Re-exports — load-bearing surface for sibling-crate consumers (cleanlib-cli,
18// cleanlib-app integration tests) so they import via `cleanlib_client::*`
19// without reaching into module paths.
20pub use customer_state::{CustomerState, Tier};
21pub use derive_status::{derive_status, DerivedStatus};
22pub use envelope::{ReasonCode, Status, VerdictEnvelopeV1, ALL_REASON_CODES, ALL_VERDICT_SOURCES};
23pub use verdict_to_envelope::verdict_to_envelope_v1;
24
25// CLEANLIB-126 M1″ — extern-consumer surface re-exports (cycle-13).
26// Per cycle-13 R5-Lane-2 F2: third-party consumers importing
27// `cleanlib_client::{Client, Verdict, PolicyDecision}` previously hit
28// `error[E0432]: unresolved imports` because the types lived behind
29// module paths. Re-export at crate-root so the public API matches the
30// documented surface (cf. docs-site SDK-Rust.md customer page).
31pub use transport::Client;
32pub use types::{PolicyDecision, PreviousVerdict, Verdict};