From 215aabe255bbdf1918584759c09efc9f34634686 Mon Sep 17 00:00:00 2001 From: Timothy Quilling Date: Wed, 17 Dec 2025 21:05:41 +0000 Subject: [PATCH] reorganize --- parakeet/src/xrpc/app_bsky/unspecced/handlers.rs | 2 -- parakeet/src/xrpc/app_bsky/unspecced/mod.rs | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 file(s) changed, 42 insertion(s)(+), 2 deletion(s)(-) diff --git a/parakeet/src/xrpc/app_bsky/unspecced/handlers.rs b/parakeet/src/xrpc/app_bsky/unspecced/handlers.rs --- a/parakeet/src/xrpc/app_bsky/unspecced/handlers.rs +++ b/parakeet/src/xrpc/app_bsky/unspecced/handlers.rs @@ -10,8 +10,6 @@ use parakeet_db::models::ProfileStats; use serde::{Deserialize, Serialize}; -pub mod thread_v2; - // ======== getTrendingTopics ======== #[derive(Debug, Deserialize)] diff --git a/parakeet/src/xrpc/app_bsky/unspecced/mod.rs b/parakeet/src/xrpc/app_bsky/unspecced/mod.rs new file mode 100644 --- /dev/null +++ b/parakeet/src/xrpc/app_bsky/unspecced/mod.rs @@ -0,0 +1,42 @@ +//! Unspecced endpoints for app.bsky namespace + +// Import the handlers +mod handlers; +pub use handlers::{ + get_trending_topics, + get_config, + get_suggested_feeds, + get_suggested_users, + get_popular_feed_generators, + get_suggested_starter_packs, +}; + +// Thread V2 implementation inline +pub mod thread_v2 { + //! Thread V2 implementation for retrieving post threads with advanced sorting and configuration options. + //! + //! This module contains implementations of two unspecced endpoints: + //! - `app.bsky.unspecced.getPostThreadV2` - Get a thread with configurable sorting, depth, and branching factor + //! - `app.bsky.unspecced.getPostThreadOtherV2` - Get additional replies that weren't included in the main thread view + + mod models; + mod other_replies; + mod post_thread; + mod query; + mod sorting; + mod thread_builder; + + // Re-export only the request handlers + pub use self::other_replies::get_post_thread_other_v2; + pub use self::post_thread::get_post_thread_v2; + + // Re-export the necessary types for the handlers + #[expect(dead_code)] + pub type GetPostThreadV2Req = self::query::GetPostThreadV2Req; + #[expect(dead_code)] + pub type GetPostThreadV2Res = self::models::GetPostThreadV2Res; + #[expect(dead_code)] + pub type GetPostThreadOtherV2Req = self::query::GetPostThreadOtherV2Req; + #[expect(dead_code)] + pub type GetPostThreadOtherV2Res = self::models::GetPostThreadOtherV2Res; +} \ No newline at end of file -- tangled.sh