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
//! AT Protocol high-level API: agent, rich text, moderation, generated types.
//!
//! # Examples
//!
//! ```
//! use proto_blue_api::rich_text::{RichText, FacetFeature};
//!
//! // Create rich text with automatic facet detection
//! let mut rt = RichText::new(
//! "Hello @alice.bsky.social! Check out https://bsky.app #atproto".to_string(),
//! None,
//! );
//! rt.detect_facets();
//!
//! assert_eq!(rt.facets().len(), 3);
//!
//! // Iterate segments for rendering
//! let segments = rt.segments();
//! for seg in &segments {
//! if let Some(facet) = &seg.facet {
//! match &facet.features[0] {
//! FacetFeature::Mention { did } => println!("@{}", did),
//! FacetFeature::Link { uri } => println!("link: {}", uri),
//! FacetFeature::Tag { tag } => println!("#{}", tag),
//! }
//! }
//! }
//! ```
// Re-export generated namespaces at crate root for cross-module references
pub use app;
pub use chat;
pub use com;
pub use tools;
// Re-export key types
pub use ;
pub use ;
pub use ;