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 calibrate;
13pub mod identity;
14pub mod model;
15
16pub use batch::default_batch;
17pub use calibrate::{CalibrationReport, TagDiff, calibrate};
18pub use identity::SyntheticIdentity;
19pub use model::{EventField, SensorEvent};