Skip to main content

one/
lib.rs

1//! The One SDK - a typed client over the One API.
2//!
3//! The transport layer is generated by progenitor from the One API's OpenAPI
4//! snapshot. The hand-written facade (`One`) wraps it with auth and ergonomic,
5//! verb-less action calls. Each platform's typed actions ship as their own
6//! crate, `withone-<platform>`, built on this one.
7
8/// Generated transport client (progenitor over the committed SDK spec).
9///
10/// Low-level, one method per operation. The hand-written facade (`One`)
11/// wraps it; most users never touch this module directly.
12pub mod transport {
13    include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated/transport.rs"));
14}
15
16mod client;
17pub use client::*;
18
19mod retry;
20pub use retry::*;
21
22/// Receiving-side webhook verification, dispatch, and listener registration.
23/// Build a [`Webhooks`] registry with [`One::webhooks`], attach typed handlers,
24/// register it with [`Webhooks::listen`], and hand incoming requests to
25/// [`Webhooks::handle`].
26mod webhooks;
27pub use webhooks::*;