Skip to main content

px_native/events/
mod.rs

1//! Synthetic event collector. Produces the JSON event batch the
2//! sensor encryptor consumes.
3//!
4//! The exact mapping from PX event tags to data fields is still
5//! partially opaque (it needs a captured XHR-hook trace to confirm —
6//! see ADR-0024 N3 follow-up). What we model here is the **shape**:
7//! a `Vec<SensorEvent>` where each event carries a `t` tag string and
8//! a `BTreeMap` of base64-keyed fields. The encoder needs only that
9//! structure; per-tenant population is a profile concern (N5).
10
11pub mod batch;
12pub mod identity;
13pub mod model;
14
15pub use batch::default_batch;
16pub use identity::SyntheticIdentity;
17pub use model::{EventField, SensorEvent};