-2
parakeet/src/xrpc/app_bsky/unspecced/handlers.rs
-2
parakeet/src/xrpc/app_bsky/unspecced/handlers.rs
+42
parakeet/src/xrpc/app_bsky/unspecced/mod.rs
+42
parakeet/src/xrpc/app_bsky/unspecced/mod.rs
···
1
+
//! Unspecced endpoints for app.bsky namespace
2
+
3
+
// Import the handlers
4
+
mod handlers;
5
+
pub use handlers::{
6
+
get_trending_topics,
7
+
get_config,
8
+
get_suggested_feeds,
9
+
get_suggested_users,
10
+
get_popular_feed_generators,
11
+
get_suggested_starter_packs,
12
+
};
13
+
14
+
// Thread V2 implementation inline
15
+
pub mod thread_v2 {
16
+
//! Thread V2 implementation for retrieving post threads with advanced sorting and configuration options.
17
+
//!
18
+
//! This module contains implementations of two unspecced endpoints:
19
+
//! - `app.bsky.unspecced.getPostThreadV2` - Get a thread with configurable sorting, depth, and branching factor
20
+
//! - `app.bsky.unspecced.getPostThreadOtherV2` - Get additional replies that weren't included in the main thread view
21
+
22
+
mod models;
23
+
mod other_replies;
24
+
mod post_thread;
25
+
mod query;
26
+
mod sorting;
27
+
mod thread_builder;
28
+
29
+
// Re-export only the request handlers
30
+
pub use self::other_replies::get_post_thread_other_v2;
31
+
pub use self::post_thread::get_post_thread_v2;
32
+
33
+
// Re-export the necessary types for the handlers
34
+
#[expect(dead_code)]
35
+
pub type GetPostThreadV2Req = self::query::GetPostThreadV2Req;
36
+
#[expect(dead_code)]
37
+
pub type GetPostThreadV2Res = self::models::GetPostThreadV2Res;
38
+
#[expect(dead_code)]
39
+
pub type GetPostThreadOtherV2Req = self::query::GetPostThreadOtherV2Req;
40
+
#[expect(dead_code)]
41
+
pub type GetPostThreadOtherV2Res = self::models::GetPostThreadOtherV2Res;
42
+
}