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
//! Official Rust SDK for the Santati audit-log API.
//!
//! Emit one audit event or a batch, list events with filters and cursor
//! pagination, and walk every page with [`Events::iterate`]. The crate is
//! async and needs a Tokio runtime.
//!
//! ```no_run
//! use santati::{EventInput, ListParams, Santati, StreamExt};
//!
//! # async fn run() -> Result<(), santati::Error> {
//! let client = Santati::builder("sat_sk_...").trail("billing").build()?;
//! let events = client.events();
//!
//! let result = events
//! .emit(EventInput {
//! event: "invoice.voided".into(),
//! organization_id: Some("org_acme".into()),
//! ..Default::default()
//! })
//! .await?;
//! println!("{} (duplicate: {})", result.event.id, result.duplicate);
//!
//! let mut stream = std::pin::pin!(events.iterate(ListParams {
//! trail: Some("billing".into()),
//! ..Default::default()
//! }));
//! while let Some(event) = stream.next().await {
//! println!("{}", event?.event);
//! }
//! # Ok(())
//! # }
//! ```
//!
//! The surface this implements, and its error kinds and retry policy, are
//! documented in `docs/sdk-surface.md`.
pub use ;
pub use ;
pub use Events;
pub use StreamExt;
pub use ;
pub use ;