Skip to main content

silicon_browser_shared/
lib.rs

1//! Stable domain and wire contracts shared by every Silicon Browser component.
2//!
3//! Identifiers deliberately remain strings: IAM, the browser provider, and
4//! Briefcase own their formats. Validation here checks only guarantees Silicon
5//! Browser itself can safely enforce.
6
7mod access;
8mod delivery;
9mod error;
10mod filter;
11mod model;
12mod validation;
13
14pub use access::AccessList;
15pub use delivery::*;
16pub use error::{ApiError, ApiErrorEnvelope, Envelope, FieldError};
17pub use filter::{
18    FilterError, RecordingFacet, RecordingFilter, RecordingPredicate, SessionFacet, SessionFilter, SessionPredicate,
19    TextPattern, UsageFilter, UsagePredicate,
20};
21pub use model::*;
22pub use validation::{Validate, ValidationError};
23
24pub type IdentityId = String;
25pub type OrgId = String;
26pub type ProfileId = String;
27pub type SessionId = String;
28pub type RecordingId = String;
29pub type RequestId = String;
30
31/// The native local controller version installed by setup and used by the client.
32pub const AGENT_BROWSER_VERSION: &str = "0.36.0";