From 8c78f3ea4d6b49006a06c5f05bba32de6e7d4c08 Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:23:38 -0300 Subject: [PATCH 01/10] Adding .editorconfig and rustfmt.toml --- .editorconfig | 13 +++++++++++++ rustfmt.toml | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .editorconfig create mode 100644 rustfmt.toml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..c780a25b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +max_line_length = 100 \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..bf272742 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,15 @@ +# Rustfmt configuration file + +# Set the maximum line width +max_width = 100 + +# Use 4 spaces for indentation +tab_spaces = 4 + +# Use the default set of rules +# Uncomment the following line to enable custom rules +# custom_rules = true + +## Nightly only, but preferrable +# brace_style = "PreferSameLine" +# enum_discrim_align_threshold = 30 \ No newline at end of file From c96323d61ad1d9390176141c3701c65ffd9183c2 Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:24:15 -0300 Subject: [PATCH 02/10] Formatting workspace with 'cargo fmt' --- atrium-api/src/app/bsky/actor/defs.rs | 4 +- atrium-api/src/app/bsky/embed/record.rs | 8 +- atrium-api/src/app/bsky/feed/defs.rs | 4 +- atrium-api/src/app/bsky/feed/post.rs | 4 +- atrium-api/src/app/bsky/labeler/defs.rs | 5 +- atrium-api/src/chat/bsky/convo/get_log.rs | 8 +- .../src/chat/bsky/convo/get_messages.rs | 4 +- .../bsky/moderation/get_message_context.rs | 4 +- atrium-api/src/client.rs | 3574 ++++++----------- atrium-api/src/com/atproto/label/defs.rs | 4 +- .../ozone/communication/list_templates.rs | 4 +- .../src/tools/ozone/moderation/emit_event.rs | 8 +- 12 files changed, 1186 insertions(+), 2445 deletions(-) diff --git a/atrium-api/src/app/bsky/actor/defs.rs b/atrium-api/src/app/bsky/actor/defs.rs index c3c83b4a..356fad3a 100644 --- a/atrium-api/src/app/bsky/actor/defs.rs +++ b/atrium-api/src/app/bsky/actor/defs.rs @@ -229,9 +229,7 @@ pub struct ProfileViewDetailedData { #[serde(skip_serializing_if = "Option::is_none")] pub indexed_at: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub joined_via_starter_pack: Option< - crate::app::bsky::graph::defs::StarterPackViewBasic, - >, + pub joined_via_starter_pack: Option, #[serde(skip_serializing_if = "Option::is_none")] pub labels: Option>, #[serde(skip_serializing_if = "Option::is_none")] diff --git a/atrium-api/src/app/bsky/embed/record.rs b/atrium-api/src/app/bsky/embed/record.rs index dd2e57d6..44776cf0 100644 --- a/atrium-api/src/app/bsky/embed/record.rs +++ b/atrium-api/src/app/bsky/embed/record.rs @@ -70,9 +70,7 @@ pub enum ViewRecordEmbedsItem { #[serde(rename = "app.bsky.embed.record#view")] AppBskyEmbedRecordView(Box), #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), + AppBskyEmbedRecordWithMediaView(Box), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] @@ -92,7 +90,5 @@ pub enum ViewRecordRefs { #[serde(rename = "app.bsky.labeler.defs#labelerView")] AppBskyLabelerDefsLabelerView(Box), #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] - AppBskyGraphDefsStarterPackViewBasic( - Box, - ), + AppBskyGraphDefsStarterPackViewBasic(Box), } diff --git a/atrium-api/src/app/bsky/feed/defs.rs b/atrium-api/src/app/bsky/feed/defs.rs index 496dd896..261ee909 100644 --- a/atrium-api/src/app/bsky/feed/defs.rs +++ b/atrium-api/src/app/bsky/feed/defs.rs @@ -221,9 +221,7 @@ pub enum PostViewEmbedRefs { #[serde(rename = "app.bsky.embed.record#view")] AppBskyEmbedRecordView(Box), #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), + AppBskyEmbedRecordWithMediaView(Box), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] diff --git a/atrium-api/src/app/bsky/feed/post.rs b/atrium-api/src/app/bsky/feed/post.rs index e1316537..53231201 100644 --- a/atrium-api/src/app/bsky/feed/post.rs +++ b/atrium-api/src/app/bsky/feed/post.rs @@ -65,9 +65,7 @@ pub enum RecordEmbedRefs { #[serde(rename = "app.bsky.embed.record")] AppBskyEmbedRecordMain(Box), #[serde(rename = "app.bsky.embed.recordWithMedia")] - AppBskyEmbedRecordWithMediaMain( - Box, - ), + AppBskyEmbedRecordWithMediaMain(Box), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] diff --git a/atrium-api/src/app/bsky/labeler/defs.rs b/atrium-api/src/app/bsky/labeler/defs.rs index ca11f840..9e034716 100644 --- a/atrium-api/src/app/bsky/labeler/defs.rs +++ b/atrium-api/src/app/bsky/labeler/defs.rs @@ -5,9 +5,8 @@ pub struct LabelerPoliciesData { ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. #[serde(skip_serializing_if = "Option::is_none")] - pub label_value_definitions: Option< - Vec, - >, + pub label_value_definitions: + Option>, ///The label values which this labeler publishes. May include global or custom labels. pub label_values: Vec, } diff --git a/atrium-api/src/chat/bsky/convo/get_log.rs b/atrium-api/src/chat/bsky/convo/get_log.rs index 49d5897e..3cb9e728 100644 --- a/atrium-api/src/chat/bsky/convo/get_log.rs +++ b/atrium-api/src/chat/bsky/convo/get_log.rs @@ -32,11 +32,7 @@ pub enum OutputLogsItem { #[serde(rename = "chat.bsky.convo.defs#logLeaveConvo")] ChatBskyConvoDefsLogLeaveConvo(Box), #[serde(rename = "chat.bsky.convo.defs#logCreateMessage")] - ChatBskyConvoDefsLogCreateMessage( - Box, - ), + ChatBskyConvoDefsLogCreateMessage(Box), #[serde(rename = "chat.bsky.convo.defs#logDeleteMessage")] - ChatBskyConvoDefsLogDeleteMessage( - Box, - ), + ChatBskyConvoDefsLogDeleteMessage(Box), } diff --git a/atrium-api/src/chat/bsky/convo/get_messages.rs b/atrium-api/src/chat/bsky/convo/get_messages.rs index 8abe1658..1f1f9624 100644 --- a/atrium-api/src/chat/bsky/convo/get_messages.rs +++ b/atrium-api/src/chat/bsky/convo/get_messages.rs @@ -33,7 +33,5 @@ pub enum OutputMessagesItem { #[serde(rename = "chat.bsky.convo.defs#messageView")] ChatBskyConvoDefsMessageView(Box), #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView( - Box, - ), + ChatBskyConvoDefsDeletedMessageView(Box), } diff --git a/atrium-api/src/chat/bsky/moderation/get_message_context.rs b/atrium-api/src/chat/bsky/moderation/get_message_context.rs index c313a5f8..d6e8ffc4 100644 --- a/atrium-api/src/chat/bsky/moderation/get_message_context.rs +++ b/atrium-api/src/chat/bsky/moderation/get_message_context.rs @@ -34,7 +34,5 @@ pub enum OutputMessagesItem { #[serde(rename = "chat.bsky.convo.defs#messageView")] ChatBskyConvoDefsMessageView(Box), #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView( - Box, - ), + ChatBskyConvoDefsDeletedMessageView(Box), } diff --git a/atrium-api/src/client.rs b/atrium-api/src/client.rs index 01b9a8b2..b0dfd1b0 100644 --- a/atrium-api/src/client.rs +++ b/atrium-api/src/client.rs @@ -367,9 +367,7 @@ where feed: app::bsky::feed::Service::new(std::sync::Arc::clone(&xrpc)), graph: app::bsky::graph::Service::new(std::sync::Arc::clone(&xrpc)), labeler: app::bsky::labeler::Service::new(std::sync::Arc::clone(&xrpc)), - notification: app::bsky::notification::Service::new( - std::sync::Arc::clone(&xrpc), - ), + notification: app::bsky::notification::Service::new(std::sync::Arc::clone(&xrpc)), unspecced: app::bsky::unspecced::Service::new(std::sync::Arc::clone(&xrpc)), video: app::bsky::video::Service::new(std::sync::Arc::clone(&xrpc)), _phantom: core::marker::PhantomData, @@ -398,20 +396,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_preferences::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_preferences::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -428,20 +419,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profile::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_profile::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -458,20 +442,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profiles::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_profiles::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -488,20 +465,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_suggestions::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_suggestions::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -515,20 +485,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::actor::put_preferences::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::actor::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::actor::put_preferences::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -545,20 +508,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::search_actors::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -575,20 +531,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors_typeahead::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::search_actors_typeahead::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -617,20 +566,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::describe_feed_generator::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::describe_feed_generator::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -647,20 +589,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_actor_feeds::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -677,20 +612,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_actor_likes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -707,20 +635,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_author_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_author_feed::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -737,20 +658,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -767,20 +681,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generator::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed_generator::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -797,20 +704,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generators::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed_generators::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -827,20 +727,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed_skeleton::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -857,20 +750,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_likes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -887,20 +773,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_list_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_list_feed::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -917,20 +796,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_post_thread::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_post_thread::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -947,20 +819,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_posts::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -977,20 +842,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_quotes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_quotes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1007,20 +865,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_reposted_by::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_reposted_by::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1037,20 +888,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_suggested_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_suggested_feeds::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1067,20 +911,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_timeline::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_timeline::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1097,20 +934,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::search_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::search_posts::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1127,20 +957,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::feed::send_interactions::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::feed::send_interactions::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1170,20 +993,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_actor_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_actor_starter_packs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1200,20 +1016,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_blocks::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1230,20 +1039,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_followers::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1260,20 +1062,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_follows::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_follows::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1290,20 +1085,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_known_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_known_followers::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1320,20 +1108,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_list::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1350,20 +1131,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_list_blocks::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1380,20 +1154,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_list_mutes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1410,20 +1177,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_lists::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_lists::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1440,20 +1200,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_mutes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1470,20 +1223,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_relationships::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_relationships::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1500,20 +1246,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_pack::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_starter_pack::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1530,20 +1269,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_starter_packs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1560,21 +1292,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_suggested_follows_by_actor::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_suggested_follows_by_actor::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1588,20 +1312,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::mute_actor::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1615,20 +1332,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor_list::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::mute_actor_list::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1642,20 +1352,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_thread::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::mute_thread::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1669,20 +1372,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::unmute_actor::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1696,20 +1392,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor_list::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::unmute_actor_list::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1723,20 +1412,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_thread::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::unmute_thread::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1766,20 +1448,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::labeler::get_services::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::labeler::get_services::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1809,20 +1484,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::get_unread_count::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::notification::get_unread_count::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1839,21 +1507,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::list_notifications::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::notification::list_notifications::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1864,26 +1524,16 @@ where pub async fn put_preferences( &self, input: crate::app::bsky::notification::put_preferences::Input, - ) -> atrium_xrpc::Result< - (), - crate::app::bsky::notification::put_preferences::Error, - > { + ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::put_preferences::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::notification::put_preferences::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1897,20 +1547,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::register_push::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::register_push::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::notification::register_push::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1924,20 +1567,13 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::update_seen::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::update_seen::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::notification::update_seen::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1967,21 +1603,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_popular_feed_generators::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::get_popular_feed_generators::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1998,21 +1626,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggestions_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::get_suggestions_skeleton::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2029,21 +1649,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_tagged_suggestions::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::get_tagged_suggestions::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2060,21 +1672,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_actors_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::search_actors_skeleton::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2091,21 +1695,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_posts_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::search_posts_skeleton::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2135,20 +1731,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_job_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::video::get_job_status::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2164,20 +1753,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_upload_limits::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::video::get_upload_limits::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2194,20 +1776,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - Vec, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::video::upload_video::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("video/mp4")), - }, - ) + .send_xrpc::<(), Vec, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::video::upload_video::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), + encoding: Some(String::from("video/mp4")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2238,9 +1813,7 @@ where Self { actor: chat::bsky::actor::Service::new(std::sync::Arc::clone(&xrpc)), convo: chat::bsky::convo::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: chat::bsky::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), + moderation: chat::bsky::moderation::Service::new(std::sync::Arc::clone(&xrpc)), _phantom: core::marker::PhantomData, } } @@ -2265,20 +1838,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::actor::delete_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::actor::delete_account::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2287,26 +1853,16 @@ where } pub async fn export_account_data( &self, - ) -> atrium_xrpc::Result< - Vec, - crate::chat::bsky::actor::export_account_data::Error, - > { + ) -> atrium_xrpc::Result, crate::chat::bsky::actor::export_account_data::Error> { let response = self .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::actor::export_account_data::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::actor::export_account_data::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -2335,20 +1891,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::delete_message_for_self::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::delete_message_for_self::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2364,20 +1913,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_convo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2393,20 +1935,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo_for_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_convo_for_members::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2422,20 +1957,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_log::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_log::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2451,20 +1979,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_messages::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_messages::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2480,20 +2001,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::leave_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::leave_convo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2509,20 +2023,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::list_convos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::list_convos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2538,20 +2045,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::mute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::mute_convo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2567,20 +2067,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::send_message::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2596,20 +2089,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message_batch::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::send_message_batch::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2625,20 +2111,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::unmute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::unmute_convo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2654,20 +2133,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::update_read::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::update_read::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2696,20 +2168,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_actor_metadata::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::moderation::get_actor_metadata::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2725,21 +2190,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_message_context::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::moderation::get_message_context::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2749,27 +2206,16 @@ where pub async fn update_actor_access( &self, input: crate::chat::bsky::moderation::update_actor_access::Input, - ) -> atrium_xrpc::Result< - (), - crate::chat::bsky::moderation::update_actor_access::Error, - > { + ) -> atrium_xrpc::Result<(), crate::chat::bsky::moderation::update_actor_access::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::moderation::update_actor_access::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::moderation::update_actor_access::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2799,9 +2245,7 @@ where admin: com::atproto::admin::Service::new(std::sync::Arc::clone(&xrpc)), identity: com::atproto::identity::Service::new(std::sync::Arc::clone(&xrpc)), label: com::atproto::label::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: com::atproto::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), + moderation: com::atproto::moderation::Service::new(std::sync::Arc::clone(&xrpc)), repo: com::atproto::repo::Service::new(std::sync::Arc::clone(&xrpc)), server: com::atproto::server::Service::new(std::sync::Arc::clone(&xrpc)), sync: com::atproto::sync::Service::new(std::sync::Arc::clone(&xrpc)), @@ -2828,20 +2272,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::delete_account::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::delete_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2852,27 +2289,16 @@ where pub async fn disable_account_invites( &self, input: crate::com::atproto::admin::disable_account_invites::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::disable_account_invites::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::disable_account_invites::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_account_invites::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::disable_account_invites::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2883,26 +2309,16 @@ where pub async fn disable_invite_codes( &self, input: crate::com::atproto::admin::disable_invite_codes::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::disable_invite_codes::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::disable_invite_codes::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::disable_invite_codes::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2913,27 +2329,16 @@ where pub async fn enable_account_invites( &self, input: crate::com::atproto::admin::enable_account_invites::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::enable_account_invites::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::enable_account_invites::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::enable_account_invites::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::enable_account_invites::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2950,20 +2355,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_info::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_account_info::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2980,20 +2378,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_infos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_account_infos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3010,20 +2401,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_invite_codes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_invite_codes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3040,20 +2424,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_subject_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_subject_status::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3070,20 +2447,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::search_accounts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::search_accounts::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3100,20 +2470,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::send_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::send_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3124,26 +2487,16 @@ where pub async fn update_account_email( &self, input: crate::com::atproto::admin::update_account_email::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_email::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::update_account_email::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_account_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3154,26 +2507,16 @@ where pub async fn update_account_handle( &self, input: crate::com::atproto::admin::update_account_handle::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_handle::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::update_account_handle::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_account_handle::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3184,27 +2527,16 @@ where pub async fn update_account_password( &self, input: crate::com::atproto::admin::update_account_password::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_password::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::update_account_password::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_password::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_account_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3221,20 +2553,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_subject_status::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_subject_status::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3262,21 +2587,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::get_recommended_did_credentials::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::identity::get_recommended_did_credentials::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3292,21 +2609,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::request_plc_operation_signature::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::request_plc_operation_signature::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3323,20 +2632,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::resolve_handle::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::identity::resolve_handle::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3353,20 +2655,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::sign_plc_operation::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::sign_plc_operation::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3377,27 +2672,16 @@ where pub async fn submit_plc_operation( &self, input: crate::com::atproto::identity::submit_plc_operation::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::identity::submit_plc_operation::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::identity::submit_plc_operation::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::submit_plc_operation::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::submit_plc_operation::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3411,20 +2695,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::identity::update_handle::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::update_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::update_handle::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3453,20 +2730,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::label::query_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::label::query_labels::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3495,20 +2765,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::moderation::create_report::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::moderation::create_report::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3537,20 +2800,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::apply_writes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::apply_writes::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3567,20 +2823,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::create_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::create_record::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3597,20 +2846,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::delete_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::delete_record::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3627,20 +2869,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::describe_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::describe_repo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3657,20 +2892,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::get_record::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3684,20 +2912,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::repo::import_repo::Error> { let response = self .xrpc - .send_xrpc::< - (), - Vec, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::import_repo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("application/vnd.ipld.car")), - }, - ) + .send_xrpc::<(), Vec, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::import_repo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), + encoding: Some(String::from("application/vnd.ipld.car")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3714,20 +2935,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_missing_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::list_missing_blobs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3744,20 +2958,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_records::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::list_records::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3774,20 +2981,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::put_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::put_record::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3804,20 +3004,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - Vec, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::upload_blob::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("*/*")), - }, - ) + .send_xrpc::<(), Vec, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::upload_blob::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), + encoding: Some(String::from("*/*")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3842,20 +3035,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::activate_account::Error> { let response = self .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::activate_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::activate_account::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3871,20 +3057,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::check_account_status::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::check_account_status::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3898,20 +3077,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::confirm_email::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::confirm_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::confirm_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3928,20 +3100,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3958,20 +3123,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_app_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3988,20 +3146,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_code::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_invite_code::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4018,20 +3169,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_invite_codes::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4048,20 +3192,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_session::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_session::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4072,26 +3209,16 @@ where pub async fn deactivate_account( &self, input: crate::com::atproto::server::deactivate_account::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::deactivate_account::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::server::deactivate_account::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::deactivate_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::deactivate_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4105,20 +3232,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_account::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::delete_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4131,20 +3251,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_session::Error> { let response = self .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::delete_session::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4160,20 +3273,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::describe_server::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::describe_server::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4190,21 +3296,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_account_invite_codes::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::get_account_invite_codes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4221,20 +3319,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_service_auth::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::get_service_auth::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4250,20 +3341,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::get_session::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4279,20 +3363,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::list_app_passwords::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::list_app_passwords::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4308,20 +3385,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::refresh_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::refresh_session::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4331,27 +3401,16 @@ where ///Initiate a user account deletion via email. pub async fn request_account_delete( &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_account_delete::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::server::request_account_delete::Error> { let response = self .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_account_delete::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_account_delete::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4361,27 +3420,17 @@ where ///Request an email with a code to confirm ownership of email. pub async fn request_email_confirmation( &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_email_confirmation::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::server::request_email_confirmation::Error> + { let response = self .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_confirmation::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_email_confirmation::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4397,20 +3446,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_update::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_email_update::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4421,27 +3463,16 @@ where pub async fn request_password_reset( &self, input: crate::com::atproto::server::request_password_reset::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_password_reset::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::server::request_password_reset::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_password_reset::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_password_reset::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4458,20 +3489,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reserve_signing_key::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::reserve_signing_key::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4485,20 +3509,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::reset_password::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reset_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::reset_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4509,26 +3526,16 @@ where pub async fn revoke_app_password( &self, input: crate::com::atproto::server::revoke_app_password::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::revoke_app_password::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::server::revoke_app_password::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::revoke_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::revoke_app_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4542,20 +3549,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::update_email::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::update_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::update_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4581,20 +3581,13 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blob::Error> { let response = self .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blob::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_blob::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -4608,20 +3601,13 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blocks::Error> { let response = self .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_blocks::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -4635,20 +3621,13 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_checkout::Error> { let response = self .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_checkout::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_checkout::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -4665,20 +3644,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_head::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_head::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4695,20 +3667,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_latest_commit::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_latest_commit::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4722,20 +3687,13 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_record::Error> { let response = self .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_record::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -4749,20 +3707,13 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_repo::Error> { let response = self .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_repo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -4779,20 +3730,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_repo_status::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4809,20 +3753,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::list_blobs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4839,20 +3776,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::list_repos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4866,20 +3796,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::notify_of_update::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::notify_of_update::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::sync::notify_of_update::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4893,20 +3816,13 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::request_crawl::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::request_crawl::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::sync::request_crawl::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4934,20 +3850,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::check_signup_queue::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::temp::check_signup_queue::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4964,20 +3873,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::fetch_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::temp::fetch_labels::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4988,27 +3890,16 @@ where pub async fn request_phone_verification( &self, input: crate::com::atproto::temp::request_phone_verification::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::temp::request_phone_verification::Error, - > { + ) -> atrium_xrpc::Result<(), crate::com::atproto::temp::request_phone_verification::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::temp::request_phone_verification::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::temp::request_phone_verification::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -5037,12 +3928,8 @@ where #[allow(unused_variables)] pub(crate) fn new(xrpc: std::sync::Arc) -> Self { Self { - communication: tools::ozone::communication::Service::new( - std::sync::Arc::clone(&xrpc), - ), - moderation: tools::ozone::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), + communication: tools::ozone::communication::Service::new(std::sync::Arc::clone(&xrpc)), + moderation: tools::ozone::moderation::Service::new(std::sync::Arc::clone(&xrpc)), server: tools::ozone::server::Service::new(std::sync::Arc::clone(&xrpc)), team: tools::ozone::team::Service::new(std::sync::Arc::clone(&xrpc)), _phantom: core::marker::PhantomData, @@ -5071,21 +3958,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::create_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::communication::create_template::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5096,27 +3975,16 @@ where pub async fn delete_template( &self, input: crate::tools::ozone::communication::delete_template::Input, - ) -> atrium_xrpc::Result< - (), - crate::tools::ozone::communication::delete_template::Error, - > { + ) -> atrium_xrpc::Result<(), crate::tools::ozone::communication::delete_template::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::delete_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::communication::delete_template::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -5132,21 +4000,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::communication::list_templates::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::communication::list_templates::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5163,21 +4023,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::update_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::communication::update_template::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5207,20 +4059,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::moderation::emit_event::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::moderation::emit_event::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5237,20 +4082,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_event::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::get_event::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5267,20 +4105,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::get_record::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5297,20 +4128,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::get_repo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5327,20 +4151,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_events::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::query_events::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5357,20 +4174,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_statuses::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::query_statuses::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5387,20 +4197,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::search_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::search_repos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5429,20 +4232,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::server::get_config::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) + .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::server::get_config::NSID.into(), + parameters: None, + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5472,20 +4268,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::add_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::team::add_member::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5499,20 +4288,13 @@ where ) -> atrium_xrpc::Result<(), crate::tools::ozone::team::delete_member::Error> { let response = self .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::delete_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::team::delete_member::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -5529,20 +4311,13 @@ where > { let response = self .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::team::list_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) + .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::team::list_members::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -5559,20 +4334,13 @@ where > { let response = self .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::update_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) + .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::team::update_member::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), diff --git a/atrium-api/src/com/atproto/label/defs.rs b/atrium-api/src/com/atproto/label/defs.rs index f5dad2a9..28702de0 100644 --- a/atrium-api/src/com/atproto/label/defs.rs +++ b/atrium-api/src/com/atproto/label/defs.rs @@ -62,9 +62,7 @@ pub struct LabelValueDefinitionStringsData { ///A short human-readable name for the label. pub name: String, } -pub type LabelValueDefinitionStrings = crate::types::Object< - LabelValueDefinitionStringsData, ->; +pub type LabelValueDefinitionStrings = crate::types::Object; ///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/tools/ozone/communication/list_templates.rs b/atrium-api/src/tools/ozone/communication/list_templates.rs index db978660..ec1321d1 100644 --- a/atrium-api/src/tools/ozone/communication/list_templates.rs +++ b/atrium-api/src/tools/ozone/communication/list_templates.rs @@ -4,9 +4,7 @@ pub const NSID: &str = "tools.ozone.communication.listTemplates"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct OutputData { - pub communication_templates: Vec< - crate::tools::ozone::communication::defs::TemplateView, - >, + pub communication_templates: Vec, } pub type Output = crate::types::Object; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/emit_event.rs b/atrium-api/src/tools/ozone/moderation/emit_event.rs index 301ce7ae..db5f6424 100644 --- a/atrium-api/src/tools/ozone/moderation/emit_event.rs +++ b/atrium-api/src/tools/ozone/moderation/emit_event.rs @@ -58,9 +58,7 @@ pub enum InputEventRefs { Box, ), #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ToolsOzoneModerationDefsModEventMute( - Box, - ), + ToolsOzoneModerationDefsModEventMute(Box), #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] ToolsOzoneModerationDefsModEventUnmute( Box, @@ -86,9 +84,7 @@ pub enum InputEventRefs { Box, ), #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ToolsOzoneModerationDefsModEventTag( - Box, - ), + ToolsOzoneModerationDefsModEventTag(Box), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] From ee4ff168d4819a2658f16320f400ea38f067954b Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:14:36 -0300 Subject: [PATCH 03/10] Revert "Formatting workspace with 'cargo fmt'" This reverts commit c96323d61ad1d9390176141c3701c65ffd9183c2. --- atrium-api/src/app/bsky/actor/defs.rs | 4 +- atrium-api/src/app/bsky/embed/record.rs | 8 +- atrium-api/src/app/bsky/feed/defs.rs | 4 +- atrium-api/src/app/bsky/feed/post.rs | 4 +- atrium-api/src/app/bsky/labeler/defs.rs | 5 +- atrium-api/src/chat/bsky/convo/get_log.rs | 8 +- .../src/chat/bsky/convo/get_messages.rs | 4 +- .../bsky/moderation/get_message_context.rs | 4 +- atrium-api/src/client.rs | 3574 +++++++++++------ atrium-api/src/com/atproto/label/defs.rs | 4 +- .../ozone/communication/list_templates.rs | 4 +- .../src/tools/ozone/moderation/emit_event.rs | 8 +- 12 files changed, 2445 insertions(+), 1186 deletions(-) diff --git a/atrium-api/src/app/bsky/actor/defs.rs b/atrium-api/src/app/bsky/actor/defs.rs index 356fad3a..c3c83b4a 100644 --- a/atrium-api/src/app/bsky/actor/defs.rs +++ b/atrium-api/src/app/bsky/actor/defs.rs @@ -229,7 +229,9 @@ pub struct ProfileViewDetailedData { #[serde(skip_serializing_if = "Option::is_none")] pub indexed_at: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub joined_via_starter_pack: Option, + pub joined_via_starter_pack: Option< + crate::app::bsky::graph::defs::StarterPackViewBasic, + >, #[serde(skip_serializing_if = "Option::is_none")] pub labels: Option>, #[serde(skip_serializing_if = "Option::is_none")] diff --git a/atrium-api/src/app/bsky/embed/record.rs b/atrium-api/src/app/bsky/embed/record.rs index 44776cf0..dd2e57d6 100644 --- a/atrium-api/src/app/bsky/embed/record.rs +++ b/atrium-api/src/app/bsky/embed/record.rs @@ -70,7 +70,9 @@ pub enum ViewRecordEmbedsItem { #[serde(rename = "app.bsky.embed.record#view")] AppBskyEmbedRecordView(Box), #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView(Box), + AppBskyEmbedRecordWithMediaView( + Box, + ), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] @@ -90,5 +92,7 @@ pub enum ViewRecordRefs { #[serde(rename = "app.bsky.labeler.defs#labelerView")] AppBskyLabelerDefsLabelerView(Box), #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] - AppBskyGraphDefsStarterPackViewBasic(Box), + AppBskyGraphDefsStarterPackViewBasic( + Box, + ), } diff --git a/atrium-api/src/app/bsky/feed/defs.rs b/atrium-api/src/app/bsky/feed/defs.rs index 261ee909..496dd896 100644 --- a/atrium-api/src/app/bsky/feed/defs.rs +++ b/atrium-api/src/app/bsky/feed/defs.rs @@ -221,7 +221,9 @@ pub enum PostViewEmbedRefs { #[serde(rename = "app.bsky.embed.record#view")] AppBskyEmbedRecordView(Box), #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView(Box), + AppBskyEmbedRecordWithMediaView( + Box, + ), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] diff --git a/atrium-api/src/app/bsky/feed/post.rs b/atrium-api/src/app/bsky/feed/post.rs index 53231201..e1316537 100644 --- a/atrium-api/src/app/bsky/feed/post.rs +++ b/atrium-api/src/app/bsky/feed/post.rs @@ -65,7 +65,9 @@ pub enum RecordEmbedRefs { #[serde(rename = "app.bsky.embed.record")] AppBskyEmbedRecordMain(Box), #[serde(rename = "app.bsky.embed.recordWithMedia")] - AppBskyEmbedRecordWithMediaMain(Box), + AppBskyEmbedRecordWithMediaMain( + Box, + ), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] diff --git a/atrium-api/src/app/bsky/labeler/defs.rs b/atrium-api/src/app/bsky/labeler/defs.rs index 9e034716..ca11f840 100644 --- a/atrium-api/src/app/bsky/labeler/defs.rs +++ b/atrium-api/src/app/bsky/labeler/defs.rs @@ -5,8 +5,9 @@ pub struct LabelerPoliciesData { ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. #[serde(skip_serializing_if = "Option::is_none")] - pub label_value_definitions: - Option>, + pub label_value_definitions: Option< + Vec, + >, ///The label values which this labeler publishes. May include global or custom labels. pub label_values: Vec, } diff --git a/atrium-api/src/chat/bsky/convo/get_log.rs b/atrium-api/src/chat/bsky/convo/get_log.rs index 3cb9e728..49d5897e 100644 --- a/atrium-api/src/chat/bsky/convo/get_log.rs +++ b/atrium-api/src/chat/bsky/convo/get_log.rs @@ -32,7 +32,11 @@ pub enum OutputLogsItem { #[serde(rename = "chat.bsky.convo.defs#logLeaveConvo")] ChatBskyConvoDefsLogLeaveConvo(Box), #[serde(rename = "chat.bsky.convo.defs#logCreateMessage")] - ChatBskyConvoDefsLogCreateMessage(Box), + ChatBskyConvoDefsLogCreateMessage( + Box, + ), #[serde(rename = "chat.bsky.convo.defs#logDeleteMessage")] - ChatBskyConvoDefsLogDeleteMessage(Box), + ChatBskyConvoDefsLogDeleteMessage( + Box, + ), } diff --git a/atrium-api/src/chat/bsky/convo/get_messages.rs b/atrium-api/src/chat/bsky/convo/get_messages.rs index 1f1f9624..8abe1658 100644 --- a/atrium-api/src/chat/bsky/convo/get_messages.rs +++ b/atrium-api/src/chat/bsky/convo/get_messages.rs @@ -33,5 +33,7 @@ pub enum OutputMessagesItem { #[serde(rename = "chat.bsky.convo.defs#messageView")] ChatBskyConvoDefsMessageView(Box), #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView(Box), + ChatBskyConvoDefsDeletedMessageView( + Box, + ), } diff --git a/atrium-api/src/chat/bsky/moderation/get_message_context.rs b/atrium-api/src/chat/bsky/moderation/get_message_context.rs index d6e8ffc4..c313a5f8 100644 --- a/atrium-api/src/chat/bsky/moderation/get_message_context.rs +++ b/atrium-api/src/chat/bsky/moderation/get_message_context.rs @@ -34,5 +34,7 @@ pub enum OutputMessagesItem { #[serde(rename = "chat.bsky.convo.defs#messageView")] ChatBskyConvoDefsMessageView(Box), #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView(Box), + ChatBskyConvoDefsDeletedMessageView( + Box, + ), } diff --git a/atrium-api/src/client.rs b/atrium-api/src/client.rs index b0dfd1b0..01b9a8b2 100644 --- a/atrium-api/src/client.rs +++ b/atrium-api/src/client.rs @@ -367,7 +367,9 @@ where feed: app::bsky::feed::Service::new(std::sync::Arc::clone(&xrpc)), graph: app::bsky::graph::Service::new(std::sync::Arc::clone(&xrpc)), labeler: app::bsky::labeler::Service::new(std::sync::Arc::clone(&xrpc)), - notification: app::bsky::notification::Service::new(std::sync::Arc::clone(&xrpc)), + notification: app::bsky::notification::Service::new( + std::sync::Arc::clone(&xrpc), + ), unspecced: app::bsky::unspecced::Service::new(std::sync::Arc::clone(&xrpc)), video: app::bsky::video::Service::new(std::sync::Arc::clone(&xrpc)), _phantom: core::marker::PhantomData, @@ -396,13 +398,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_preferences::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_preferences::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -419,13 +428,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profile::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_profile::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -442,13 +458,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profiles::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_profiles::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -465,13 +488,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_suggestions::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::get_suggestions::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -485,13 +515,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::actor::put_preferences::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::actor::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::actor::put_preferences::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -508,13 +545,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::search_actors::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -531,13 +575,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors_typeahead::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::actor::search_actors_typeahead::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -566,13 +617,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::describe_feed_generator::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::describe_feed_generator::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -589,13 +647,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_actor_feeds::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -612,13 +677,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_actor_likes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -635,13 +707,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_author_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_author_feed::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -658,13 +737,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -681,13 +767,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generator::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed_generator::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -704,13 +797,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generators::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed_generators::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -727,13 +827,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_feed_skeleton::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -750,13 +857,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_likes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -773,13 +887,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_list_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_list_feed::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -796,13 +917,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_post_thread::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_post_thread::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -819,13 +947,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_posts::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -842,13 +977,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_quotes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_quotes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -865,13 +1007,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_reposted_by::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_reposted_by::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -888,13 +1037,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_suggested_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_suggested_feeds::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -911,13 +1067,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_timeline::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::get_timeline::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -934,13 +1097,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::search_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::feed::search_posts::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -957,13 +1127,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::feed::send_interactions::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::feed::send_interactions::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -993,13 +1170,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_actor_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_actor_starter_packs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1016,13 +1200,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_blocks::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1039,13 +1230,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_followers::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1062,13 +1260,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_follows::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_follows::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1085,13 +1290,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_known_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_known_followers::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1108,13 +1320,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_list::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1131,13 +1350,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_list_blocks::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1154,13 +1380,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_list_mutes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1177,13 +1410,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_lists::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_lists::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1200,13 +1440,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_mutes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1223,13 +1470,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_relationships::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_relationships::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1246,13 +1500,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_pack::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_starter_pack::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1269,13 +1530,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_starter_packs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1292,13 +1560,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_suggested_follows_by_actor::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::graph::get_suggested_follows_by_actor::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1312,13 +1588,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::mute_actor::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1332,13 +1615,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor_list::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::mute_actor_list::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1352,13 +1642,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_thread::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::mute_thread::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1372,13 +1669,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::unmute_actor::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1392,13 +1696,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor_list::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::unmute_actor_list::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1412,13 +1723,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_thread::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::graph::unmute_thread::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1448,13 +1766,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::labeler::get_services::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::labeler::get_services::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1484,13 +1809,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::get_unread_count::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::notification::get_unread_count::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1507,13 +1839,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::list_notifications::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::notification::list_notifications::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1524,16 +1864,26 @@ where pub async fn put_preferences( &self, input: crate::app::bsky::notification::put_preferences::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::put_preferences::Error> { + ) -> atrium_xrpc::Result< + (), + crate::app::bsky::notification::put_preferences::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::notification::put_preferences::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1547,13 +1897,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::register_push::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::register_push::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::notification::register_push::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1567,13 +1924,20 @@ where ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::update_seen::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::update_seen::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::notification::update_seen::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -1603,13 +1967,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_popular_feed_generators::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::get_popular_feed_generators::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1626,13 +1998,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggestions_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::get_suggestions_skeleton::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1649,13 +2029,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_tagged_suggestions::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::get_tagged_suggestions::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1672,13 +2060,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_actors_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::search_actors_skeleton::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1695,13 +2091,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_posts_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::unspecced::search_posts_skeleton::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1731,13 +2135,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_job_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::video::get_job_status::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1753,13 +2164,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_upload_limits::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::app::bsky::video::get_upload_limits::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1776,13 +2194,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), Vec, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::video::upload_video::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("video/mp4")), - }) + .send_xrpc::< + (), + Vec, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::app::bsky::video::upload_video::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), + encoding: Some(String::from("video/mp4")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1813,7 +2238,9 @@ where Self { actor: chat::bsky::actor::Service::new(std::sync::Arc::clone(&xrpc)), convo: chat::bsky::convo::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: chat::bsky::moderation::Service::new(std::sync::Arc::clone(&xrpc)), + moderation: chat::bsky::moderation::Service::new( + std::sync::Arc::clone(&xrpc), + ), _phantom: core::marker::PhantomData, } } @@ -1838,13 +2265,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::actor::delete_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::actor::delete_account::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1853,16 +2287,26 @@ where } pub async fn export_account_data( &self, - ) -> atrium_xrpc::Result, crate::chat::bsky::actor::export_account_data::Error> { + ) -> atrium_xrpc::Result< + Vec, + crate::chat::bsky::actor::export_account_data::Error, + > { let response = self .xrpc - .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::actor::export_account_data::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::actor::export_account_data::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -1891,13 +2335,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::delete_message_for_self::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::delete_message_for_self::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1913,13 +2364,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_convo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1935,13 +2393,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo_for_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_convo_for_members::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1957,13 +2422,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_log::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_log::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -1979,13 +2451,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_messages::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::get_messages::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2001,13 +2480,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::leave_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::leave_convo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2023,13 +2509,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::list_convos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::convo::list_convos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2045,13 +2538,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::mute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::mute_convo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2067,13 +2567,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::send_message::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2089,13 +2596,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message_batch::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::send_message_batch::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2111,13 +2625,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::unmute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::unmute_convo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2133,13 +2654,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::update_read::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::convo::update_read::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2168,13 +2696,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_actor_metadata::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::moderation::get_actor_metadata::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2190,13 +2725,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_message_context::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::chat::bsky::moderation::get_message_context::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2206,16 +2749,27 @@ where pub async fn update_actor_access( &self, input: crate::chat::bsky::moderation::update_actor_access::Input, - ) -> atrium_xrpc::Result<(), crate::chat::bsky::moderation::update_actor_access::Error> { + ) -> atrium_xrpc::Result< + (), + crate::chat::bsky::moderation::update_actor_access::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::moderation::update_actor_access::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::chat::bsky::moderation::update_actor_access::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2245,7 +2799,9 @@ where admin: com::atproto::admin::Service::new(std::sync::Arc::clone(&xrpc)), identity: com::atproto::identity::Service::new(std::sync::Arc::clone(&xrpc)), label: com::atproto::label::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: com::atproto::moderation::Service::new(std::sync::Arc::clone(&xrpc)), + moderation: com::atproto::moderation::Service::new( + std::sync::Arc::clone(&xrpc), + ), repo: com::atproto::repo::Service::new(std::sync::Arc::clone(&xrpc)), server: com::atproto::server::Service::new(std::sync::Arc::clone(&xrpc)), sync: com::atproto::sync::Service::new(std::sync::Arc::clone(&xrpc)), @@ -2272,13 +2828,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::delete_account::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::delete_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2289,16 +2852,27 @@ where pub async fn disable_account_invites( &self, input: crate::com::atproto::admin::disable_account_invites::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::disable_account_invites::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::admin::disable_account_invites::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_account_invites::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::disable_account_invites::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2309,16 +2883,26 @@ where pub async fn disable_invite_codes( &self, input: crate::com::atproto::admin::disable_invite_codes::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::disable_invite_codes::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::admin::disable_invite_codes::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::disable_invite_codes::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2329,16 +2913,27 @@ where pub async fn enable_account_invites( &self, input: crate::com::atproto::admin::enable_account_invites::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::enable_account_invites::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::admin::enable_account_invites::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::enable_account_invites::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::enable_account_invites::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2355,13 +2950,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_info::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_account_info::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2378,13 +2980,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_infos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_account_infos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2401,13 +3010,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_invite_codes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_invite_codes::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2424,13 +3040,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_subject_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::get_subject_status::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2447,13 +3070,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::search_accounts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::admin::search_accounts::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2470,13 +3100,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::send_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::send_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2487,16 +3124,26 @@ where pub async fn update_account_email( &self, input: crate::com::atproto::admin::update_account_email::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::update_account_email::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::admin::update_account_email::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_account_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2507,16 +3154,26 @@ where pub async fn update_account_handle( &self, input: crate::com::atproto::admin::update_account_handle::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::update_account_handle::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::admin::update_account_handle::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_account_handle::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2527,16 +3184,27 @@ where pub async fn update_account_password( &self, input: crate::com::atproto::admin::update_account_password::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::update_account_password::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::admin::update_account_password::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_account_password::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2553,13 +3221,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_subject_status::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::admin::update_subject_status::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2587,13 +3262,21 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::get_recommended_did_credentials::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::identity::get_recommended_did_credentials::NSID + .into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2609,13 +3292,21 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::request_plc_operation_signature::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::request_plc_operation_signature::NSID + .into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2632,13 +3323,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::resolve_handle::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::identity::resolve_handle::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2655,13 +3353,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::sign_plc_operation::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::sign_plc_operation::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2672,16 +3377,27 @@ where pub async fn submit_plc_operation( &self, input: crate::com::atproto::identity::submit_plc_operation::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::identity::submit_plc_operation::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::identity::submit_plc_operation::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::submit_plc_operation::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::submit_plc_operation::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2695,13 +3411,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::identity::update_handle::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::update_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::identity::update_handle::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2730,13 +3453,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::label::query_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::label::query_labels::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2765,13 +3495,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::moderation::create_report::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::moderation::create_report::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2800,13 +3537,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::apply_writes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::apply_writes::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2823,13 +3567,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::create_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::create_record::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2846,13 +3597,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::delete_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::delete_record::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2869,13 +3627,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::describe_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::describe_repo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2892,13 +3657,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::get_record::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2912,13 +3684,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::repo::import_repo::Error> { let response = self .xrpc - .send_xrpc::<(), Vec, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::import_repo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("application/vnd.ipld.car")), - }) + .send_xrpc::< + (), + Vec, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::import_repo::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), + encoding: Some(String::from("application/vnd.ipld.car")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -2935,13 +3714,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_missing_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::list_missing_blobs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2958,13 +3744,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_records::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::repo::list_records::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -2981,13 +3774,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::put_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::put_record::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3004,13 +3804,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), Vec, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::upload_blob::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("*/*")), - }) + .send_xrpc::< + (), + Vec, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::repo::upload_blob::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), + encoding: Some(String::from("*/*")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3035,13 +3842,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::activate_account::Error> { let response = self .xrpc - .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::activate_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::activate_account::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3057,13 +3871,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::check_account_status::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::check_account_status::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3077,13 +3898,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::confirm_email::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::confirm_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::confirm_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3100,13 +3928,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3123,13 +3958,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_app_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3146,13 +3988,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_code::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_invite_code::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3169,13 +4018,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_invite_codes::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3192,13 +4048,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_session::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::create_session::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3209,16 +4072,26 @@ where pub async fn deactivate_account( &self, input: crate::com::atproto::server::deactivate_account::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::deactivate_account::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::server::deactivate_account::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::deactivate_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::deactivate_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3232,13 +4105,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_account::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::delete_account::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3251,13 +4131,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_session::Error> { let response = self .xrpc - .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::delete_session::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3273,13 +4160,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::describe_server::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::describe_server::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3296,13 +4190,21 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_account_invite_codes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::get_account_invite_codes::NSID + .into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3319,13 +4221,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_service_auth::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::get_service_auth::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3341,13 +4250,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::get_session::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3363,13 +4279,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::list_app_passwords::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::server::list_app_passwords::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3385,13 +4308,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::refresh_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::refresh_session::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3401,16 +4331,27 @@ where ///Initiate a user account deletion via email. pub async fn request_account_delete( &self, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::request_account_delete::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::server::request_account_delete::Error, + > { let response = self .xrpc - .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_account_delete::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_account_delete::NSID + .into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3420,17 +4361,27 @@ where ///Request an email with a code to confirm ownership of email. pub async fn request_email_confirmation( &self, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::request_email_confirmation::Error> - { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::server::request_email_confirmation::Error, + > { let response = self .xrpc - .send_xrpc::<(), (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_confirmation::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_email_confirmation::NSID + .into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3446,13 +4397,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_update::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_email_update::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3463,16 +4421,27 @@ where pub async fn request_password_reset( &self, input: crate::com::atproto::server::request_password_reset::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::request_password_reset::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::server::request_password_reset::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_password_reset::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::request_password_reset::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3489,13 +4458,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reserve_signing_key::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::reserve_signing_key::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3509,13 +4485,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::reset_password::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reset_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::reset_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3526,16 +4509,26 @@ where pub async fn revoke_app_password( &self, input: crate::com::atproto::server::revoke_app_password::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::revoke_app_password::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::server::revoke_app_password::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::revoke_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::revoke_app_password::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3549,13 +4542,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::server::update_email::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::update_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::server::update_email::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3581,13 +4581,20 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blob::Error> { let response = self .xrpc - .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blob::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_blob::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -3601,13 +4608,20 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blocks::Error> { let response = self .xrpc - .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_blocks::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -3621,13 +4635,20 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_checkout::Error> { let response = self .xrpc - .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_checkout::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_checkout::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -3644,13 +4665,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_head::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_head::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3667,13 +4695,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_latest_commit::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_latest_commit::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3687,13 +4722,20 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_record::Error> { let response = self .xrpc - .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_record::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -3707,13 +4749,20 @@ where ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_repo::Error> { let response = self .xrpc - .send_xrpc::<_, (), (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_repo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), @@ -3730,13 +4779,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::get_repo_status::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3753,13 +4809,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::list_blobs::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3776,13 +4839,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::sync::list_repos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3796,13 +4866,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::notify_of_update::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::notify_of_update::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::sync::notify_of_update::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3816,13 +4893,20 @@ where ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::request_crawl::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::request_crawl::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::sync::request_crawl::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3850,13 +4934,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::check_signup_queue::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::temp::check_signup_queue::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3873,13 +4964,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::fetch_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::com::atproto::temp::fetch_labels::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3890,16 +4988,27 @@ where pub async fn request_phone_verification( &self, input: crate::com::atproto::temp::request_phone_verification::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::temp::request_phone_verification::Error> { + ) -> atrium_xrpc::Result< + (), + crate::com::atproto::temp::request_phone_verification::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::temp::request_phone_verification::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::com::atproto::temp::request_phone_verification::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -3928,8 +5037,12 @@ where #[allow(unused_variables)] pub(crate) fn new(xrpc: std::sync::Arc) -> Self { Self { - communication: tools::ozone::communication::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: tools::ozone::moderation::Service::new(std::sync::Arc::clone(&xrpc)), + communication: tools::ozone::communication::Service::new( + std::sync::Arc::clone(&xrpc), + ), + moderation: tools::ozone::moderation::Service::new( + std::sync::Arc::clone(&xrpc), + ), server: tools::ozone::server::Service::new(std::sync::Arc::clone(&xrpc)), team: tools::ozone::team::Service::new(std::sync::Arc::clone(&xrpc)), _phantom: core::marker::PhantomData, @@ -3958,13 +5071,21 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::create_template::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::communication::create_template::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -3975,16 +5096,27 @@ where pub async fn delete_template( &self, input: crate::tools::ozone::communication::delete_template::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::communication::delete_template::Error> { + ) -> atrium_xrpc::Result< + (), + crate::tools::ozone::communication::delete_template::Error, + > { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::delete_template::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::communication::delete_template::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4000,13 +5132,21 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::communication::list_templates::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::communication::list_templates::NSID + .into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4023,13 +5163,21 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::update_template::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::communication::update_template::NSID + .into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4059,13 +5207,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::moderation::emit_event::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::moderation::emit_event::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4082,13 +5237,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_event::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::get_event::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4105,13 +5267,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::get_record::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4128,13 +5297,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::get_repo::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4151,13 +5327,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_events::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::query_events::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4174,13 +5357,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_statuses::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::query_statuses::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4197,13 +5387,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::search_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::moderation::search_repos::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4232,13 +5429,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::server::get_config::NSID.into(), - parameters: None, - input: None, - encoding: None, - }) + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::server::get_config::NSID.into(), + parameters: None, + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4268,13 +5472,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::add_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::team::add_member::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4288,13 +5499,20 @@ where ) -> atrium_xrpc::Result<(), crate::tools::ozone::team::delete_member::Error> { let response = self .xrpc - .send_xrpc::<(), _, (), _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::delete_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::team::delete_member::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), @@ -4311,13 +5529,20 @@ where > { let response = self .xrpc - .send_xrpc::<_, (), _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::team::list_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }) + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + nsid: crate::tools::ozone::team::list_members::NSID.into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), @@ -4334,13 +5559,20 @@ where > { let response = self .xrpc - .send_xrpc::<(), _, _, _>(&atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::update_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }) + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + nsid: crate::tools::ozone::team::update_member::NSID.into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) .await?; match response { atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), diff --git a/atrium-api/src/com/atproto/label/defs.rs b/atrium-api/src/com/atproto/label/defs.rs index 28702de0..f5dad2a9 100644 --- a/atrium-api/src/com/atproto/label/defs.rs +++ b/atrium-api/src/com/atproto/label/defs.rs @@ -62,7 +62,9 @@ pub struct LabelValueDefinitionStringsData { ///A short human-readable name for the label. pub name: String, } -pub type LabelValueDefinitionStrings = crate::types::Object; +pub type LabelValueDefinitionStrings = crate::types::Object< + LabelValueDefinitionStringsData, +>; ///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/tools/ozone/communication/list_templates.rs b/atrium-api/src/tools/ozone/communication/list_templates.rs index ec1321d1..db978660 100644 --- a/atrium-api/src/tools/ozone/communication/list_templates.rs +++ b/atrium-api/src/tools/ozone/communication/list_templates.rs @@ -4,7 +4,9 @@ pub const NSID: &str = "tools.ozone.communication.listTemplates"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct OutputData { - pub communication_templates: Vec, + pub communication_templates: Vec< + crate::tools::ozone::communication::defs::TemplateView, + >, } pub type Output = crate::types::Object; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/emit_event.rs b/atrium-api/src/tools/ozone/moderation/emit_event.rs index db5f6424..301ce7ae 100644 --- a/atrium-api/src/tools/ozone/moderation/emit_event.rs +++ b/atrium-api/src/tools/ozone/moderation/emit_event.rs @@ -58,7 +58,9 @@ pub enum InputEventRefs { Box, ), #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ToolsOzoneModerationDefsModEventMute(Box), + ToolsOzoneModerationDefsModEventMute( + Box, + ), #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] ToolsOzoneModerationDefsModEventUnmute( Box, @@ -84,7 +86,9 @@ pub enum InputEventRefs { Box, ), #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ToolsOzoneModerationDefsModEventTag(Box), + ToolsOzoneModerationDefsModEventTag( + Box, + ), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] From accf12ef98d1483149ab46cac5e303168ab9a3ea Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:15:25 -0300 Subject: [PATCH 04/10] Adding @generated annotation to generator.rs --- lexicon/atrium-codegen/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexicon/atrium-codegen/src/generator.rs b/lexicon/atrium-codegen/src/generator.rs index a8f67685..844d4de5 100644 --- a/lexicon/atrium-codegen/src/generator.rs +++ b/lexicon/atrium-codegen/src/generator.rs @@ -15,7 +15,7 @@ use std::fs::{create_dir_all, read_dir, File}; use std::io::Write; use std::path::{Path, PathBuf}; -const HEADER: &str = "// This file is generated by atrium-codegen. DO NOT EDIT."; +const HEADER: &str = "// @generated - This file is generated by atrium-codegen. DO NOT EDIT."; pub(crate) fn generate_schemas( schema: &LexiconDoc, From c20b0876cd2c01aca34812613c55e49b536f4d7e Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:16:54 -0300 Subject: [PATCH 05/10] Re-generating files to add annotation --- atrium-api/src/app.rs | 2 +- atrium-api/src/app/bsky.rs | 2 +- atrium-api/src/app/bsky/actor.rs | 2 +- atrium-api/src/app/bsky/actor/defs.rs | 2 +- atrium-api/src/app/bsky/actor/get_preferences.rs | 2 +- atrium-api/src/app/bsky/actor/get_profile.rs | 2 +- atrium-api/src/app/bsky/actor/get_profiles.rs | 2 +- atrium-api/src/app/bsky/actor/get_suggestions.rs | 2 +- atrium-api/src/app/bsky/actor/profile.rs | 2 +- atrium-api/src/app/bsky/actor/put_preferences.rs | 2 +- atrium-api/src/app/bsky/actor/search_actors.rs | 2 +- atrium-api/src/app/bsky/actor/search_actors_typeahead.rs | 2 +- atrium-api/src/app/bsky/embed.rs | 2 +- atrium-api/src/app/bsky/embed/defs.rs | 2 +- atrium-api/src/app/bsky/embed/external.rs | 2 +- atrium-api/src/app/bsky/embed/images.rs | 2 +- atrium-api/src/app/bsky/embed/record.rs | 2 +- atrium-api/src/app/bsky/embed/record_with_media.rs | 2 +- atrium-api/src/app/bsky/embed/video.rs | 2 +- atrium-api/src/app/bsky/feed.rs | 2 +- atrium-api/src/app/bsky/feed/defs.rs | 2 +- atrium-api/src/app/bsky/feed/describe_feed_generator.rs | 2 +- atrium-api/src/app/bsky/feed/generator.rs | 2 +- atrium-api/src/app/bsky/feed/get_actor_feeds.rs | 2 +- atrium-api/src/app/bsky/feed/get_actor_likes.rs | 2 +- atrium-api/src/app/bsky/feed/get_author_feed.rs | 2 +- atrium-api/src/app/bsky/feed/get_feed.rs | 2 +- atrium-api/src/app/bsky/feed/get_feed_generator.rs | 2 +- atrium-api/src/app/bsky/feed/get_feed_generators.rs | 2 +- atrium-api/src/app/bsky/feed/get_feed_skeleton.rs | 2 +- atrium-api/src/app/bsky/feed/get_likes.rs | 2 +- atrium-api/src/app/bsky/feed/get_list_feed.rs | 2 +- atrium-api/src/app/bsky/feed/get_post_thread.rs | 2 +- atrium-api/src/app/bsky/feed/get_posts.rs | 2 +- atrium-api/src/app/bsky/feed/get_quotes.rs | 2 +- atrium-api/src/app/bsky/feed/get_reposted_by.rs | 2 +- atrium-api/src/app/bsky/feed/get_suggested_feeds.rs | 2 +- atrium-api/src/app/bsky/feed/get_timeline.rs | 2 +- atrium-api/src/app/bsky/feed/like.rs | 2 +- atrium-api/src/app/bsky/feed/post.rs | 2 +- atrium-api/src/app/bsky/feed/postgate.rs | 2 +- atrium-api/src/app/bsky/feed/repost.rs | 2 +- atrium-api/src/app/bsky/feed/search_posts.rs | 2 +- atrium-api/src/app/bsky/feed/send_interactions.rs | 2 +- atrium-api/src/app/bsky/feed/threadgate.rs | 2 +- atrium-api/src/app/bsky/graph.rs | 2 +- atrium-api/src/app/bsky/graph/block.rs | 2 +- atrium-api/src/app/bsky/graph/defs.rs | 2 +- atrium-api/src/app/bsky/graph/follow.rs | 2 +- atrium-api/src/app/bsky/graph/get_actor_starter_packs.rs | 2 +- atrium-api/src/app/bsky/graph/get_blocks.rs | 2 +- atrium-api/src/app/bsky/graph/get_followers.rs | 2 +- atrium-api/src/app/bsky/graph/get_follows.rs | 2 +- atrium-api/src/app/bsky/graph/get_known_followers.rs | 2 +- atrium-api/src/app/bsky/graph/get_list.rs | 2 +- atrium-api/src/app/bsky/graph/get_list_blocks.rs | 2 +- atrium-api/src/app/bsky/graph/get_list_mutes.rs | 2 +- atrium-api/src/app/bsky/graph/get_lists.rs | 2 +- atrium-api/src/app/bsky/graph/get_mutes.rs | 2 +- atrium-api/src/app/bsky/graph/get_relationships.rs | 2 +- atrium-api/src/app/bsky/graph/get_starter_pack.rs | 2 +- atrium-api/src/app/bsky/graph/get_starter_packs.rs | 2 +- atrium-api/src/app/bsky/graph/get_suggested_follows_by_actor.rs | 2 +- atrium-api/src/app/bsky/graph/list.rs | 2 +- atrium-api/src/app/bsky/graph/listblock.rs | 2 +- atrium-api/src/app/bsky/graph/listitem.rs | 2 +- atrium-api/src/app/bsky/graph/mute_actor.rs | 2 +- atrium-api/src/app/bsky/graph/mute_actor_list.rs | 2 +- atrium-api/src/app/bsky/graph/mute_thread.rs | 2 +- atrium-api/src/app/bsky/graph/starterpack.rs | 2 +- atrium-api/src/app/bsky/graph/unmute_actor.rs | 2 +- atrium-api/src/app/bsky/graph/unmute_actor_list.rs | 2 +- atrium-api/src/app/bsky/graph/unmute_thread.rs | 2 +- atrium-api/src/app/bsky/labeler.rs | 2 +- atrium-api/src/app/bsky/labeler/defs.rs | 2 +- atrium-api/src/app/bsky/labeler/get_services.rs | 2 +- atrium-api/src/app/bsky/labeler/service.rs | 2 +- atrium-api/src/app/bsky/notification.rs | 2 +- atrium-api/src/app/bsky/notification/get_unread_count.rs | 2 +- atrium-api/src/app/bsky/notification/list_notifications.rs | 2 +- atrium-api/src/app/bsky/notification/put_preferences.rs | 2 +- atrium-api/src/app/bsky/notification/register_push.rs | 2 +- atrium-api/src/app/bsky/notification/update_seen.rs | 2 +- atrium-api/src/app/bsky/richtext.rs | 2 +- atrium-api/src/app/bsky/richtext/facet.rs | 2 +- atrium-api/src/app/bsky/unspecced.rs | 2 +- atrium-api/src/app/bsky/unspecced/defs.rs | 2 +- .../src/app/bsky/unspecced/get_popular_feed_generators.rs | 2 +- atrium-api/src/app/bsky/unspecced/get_suggestions_skeleton.rs | 2 +- atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs | 2 +- atrium-api/src/app/bsky/unspecced/search_actors_skeleton.rs | 2 +- atrium-api/src/app/bsky/unspecced/search_posts_skeleton.rs | 2 +- atrium-api/src/app/bsky/video.rs | 2 +- atrium-api/src/app/bsky/video/defs.rs | 2 +- atrium-api/src/app/bsky/video/get_job_status.rs | 2 +- atrium-api/src/app/bsky/video/get_upload_limits.rs | 2 +- atrium-api/src/app/bsky/video/upload_video.rs | 2 +- atrium-api/src/chat.rs | 2 +- atrium-api/src/chat/bsky.rs | 2 +- atrium-api/src/chat/bsky/actor.rs | 2 +- atrium-api/src/chat/bsky/actor/declaration.rs | 2 +- atrium-api/src/chat/bsky/actor/defs.rs | 2 +- atrium-api/src/chat/bsky/actor/delete_account.rs | 2 +- atrium-api/src/chat/bsky/actor/export_account_data.rs | 2 +- atrium-api/src/chat/bsky/convo.rs | 2 +- atrium-api/src/chat/bsky/convo/defs.rs | 2 +- atrium-api/src/chat/bsky/convo/delete_message_for_self.rs | 2 +- atrium-api/src/chat/bsky/convo/get_convo.rs | 2 +- atrium-api/src/chat/bsky/convo/get_convo_for_members.rs | 2 +- atrium-api/src/chat/bsky/convo/get_log.rs | 2 +- atrium-api/src/chat/bsky/convo/get_messages.rs | 2 +- atrium-api/src/chat/bsky/convo/leave_convo.rs | 2 +- atrium-api/src/chat/bsky/convo/list_convos.rs | 2 +- atrium-api/src/chat/bsky/convo/mute_convo.rs | 2 +- atrium-api/src/chat/bsky/convo/send_message.rs | 2 +- atrium-api/src/chat/bsky/convo/send_message_batch.rs | 2 +- atrium-api/src/chat/bsky/convo/unmute_convo.rs | 2 +- atrium-api/src/chat/bsky/convo/update_read.rs | 2 +- atrium-api/src/chat/bsky/moderation.rs | 2 +- atrium-api/src/chat/bsky/moderation/get_actor_metadata.rs | 2 +- atrium-api/src/chat/bsky/moderation/get_message_context.rs | 2 +- atrium-api/src/chat/bsky/moderation/update_actor_access.rs | 2 +- atrium-api/src/client.rs | 2 +- atrium-api/src/com.rs | 2 +- atrium-api/src/com/atproto.rs | 2 +- atrium-api/src/com/atproto/admin.rs | 2 +- atrium-api/src/com/atproto/admin/defs.rs | 2 +- atrium-api/src/com/atproto/admin/delete_account.rs | 2 +- atrium-api/src/com/atproto/admin/disable_account_invites.rs | 2 +- atrium-api/src/com/atproto/admin/disable_invite_codes.rs | 2 +- atrium-api/src/com/atproto/admin/enable_account_invites.rs | 2 +- atrium-api/src/com/atproto/admin/get_account_info.rs | 2 +- atrium-api/src/com/atproto/admin/get_account_infos.rs | 2 +- atrium-api/src/com/atproto/admin/get_invite_codes.rs | 2 +- atrium-api/src/com/atproto/admin/get_subject_status.rs | 2 +- atrium-api/src/com/atproto/admin/search_accounts.rs | 2 +- atrium-api/src/com/atproto/admin/send_email.rs | 2 +- atrium-api/src/com/atproto/admin/update_account_email.rs | 2 +- atrium-api/src/com/atproto/admin/update_account_handle.rs | 2 +- atrium-api/src/com/atproto/admin/update_account_password.rs | 2 +- atrium-api/src/com/atproto/admin/update_subject_status.rs | 2 +- atrium-api/src/com/atproto/identity.rs | 2 +- .../src/com/atproto/identity/get_recommended_did_credentials.rs | 2 +- .../src/com/atproto/identity/request_plc_operation_signature.rs | 2 +- atrium-api/src/com/atproto/identity/resolve_handle.rs | 2 +- atrium-api/src/com/atproto/identity/sign_plc_operation.rs | 2 +- atrium-api/src/com/atproto/identity/submit_plc_operation.rs | 2 +- atrium-api/src/com/atproto/identity/update_handle.rs | 2 +- atrium-api/src/com/atproto/label.rs | 2 +- atrium-api/src/com/atproto/label/defs.rs | 2 +- atrium-api/src/com/atproto/label/query_labels.rs | 2 +- atrium-api/src/com/atproto/label/subscribe_labels.rs | 2 +- atrium-api/src/com/atproto/moderation.rs | 2 +- atrium-api/src/com/atproto/moderation/create_report.rs | 2 +- atrium-api/src/com/atproto/moderation/defs.rs | 2 +- atrium-api/src/com/atproto/repo.rs | 2 +- atrium-api/src/com/atproto/repo/apply_writes.rs | 2 +- atrium-api/src/com/atproto/repo/create_record.rs | 2 +- atrium-api/src/com/atproto/repo/defs.rs | 2 +- atrium-api/src/com/atproto/repo/delete_record.rs | 2 +- atrium-api/src/com/atproto/repo/describe_repo.rs | 2 +- atrium-api/src/com/atproto/repo/get_record.rs | 2 +- atrium-api/src/com/atproto/repo/import_repo.rs | 2 +- atrium-api/src/com/atproto/repo/list_missing_blobs.rs | 2 +- atrium-api/src/com/atproto/repo/list_records.rs | 2 +- atrium-api/src/com/atproto/repo/put_record.rs | 2 +- atrium-api/src/com/atproto/repo/strong_ref.rs | 2 +- atrium-api/src/com/atproto/repo/upload_blob.rs | 2 +- atrium-api/src/com/atproto/server.rs | 2 +- atrium-api/src/com/atproto/server/activate_account.rs | 2 +- atrium-api/src/com/atproto/server/check_account_status.rs | 2 +- atrium-api/src/com/atproto/server/confirm_email.rs | 2 +- atrium-api/src/com/atproto/server/create_account.rs | 2 +- atrium-api/src/com/atproto/server/create_app_password.rs | 2 +- atrium-api/src/com/atproto/server/create_invite_code.rs | 2 +- atrium-api/src/com/atproto/server/create_invite_codes.rs | 2 +- atrium-api/src/com/atproto/server/create_session.rs | 2 +- atrium-api/src/com/atproto/server/deactivate_account.rs | 2 +- atrium-api/src/com/atproto/server/defs.rs | 2 +- atrium-api/src/com/atproto/server/delete_account.rs | 2 +- atrium-api/src/com/atproto/server/delete_session.rs | 2 +- atrium-api/src/com/atproto/server/describe_server.rs | 2 +- atrium-api/src/com/atproto/server/get_account_invite_codes.rs | 2 +- atrium-api/src/com/atproto/server/get_service_auth.rs | 2 +- atrium-api/src/com/atproto/server/get_session.rs | 2 +- atrium-api/src/com/atproto/server/list_app_passwords.rs | 2 +- atrium-api/src/com/atproto/server/refresh_session.rs | 2 +- atrium-api/src/com/atproto/server/request_account_delete.rs | 2 +- atrium-api/src/com/atproto/server/request_email_confirmation.rs | 2 +- atrium-api/src/com/atproto/server/request_email_update.rs | 2 +- atrium-api/src/com/atproto/server/request_password_reset.rs | 2 +- atrium-api/src/com/atproto/server/reserve_signing_key.rs | 2 +- atrium-api/src/com/atproto/server/reset_password.rs | 2 +- atrium-api/src/com/atproto/server/revoke_app_password.rs | 2 +- atrium-api/src/com/atproto/server/update_email.rs | 2 +- atrium-api/src/com/atproto/sync.rs | 2 +- atrium-api/src/com/atproto/sync/get_blob.rs | 2 +- atrium-api/src/com/atproto/sync/get_blocks.rs | 2 +- atrium-api/src/com/atproto/sync/get_checkout.rs | 2 +- atrium-api/src/com/atproto/sync/get_head.rs | 2 +- atrium-api/src/com/atproto/sync/get_latest_commit.rs | 2 +- atrium-api/src/com/atproto/sync/get_record.rs | 2 +- atrium-api/src/com/atproto/sync/get_repo.rs | 2 +- atrium-api/src/com/atproto/sync/get_repo_status.rs | 2 +- atrium-api/src/com/atproto/sync/list_blobs.rs | 2 +- atrium-api/src/com/atproto/sync/list_repos.rs | 2 +- atrium-api/src/com/atproto/sync/notify_of_update.rs | 2 +- atrium-api/src/com/atproto/sync/request_crawl.rs | 2 +- atrium-api/src/com/atproto/sync/subscribe_repos.rs | 2 +- atrium-api/src/com/atproto/temp.rs | 2 +- atrium-api/src/com/atproto/temp/check_signup_queue.rs | 2 +- atrium-api/src/com/atproto/temp/fetch_labels.rs | 2 +- atrium-api/src/com/atproto/temp/request_phone_verification.rs | 2 +- atrium-api/src/record.rs | 2 +- atrium-api/src/tools.rs | 2 +- atrium-api/src/tools/ozone.rs | 2 +- atrium-api/src/tools/ozone/communication.rs | 2 +- atrium-api/src/tools/ozone/communication/create_template.rs | 2 +- atrium-api/src/tools/ozone/communication/defs.rs | 2 +- atrium-api/src/tools/ozone/communication/delete_template.rs | 2 +- atrium-api/src/tools/ozone/communication/list_templates.rs | 2 +- atrium-api/src/tools/ozone/communication/update_template.rs | 2 +- atrium-api/src/tools/ozone/moderation.rs | 2 +- atrium-api/src/tools/ozone/moderation/defs.rs | 2 +- atrium-api/src/tools/ozone/moderation/emit_event.rs | 2 +- atrium-api/src/tools/ozone/moderation/get_event.rs | 2 +- atrium-api/src/tools/ozone/moderation/get_record.rs | 2 +- atrium-api/src/tools/ozone/moderation/get_repo.rs | 2 +- atrium-api/src/tools/ozone/moderation/query_events.rs | 2 +- atrium-api/src/tools/ozone/moderation/query_statuses.rs | 2 +- atrium-api/src/tools/ozone/moderation/search_repos.rs | 2 +- atrium-api/src/tools/ozone/server.rs | 2 +- atrium-api/src/tools/ozone/server/get_config.rs | 2 +- atrium-api/src/tools/ozone/team.rs | 2 +- atrium-api/src/tools/ozone/team/add_member.rs | 2 +- atrium-api/src/tools/ozone/team/defs.rs | 2 +- atrium-api/src/tools/ozone/team/delete_member.rs | 2 +- atrium-api/src/tools/ozone/team/list_members.rs | 2 +- atrium-api/src/tools/ozone/team/update_member.rs | 2 +- 239 files changed, 239 insertions(+), 239 deletions(-) diff --git a/atrium-api/src/app.rs b/atrium-api/src/app.rs index 8854e101..4d988696 100644 --- a/atrium-api/src/app.rs +++ b/atrium-api/src/app.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app` namespace. #[cfg_attr(docsrs, doc(cfg(feature = "namespace-appbsky")))] #[cfg(feature = "namespace-appbsky")] diff --git a/atrium-api/src/app/bsky.rs b/atrium-api/src/app/bsky.rs index afbfc4e2..eb73e25c 100644 --- a/atrium-api/src/app/bsky.rs +++ b/atrium-api/src/app/bsky.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky` namespace. pub mod actor; pub mod embed; diff --git a/atrium-api/src/app/bsky/actor.rs b/atrium-api/src/app/bsky/actor.rs index 53a6a420..9510d377 100644 --- a/atrium-api/src/app/bsky/actor.rs +++ b/atrium-api/src/app/bsky/actor.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor` namespace. pub mod defs; pub mod get_preferences; diff --git a/atrium-api/src/app/bsky/actor/defs.rs b/atrium-api/src/app/bsky/actor/defs.rs index c3c83b4a..4cd35dfd 100644 --- a/atrium-api/src/app/bsky/actor/defs.rs +++ b/atrium-api/src/app/bsky/actor/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/actor/get_preferences.rs b/atrium-api/src/app/bsky/actor/get_preferences.rs index ad2d354b..d6b04a35 100644 --- a/atrium-api/src/app/bsky/actor/get_preferences.rs +++ b/atrium-api/src/app/bsky/actor/get_preferences.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.getPreferences` namespace. pub const NSID: &str = "app.bsky.actor.getPreferences"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/actor/get_profile.rs b/atrium-api/src/app/bsky/actor/get_profile.rs index bb123f61..3c05609e 100644 --- a/atrium-api/src/app/bsky/actor/get_profile.rs +++ b/atrium-api/src/app/bsky/actor/get_profile.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.getProfile` namespace. pub const NSID: &str = "app.bsky.actor.getProfile"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/actor/get_profiles.rs b/atrium-api/src/app/bsky/actor/get_profiles.rs index 0ecfcc01..70d6cd45 100644 --- a/atrium-api/src/app/bsky/actor/get_profiles.rs +++ b/atrium-api/src/app/bsky/actor/get_profiles.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.getProfiles` namespace. pub const NSID: &str = "app.bsky.actor.getProfiles"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/actor/get_suggestions.rs b/atrium-api/src/app/bsky/actor/get_suggestions.rs index d17c5065..6e743f35 100644 --- a/atrium-api/src/app/bsky/actor/get_suggestions.rs +++ b/atrium-api/src/app/bsky/actor/get_suggestions.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.getSuggestions` namespace. pub const NSID: &str = "app.bsky.actor.getSuggestions"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/actor/profile.rs b/atrium-api/src/app/bsky/actor/profile.rs index 4c51ba8c..ac95c0cf 100644 --- a/atrium-api/src/app/bsky/actor/profile.rs +++ b/atrium-api/src/app/bsky/actor/profile.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.profile` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/actor/put_preferences.rs b/atrium-api/src/app/bsky/actor/put_preferences.rs index 92d2f70b..437591d6 100644 --- a/atrium-api/src/app/bsky/actor/put_preferences.rs +++ b/atrium-api/src/app/bsky/actor/put_preferences.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.putPreferences` namespace. pub const NSID: &str = "app.bsky.actor.putPreferences"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/actor/search_actors.rs b/atrium-api/src/app/bsky/actor/search_actors.rs index 93cb69be..d4c94880 100644 --- a/atrium-api/src/app/bsky/actor/search_actors.rs +++ b/atrium-api/src/app/bsky/actor/search_actors.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.searchActors` namespace. pub const NSID: &str = "app.bsky.actor.searchActors"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/actor/search_actors_typeahead.rs b/atrium-api/src/app/bsky/actor/search_actors_typeahead.rs index 37b37d4a..f670197b 100644 --- a/atrium-api/src/app/bsky/actor/search_actors_typeahead.rs +++ b/atrium-api/src/app/bsky/actor/search_actors_typeahead.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.actor.searchActorsTypeahead` namespace. pub const NSID: &str = "app.bsky.actor.searchActorsTypeahead"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/embed.rs b/atrium-api/src/app/bsky/embed.rs index 15d26873..0f6a27c5 100644 --- a/atrium-api/src/app/bsky/embed.rs +++ b/atrium-api/src/app/bsky/embed.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed` namespace. pub mod defs; pub mod external; diff --git a/atrium-api/src/app/bsky/embed/defs.rs b/atrium-api/src/app/bsky/embed/defs.rs index d822173c..ebfcded8 100644 --- a/atrium-api/src/app/bsky/embed/defs.rs +++ b/atrium-api/src/app/bsky/embed/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed.defs` namespace. ///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/embed/external.rs b/atrium-api/src/app/bsky/embed/external.rs index b59cd018..0b761c6c 100644 --- a/atrium-api/src/app/bsky/embed/external.rs +++ b/atrium-api/src/app/bsky/embed/external.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed.external` namespace. ///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/embed/images.rs b/atrium-api/src/app/bsky/embed/images.rs index 012168aa..92a45a9b 100644 --- a/atrium-api/src/app/bsky/embed/images.rs +++ b/atrium-api/src/app/bsky/embed/images.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed.images` namespace. //!A set of images embedded in a Bluesky record (eg, a post). #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/embed/record.rs b/atrium-api/src/app/bsky/embed/record.rs index dd2e57d6..2a44b3d8 100644 --- a/atrium-api/src/app/bsky/embed/record.rs +++ b/atrium-api/src/app/bsky/embed/record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed.record` namespace. //!A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/embed/record_with_media.rs b/atrium-api/src/app/bsky/embed/record_with_media.rs index 9f85fb8c..20aa84b6 100644 --- a/atrium-api/src/app/bsky/embed/record_with_media.rs +++ b/atrium-api/src/app/bsky/embed/record_with_media.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed.recordWithMedia` namespace. //!A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/embed/video.rs b/atrium-api/src/app/bsky/embed/video.rs index 48378a4c..83ee63b9 100644 --- a/atrium-api/src/app/bsky/embed/video.rs +++ b/atrium-api/src/app/bsky/embed/video.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.embed.video` namespace. //!A video embedded in a Bluesky record (eg, a post). #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed.rs b/atrium-api/src/app/bsky/feed.rs index 4f999393..752eaae0 100644 --- a/atrium-api/src/app/bsky/feed.rs +++ b/atrium-api/src/app/bsky/feed.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed` namespace. pub mod defs; pub mod describe_feed_generator; diff --git a/atrium-api/src/app/bsky/feed/defs.rs b/atrium-api/src/app/bsky/feed/defs.rs index 496dd896..36823326 100644 --- a/atrium-api/src/app/bsky/feed/defs.rs +++ b/atrium-api/src/app/bsky/feed/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/feed/describe_feed_generator.rs b/atrium-api/src/app/bsky/feed/describe_feed_generator.rs index f3b33c8b..05ace856 100644 --- a/atrium-api/src/app/bsky/feed/describe_feed_generator.rs +++ b/atrium-api/src/app/bsky/feed/describe_feed_generator.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.describeFeedGenerator` namespace. pub const NSID: &str = "app.bsky.feed.describeFeedGenerator"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/generator.rs b/atrium-api/src/app/bsky/feed/generator.rs index 7afc571d..cf10bd8b 100644 --- a/atrium-api/src/app/bsky/feed/generator.rs +++ b/atrium-api/src/app/bsky/feed/generator.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.generator` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/feed/get_actor_feeds.rs b/atrium-api/src/app/bsky/feed/get_actor_feeds.rs index 8c710576..0a2cb5b8 100644 --- a/atrium-api/src/app/bsky/feed/get_actor_feeds.rs +++ b/atrium-api/src/app/bsky/feed/get_actor_feeds.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getActorFeeds` namespace. pub const NSID: &str = "app.bsky.feed.getActorFeeds"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_actor_likes.rs b/atrium-api/src/app/bsky/feed/get_actor_likes.rs index 0d88ec77..5abd9344 100644 --- a/atrium-api/src/app/bsky/feed/get_actor_likes.rs +++ b/atrium-api/src/app/bsky/feed/get_actor_likes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getActorLikes` namespace. pub const NSID: &str = "app.bsky.feed.getActorLikes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_author_feed.rs b/atrium-api/src/app/bsky/feed/get_author_feed.rs index e6bc4b1a..18282b57 100644 --- a/atrium-api/src/app/bsky/feed/get_author_feed.rs +++ b/atrium-api/src/app/bsky/feed/get_author_feed.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getAuthorFeed` namespace. pub const NSID: &str = "app.bsky.feed.getAuthorFeed"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_feed.rs b/atrium-api/src/app/bsky/feed/get_feed.rs index 7e586de8..33fbbf75 100644 --- a/atrium-api/src/app/bsky/feed/get_feed.rs +++ b/atrium-api/src/app/bsky/feed/get_feed.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getFeed` namespace. pub const NSID: &str = "app.bsky.feed.getFeed"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_feed_generator.rs b/atrium-api/src/app/bsky/feed/get_feed_generator.rs index 7a111a82..ccb8656c 100644 --- a/atrium-api/src/app/bsky/feed/get_feed_generator.rs +++ b/atrium-api/src/app/bsky/feed/get_feed_generator.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getFeedGenerator` namespace. pub const NSID: &str = "app.bsky.feed.getFeedGenerator"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_feed_generators.rs b/atrium-api/src/app/bsky/feed/get_feed_generators.rs index 977b93ea..b7d88ffe 100644 --- a/atrium-api/src/app/bsky/feed/get_feed_generators.rs +++ b/atrium-api/src/app/bsky/feed/get_feed_generators.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getFeedGenerators` namespace. pub const NSID: &str = "app.bsky.feed.getFeedGenerators"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_feed_skeleton.rs b/atrium-api/src/app/bsky/feed/get_feed_skeleton.rs index eef28c2f..8d38c11b 100644 --- a/atrium-api/src/app/bsky/feed/get_feed_skeleton.rs +++ b/atrium-api/src/app/bsky/feed/get_feed_skeleton.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getFeedSkeleton` namespace. pub const NSID: &str = "app.bsky.feed.getFeedSkeleton"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_likes.rs b/atrium-api/src/app/bsky/feed/get_likes.rs index b6d0998d..22a1e384 100644 --- a/atrium-api/src/app/bsky/feed/get_likes.rs +++ b/atrium-api/src/app/bsky/feed/get_likes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getLikes` namespace. pub const NSID: &str = "app.bsky.feed.getLikes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_list_feed.rs b/atrium-api/src/app/bsky/feed/get_list_feed.rs index 8fa01276..ccc01f1c 100644 --- a/atrium-api/src/app/bsky/feed/get_list_feed.rs +++ b/atrium-api/src/app/bsky/feed/get_list_feed.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getListFeed` namespace. pub const NSID: &str = "app.bsky.feed.getListFeed"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_post_thread.rs b/atrium-api/src/app/bsky/feed/get_post_thread.rs index 4eb7b409..a3ff1fd5 100644 --- a/atrium-api/src/app/bsky/feed/get_post_thread.rs +++ b/atrium-api/src/app/bsky/feed/get_post_thread.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getPostThread` namespace. pub const NSID: &str = "app.bsky.feed.getPostThread"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_posts.rs b/atrium-api/src/app/bsky/feed/get_posts.rs index 5b3f3561..83cc9937 100644 --- a/atrium-api/src/app/bsky/feed/get_posts.rs +++ b/atrium-api/src/app/bsky/feed/get_posts.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getPosts` namespace. pub const NSID: &str = "app.bsky.feed.getPosts"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_quotes.rs b/atrium-api/src/app/bsky/feed/get_quotes.rs index ff9025ad..f2a9c31e 100644 --- a/atrium-api/src/app/bsky/feed/get_quotes.rs +++ b/atrium-api/src/app/bsky/feed/get_quotes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getQuotes` namespace. pub const NSID: &str = "app.bsky.feed.getQuotes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_reposted_by.rs b/atrium-api/src/app/bsky/feed/get_reposted_by.rs index 8fbb6f56..841b7f94 100644 --- a/atrium-api/src/app/bsky/feed/get_reposted_by.rs +++ b/atrium-api/src/app/bsky/feed/get_reposted_by.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getRepostedBy` namespace. pub const NSID: &str = "app.bsky.feed.getRepostedBy"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_suggested_feeds.rs b/atrium-api/src/app/bsky/feed/get_suggested_feeds.rs index 5d304842..9a4ee1b3 100644 --- a/atrium-api/src/app/bsky/feed/get_suggested_feeds.rs +++ b/atrium-api/src/app/bsky/feed/get_suggested_feeds.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getSuggestedFeeds` namespace. pub const NSID: &str = "app.bsky.feed.getSuggestedFeeds"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/get_timeline.rs b/atrium-api/src/app/bsky/feed/get_timeline.rs index 60f4947b..69770c92 100644 --- a/atrium-api/src/app/bsky/feed/get_timeline.rs +++ b/atrium-api/src/app/bsky/feed/get_timeline.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.getTimeline` namespace. pub const NSID: &str = "app.bsky.feed.getTimeline"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/like.rs b/atrium-api/src/app/bsky/feed/like.rs index 20603865..4f8bcca5 100644 --- a/atrium-api/src/app/bsky/feed/like.rs +++ b/atrium-api/src/app/bsky/feed/like.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.like` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/feed/post.rs b/atrium-api/src/app/bsky/feed/post.rs index e1316537..078839a2 100644 --- a/atrium-api/src/app/bsky/feed/post.rs +++ b/atrium-api/src/app/bsky/feed/post.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.post` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/feed/postgate.rs b/atrium-api/src/app/bsky/feed/postgate.rs index 5377f470..119490bb 100644 --- a/atrium-api/src/app/bsky/feed/postgate.rs +++ b/atrium-api/src/app/bsky/feed/postgate.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.postgate` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/feed/repost.rs b/atrium-api/src/app/bsky/feed/repost.rs index 0c865df1..6ba09106 100644 --- a/atrium-api/src/app/bsky/feed/repost.rs +++ b/atrium-api/src/app/bsky/feed/repost.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.repost` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/feed/search_posts.rs b/atrium-api/src/app/bsky/feed/search_posts.rs index 33cf427b..980fec7e 100644 --- a/atrium-api/src/app/bsky/feed/search_posts.rs +++ b/atrium-api/src/app/bsky/feed/search_posts.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.searchPosts` namespace. pub const NSID: &str = "app.bsky.feed.searchPosts"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/send_interactions.rs b/atrium-api/src/app/bsky/feed/send_interactions.rs index a8e48ae4..c05f7409 100644 --- a/atrium-api/src/app/bsky/feed/send_interactions.rs +++ b/atrium-api/src/app/bsky/feed/send_interactions.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.sendInteractions` namespace. pub const NSID: &str = "app.bsky.feed.sendInteractions"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/feed/threadgate.rs b/atrium-api/src/app/bsky/feed/threadgate.rs index 02e06813..6d9d21af 100644 --- a/atrium-api/src/app/bsky/feed/threadgate.rs +++ b/atrium-api/src/app/bsky/feed/threadgate.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.feed.threadgate` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph.rs b/atrium-api/src/app/bsky/graph.rs index 73e9fbe2..a4e7ee2b 100644 --- a/atrium-api/src/app/bsky/graph.rs +++ b/atrium-api/src/app/bsky/graph.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph` namespace. pub mod block; pub mod defs; diff --git a/atrium-api/src/app/bsky/graph/block.rs b/atrium-api/src/app/bsky/graph/block.rs index b22aca99..33e1621b 100644 --- a/atrium-api/src/app/bsky/graph/block.rs +++ b/atrium-api/src/app/bsky/graph/block.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.block` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph/defs.rs b/atrium-api/src/app/bsky/graph/defs.rs index 9711ba2b..0bd0a50b 100644 --- a/atrium-api/src/app/bsky/graph/defs.rs +++ b/atrium-api/src/app/bsky/graph/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.defs` namespace. ///A list of actors used for curation purposes such as list feeds or interaction gating. pub const CURATELIST: &str = "app.bsky.graph.defs#curatelist"; diff --git a/atrium-api/src/app/bsky/graph/follow.rs b/atrium-api/src/app/bsky/graph/follow.rs index e025641d..3a797c5c 100644 --- a/atrium-api/src/app/bsky/graph/follow.rs +++ b/atrium-api/src/app/bsky/graph/follow.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.follow` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph/get_actor_starter_packs.rs b/atrium-api/src/app/bsky/graph/get_actor_starter_packs.rs index f72c3add..7733e6dc 100644 --- a/atrium-api/src/app/bsky/graph/get_actor_starter_packs.rs +++ b/atrium-api/src/app/bsky/graph/get_actor_starter_packs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getActorStarterPacks` namespace. pub const NSID: &str = "app.bsky.graph.getActorStarterPacks"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_blocks.rs b/atrium-api/src/app/bsky/graph/get_blocks.rs index 6591cb5f..2fea12a4 100644 --- a/atrium-api/src/app/bsky/graph/get_blocks.rs +++ b/atrium-api/src/app/bsky/graph/get_blocks.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getBlocks` namespace. pub const NSID: &str = "app.bsky.graph.getBlocks"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_followers.rs b/atrium-api/src/app/bsky/graph/get_followers.rs index f0c17f7c..b459e95d 100644 --- a/atrium-api/src/app/bsky/graph/get_followers.rs +++ b/atrium-api/src/app/bsky/graph/get_followers.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getFollowers` namespace. pub const NSID: &str = "app.bsky.graph.getFollowers"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_follows.rs b/atrium-api/src/app/bsky/graph/get_follows.rs index ee242423..18933900 100644 --- a/atrium-api/src/app/bsky/graph/get_follows.rs +++ b/atrium-api/src/app/bsky/graph/get_follows.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getFollows` namespace. pub const NSID: &str = "app.bsky.graph.getFollows"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_known_followers.rs b/atrium-api/src/app/bsky/graph/get_known_followers.rs index 8e4d69a9..64770c0c 100644 --- a/atrium-api/src/app/bsky/graph/get_known_followers.rs +++ b/atrium-api/src/app/bsky/graph/get_known_followers.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getKnownFollowers` namespace. pub const NSID: &str = "app.bsky.graph.getKnownFollowers"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_list.rs b/atrium-api/src/app/bsky/graph/get_list.rs index 38cd0428..8693e3af 100644 --- a/atrium-api/src/app/bsky/graph/get_list.rs +++ b/atrium-api/src/app/bsky/graph/get_list.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getList` namespace. pub const NSID: &str = "app.bsky.graph.getList"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_list_blocks.rs b/atrium-api/src/app/bsky/graph/get_list_blocks.rs index af6db9cf..b22edf05 100644 --- a/atrium-api/src/app/bsky/graph/get_list_blocks.rs +++ b/atrium-api/src/app/bsky/graph/get_list_blocks.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getListBlocks` namespace. pub const NSID: &str = "app.bsky.graph.getListBlocks"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_list_mutes.rs b/atrium-api/src/app/bsky/graph/get_list_mutes.rs index b60c7d0d..c9a8680a 100644 --- a/atrium-api/src/app/bsky/graph/get_list_mutes.rs +++ b/atrium-api/src/app/bsky/graph/get_list_mutes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getListMutes` namespace. pub const NSID: &str = "app.bsky.graph.getListMutes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_lists.rs b/atrium-api/src/app/bsky/graph/get_lists.rs index f091d00e..d97b4175 100644 --- a/atrium-api/src/app/bsky/graph/get_lists.rs +++ b/atrium-api/src/app/bsky/graph/get_lists.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getLists` namespace. pub const NSID: &str = "app.bsky.graph.getLists"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_mutes.rs b/atrium-api/src/app/bsky/graph/get_mutes.rs index 5df51933..ac829277 100644 --- a/atrium-api/src/app/bsky/graph/get_mutes.rs +++ b/atrium-api/src/app/bsky/graph/get_mutes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getMutes` namespace. pub const NSID: &str = "app.bsky.graph.getMutes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_relationships.rs b/atrium-api/src/app/bsky/graph/get_relationships.rs index d9908215..5d9a78f1 100644 --- a/atrium-api/src/app/bsky/graph/get_relationships.rs +++ b/atrium-api/src/app/bsky/graph/get_relationships.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getRelationships` namespace. pub const NSID: &str = "app.bsky.graph.getRelationships"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_starter_pack.rs b/atrium-api/src/app/bsky/graph/get_starter_pack.rs index 88ca0468..7fcbc8aa 100644 --- a/atrium-api/src/app/bsky/graph/get_starter_pack.rs +++ b/atrium-api/src/app/bsky/graph/get_starter_pack.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getStarterPack` namespace. pub const NSID: &str = "app.bsky.graph.getStarterPack"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_starter_packs.rs b/atrium-api/src/app/bsky/graph/get_starter_packs.rs index 01b04b00..2b823473 100644 --- a/atrium-api/src/app/bsky/graph/get_starter_packs.rs +++ b/atrium-api/src/app/bsky/graph/get_starter_packs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getStarterPacks` namespace. pub const NSID: &str = "app.bsky.graph.getStarterPacks"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/get_suggested_follows_by_actor.rs b/atrium-api/src/app/bsky/graph/get_suggested_follows_by_actor.rs index c59b6cc3..f761a570 100644 --- a/atrium-api/src/app/bsky/graph/get_suggested_follows_by_actor.rs +++ b/atrium-api/src/app/bsky/graph/get_suggested_follows_by_actor.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.getSuggestedFollowsByActor` namespace. pub const NSID: &str = "app.bsky.graph.getSuggestedFollowsByActor"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/list.rs b/atrium-api/src/app/bsky/graph/list.rs index a18d9ce1..928ee190 100644 --- a/atrium-api/src/app/bsky/graph/list.rs +++ b/atrium-api/src/app/bsky/graph/list.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.list` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph/listblock.rs b/atrium-api/src/app/bsky/graph/listblock.rs index f9fad5ee..74191143 100644 --- a/atrium-api/src/app/bsky/graph/listblock.rs +++ b/atrium-api/src/app/bsky/graph/listblock.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.listblock` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph/listitem.rs b/atrium-api/src/app/bsky/graph/listitem.rs index 4fa88395..8bb52a2e 100644 --- a/atrium-api/src/app/bsky/graph/listitem.rs +++ b/atrium-api/src/app/bsky/graph/listitem.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.listitem` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph/mute_actor.rs b/atrium-api/src/app/bsky/graph/mute_actor.rs index f2b88707..4fadf307 100644 --- a/atrium-api/src/app/bsky/graph/mute_actor.rs +++ b/atrium-api/src/app/bsky/graph/mute_actor.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.muteActor` namespace. pub const NSID: &str = "app.bsky.graph.muteActor"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/mute_actor_list.rs b/atrium-api/src/app/bsky/graph/mute_actor_list.rs index 2c89ca43..cc4103c9 100644 --- a/atrium-api/src/app/bsky/graph/mute_actor_list.rs +++ b/atrium-api/src/app/bsky/graph/mute_actor_list.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.muteActorList` namespace. pub const NSID: &str = "app.bsky.graph.muteActorList"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/mute_thread.rs b/atrium-api/src/app/bsky/graph/mute_thread.rs index e78d8925..08c18c53 100644 --- a/atrium-api/src/app/bsky/graph/mute_thread.rs +++ b/atrium-api/src/app/bsky/graph/mute_thread.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.muteThread` namespace. pub const NSID: &str = "app.bsky.graph.muteThread"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/starterpack.rs b/atrium-api/src/app/bsky/graph/starterpack.rs index 96805c19..d9a8cc1d 100644 --- a/atrium-api/src/app/bsky/graph/starterpack.rs +++ b/atrium-api/src/app/bsky/graph/starterpack.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.starterpack` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/graph/unmute_actor.rs b/atrium-api/src/app/bsky/graph/unmute_actor.rs index b5d381fd..68e99979 100644 --- a/atrium-api/src/app/bsky/graph/unmute_actor.rs +++ b/atrium-api/src/app/bsky/graph/unmute_actor.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.unmuteActor` namespace. pub const NSID: &str = "app.bsky.graph.unmuteActor"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/unmute_actor_list.rs b/atrium-api/src/app/bsky/graph/unmute_actor_list.rs index 11bef81a..d1eeac91 100644 --- a/atrium-api/src/app/bsky/graph/unmute_actor_list.rs +++ b/atrium-api/src/app/bsky/graph/unmute_actor_list.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.unmuteActorList` namespace. pub const NSID: &str = "app.bsky.graph.unmuteActorList"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/graph/unmute_thread.rs b/atrium-api/src/app/bsky/graph/unmute_thread.rs index a0f904a4..ad3ddefd 100644 --- a/atrium-api/src/app/bsky/graph/unmute_thread.rs +++ b/atrium-api/src/app/bsky/graph/unmute_thread.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.graph.unmuteThread` namespace. pub const NSID: &str = "app.bsky.graph.unmuteThread"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/labeler.rs b/atrium-api/src/app/bsky/labeler.rs index fea78104..56ed0f35 100644 --- a/atrium-api/src/app/bsky/labeler.rs +++ b/atrium-api/src/app/bsky/labeler.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.labeler` namespace. pub mod defs; pub mod get_services; diff --git a/atrium-api/src/app/bsky/labeler/defs.rs b/atrium-api/src/app/bsky/labeler/defs.rs index ca11f840..7859bcd7 100644 --- a/atrium-api/src/app/bsky/labeler/defs.rs +++ b/atrium-api/src/app/bsky/labeler/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.labeler.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/labeler/get_services.rs b/atrium-api/src/app/bsky/labeler/get_services.rs index 8c50fa9d..2348bc40 100644 --- a/atrium-api/src/app/bsky/labeler/get_services.rs +++ b/atrium-api/src/app/bsky/labeler/get_services.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.labeler.getServices` namespace. pub const NSID: &str = "app.bsky.labeler.getServices"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/labeler/service.rs b/atrium-api/src/app/bsky/labeler/service.rs index c5ffd00c..2bd8bc76 100644 --- a/atrium-api/src/app/bsky/labeler/service.rs +++ b/atrium-api/src/app/bsky/labeler/service.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.labeler.service` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/notification.rs b/atrium-api/src/app/bsky/notification.rs index 8fba8cbe..2909b810 100644 --- a/atrium-api/src/app/bsky/notification.rs +++ b/atrium-api/src/app/bsky/notification.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.notification` namespace. pub mod get_unread_count; pub mod list_notifications; diff --git a/atrium-api/src/app/bsky/notification/get_unread_count.rs b/atrium-api/src/app/bsky/notification/get_unread_count.rs index 21466ccf..83f83482 100644 --- a/atrium-api/src/app/bsky/notification/get_unread_count.rs +++ b/atrium-api/src/app/bsky/notification/get_unread_count.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.notification.getUnreadCount` namespace. pub const NSID: &str = "app.bsky.notification.getUnreadCount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/notification/list_notifications.rs b/atrium-api/src/app/bsky/notification/list_notifications.rs index 3c6c064c..fd81c547 100644 --- a/atrium-api/src/app/bsky/notification/list_notifications.rs +++ b/atrium-api/src/app/bsky/notification/list_notifications.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.notification.listNotifications` namespace. pub const NSID: &str = "app.bsky.notification.listNotifications"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/notification/put_preferences.rs b/atrium-api/src/app/bsky/notification/put_preferences.rs index 02240667..ba2b027c 100644 --- a/atrium-api/src/app/bsky/notification/put_preferences.rs +++ b/atrium-api/src/app/bsky/notification/put_preferences.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.notification.putPreferences` namespace. pub const NSID: &str = "app.bsky.notification.putPreferences"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/notification/register_push.rs b/atrium-api/src/app/bsky/notification/register_push.rs index adb868e0..ace22902 100644 --- a/atrium-api/src/app/bsky/notification/register_push.rs +++ b/atrium-api/src/app/bsky/notification/register_push.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.notification.registerPush` namespace. pub const NSID: &str = "app.bsky.notification.registerPush"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/notification/update_seen.rs b/atrium-api/src/app/bsky/notification/update_seen.rs index 9bc378b5..48bea754 100644 --- a/atrium-api/src/app/bsky/notification/update_seen.rs +++ b/atrium-api/src/app/bsky/notification/update_seen.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.notification.updateSeen` namespace. pub const NSID: &str = "app.bsky.notification.updateSeen"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/richtext.rs b/atrium-api/src/app/bsky/richtext.rs index cab07554..3c42b751 100644 --- a/atrium-api/src/app/bsky/richtext.rs +++ b/atrium-api/src/app/bsky/richtext.rs @@ -1,3 +1,3 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.richtext` namespace. pub mod facet; diff --git a/atrium-api/src/app/bsky/richtext/facet.rs b/atrium-api/src/app/bsky/richtext/facet.rs index 0ff45588..b5d72f8b 100644 --- a/atrium-api/src/app/bsky/richtext/facet.rs +++ b/atrium-api/src/app/bsky/richtext/facet.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.richtext.facet` namespace. ///Annotation of a sub-string within rich text. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/unspecced.rs b/atrium-api/src/app/bsky/unspecced.rs index 1835c2a0..a3da9d71 100644 --- a/atrium-api/src/app/bsky/unspecced.rs +++ b/atrium-api/src/app/bsky/unspecced.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced` namespace. pub mod defs; pub mod get_popular_feed_generators; diff --git a/atrium-api/src/app/bsky/unspecced/defs.rs b/atrium-api/src/app/bsky/unspecced/defs.rs index 4a0495c6..ae48eefc 100644 --- a/atrium-api/src/app/bsky/unspecced/defs.rs +++ b/atrium-api/src/app/bsky/unspecced/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/unspecced/get_popular_feed_generators.rs b/atrium-api/src/app/bsky/unspecced/get_popular_feed_generators.rs index e7bede62..985d6aad 100644 --- a/atrium-api/src/app/bsky/unspecced/get_popular_feed_generators.rs +++ b/atrium-api/src/app/bsky/unspecced/get_popular_feed_generators.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced.getPopularFeedGenerators` namespace. pub const NSID: &str = "app.bsky.unspecced.getPopularFeedGenerators"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/unspecced/get_suggestions_skeleton.rs b/atrium-api/src/app/bsky/unspecced/get_suggestions_skeleton.rs index 94ee85d8..bd923eb4 100644 --- a/atrium-api/src/app/bsky/unspecced/get_suggestions_skeleton.rs +++ b/atrium-api/src/app/bsky/unspecced/get_suggestions_skeleton.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced.getSuggestionsSkeleton` namespace. pub const NSID: &str = "app.bsky.unspecced.getSuggestionsSkeleton"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs b/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs index d2b148ab..1207f3d0 100644 --- a/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs +++ b/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced.getTaggedSuggestions` namespace. pub const NSID: &str = "app.bsky.unspecced.getTaggedSuggestions"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/unspecced/search_actors_skeleton.rs b/atrium-api/src/app/bsky/unspecced/search_actors_skeleton.rs index b3b8d0b8..270b0bb9 100644 --- a/atrium-api/src/app/bsky/unspecced/search_actors_skeleton.rs +++ b/atrium-api/src/app/bsky/unspecced/search_actors_skeleton.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced.searchActorsSkeleton` namespace. pub const NSID: &str = "app.bsky.unspecced.searchActorsSkeleton"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/unspecced/search_posts_skeleton.rs b/atrium-api/src/app/bsky/unspecced/search_posts_skeleton.rs index 8235aa53..961c7416 100644 --- a/atrium-api/src/app/bsky/unspecced/search_posts_skeleton.rs +++ b/atrium-api/src/app/bsky/unspecced/search_posts_skeleton.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced.searchPostsSkeleton` namespace. pub const NSID: &str = "app.bsky.unspecced.searchPostsSkeleton"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/video.rs b/atrium-api/src/app/bsky/video.rs index e381489a..510cdc1e 100644 --- a/atrium-api/src/app/bsky/video.rs +++ b/atrium-api/src/app/bsky/video.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.video` namespace. pub mod defs; pub mod get_job_status; diff --git a/atrium-api/src/app/bsky/video/defs.rs b/atrium-api/src/app/bsky/video/defs.rs index eca86336..15bde4c5 100644 --- a/atrium-api/src/app/bsky/video/defs.rs +++ b/atrium-api/src/app/bsky/video/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.video.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/app/bsky/video/get_job_status.rs b/atrium-api/src/app/bsky/video/get_job_status.rs index 68a92ab1..907427d6 100644 --- a/atrium-api/src/app/bsky/video/get_job_status.rs +++ b/atrium-api/src/app/bsky/video/get_job_status.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.video.getJobStatus` namespace. pub const NSID: &str = "app.bsky.video.getJobStatus"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/video/get_upload_limits.rs b/atrium-api/src/app/bsky/video/get_upload_limits.rs index d19843b1..0a52a29b 100644 --- a/atrium-api/src/app/bsky/video/get_upload_limits.rs +++ b/atrium-api/src/app/bsky/video/get_upload_limits.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.video.getUploadLimits` namespace. pub const NSID: &str = "app.bsky.video.getUploadLimits"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/app/bsky/video/upload_video.rs b/atrium-api/src/app/bsky/video/upload_video.rs index c364afac..1d1a2d77 100644 --- a/atrium-api/src/app/bsky/video/upload_video.rs +++ b/atrium-api/src/app/bsky/video/upload_video.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.video.uploadVideo` namespace. pub const NSID: &str = "app.bsky.video.uploadVideo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat.rs b/atrium-api/src/chat.rs index 4f52b212..3e65c383 100644 --- a/atrium-api/src/chat.rs +++ b/atrium-api/src/chat.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat` namespace. #[cfg_attr(docsrs, doc(cfg(feature = "namespace-chatbsky")))] #[cfg(feature = "namespace-chatbsky")] diff --git a/atrium-api/src/chat/bsky.rs b/atrium-api/src/chat/bsky.rs index fc951c5b..cccea867 100644 --- a/atrium-api/src/chat/bsky.rs +++ b/atrium-api/src/chat/bsky.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky` namespace. pub mod actor; pub mod convo; diff --git a/atrium-api/src/chat/bsky/actor.rs b/atrium-api/src/chat/bsky/actor.rs index 477baa45..e2c8499b 100644 --- a/atrium-api/src/chat/bsky/actor.rs +++ b/atrium-api/src/chat/bsky/actor.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.actor` namespace. pub mod declaration; pub mod defs; diff --git a/atrium-api/src/chat/bsky/actor/declaration.rs b/atrium-api/src/chat/bsky/actor/declaration.rs index e2630419..c4d5e450 100644 --- a/atrium-api/src/chat/bsky/actor/declaration.rs +++ b/atrium-api/src/chat/bsky/actor/declaration.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.actor.declaration` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/chat/bsky/actor/defs.rs b/atrium-api/src/chat/bsky/actor/defs.rs index ce9ded75..f48fb4d8 100644 --- a/atrium-api/src/chat/bsky/actor/defs.rs +++ b/atrium-api/src/chat/bsky/actor/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.actor.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/chat/bsky/actor/delete_account.rs b/atrium-api/src/chat/bsky/actor/delete_account.rs index b79ce693..fe3f4e4f 100644 --- a/atrium-api/src/chat/bsky/actor/delete_account.rs +++ b/atrium-api/src/chat/bsky/actor/delete_account.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.actor.deleteAccount` namespace. pub const NSID: &str = "chat.bsky.actor.deleteAccount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/actor/export_account_data.rs b/atrium-api/src/chat/bsky/actor/export_account_data.rs index fc68a323..136c4362 100644 --- a/atrium-api/src/chat/bsky/actor/export_account_data.rs +++ b/atrium-api/src/chat/bsky/actor/export_account_data.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.actor.exportAccountData` namespace. pub const NSID: &str = "chat.bsky.actor.exportAccountData"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo.rs b/atrium-api/src/chat/bsky/convo.rs index e77c12e9..0cf5a23c 100644 --- a/atrium-api/src/chat/bsky/convo.rs +++ b/atrium-api/src/chat/bsky/convo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo` namespace. pub mod defs; pub mod delete_message_for_self; diff --git a/atrium-api/src/chat/bsky/convo/defs.rs b/atrium-api/src/chat/bsky/convo/defs.rs index fe1b5c56..f46416b4 100644 --- a/atrium-api/src/chat/bsky/convo/defs.rs +++ b/atrium-api/src/chat/bsky/convo/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/chat/bsky/convo/delete_message_for_self.rs b/atrium-api/src/chat/bsky/convo/delete_message_for_self.rs index 47ab8baf..35668b18 100644 --- a/atrium-api/src/chat/bsky/convo/delete_message_for_self.rs +++ b/atrium-api/src/chat/bsky/convo/delete_message_for_self.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.deleteMessageForSelf` namespace. pub const NSID: &str = "chat.bsky.convo.deleteMessageForSelf"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/get_convo.rs b/atrium-api/src/chat/bsky/convo/get_convo.rs index c2e6ab26..9f0d21e9 100644 --- a/atrium-api/src/chat/bsky/convo/get_convo.rs +++ b/atrium-api/src/chat/bsky/convo/get_convo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.getConvo` namespace. pub const NSID: &str = "chat.bsky.convo.getConvo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/get_convo_for_members.rs b/atrium-api/src/chat/bsky/convo/get_convo_for_members.rs index d128a003..d393eda4 100644 --- a/atrium-api/src/chat/bsky/convo/get_convo_for_members.rs +++ b/atrium-api/src/chat/bsky/convo/get_convo_for_members.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.getConvoForMembers` namespace. pub const NSID: &str = "chat.bsky.convo.getConvoForMembers"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/get_log.rs b/atrium-api/src/chat/bsky/convo/get_log.rs index 49d5897e..9af3098a 100644 --- a/atrium-api/src/chat/bsky/convo/get_log.rs +++ b/atrium-api/src/chat/bsky/convo/get_log.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.getLog` namespace. pub const NSID: &str = "chat.bsky.convo.getLog"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/get_messages.rs b/atrium-api/src/chat/bsky/convo/get_messages.rs index 8abe1658..dfd6c86d 100644 --- a/atrium-api/src/chat/bsky/convo/get_messages.rs +++ b/atrium-api/src/chat/bsky/convo/get_messages.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.getMessages` namespace. pub const NSID: &str = "chat.bsky.convo.getMessages"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/leave_convo.rs b/atrium-api/src/chat/bsky/convo/leave_convo.rs index c23ceb3f..3236a489 100644 --- a/atrium-api/src/chat/bsky/convo/leave_convo.rs +++ b/atrium-api/src/chat/bsky/convo/leave_convo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.leaveConvo` namespace. pub const NSID: &str = "chat.bsky.convo.leaveConvo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/list_convos.rs b/atrium-api/src/chat/bsky/convo/list_convos.rs index e2484b71..591148d5 100644 --- a/atrium-api/src/chat/bsky/convo/list_convos.rs +++ b/atrium-api/src/chat/bsky/convo/list_convos.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.listConvos` namespace. pub const NSID: &str = "chat.bsky.convo.listConvos"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/mute_convo.rs b/atrium-api/src/chat/bsky/convo/mute_convo.rs index bf9ec580..7fea6cbe 100644 --- a/atrium-api/src/chat/bsky/convo/mute_convo.rs +++ b/atrium-api/src/chat/bsky/convo/mute_convo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.muteConvo` namespace. pub const NSID: &str = "chat.bsky.convo.muteConvo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/send_message.rs b/atrium-api/src/chat/bsky/convo/send_message.rs index ce867315..db3bb6a0 100644 --- a/atrium-api/src/chat/bsky/convo/send_message.rs +++ b/atrium-api/src/chat/bsky/convo/send_message.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.sendMessage` namespace. pub const NSID: &str = "chat.bsky.convo.sendMessage"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/send_message_batch.rs b/atrium-api/src/chat/bsky/convo/send_message_batch.rs index d038f8e0..1939e663 100644 --- a/atrium-api/src/chat/bsky/convo/send_message_batch.rs +++ b/atrium-api/src/chat/bsky/convo/send_message_batch.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.sendMessageBatch` namespace. pub const NSID: &str = "chat.bsky.convo.sendMessageBatch"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/unmute_convo.rs b/atrium-api/src/chat/bsky/convo/unmute_convo.rs index e04e012f..c86882c7 100644 --- a/atrium-api/src/chat/bsky/convo/unmute_convo.rs +++ b/atrium-api/src/chat/bsky/convo/unmute_convo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.unmuteConvo` namespace. pub const NSID: &str = "chat.bsky.convo.unmuteConvo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/convo/update_read.rs b/atrium-api/src/chat/bsky/convo/update_read.rs index f3f82db3..68293412 100644 --- a/atrium-api/src/chat/bsky/convo/update_read.rs +++ b/atrium-api/src/chat/bsky/convo/update_read.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.convo.updateRead` namespace. pub const NSID: &str = "chat.bsky.convo.updateRead"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/moderation.rs b/atrium-api/src/chat/bsky/moderation.rs index 6b0343f6..0c62af83 100644 --- a/atrium-api/src/chat/bsky/moderation.rs +++ b/atrium-api/src/chat/bsky/moderation.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.moderation` namespace. pub mod get_actor_metadata; pub mod get_message_context; diff --git a/atrium-api/src/chat/bsky/moderation/get_actor_metadata.rs b/atrium-api/src/chat/bsky/moderation/get_actor_metadata.rs index fb53cd7a..9e164eaf 100644 --- a/atrium-api/src/chat/bsky/moderation/get_actor_metadata.rs +++ b/atrium-api/src/chat/bsky/moderation/get_actor_metadata.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.moderation.getActorMetadata` namespace. pub const NSID: &str = "chat.bsky.moderation.getActorMetadata"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/moderation/get_message_context.rs b/atrium-api/src/chat/bsky/moderation/get_message_context.rs index c313a5f8..f78d85ca 100644 --- a/atrium-api/src/chat/bsky/moderation/get_message_context.rs +++ b/atrium-api/src/chat/bsky/moderation/get_message_context.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.moderation.getMessageContext` namespace. pub const NSID: &str = "chat.bsky.moderation.getMessageContext"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/chat/bsky/moderation/update_actor_access.rs b/atrium-api/src/chat/bsky/moderation/update_actor_access.rs index d94bf171..79b5a0af 100644 --- a/atrium-api/src/chat/bsky/moderation/update_actor_access.rs +++ b/atrium-api/src/chat/bsky/moderation/update_actor_access.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `chat.bsky.moderation.updateActorAccess` namespace. pub const NSID: &str = "chat.bsky.moderation.updateActorAccess"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/client.rs b/atrium-api/src/client.rs index 01b9a8b2..5d0c81f1 100644 --- a/atrium-api/src/client.rs +++ b/atrium-api/src/client.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Structs for ATP client, implements all HTTP APIs of XRPC. ///Client struct for the ATP service. pub struct AtpServiceClient diff --git a/atrium-api/src/com.rs b/atrium-api/src/com.rs index 75e00e5b..b3719f05 100644 --- a/atrium-api/src/com.rs +++ b/atrium-api/src/com.rs @@ -1,3 +1,3 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com` namespace. pub mod atproto; diff --git a/atrium-api/src/com/atproto.rs b/atrium-api/src/com/atproto.rs index 319b3111..124bded5 100644 --- a/atrium-api/src/com/atproto.rs +++ b/atrium-api/src/com/atproto.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto` namespace. pub mod admin; pub mod identity; diff --git a/atrium-api/src/com/atproto/admin.rs b/atrium-api/src/com/atproto/admin.rs index a91b0b87..7852ee25 100644 --- a/atrium-api/src/com/atproto/admin.rs +++ b/atrium-api/src/com/atproto/admin.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin` namespace. pub mod defs; pub mod delete_account; diff --git a/atrium-api/src/com/atproto/admin/defs.rs b/atrium-api/src/com/atproto/admin/defs.rs index 27f1c67b..e93270e2 100644 --- a/atrium-api/src/com/atproto/admin/defs.rs +++ b/atrium-api/src/com/atproto/admin/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/com/atproto/admin/delete_account.rs b/atrium-api/src/com/atproto/admin/delete_account.rs index cb434c16..6b6663f3 100644 --- a/atrium-api/src/com/atproto/admin/delete_account.rs +++ b/atrium-api/src/com/atproto/admin/delete_account.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.deleteAccount` namespace. pub const NSID: &str = "com.atproto.admin.deleteAccount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/disable_account_invites.rs b/atrium-api/src/com/atproto/admin/disable_account_invites.rs index b4b13469..f79458be 100644 --- a/atrium-api/src/com/atproto/admin/disable_account_invites.rs +++ b/atrium-api/src/com/atproto/admin/disable_account_invites.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.disableAccountInvites` namespace. pub const NSID: &str = "com.atproto.admin.disableAccountInvites"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/disable_invite_codes.rs b/atrium-api/src/com/atproto/admin/disable_invite_codes.rs index 821e455e..6b66a2c2 100644 --- a/atrium-api/src/com/atproto/admin/disable_invite_codes.rs +++ b/atrium-api/src/com/atproto/admin/disable_invite_codes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.disableInviteCodes` namespace. pub const NSID: &str = "com.atproto.admin.disableInviteCodes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/enable_account_invites.rs b/atrium-api/src/com/atproto/admin/enable_account_invites.rs index c6fc0445..82572a48 100644 --- a/atrium-api/src/com/atproto/admin/enable_account_invites.rs +++ b/atrium-api/src/com/atproto/admin/enable_account_invites.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.enableAccountInvites` namespace. pub const NSID: &str = "com.atproto.admin.enableAccountInvites"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/get_account_info.rs b/atrium-api/src/com/atproto/admin/get_account_info.rs index 3a5fb822..eb0399be 100644 --- a/atrium-api/src/com/atproto/admin/get_account_info.rs +++ b/atrium-api/src/com/atproto/admin/get_account_info.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.getAccountInfo` namespace. pub const NSID: &str = "com.atproto.admin.getAccountInfo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/get_account_infos.rs b/atrium-api/src/com/atproto/admin/get_account_infos.rs index b353516a..ca88b02f 100644 --- a/atrium-api/src/com/atproto/admin/get_account_infos.rs +++ b/atrium-api/src/com/atproto/admin/get_account_infos.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.getAccountInfos` namespace. pub const NSID: &str = "com.atproto.admin.getAccountInfos"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/get_invite_codes.rs b/atrium-api/src/com/atproto/admin/get_invite_codes.rs index 82505147..750a15d1 100644 --- a/atrium-api/src/com/atproto/admin/get_invite_codes.rs +++ b/atrium-api/src/com/atproto/admin/get_invite_codes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.getInviteCodes` namespace. pub const NSID: &str = "com.atproto.admin.getInviteCodes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/get_subject_status.rs b/atrium-api/src/com/atproto/admin/get_subject_status.rs index 51a645c9..98fdeaf8 100644 --- a/atrium-api/src/com/atproto/admin/get_subject_status.rs +++ b/atrium-api/src/com/atproto/admin/get_subject_status.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.getSubjectStatus` namespace. pub const NSID: &str = "com.atproto.admin.getSubjectStatus"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/search_accounts.rs b/atrium-api/src/com/atproto/admin/search_accounts.rs index 6dc64c46..46357fde 100644 --- a/atrium-api/src/com/atproto/admin/search_accounts.rs +++ b/atrium-api/src/com/atproto/admin/search_accounts.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.searchAccounts` namespace. pub const NSID: &str = "com.atproto.admin.searchAccounts"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/send_email.rs b/atrium-api/src/com/atproto/admin/send_email.rs index 0193e922..0153e919 100644 --- a/atrium-api/src/com/atproto/admin/send_email.rs +++ b/atrium-api/src/com/atproto/admin/send_email.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.sendEmail` namespace. pub const NSID: &str = "com.atproto.admin.sendEmail"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/update_account_email.rs b/atrium-api/src/com/atproto/admin/update_account_email.rs index 6b2f058a..77543eae 100644 --- a/atrium-api/src/com/atproto/admin/update_account_email.rs +++ b/atrium-api/src/com/atproto/admin/update_account_email.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.updateAccountEmail` namespace. pub const NSID: &str = "com.atproto.admin.updateAccountEmail"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/update_account_handle.rs b/atrium-api/src/com/atproto/admin/update_account_handle.rs index 43735f6a..c98dcb5c 100644 --- a/atrium-api/src/com/atproto/admin/update_account_handle.rs +++ b/atrium-api/src/com/atproto/admin/update_account_handle.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.updateAccountHandle` namespace. pub const NSID: &str = "com.atproto.admin.updateAccountHandle"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/update_account_password.rs b/atrium-api/src/com/atproto/admin/update_account_password.rs index 3db189c7..dd77c845 100644 --- a/atrium-api/src/com/atproto/admin/update_account_password.rs +++ b/atrium-api/src/com/atproto/admin/update_account_password.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.updateAccountPassword` namespace. pub const NSID: &str = "com.atproto.admin.updateAccountPassword"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/admin/update_subject_status.rs b/atrium-api/src/com/atproto/admin/update_subject_status.rs index 71fa619b..f1fb33d4 100644 --- a/atrium-api/src/com/atproto/admin/update_subject_status.rs +++ b/atrium-api/src/com/atproto/admin/update_subject_status.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin.updateSubjectStatus` namespace. pub const NSID: &str = "com.atproto.admin.updateSubjectStatus"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/identity.rs b/atrium-api/src/com/atproto/identity.rs index 49c1eb10..39e45ca8 100644 --- a/atrium-api/src/com/atproto/identity.rs +++ b/atrium-api/src/com/atproto/identity.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity` namespace. pub mod get_recommended_did_credentials; pub mod request_plc_operation_signature; diff --git a/atrium-api/src/com/atproto/identity/get_recommended_did_credentials.rs b/atrium-api/src/com/atproto/identity/get_recommended_did_credentials.rs index 5d623681..3058b505 100644 --- a/atrium-api/src/com/atproto/identity/get_recommended_did_credentials.rs +++ b/atrium-api/src/com/atproto/identity/get_recommended_did_credentials.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity.getRecommendedDidCredentials` namespace. pub const NSID: &str = "com.atproto.identity.getRecommendedDidCredentials"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/identity/request_plc_operation_signature.rs b/atrium-api/src/com/atproto/identity/request_plc_operation_signature.rs index 5d10c1a8..42cfed9a 100644 --- a/atrium-api/src/com/atproto/identity/request_plc_operation_signature.rs +++ b/atrium-api/src/com/atproto/identity/request_plc_operation_signature.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity.requestPlcOperationSignature` namespace. pub const NSID: &str = "com.atproto.identity.requestPlcOperationSignature"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/identity/resolve_handle.rs b/atrium-api/src/com/atproto/identity/resolve_handle.rs index 42218b2c..b9f80fed 100644 --- a/atrium-api/src/com/atproto/identity/resolve_handle.rs +++ b/atrium-api/src/com/atproto/identity/resolve_handle.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity.resolveHandle` namespace. pub const NSID: &str = "com.atproto.identity.resolveHandle"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/identity/sign_plc_operation.rs b/atrium-api/src/com/atproto/identity/sign_plc_operation.rs index 5657c60b..ffe383e0 100644 --- a/atrium-api/src/com/atproto/identity/sign_plc_operation.rs +++ b/atrium-api/src/com/atproto/identity/sign_plc_operation.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity.signPlcOperation` namespace. pub const NSID: &str = "com.atproto.identity.signPlcOperation"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/identity/submit_plc_operation.rs b/atrium-api/src/com/atproto/identity/submit_plc_operation.rs index e38b6937..15b88019 100644 --- a/atrium-api/src/com/atproto/identity/submit_plc_operation.rs +++ b/atrium-api/src/com/atproto/identity/submit_plc_operation.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity.submitPlcOperation` namespace. pub const NSID: &str = "com.atproto.identity.submitPlcOperation"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/identity/update_handle.rs b/atrium-api/src/com/atproto/identity/update_handle.rs index a54d5763..aaeb924b 100644 --- a/atrium-api/src/com/atproto/identity/update_handle.rs +++ b/atrium-api/src/com/atproto/identity/update_handle.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.identity.updateHandle` namespace. pub const NSID: &str = "com.atproto.identity.updateHandle"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/label.rs b/atrium-api/src/com/atproto/label.rs index 62ab738e..9488622f 100644 --- a/atrium-api/src/com/atproto/label.rs +++ b/atrium-api/src/com/atproto/label.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.label` namespace. pub mod defs; pub mod query_labels; diff --git a/atrium-api/src/com/atproto/label/defs.rs b/atrium-api/src/com/atproto/label/defs.rs index f5dad2a9..8ecc14bd 100644 --- a/atrium-api/src/com/atproto/label/defs.rs +++ b/atrium-api/src/com/atproto/label/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.label.defs` namespace. ///Metadata tag on an atproto resource (eg, repo or record). #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/label/query_labels.rs b/atrium-api/src/com/atproto/label/query_labels.rs index de1c279c..42950d1f 100644 --- a/atrium-api/src/com/atproto/label/query_labels.rs +++ b/atrium-api/src/com/atproto/label/query_labels.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.label.queryLabels` namespace. pub const NSID: &str = "com.atproto.label.queryLabels"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/label/subscribe_labels.rs b/atrium-api/src/com/atproto/label/subscribe_labels.rs index 452cf346..a6268389 100644 --- a/atrium-api/src/com/atproto/label/subscribe_labels.rs +++ b/atrium-api/src/com/atproto/label/subscribe_labels.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.label.subscribeLabels` namespace. pub const NSID: &str = "com.atproto.label.subscribeLabels"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/moderation.rs b/atrium-api/src/com/atproto/moderation.rs index 09cec31d..7560960d 100644 --- a/atrium-api/src/com/atproto/moderation.rs +++ b/atrium-api/src/com/atproto/moderation.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.moderation` namespace. pub mod create_report; pub mod defs; diff --git a/atrium-api/src/com/atproto/moderation/create_report.rs b/atrium-api/src/com/atproto/moderation/create_report.rs index b9197428..cb5d876f 100644 --- a/atrium-api/src/com/atproto/moderation/create_report.rs +++ b/atrium-api/src/com/atproto/moderation/create_report.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.moderation.createReport` namespace. pub const NSID: &str = "com.atproto.moderation.createReport"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/moderation/defs.rs b/atrium-api/src/com/atproto/moderation/defs.rs index 2e33ff95..ab6eb1b3 100644 --- a/atrium-api/src/com/atproto/moderation/defs.rs +++ b/atrium-api/src/com/atproto/moderation/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.moderation.defs` namespace. ///Appeal: appeal a previously taken moderation action pub const REASON_APPEAL: &str = "com.atproto.moderation.defs#reasonAppeal"; diff --git a/atrium-api/src/com/atproto/repo.rs b/atrium-api/src/com/atproto/repo.rs index 08985da6..23f20cbc 100644 --- a/atrium-api/src/com/atproto/repo.rs +++ b/atrium-api/src/com/atproto/repo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo` namespace. pub mod apply_writes; pub mod create_record; diff --git a/atrium-api/src/com/atproto/repo/apply_writes.rs b/atrium-api/src/com/atproto/repo/apply_writes.rs index 7394dd51..b71151a7 100644 --- a/atrium-api/src/com/atproto/repo/apply_writes.rs +++ b/atrium-api/src/com/atproto/repo/apply_writes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.applyWrites` namespace. pub const NSID: &str = "com.atproto.repo.applyWrites"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/create_record.rs b/atrium-api/src/com/atproto/repo/create_record.rs index 362efd1c..1cb8c08a 100644 --- a/atrium-api/src/com/atproto/repo/create_record.rs +++ b/atrium-api/src/com/atproto/repo/create_record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.createRecord` namespace. pub const NSID: &str = "com.atproto.repo.createRecord"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/defs.rs b/atrium-api/src/com/atproto/repo/defs.rs index 5b27a8af..5787e5ef 100644 --- a/atrium-api/src/com/atproto/repo/defs.rs +++ b/atrium-api/src/com/atproto/repo/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/com/atproto/repo/delete_record.rs b/atrium-api/src/com/atproto/repo/delete_record.rs index c9846903..5eaee1d7 100644 --- a/atrium-api/src/com/atproto/repo/delete_record.rs +++ b/atrium-api/src/com/atproto/repo/delete_record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.deleteRecord` namespace. pub const NSID: &str = "com.atproto.repo.deleteRecord"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/describe_repo.rs b/atrium-api/src/com/atproto/repo/describe_repo.rs index 1a48ee21..389a38d9 100644 --- a/atrium-api/src/com/atproto/repo/describe_repo.rs +++ b/atrium-api/src/com/atproto/repo/describe_repo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.describeRepo` namespace. pub const NSID: &str = "com.atproto.repo.describeRepo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/get_record.rs b/atrium-api/src/com/atproto/repo/get_record.rs index 5bc8e888..b51c0ad7 100644 --- a/atrium-api/src/com/atproto/repo/get_record.rs +++ b/atrium-api/src/com/atproto/repo/get_record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.getRecord` namespace. pub const NSID: &str = "com.atproto.repo.getRecord"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/import_repo.rs b/atrium-api/src/com/atproto/repo/import_repo.rs index be99ab0a..6e411263 100644 --- a/atrium-api/src/com/atproto/repo/import_repo.rs +++ b/atrium-api/src/com/atproto/repo/import_repo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.importRepo` namespace. pub const NSID: &str = "com.atproto.repo.importRepo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/list_missing_blobs.rs b/atrium-api/src/com/atproto/repo/list_missing_blobs.rs index 83246e72..bfd8920a 100644 --- a/atrium-api/src/com/atproto/repo/list_missing_blobs.rs +++ b/atrium-api/src/com/atproto/repo/list_missing_blobs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.listMissingBlobs` namespace. pub const NSID: &str = "com.atproto.repo.listMissingBlobs"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/list_records.rs b/atrium-api/src/com/atproto/repo/list_records.rs index ff1c28c1..d15ca61a 100644 --- a/atrium-api/src/com/atproto/repo/list_records.rs +++ b/atrium-api/src/com/atproto/repo/list_records.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.listRecords` namespace. pub const NSID: &str = "com.atproto.repo.listRecords"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/put_record.rs b/atrium-api/src/com/atproto/repo/put_record.rs index cd5a7011..9844c1ea 100644 --- a/atrium-api/src/com/atproto/repo/put_record.rs +++ b/atrium-api/src/com/atproto/repo/put_record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.putRecord` namespace. pub const NSID: &str = "com.atproto.repo.putRecord"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/strong_ref.rs b/atrium-api/src/com/atproto/repo/strong_ref.rs index 1849b7da..ed2c95f6 100644 --- a/atrium-api/src/com/atproto/repo/strong_ref.rs +++ b/atrium-api/src/com/atproto/repo/strong_ref.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.strongRef` namespace. //!A URI with a content-hash fingerprint. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/repo/upload_blob.rs b/atrium-api/src/com/atproto/repo/upload_blob.rs index 5068981a..98792afb 100644 --- a/atrium-api/src/com/atproto/repo/upload_blob.rs +++ b/atrium-api/src/com/atproto/repo/upload_blob.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.repo.uploadBlob` namespace. pub const NSID: &str = "com.atproto.repo.uploadBlob"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server.rs b/atrium-api/src/com/atproto/server.rs index 36b74a8a..3c242111 100644 --- a/atrium-api/src/com/atproto/server.rs +++ b/atrium-api/src/com/atproto/server.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server` namespace. pub mod activate_account; pub mod check_account_status; diff --git a/atrium-api/src/com/atproto/server/activate_account.rs b/atrium-api/src/com/atproto/server/activate_account.rs index 7104e43a..b77a9d47 100644 --- a/atrium-api/src/com/atproto/server/activate_account.rs +++ b/atrium-api/src/com/atproto/server/activate_account.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.activateAccount` namespace. pub const NSID: &str = "com.atproto.server.activateAccount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/check_account_status.rs b/atrium-api/src/com/atproto/server/check_account_status.rs index 4f8b7811..152d29bc 100644 --- a/atrium-api/src/com/atproto/server/check_account_status.rs +++ b/atrium-api/src/com/atproto/server/check_account_status.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.checkAccountStatus` namespace. pub const NSID: &str = "com.atproto.server.checkAccountStatus"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/confirm_email.rs b/atrium-api/src/com/atproto/server/confirm_email.rs index a7bd0deb..8485e0f4 100644 --- a/atrium-api/src/com/atproto/server/confirm_email.rs +++ b/atrium-api/src/com/atproto/server/confirm_email.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.confirmEmail` namespace. pub const NSID: &str = "com.atproto.server.confirmEmail"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/create_account.rs b/atrium-api/src/com/atproto/server/create_account.rs index a7a2b57f..5905ca3c 100644 --- a/atrium-api/src/com/atproto/server/create_account.rs +++ b/atrium-api/src/com/atproto/server/create_account.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.createAccount` namespace. pub const NSID: &str = "com.atproto.server.createAccount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/create_app_password.rs b/atrium-api/src/com/atproto/server/create_app_password.rs index 56c39fa7..a2524008 100644 --- a/atrium-api/src/com/atproto/server/create_app_password.rs +++ b/atrium-api/src/com/atproto/server/create_app_password.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.createAppPassword` namespace. pub const NSID: &str = "com.atproto.server.createAppPassword"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/create_invite_code.rs b/atrium-api/src/com/atproto/server/create_invite_code.rs index 2458e9f8..2a14f530 100644 --- a/atrium-api/src/com/atproto/server/create_invite_code.rs +++ b/atrium-api/src/com/atproto/server/create_invite_code.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.createInviteCode` namespace. pub const NSID: &str = "com.atproto.server.createInviteCode"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/create_invite_codes.rs b/atrium-api/src/com/atproto/server/create_invite_codes.rs index 124383fc..65a62659 100644 --- a/atrium-api/src/com/atproto/server/create_invite_codes.rs +++ b/atrium-api/src/com/atproto/server/create_invite_codes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.createInviteCodes` namespace. pub const NSID: &str = "com.atproto.server.createInviteCodes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/create_session.rs b/atrium-api/src/com/atproto/server/create_session.rs index f2f95149..9f0888b4 100644 --- a/atrium-api/src/com/atproto/server/create_session.rs +++ b/atrium-api/src/com/atproto/server/create_session.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.createSession` namespace. pub const NSID: &str = "com.atproto.server.createSession"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/deactivate_account.rs b/atrium-api/src/com/atproto/server/deactivate_account.rs index 3a757019..c62985a6 100644 --- a/atrium-api/src/com/atproto/server/deactivate_account.rs +++ b/atrium-api/src/com/atproto/server/deactivate_account.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.deactivateAccount` namespace. pub const NSID: &str = "com.atproto.server.deactivateAccount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/defs.rs b/atrium-api/src/com/atproto/server/defs.rs index 3b11a988..5548df02 100644 --- a/atrium-api/src/com/atproto/server/defs.rs +++ b/atrium-api/src/com/atproto/server/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/com/atproto/server/delete_account.rs b/atrium-api/src/com/atproto/server/delete_account.rs index fa982f69..e64fa3e3 100644 --- a/atrium-api/src/com/atproto/server/delete_account.rs +++ b/atrium-api/src/com/atproto/server/delete_account.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.deleteAccount` namespace. pub const NSID: &str = "com.atproto.server.deleteAccount"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/delete_session.rs b/atrium-api/src/com/atproto/server/delete_session.rs index fdabf822..76c8fce3 100644 --- a/atrium-api/src/com/atproto/server/delete_session.rs +++ b/atrium-api/src/com/atproto/server/delete_session.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.deleteSession` namespace. pub const NSID: &str = "com.atproto.server.deleteSession"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/describe_server.rs b/atrium-api/src/com/atproto/server/describe_server.rs index 40945aaf..90989dba 100644 --- a/atrium-api/src/com/atproto/server/describe_server.rs +++ b/atrium-api/src/com/atproto/server/describe_server.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.describeServer` namespace. pub const NSID: &str = "com.atproto.server.describeServer"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/get_account_invite_codes.rs b/atrium-api/src/com/atproto/server/get_account_invite_codes.rs index fcf1a4d2..6e7c0bf1 100644 --- a/atrium-api/src/com/atproto/server/get_account_invite_codes.rs +++ b/atrium-api/src/com/atproto/server/get_account_invite_codes.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.getAccountInviteCodes` namespace. pub const NSID: &str = "com.atproto.server.getAccountInviteCodes"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/get_service_auth.rs b/atrium-api/src/com/atproto/server/get_service_auth.rs index 006ea667..adb76c2a 100644 --- a/atrium-api/src/com/atproto/server/get_service_auth.rs +++ b/atrium-api/src/com/atproto/server/get_service_auth.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.getServiceAuth` namespace. pub const NSID: &str = "com.atproto.server.getServiceAuth"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/get_session.rs b/atrium-api/src/com/atproto/server/get_session.rs index 0ff29fe3..ee8017b5 100644 --- a/atrium-api/src/com/atproto/server/get_session.rs +++ b/atrium-api/src/com/atproto/server/get_session.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.getSession` namespace. pub const NSID: &str = "com.atproto.server.getSession"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/list_app_passwords.rs b/atrium-api/src/com/atproto/server/list_app_passwords.rs index 220b38c8..ba71a634 100644 --- a/atrium-api/src/com/atproto/server/list_app_passwords.rs +++ b/atrium-api/src/com/atproto/server/list_app_passwords.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.listAppPasswords` namespace. pub const NSID: &str = "com.atproto.server.listAppPasswords"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/refresh_session.rs b/atrium-api/src/com/atproto/server/refresh_session.rs index cc53edc1..ce09ac56 100644 --- a/atrium-api/src/com/atproto/server/refresh_session.rs +++ b/atrium-api/src/com/atproto/server/refresh_session.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.refreshSession` namespace. pub const NSID: &str = "com.atproto.server.refreshSession"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/request_account_delete.rs b/atrium-api/src/com/atproto/server/request_account_delete.rs index 0b3954b6..2ba6b0e2 100644 --- a/atrium-api/src/com/atproto/server/request_account_delete.rs +++ b/atrium-api/src/com/atproto/server/request_account_delete.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.requestAccountDelete` namespace. pub const NSID: &str = "com.atproto.server.requestAccountDelete"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/request_email_confirmation.rs b/atrium-api/src/com/atproto/server/request_email_confirmation.rs index 7066095e..7e90be30 100644 --- a/atrium-api/src/com/atproto/server/request_email_confirmation.rs +++ b/atrium-api/src/com/atproto/server/request_email_confirmation.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.requestEmailConfirmation` namespace. pub const NSID: &str = "com.atproto.server.requestEmailConfirmation"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/request_email_update.rs b/atrium-api/src/com/atproto/server/request_email_update.rs index 690369c1..82ea42c8 100644 --- a/atrium-api/src/com/atproto/server/request_email_update.rs +++ b/atrium-api/src/com/atproto/server/request_email_update.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.requestEmailUpdate` namespace. pub const NSID: &str = "com.atproto.server.requestEmailUpdate"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/request_password_reset.rs b/atrium-api/src/com/atproto/server/request_password_reset.rs index d87ef3fb..9500cff1 100644 --- a/atrium-api/src/com/atproto/server/request_password_reset.rs +++ b/atrium-api/src/com/atproto/server/request_password_reset.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.requestPasswordReset` namespace. pub const NSID: &str = "com.atproto.server.requestPasswordReset"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/reserve_signing_key.rs b/atrium-api/src/com/atproto/server/reserve_signing_key.rs index a11123ac..24222915 100644 --- a/atrium-api/src/com/atproto/server/reserve_signing_key.rs +++ b/atrium-api/src/com/atproto/server/reserve_signing_key.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.reserveSigningKey` namespace. pub const NSID: &str = "com.atproto.server.reserveSigningKey"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/reset_password.rs b/atrium-api/src/com/atproto/server/reset_password.rs index 97c4b39b..3d1a9bd2 100644 --- a/atrium-api/src/com/atproto/server/reset_password.rs +++ b/atrium-api/src/com/atproto/server/reset_password.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.resetPassword` namespace. pub const NSID: &str = "com.atproto.server.resetPassword"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/revoke_app_password.rs b/atrium-api/src/com/atproto/server/revoke_app_password.rs index c7b3d52f..6a17a859 100644 --- a/atrium-api/src/com/atproto/server/revoke_app_password.rs +++ b/atrium-api/src/com/atproto/server/revoke_app_password.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.revokeAppPassword` namespace. pub const NSID: &str = "com.atproto.server.revokeAppPassword"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/server/update_email.rs b/atrium-api/src/com/atproto/server/update_email.rs index b6748fb0..cf65c12c 100644 --- a/atrium-api/src/com/atproto/server/update_email.rs +++ b/atrium-api/src/com/atproto/server/update_email.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.server.updateEmail` namespace. pub const NSID: &str = "com.atproto.server.updateEmail"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync.rs b/atrium-api/src/com/atproto/sync.rs index b5eb1cae..2cfc5410 100644 --- a/atrium-api/src/com/atproto/sync.rs +++ b/atrium-api/src/com/atproto/sync.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync` namespace. pub mod get_blob; pub mod get_blocks; diff --git a/atrium-api/src/com/atproto/sync/get_blob.rs b/atrium-api/src/com/atproto/sync/get_blob.rs index c6f906b0..f61b9dcc 100644 --- a/atrium-api/src/com/atproto/sync/get_blob.rs +++ b/atrium-api/src/com/atproto/sync/get_blob.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getBlob` namespace. pub const NSID: &str = "com.atproto.sync.getBlob"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_blocks.rs b/atrium-api/src/com/atproto/sync/get_blocks.rs index b7f03e27..89e2acef 100644 --- a/atrium-api/src/com/atproto/sync/get_blocks.rs +++ b/atrium-api/src/com/atproto/sync/get_blocks.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getBlocks` namespace. pub const NSID: &str = "com.atproto.sync.getBlocks"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_checkout.rs b/atrium-api/src/com/atproto/sync/get_checkout.rs index 415dfc86..d8e934c6 100644 --- a/atrium-api/src/com/atproto/sync/get_checkout.rs +++ b/atrium-api/src/com/atproto/sync/get_checkout.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getCheckout` namespace. pub const NSID: &str = "com.atproto.sync.getCheckout"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_head.rs b/atrium-api/src/com/atproto/sync/get_head.rs index 09a67262..7d148579 100644 --- a/atrium-api/src/com/atproto/sync/get_head.rs +++ b/atrium-api/src/com/atproto/sync/get_head.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getHead` namespace. pub const NSID: &str = "com.atproto.sync.getHead"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_latest_commit.rs b/atrium-api/src/com/atproto/sync/get_latest_commit.rs index b778b97c..9f33a301 100644 --- a/atrium-api/src/com/atproto/sync/get_latest_commit.rs +++ b/atrium-api/src/com/atproto/sync/get_latest_commit.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getLatestCommit` namespace. pub const NSID: &str = "com.atproto.sync.getLatestCommit"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_record.rs b/atrium-api/src/com/atproto/sync/get_record.rs index 03893139..0d2cf1ac 100644 --- a/atrium-api/src/com/atproto/sync/get_record.rs +++ b/atrium-api/src/com/atproto/sync/get_record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getRecord` namespace. pub const NSID: &str = "com.atproto.sync.getRecord"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_repo.rs b/atrium-api/src/com/atproto/sync/get_repo.rs index 64804bbc..bcede4c2 100644 --- a/atrium-api/src/com/atproto/sync/get_repo.rs +++ b/atrium-api/src/com/atproto/sync/get_repo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getRepo` namespace. pub const NSID: &str = "com.atproto.sync.getRepo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/get_repo_status.rs b/atrium-api/src/com/atproto/sync/get_repo_status.rs index a0c43d8b..fb8a9adb 100644 --- a/atrium-api/src/com/atproto/sync/get_repo_status.rs +++ b/atrium-api/src/com/atproto/sync/get_repo_status.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.getRepoStatus` namespace. pub const NSID: &str = "com.atproto.sync.getRepoStatus"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/list_blobs.rs b/atrium-api/src/com/atproto/sync/list_blobs.rs index 54371033..c609bd16 100644 --- a/atrium-api/src/com/atproto/sync/list_blobs.rs +++ b/atrium-api/src/com/atproto/sync/list_blobs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.listBlobs` namespace. pub const NSID: &str = "com.atproto.sync.listBlobs"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/list_repos.rs b/atrium-api/src/com/atproto/sync/list_repos.rs index b4604ef7..a4969c69 100644 --- a/atrium-api/src/com/atproto/sync/list_repos.rs +++ b/atrium-api/src/com/atproto/sync/list_repos.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.listRepos` namespace. pub const NSID: &str = "com.atproto.sync.listRepos"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/notify_of_update.rs b/atrium-api/src/com/atproto/sync/notify_of_update.rs index be138437..9ccf30a8 100644 --- a/atrium-api/src/com/atproto/sync/notify_of_update.rs +++ b/atrium-api/src/com/atproto/sync/notify_of_update.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.notifyOfUpdate` namespace. pub const NSID: &str = "com.atproto.sync.notifyOfUpdate"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/request_crawl.rs b/atrium-api/src/com/atproto/sync/request_crawl.rs index ec7ee700..e47ad9ad 100644 --- a/atrium-api/src/com/atproto/sync/request_crawl.rs +++ b/atrium-api/src/com/atproto/sync/request_crawl.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.requestCrawl` namespace. pub const NSID: &str = "com.atproto.sync.requestCrawl"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/sync/subscribe_repos.rs b/atrium-api/src/com/atproto/sync/subscribe_repos.rs index 938a2d7e..d3476440 100644 --- a/atrium-api/src/com/atproto/sync/subscribe_repos.rs +++ b/atrium-api/src/com/atproto/sync/subscribe_repos.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.sync.subscribeRepos` namespace. pub const NSID: &str = "com.atproto.sync.subscribeRepos"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/temp.rs b/atrium-api/src/com/atproto/temp.rs index 283c1834..79c9dbc7 100644 --- a/atrium-api/src/com/atproto/temp.rs +++ b/atrium-api/src/com/atproto/temp.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.temp` namespace. pub mod check_signup_queue; pub mod fetch_labels; diff --git a/atrium-api/src/com/atproto/temp/check_signup_queue.rs b/atrium-api/src/com/atproto/temp/check_signup_queue.rs index 8571dd7b..7e08c7df 100644 --- a/atrium-api/src/com/atproto/temp/check_signup_queue.rs +++ b/atrium-api/src/com/atproto/temp/check_signup_queue.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.temp.checkSignupQueue` namespace. pub const NSID: &str = "com.atproto.temp.checkSignupQueue"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/temp/fetch_labels.rs b/atrium-api/src/com/atproto/temp/fetch_labels.rs index b70cfa43..fbb43784 100644 --- a/atrium-api/src/com/atproto/temp/fetch_labels.rs +++ b/atrium-api/src/com/atproto/temp/fetch_labels.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.temp.fetchLabels` namespace. pub const NSID: &str = "com.atproto.temp.fetchLabels"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/com/atproto/temp/request_phone_verification.rs b/atrium-api/src/com/atproto/temp/request_phone_verification.rs index 61306905..474b2162 100644 --- a/atrium-api/src/com/atproto/temp/request_phone_verification.rs +++ b/atrium-api/src/com/atproto/temp/request_phone_verification.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.temp.requestPhoneVerification` namespace. pub const NSID: &str = "com.atproto.temp.requestPhoneVerification"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/record.rs b/atrium-api/src/record.rs index 7ccec6f8..31e28d4b 100644 --- a/atrium-api/src/record.rs +++ b/atrium-api/src/record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!A collection of known record types. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] diff --git a/atrium-api/src/tools.rs b/atrium-api/src/tools.rs index 17a2adb1..88927f69 100644 --- a/atrium-api/src/tools.rs +++ b/atrium-api/src/tools.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools` namespace. #[cfg_attr(docsrs, doc(cfg(feature = "namespace-toolsozone")))] #[cfg(feature = "namespace-toolsozone")] diff --git a/atrium-api/src/tools/ozone.rs b/atrium-api/src/tools/ozone.rs index c3b0479c..456d50d9 100644 --- a/atrium-api/src/tools/ozone.rs +++ b/atrium-api/src/tools/ozone.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone` namespace. pub mod communication; pub mod moderation; diff --git a/atrium-api/src/tools/ozone/communication.rs b/atrium-api/src/tools/ozone/communication.rs index c205ad75..ee67dac1 100644 --- a/atrium-api/src/tools/ozone/communication.rs +++ b/atrium-api/src/tools/ozone/communication.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.communication` namespace. pub mod create_template; pub mod defs; diff --git a/atrium-api/src/tools/ozone/communication/create_template.rs b/atrium-api/src/tools/ozone/communication/create_template.rs index c0bbe979..9cbe8db3 100644 --- a/atrium-api/src/tools/ozone/communication/create_template.rs +++ b/atrium-api/src/tools/ozone/communication/create_template.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.communication.createTemplate` namespace. pub const NSID: &str = "tools.ozone.communication.createTemplate"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/communication/defs.rs b/atrium-api/src/tools/ozone/communication/defs.rs index 1d084804..262a12c0 100644 --- a/atrium-api/src/tools/ozone/communication/defs.rs +++ b/atrium-api/src/tools/ozone/communication/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.communication.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/tools/ozone/communication/delete_template.rs b/atrium-api/src/tools/ozone/communication/delete_template.rs index 7fa9cb6a..e53fee33 100644 --- a/atrium-api/src/tools/ozone/communication/delete_template.rs +++ b/atrium-api/src/tools/ozone/communication/delete_template.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.communication.deleteTemplate` namespace. pub const NSID: &str = "tools.ozone.communication.deleteTemplate"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/communication/list_templates.rs b/atrium-api/src/tools/ozone/communication/list_templates.rs index db978660..3288f3ba 100644 --- a/atrium-api/src/tools/ozone/communication/list_templates.rs +++ b/atrium-api/src/tools/ozone/communication/list_templates.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.communication.listTemplates` namespace. pub const NSID: &str = "tools.ozone.communication.listTemplates"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/communication/update_template.rs b/atrium-api/src/tools/ozone/communication/update_template.rs index b25abac5..db27d8a2 100644 --- a/atrium-api/src/tools/ozone/communication/update_template.rs +++ b/atrium-api/src/tools/ozone/communication/update_template.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.communication.updateTemplate` namespace. pub const NSID: &str = "tools.ozone.communication.updateTemplate"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation.rs b/atrium-api/src/tools/ozone/moderation.rs index 7b3f2eae..1cd70aa3 100644 --- a/atrium-api/src/tools/ozone/moderation.rs +++ b/atrium-api/src/tools/ozone/moderation.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation` namespace. pub mod defs; pub mod emit_event; diff --git a/atrium-api/src/tools/ozone/moderation/defs.rs b/atrium-api/src/tools/ozone/moderation/defs.rs index 0adfeaf7..e286c32e 100644 --- a/atrium-api/src/tools/ozone/moderation/defs.rs +++ b/atrium-api/src/tools/ozone/moderation/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/tools/ozone/moderation/emit_event.rs b/atrium-api/src/tools/ozone/moderation/emit_event.rs index 301ce7ae..82fc95d3 100644 --- a/atrium-api/src/tools/ozone/moderation/emit_event.rs +++ b/atrium-api/src/tools/ozone/moderation/emit_event.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.emitEvent` namespace. pub const NSID: &str = "tools.ozone.moderation.emitEvent"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/get_event.rs b/atrium-api/src/tools/ozone/moderation/get_event.rs index c654d0c6..030f9dc5 100644 --- a/atrium-api/src/tools/ozone/moderation/get_event.rs +++ b/atrium-api/src/tools/ozone/moderation/get_event.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.getEvent` namespace. pub const NSID: &str = "tools.ozone.moderation.getEvent"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/get_record.rs b/atrium-api/src/tools/ozone/moderation/get_record.rs index a7742b35..281ea473 100644 --- a/atrium-api/src/tools/ozone/moderation/get_record.rs +++ b/atrium-api/src/tools/ozone/moderation/get_record.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.getRecord` namespace. pub const NSID: &str = "tools.ozone.moderation.getRecord"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/get_repo.rs b/atrium-api/src/tools/ozone/moderation/get_repo.rs index 9a432168..eb5fae5b 100644 --- a/atrium-api/src/tools/ozone/moderation/get_repo.rs +++ b/atrium-api/src/tools/ozone/moderation/get_repo.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.getRepo` namespace. pub const NSID: &str = "tools.ozone.moderation.getRepo"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/query_events.rs b/atrium-api/src/tools/ozone/moderation/query_events.rs index 6978d3da..bbb691f4 100644 --- a/atrium-api/src/tools/ozone/moderation/query_events.rs +++ b/atrium-api/src/tools/ozone/moderation/query_events.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.queryEvents` namespace. pub const NSID: &str = "tools.ozone.moderation.queryEvents"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/query_statuses.rs b/atrium-api/src/tools/ozone/moderation/query_statuses.rs index 42694dbf..6bd10a50 100644 --- a/atrium-api/src/tools/ozone/moderation/query_statuses.rs +++ b/atrium-api/src/tools/ozone/moderation/query_statuses.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.queryStatuses` namespace. pub const NSID: &str = "tools.ozone.moderation.queryStatuses"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/moderation/search_repos.rs b/atrium-api/src/tools/ozone/moderation/search_repos.rs index 3eb9319d..f793ee46 100644 --- a/atrium-api/src/tools/ozone/moderation/search_repos.rs +++ b/atrium-api/src/tools/ozone/moderation/search_repos.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.moderation.searchRepos` namespace. pub const NSID: &str = "tools.ozone.moderation.searchRepos"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/server.rs b/atrium-api/src/tools/ozone/server.rs index 95909efb..7138b62d 100644 --- a/atrium-api/src/tools/ozone/server.rs +++ b/atrium-api/src/tools/ozone/server.rs @@ -1,3 +1,3 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.server` namespace. pub mod get_config; diff --git a/atrium-api/src/tools/ozone/server/get_config.rs b/atrium-api/src/tools/ozone/server/get_config.rs index a58555d6..c4ee5242 100644 --- a/atrium-api/src/tools/ozone/server/get_config.rs +++ b/atrium-api/src/tools/ozone/server/get_config.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.server.getConfig` namespace. pub const NSID: &str = "tools.ozone.server.getConfig"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/team.rs b/atrium-api/src/tools/ozone/team.rs index a0a86988..b43ca248 100644 --- a/atrium-api/src/tools/ozone/team.rs +++ b/atrium-api/src/tools/ozone/team.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.team` namespace. pub mod add_member; pub mod defs; diff --git a/atrium-api/src/tools/ozone/team/add_member.rs b/atrium-api/src/tools/ozone/team/add_member.rs index 10a0f1c3..252fe839 100644 --- a/atrium-api/src/tools/ozone/team/add_member.rs +++ b/atrium-api/src/tools/ozone/team/add_member.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.team.addMember` namespace. pub const NSID: &str = "tools.ozone.team.addMember"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/team/defs.rs b/atrium-api/src/tools/ozone/team/defs.rs index 6ac052cd..f4f98dfc 100644 --- a/atrium-api/src/tools/ozone/team/defs.rs +++ b/atrium-api/src/tools/ozone/team/defs.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.team.defs` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/tools/ozone/team/delete_member.rs b/atrium-api/src/tools/ozone/team/delete_member.rs index eb3d42bc..edf68244 100644 --- a/atrium-api/src/tools/ozone/team/delete_member.rs +++ b/atrium-api/src/tools/ozone/team/delete_member.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.team.deleteMember` namespace. pub const NSID: &str = "tools.ozone.team.deleteMember"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/team/list_members.rs b/atrium-api/src/tools/ozone/team/list_members.rs index 41217ac6..88ad7501 100644 --- a/atrium-api/src/tools/ozone/team/list_members.rs +++ b/atrium-api/src/tools/ozone/team/list_members.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.team.listMembers` namespace. pub const NSID: &str = "tools.ozone.team.listMembers"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] diff --git a/atrium-api/src/tools/ozone/team/update_member.rs b/atrium-api/src/tools/ozone/team/update_member.rs index 0cf072b1..906b9a83 100644 --- a/atrium-api/src/tools/ozone/team/update_member.rs +++ b/atrium-api/src/tools/ozone/team/update_member.rs @@ -1,4 +1,4 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. +// @generated - This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `tools.ozone.team.updateMember` namespace. pub const NSID: &str = "tools.ozone.team.updateMember"; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] From 585d89f50479781f6891f121c41a4dbecd8ecda2 Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:06:13 -0300 Subject: [PATCH 06/10] Adding `cargo fmt` alias --- .cargo/config.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..081b9f20 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[alias] +fmt-no-gen = "fmt --check -- --config format_generated_files=false" From 4140045f9e917cc9de34e83d61c8c8dbd087ea7d Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:48:44 -0300 Subject: [PATCH 07/10] Refactoring rustfmt.toml and .editorconfig --- .editorconfig | 8 +++++++- rustfmt.toml | 12 ++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.editorconfig b/.editorconfig index c780a25b..440a97fd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,4 +10,10 @@ charset = utf-8 indent_style = space indent_size = 4 trim_trailing_whitespace = true -max_line_length = 100 \ No newline at end of file +max_line_length = 100 + +[*.md] +indent_size = 2 + +[*.{yml, yaml}] +indent_size = 2 \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml index bf272742..7c379b67 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,14 +1,6 @@ # Rustfmt configuration file - -# Set the maximum line width -max_width = 100 - -# Use 4 spaces for indentation -tab_spaces = 4 - -# Use the default set of rules -# Uncomment the following line to enable custom rules -# custom_rules = true +reorder_modules = true +use_small_heuristics = "Max" ## Nightly only, but preferrable # brace_style = "PreferSameLine" From 6b558324e19f9b9e2eb311f9b28285eb298aac59 Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:45:54 -0300 Subject: [PATCH 08/10] Configuring Rust CI --- .github/rust.json | 33 +++++++++++++++++++++++++++++++++ .github/workflows/rust.yml | 33 +++++++++++++++++++++++++++++---- 2 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 .github/rust.json diff --git a/.github/rust.json b/.github/rust.json new file mode 100644 index 00000000..0b58b7bb --- /dev/null +++ b/.github/rust.json @@ -0,0 +1,33 @@ +{ + "problemMatcher": [ + { + "owner": "rustfmt", + "severity": "warning", + "pattern": [ + { + "regexp": "^(Diff in (.+)) at line (\\d+):$", + "message": 1, + "file": 2, + "line": 3 + } + ] + }, + { + "owner": "clippy", + "pattern": [ + { + "regexp": "^(?:\\x1b\\[[\\d;]+m)*(warning|warn|error)(?:\\x1b\\[[\\d;]+m)*(\\[(.*)\\])?(?:\\x1b\\[[\\d;]+m)*:(?:\\x1b\\[[\\d;]+m)* ([^\\x1b]*)(?:\\x1b\\[[\\d;]+m)*$", + "severity": 1, + "message": 4, + "code": 3 + }, + { + "regexp": "^(?:\\x1b\\[[\\d;]+m)*\\s*(?:\\x1b\\[[\\d;]+m)*\\s*--> (?:\\x1b\\[[\\d;]+m)*(.*):(\\d*):(\\d*)(?:\\x1b\\[[\\d;]+m)*$", + "file": 1, + "line": 2, + "column": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d225c208..75cca6b5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Rust CI on: push: @@ -8,11 +8,36 @@ on: env: CARGO_TERM_COLOR: always + CARGO_INCREMENTAL: 0 + CARGO_NET_RETRY: 10 + RUSTUP_MAX_RETRIES: 10 + RUST_BACKTRACE: short + RUSTFLAGS: "-D warnings" jobs: - build: + rust: + name: Rust runs-on: ubuntu-latest + + strategy: + fail-fast: false + steps: - - uses: actions/checkout@v4 - - name: Build + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + + # https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json + - name: Install Rust Problem Matcher + run: echo "::add-matcher::.github/rust.json" + + - name: Bump opt-level + run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml + + - name: Compile (rust-analyzer) run: cargo build --verbose + + - name: rustfmt + run: cargo fmt-no-gen From 91b8545046314217ffc437831251a3623fb84f5d Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:53:45 -0300 Subject: [PATCH 09/10] Merging clippy.yml workflow into rust.yml --- .github/workflows/clippy.yml | 18 ------------------ .github/workflows/rust.yml | 10 ++++++++-- 2 files changed, 8 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/clippy.yml diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml deleted file mode 100644 index a8f2075d..00000000 --- a/.github/workflows/clippy.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Clippy - -on: - pull_request: - branches: ["main"] - -jobs: - clippy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: clippy - - uses: giraffate/clippy-action@v1 - with: - reporter: "github-pr-check" - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 75cca6b5..6a10a877 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,6 +38,12 @@ jobs: - name: Compile (rust-analyzer) run: cargo build --verbose - - - name: rustfmt + + - name: Lint (clippy) + uses: giraffate/clippy-action@v1 + with: + reporter: "github-pr-check" + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Format (rustfmt) run: cargo fmt-no-gen From 9c84ca7074d703a0bf25b14eff8aef1c7446b29d Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Wed, 18 Sep 2024 22:23:30 -0300 Subject: [PATCH 10/10] Formatting workspace --- .cargo/config.toml | 2 +- .github/workflows/rust.yml | 2 +- atrium-api/src/agent.rs | 75 +--- atrium-api/src/agent/inner.rs | 74 ++-- atrium-api/src/types.rs | 100 +---- atrium-api/src/types/cid_link.rs | 5 +- atrium-api/src/types/string.rs | 45 +-- atrium-crypto/src/did.rs | 22 +- atrium-crypto/src/encoding.rs | 12 +- atrium-crypto/src/keypair.rs | 63 +--- atrium-crypto/src/verify.rs | 44 +-- atrium-xrpc-client/src/isahc.rs | 18 +- atrium-xrpc-client/src/reqwest.rs | 14 +- atrium-xrpc-client/src/tests.rs | 4 +- atrium-xrpc/src/lib.rs | 49 +-- atrium-xrpc/src/traits.rs | 11 +- bsky-cli/src/runner.rs | 32 +- bsky-sdk/src/agent.rs | 39 +- bsky-sdk/src/agent/builder.rs | 32 +- bsky-sdk/src/agent/config/file.rs | 9 +- bsky-sdk/src/error.rs | 5 +- bsky-sdk/src/lib.rs | 12 +- bsky-sdk/src/moderation.rs | 6 +- bsky-sdk/src/moderation/decision.rs | 133 +++---- bsky-sdk/src/moderation/labels.rs | 5 +- bsky-sdk/src/moderation/mutewords.rs | 14 +- bsky-sdk/src/moderation/subjects/profile.rs | 5 +- bsky-sdk/src/moderation/tests.rs | 44 +-- bsky-sdk/src/moderation/tests/behaviors.rs | 270 +++----------- .../src/moderation/tests/custom_labels.rs | 24 +- bsky-sdk/src/moderation/tests/mutewords.rs | 342 ++++-------------- bsky-sdk/src/moderation/tests/quoteposts.rs | 61 +--- bsky-sdk/src/preference.rs | 5 +- bsky-sdk/src/record.rs | 15 +- bsky-sdk/src/record/agent.rs | 5 +- bsky-sdk/src/rich_text.rs | 30 +- bsky-sdk/src/rich_text/detection.rs | 19 +- bsky-sdk/src/rich_text/tests.rs | 111 ++---- bsky-sdk/src/rich_text/tests/detection.rs | 68 +--- 39 files changed, 410 insertions(+), 1416 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 081b9f20..e1a3fda4 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ [alias] -fmt-no-gen = "fmt --check -- --config format_generated_files=false" +fmt-no-gen = "fmt -- --config format_generated_files=false" \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6a10a877..acf3904b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,4 +46,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} - name: Format (rustfmt) - run: cargo fmt-no-gen + run: cargo fmt-no-gen --check diff --git a/atrium-api/src/agent.rs b/atrium-api/src/agent.rs index cb79afce..f424a061 100644 --- a/atrium-api/src/agent.rs +++ b/atrium-api/src/agent.rs @@ -262,14 +262,12 @@ mod tests { } } if body.is_empty() { - Ok(builder - .status(http::StatusCode::UNAUTHORIZED) - .body(serde_json::to_vec( - &atrium_xrpc::error::ErrorResponseBody { - error: Some(String::from("AuthenticationRequired")), - message: Some(String::from("Invalid identifier or password")), - }, - )?)?) + Ok(builder.status(http::StatusCode::UNAUTHORIZED).body(serde_json::to_vec( + &atrium_xrpc::error::ErrorResponseBody { + error: Some(String::from("AuthenticationRequired")), + message: Some(String::from("Invalid identifier or password")), + }, + )?)?) } else { Ok(builder.status(http::StatusCode::OK).body(body)?) } @@ -320,25 +318,17 @@ mod tests { ..Default::default() }; let agent = AtpAgent::new(client, MemorySessionStore::default()); - agent - .login("test", "pass") - .await - .expect("login should be succeeded"); + agent.login("test", "pass").await.expect("login should be succeeded"); assert_eq!(agent.get_session().await, Some(session_data.into())); } // failure with `createSession` error { let client = MockClient { - responses: MockResponses { - ..Default::default() - }, + responses: MockResponses { ..Default::default() }, ..Default::default() }; let agent = AtpAgent::new(client, MemorySessionStore::default()); - agent - .login("test", "bad") - .await - .expect_err("login should be failed"); + agent.login("test", "bad").await.expect_err("login should be failed"); assert_eq!(agent.get_session().await, None); } } @@ -409,11 +399,7 @@ mod tests { .expect("get session should be succeeded"); assert_eq!(output.did.as_str(), "did:web:example.com"); assert_eq!( - agent - .store - .get_session() - .await - .map(|session| session.data.access_jwt), + agent.store.get_session().await.map(|session| session.data.access_jwt), Some("access".into()) ); } @@ -456,11 +442,7 @@ mod tests { assert_eq!(output.did.as_str(), "did:web:example.com"); } assert_eq!( - agent - .store - .get_session() - .await - .map(|session| session.data.access_jwt), + agent.store.get_session().await.map(|session| session.data.access_jwt), Some("access".into()) ); assert_eq!( @@ -511,9 +493,7 @@ mod tests { // failure with `getSession` error { let client = MockClient { - responses: MockResponses { - ..Default::default() - }, + responses: MockResponses { ..Default::default() }, ..Default::default() }; let agent = AtpAgent::new(client, MemorySessionStore::default()); @@ -549,11 +529,7 @@ mod tests { let agent = AtpAgent::new(client, MemorySessionStore::default()); agent .resume_session( - OutputData { - access_jwt: "expired".into(), - ..session_data.clone() - } - .into(), + OutputData { access_jwt: "expired".into(), ..session_data.clone() }.into(), ) .await .expect("resume_session should be succeeded"); @@ -599,15 +575,9 @@ mod tests { ..Default::default() }; let agent = AtpAgent::new(client, MemorySessionStore::default()); - agent - .login("test", "pass") - .await - .expect("login should be succeeded"); + agent.login("test", "pass").await.expect("login should be succeeded"); assert_eq!(agent.get_endpoint().await, "https://bsky.social"); - assert_eq!( - agent.api.com.atproto.server.xrpc.base_uri(), - "https://bsky.social" - ); + assert_eq!(agent.api.com.atproto.server.xrpc.base_uri(), "https://bsky.social"); } // invalid services { @@ -640,16 +610,10 @@ mod tests { ..Default::default() }; let agent = AtpAgent::new(client, MemorySessionStore::default()); - agent - .login("test", "pass") - .await - .expect("login should be succeeded"); + agent.login("test", "pass").await.expect("login should be succeeded"); // not updated assert_eq!(agent.get_endpoint().await, "http://localhost:8080"); - assert_eq!( - agent.api.com.atproto.server.xrpc.base_uri(), - "http://localhost:8080" - ); + assert_eq!(agent.api.com.atproto.server.xrpc.base_uri(), "http://localhost:8080"); } } @@ -712,10 +676,7 @@ mod tests { assert_eq!( agent.get_labelers_header().await, - Some(vec![ - String::from("did:plc:test1;redact"), - String::from("did:plc:test2") - ]) + Some(vec![String::from("did:plc:test1;redact"), String::from("did:plc:test2")]) ); } diff --git a/atrium-api/src/agent/inner.rs b/atrium-api/src/agent/inner.rs index 4647fef6..910924aa 100644 --- a/atrium-api/src/agent/inner.rs +++ b/atrium-api/src/agent/inner.rs @@ -20,26 +20,21 @@ struct WrapperClient { impl WrapperClient { fn configure_proxy_header(&self, value: String) { - self.proxy_header - .write() - .expect("failed to write proxy header") - .replace(value); + self.proxy_header.write().expect("failed to write proxy header").replace(value); } fn configure_labelers_header(&self, labelers_dids: Option>) { - *self - .labelers_header - .write() - .expect("failed to write labelers header") = labelers_dids.map(|dids| { - dids.iter() - .map(|(did, redact)| { - if *redact { - format!("{};redact", did.as_ref()) - } else { - did.as_ref().into() - } - }) - .collect() - }) + *self.labelers_header.write().expect("failed to write labelers header") = + labelers_dids.map(|dids| { + dids.iter() + .map(|(did, redact)| { + if *redact { + format!("{};redact", did.as_ref()) + } else { + did.as_ref().into() + } + }) + .collect() + }) } } @@ -49,10 +44,7 @@ impl Clone for WrapperClient { store: self.store.clone(), labelers_header: self.labelers_header.clone(), proxy_header: RwLock::new( - self.proxy_header - .read() - .expect("failed to read proxy header") - .clone(), + self.proxy_header.read().expect("failed to read proxy header").clone(), ), inner: self.inner.clone(), } @@ -95,16 +87,10 @@ where }) } async fn atproto_proxy_header(&self) -> Option { - self.proxy_header - .read() - .expect("failed to read proxy header") - .clone() + self.proxy_header.read().expect("failed to read proxy header").clone() } async fn atproto_accept_labelers_header(&self) -> Option> { - self.labelers_header - .read() - .expect("failed to read labelers header") - .clone() + self.labelers_header.read().expect("failed to read labelers header").clone() } } @@ -135,21 +121,14 @@ where } } pub fn configure_endpoint(&self, endpoint: String) { - *self - .store - .endpoint - .write() - .expect("failed to write endpoint") = endpoint; + *self.store.endpoint.write().expect("failed to write endpoint") = endpoint; } pub fn configure_proxy_header(&self, did: Did, service_type: impl AsRef) { - self.inner - .configure_proxy_header(format!("{}#{}", did.as_ref(), service_type.as_ref())); + self.inner.configure_proxy_header(format!("{}#{}", did.as_ref(), service_type.as_ref())); } pub fn clone_with_proxy(&self, did: Did, service_type: impl AsRef) -> Self { let cloned = self.clone(); - cloned - .inner - .configure_proxy_header(format!("{}#{}", did.as_ref(), service_type.as_ref())); + cloned.inner.configure_proxy_header(format!("{}#{}", did.as_ref(), service_type.as_ref())); cloned } pub fn configure_labelers_header(&self, labeler_dids: Option>) { @@ -306,16 +285,10 @@ pub struct Store { impl Store { pub fn new(inner: S, initial_endpoint: String) -> Self { - Self { - inner, - endpoint: RwLock::new(initial_endpoint), - } + Self { inner, endpoint: RwLock::new(initial_endpoint) } } pub fn get_endpoint(&self) -> String { - self.endpoint - .read() - .expect("failed to read endpoint") - .clone() + self.endpoint.read().expect("failed to read endpoint").clone() } pub fn update_endpoint(&self, did_doc: &DidDocument) { if let Some(endpoint) = Self::get_pds_endpoint(did_doc) { @@ -328,9 +301,8 @@ impl Store { fn get_service_endpoint(did_doc: &DidDocument, (id, r#type): (&str, &str)) -> Option { let full_id = did_doc.id.clone() + id; if let Some(services) = &did_doc.service { - let service = services - .iter() - .find(|service| service.id == id || service.id == full_id)?; + let service = + services.iter().find(|service| service.id == id || service.id == full_id)?; if service.r#type == r#type && Self::validate_url(&service.service_endpoint) { return Some(service.service_endpoint.clone()); } diff --git a/atrium-api/src/types.rs b/atrium-api/src/types.rs index 24c91d87..ffafcfc0 100644 --- a/atrium-api/src/types.rs +++ b/atrium-api/src/types.rs @@ -40,9 +40,7 @@ pub trait Collection: fmt::Debug { /// /// [`Nsid`]: string::Nsid fn nsid() -> string::Nsid { - Self::NSID - .parse() - .expect("Self::NSID should be a valid NSID") + Self::NSID.parse().expect("Self::NSID should be a valid NSID") } /// Returns the repo path for a record in this collection with the given record key. @@ -104,10 +102,7 @@ pub struct Object { impl From for Object { fn from(data: T) -> Self { - Self { - data, - extra_data: Ipld::Map(std::collections::BTreeMap::new()), - } + Self { data, extra_data: Ipld::Map(std::collections::BTreeMap::new()) } } } @@ -166,27 +161,17 @@ where S: ser::Serializer, { match ipld { - Ipld::Float(_) => Err(ser::Error::custom( - "float values are not allowed in ATProtocol", - )), + Ipld::Float(_) => Err(ser::Error::custom("float values are not allowed in ATProtocol")), Ipld::List(list) => { if list.iter().any(|value| matches!(value, Ipld::Float(_))) { - Err(ser::Error::custom( - "float values are not allowed in ATProtocol", - )) + Err(ser::Error::custom("float values are not allowed in ATProtocol")) } else { - list.iter() - .cloned() - .map(DataModel) - .collect::>() - .serialize(serializer) + list.iter().cloned().map(DataModel).collect::>().serialize(serializer) } } Ipld::Map(map) => { if map.values().any(|value| matches!(value, Ipld::Float(_))) { - Err(ser::Error::custom( - "float values are not allowed in ATProtocol", - )) + Err(ser::Error::custom("float values are not allowed in ATProtocol")) } else { map.iter() .map(|(k, v)| (k, DataModel(v.clone()))) @@ -391,10 +376,7 @@ mod tests { assert!(DataModel::try_from(Ipld::Null).is_ok()); assert!(DataModel::try_from(Ipld::Bool(true)).is_ok()); assert!(DataModel::try_from(Ipld::Integer(1)).is_ok()); - assert!( - DataModel::try_from(Ipld::Float(1.5)).is_err(), - "float value should fail" - ); + assert!(DataModel::try_from(Ipld::Float(1.5)).is_err(), "float value should fail"); assert!(DataModel::try_from(Ipld::String("s".into())).is_ok()); assert!(DataModel::try_from(Ipld::Bytes(vec![0x01])).is_ok()); assert!(DataModel::try_from(Ipld::List(vec![Ipld::Bool(true)])).is_ok()); @@ -447,12 +429,7 @@ mod tests { let foo = serde_json::from_str::(r#"{"$type":"example.com#bar","bar":"bar"}"#) .expect("failed to deserialize foo"); - assert_eq!( - foo, - Union::Refs(FooRefs::Bar(Box::new(Bar { - bar: String::from("bar") - }))) - ); + assert_eq!(foo, Union::Refs(FooRefs::Bar(Box::new(Bar { bar: String::from("bar") })))); let foo = serde_json::from_str::(r#"{"$type":"example.com#baz","baz":42}"#) .expect("failed to deserialize foo"); @@ -464,10 +441,7 @@ mod tests { foo, Union::Unknown(UnknownData { r#type: String::from("example.com#foo"), - data: Ipld::Map(BTreeMap::from_iter([( - String::from("foo"), - Ipld::Bool(true) - )])) + data: Ipld::Map(BTreeMap::from_iter([(String::from("foo"), Ipld::Bool(true))])) }) ); } @@ -509,10 +483,7 @@ mod tests { deserialized, Foo { foo: Unknown::Object(BTreeMap::from_iter([ - ( - String::from("bar"), - DataModel(Ipld::String(String::from("bar"))) - ), + (String::from("bar"), DataModel(Ipld::String(String::from("bar")))), ( String::from("$type"), DataModel(Ipld::String(String::from("example.com#foo"))) @@ -527,12 +498,7 @@ mod tests { "foo": {} }"#; let deserialized = from_str::(json).expect("failed to deserialize foo"); - assert_eq!( - deserialized, - Foo { - foo: Unknown::Object(BTreeMap::default()) - } - ); + assert_eq!(deserialized, Foo { foo: Unknown::Object(BTreeMap::default()) }); } // valid(?): object with no `$type` { @@ -566,12 +532,7 @@ mod tests { "foo": 42 }"#; let deserialized = from_str::(json).expect("failed to deserialize foo"); - assert_eq!( - deserialized, - Foo { - foo: Unknown::Other(DataModel(Ipld::Integer(42))) - } - ); + assert_eq!(deserialized, Foo { foo: Unknown::Other(DataModel(Ipld::Integer(42))) }); } // invalid: float (not allowed) { @@ -605,36 +566,17 @@ mod tests { { let unknown = Unknown::Object(BTreeMap::from_iter([ - ( - String::from("$type"), - DataModel(Ipld::String(String::from("example.com#bar"))), - ), - ( - String::from("bar"), - DataModel(Ipld::String(String::from("barbar"))), - ), + (String::from("$type"), DataModel(Ipld::String(String::from("example.com#bar")))), + (String::from("bar"), DataModel(Ipld::String(String::from("barbar")))), ])); let bar = Bar::try_from_unknown(unknown.clone()).expect("failed to convert to Bar"); - assert_eq!( - bar, - Bar { - bar: String::from("barbar") - } - ); + assert_eq!(bar, Bar { bar: String::from("barbar") }); let barbaz = Foo::try_from_unknown(unknown).expect("failed to convert to Bar"); - assert_eq!( - barbaz, - Foo::Bar(Box::new(Bar { - bar: String::from("barbar") - })) - ); + assert_eq!(barbaz, Foo::Bar(Box::new(Bar { bar: String::from("barbar") }))); } { let unknown = Unknown::Object(BTreeMap::from_iter([ - ( - String::from("$type"), - DataModel(Ipld::String(String::from("example.com#baz"))), - ), + (String::from("$type"), DataModel(Ipld::String(String::from("example.com#baz")))), (String::from("baz"), DataModel(Ipld::Integer(42))), ])); let baz = Baz::try_from_unknown(unknown.clone()).expect("failed to convert to Baz"); @@ -651,9 +593,7 @@ mod tests { let cid_link = CidLink::try_from("bafkreibme22gw2h7y2h7tg2fhqotaqjucnbc24deqo72b6mkl2egezxhvy") .expect("failed to create cid-link"); - let unknown = cid_link - .try_into_unknown() - .expect("failed to convert to unknown"); + let unknown = cid_link.try_into_unknown().expect("failed to convert to unknown"); assert_eq!( serde_json::to_string(&unknown).expect("failed to serialize unknown"), r#"{"$link":"bafkreibme22gw2h7y2h7tg2fhqotaqjucnbc24deqo72b6mkl2egezxhvy"}"# @@ -669,9 +609,7 @@ mod tests { mime_type: "text/plain".into(), size: 0, })); - let unknown = blob_ref - .try_into_unknown() - .expect("failed to convert to unknown"); + let unknown = blob_ref.try_into_unknown().expect("failed to convert to unknown"); let serialized = serde_json::to_string(&unknown).expect("failed to serialize unknown"); assert!( serialized.contains("bafkreibme22gw2h7y2h7tg2fhqotaqjucnbc24deqo72b6mkl2egezxhvy"), diff --git a/atrium-api/src/types/cid_link.rs b/atrium-api/src/types/cid_link.rs index 0bf0fd7b..058b3444 100644 --- a/atrium-api/src/types/cid_link.rs +++ b/atrium-api/src/types/cid_link.rs @@ -15,10 +15,7 @@ struct Link { impl Serialize for CidLink { fn serialize(&self, serializer: S) -> Result { if serializer.is_human_readable() { - Link { - link: crate::types::string::Cid::new(self.0), - } - .serialize(serializer) + Link { link: crate::types::string::Cid::new(self.0) }.serialize(serializer) } else { self.0.serialize(serializer) } diff --git a/atrium-api/src/types/string.rs b/atrium-api/src/types/string.rs index fcc792c9..08ce104a 100644 --- a/atrium-api/src/types/string.rs +++ b/atrium-api/src/types/string.rs @@ -207,10 +207,7 @@ impl Datetime { impl FromStr for Datetime { type Err = chrono::ParseError; - #[allow( - clippy::borrow_interior_mutable_const, - clippy::declare_interior_mutable_const - )] + #[allow(clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const)] fn from_str(s: &str) -> Result { // The `chrono` crate only supports RFC 3339 parsing, but Lexicon restricts // datetimes to the subset that is also valid under ISO 8601. Apply a regex that @@ -267,10 +264,7 @@ pub struct Did(String); string_newtype!(Did); impl Did { - #[allow( - clippy::borrow_interior_mutable_const, - clippy::declare_interior_mutable_const - )] + #[allow(clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const)] /// Parses a `Did` from the given string. pub fn new(did: String) -> Result { const RE_DID: OnceCell = OnceCell::new(); @@ -308,10 +302,7 @@ pub struct Handle(String); string_newtype!(Handle); impl Handle { - #[allow( - clippy::borrow_interior_mutable_const, - clippy::declare_interior_mutable_const - )] + #[allow(clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const)] /// Parses a `Handle` from the given string. pub fn new(handle: String) -> Result { const RE_HANDLE: OnceCell = OnceCell::new(); @@ -344,10 +335,7 @@ pub struct Nsid(String); string_newtype!(Nsid); impl Nsid { - #[allow( - clippy::borrow_interior_mutable_const, - clippy::declare_interior_mutable_const - )] + #[allow(clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const)] /// Parses an NSID from the given string. pub fn new(nsid: String) -> Result { const RE_NSID: OnceCell = OnceCell::new(); @@ -429,10 +417,7 @@ pub struct Tid(String); string_newtype!(Tid); impl Tid { - #[allow( - clippy::borrow_interior_mutable_const, - clippy::declare_interior_mutable_const - )] + #[allow(clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const)] /// Parses a `TID` from the given string. pub fn new(tid: String) -> Result { const RE_TID: OnceCell = OnceCell::new(); @@ -464,10 +449,7 @@ pub struct RecordKey(String); string_newtype!(RecordKey); impl RecordKey { - #[allow( - clippy::borrow_interior_mutable_const, - clippy::declare_interior_mutable_const - )] + #[allow(clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const)] /// Parses a `Record Key` from the given string. pub fn new(s: String) -> Result { const RE_RKEY: OnceCell = OnceCell::new(); @@ -612,10 +594,7 @@ mod tests { ("did:m", "did:m:v"), ("did:method", "did:method::::val"), ("did:method", "did:method:-:_:."), - ( - "did:key", - "did:key:zQ3shZc2QzApp2oymGvQbzP8eKheVshBHbU4ZYjeXqwSKEn6N", - ), + ("did:key", "did:key:zQ3shZc2QzApp2oymGvQbzP8eKheVshBHbU4ZYjeXqwSKEn6N"), ] { assert_eq!(Did::new(did.to_string()).unwrap().method(), method); } @@ -672,13 +651,9 @@ mod tests { #[test] fn valid_nsid() { // From https://atproto.com/specs/nsid#examples - for valid in [ - "com.example.fooBar", - "net.users.bob.ping", - "a-0.b-1.c", - "a.b.c", - "cn.8.lex.stuff", - ] { + for valid in + ["com.example.fooBar", "net.users.bob.ping", "a-0.b-1.c", "a.b.c", "cn.8.lex.stuff"] + { assert!( from_str::(&format!("\"{}\"", valid)).is_ok(), "valid NSID `{}` parsed as invalid", diff --git a/atrium-crypto/src/did.rs b/atrium-crypto/src/did.rs index 071a8602..b7c3a041 100644 --- a/atrium-crypto/src/did.rs +++ b/atrium-crypto/src/did.rs @@ -28,9 +28,7 @@ use crate::{Algorithm, DID_KEY_PREFIX}; /// # } /// ``` pub fn format_did_key(alg: Algorithm, key: &[u8]) -> Result { - Ok(prefix_did_key( - &alg.format_mulikey_compressed(&compress_pubkey(alg, key)?), - )) + Ok(prefix_did_key(&alg.format_mulikey_compressed(&compress_pubkey(alg, key)?))) } /// Parse a DID key string. @@ -149,19 +147,14 @@ mod tests { let bytes = hex::decode(seed).expect("hex decoding should succeed"); let sig_key = SigningKey::::from_slice(&bytes) .expect("initializing signing key should succeed"); - let did_key = format_did_key( - Algorithm::Secp256k1, - &sig_key.verifying_key().to_sec1_bytes(), - ) - .expect("formatting DID key should succeed"); + let did_key = + format_did_key(Algorithm::Secp256k1, &sig_key.verifying_key().to_sec1_bytes()) + .expect("formatting DID key should succeed"); assert_eq!(did_key, id); let (alg, key) = parse_did_key(&did_key).expect("parsing DID key should succeed"); assert_eq!(alg, Algorithm::Secp256k1); - assert_eq!( - &key, - sig_key.verifying_key().to_encoded_point(false).as_bytes() - ); + assert_eq!(&key, sig_key.verifying_key().to_encoded_point(false).as_bytes()); } } @@ -179,10 +172,7 @@ mod tests { let (alg, key) = parse_did_key(&did_key).expect("parsing DID key should succeed"); assert_eq!(alg, Algorithm::P256); - assert_eq!( - &key, - sig_key.verifying_key().to_encoded_point(false).as_bytes() - ); + assert_eq!(&key, sig_key.verifying_key().to_encoded_point(false).as_bytes()); } } } diff --git a/atrium-crypto/src/encoding.rs b/atrium-crypto/src/encoding.rs index 50a43c96..c96bbf99 100644 --- a/atrium-crypto/src/encoding.rs +++ b/atrium-crypto/src/encoding.rs @@ -54,10 +54,8 @@ mod tests { key }) .collect::>(); - let compressed = keys - .iter() - .filter_map(|key| compress_pubkey(alg, &key).ok()) - .collect::>(); + let compressed = + keys.iter().filter_map(|key| compress_pubkey(alg, &key).ok()).collect::>(); let decompressed = compressed .iter() .filter_map(|key| decompress_pubkey(alg, &key).ok()) @@ -87,10 +85,8 @@ mod tests { key }) .collect::>(); - let compressed = keys - .iter() - .filter_map(|key| compress_pubkey(alg, key).ok()) - .collect::>(); + let compressed = + keys.iter().filter_map(|key| compress_pubkey(alg, key).ok()).collect::>(); let decompressed = compressed .iter() .filter_map(|key| decompress_pubkey(alg, key).ok()) diff --git a/atrium-crypto/src/keypair.rs b/atrium-crypto/src/keypair.rs index a3ce229a..84109235 100644 --- a/atrium-crypto/src/keypair.rs +++ b/atrium-crypto/src/keypair.rs @@ -39,15 +39,11 @@ where /// let keypair = Keypair::::create(&mut rand::thread_rng()); /// ``` pub fn create(rng: &mut impl CryptoRngCore) -> Self { - Self { - signing_key: SigningKey::::random(rng), - } + Self { signing_key: SigningKey::::random(rng) } } /// Initialize signing key from a raw scalar serialized as a byte slice. pub fn import(bytes: &[u8]) -> Result { - Ok(Self { - signing_key: SigningKey::from_slice(bytes)?, - }) + Ok(Self { signing_key: SigningKey::from_slice(bytes)? }) } } @@ -60,10 +56,7 @@ where FieldBytesSize: ModulusSize, { fn compressed_public_key(&self) -> Box<[u8]> { - self.signing_key - .verifying_key() - .to_encoded_point(true) - .to_bytes() + self.signing_key.verifying_key().to_encoded_point(true).to_bytes() } } @@ -81,11 +74,7 @@ where /// [https://atproto.com/specs/cryptography#ecdsa-signature-malleability](https://atproto.com/specs/cryptography#ecdsa-signature-malleability) pub fn sign(&self, msg: &[u8]) -> Result> { let signature: Signature<_> = self.signing_key.try_sign(msg)?; - Ok(signature - .normalize_s() - .unwrap_or(signature) - .to_bytes() - .to_vec()) + Ok(signature.normalize_s().unwrap_or(signature).to_bytes().to_vec()) } } @@ -145,22 +134,16 @@ mod tests { use super::Did; keypair.did() }; - let formatted = format_did_key( - Algorithm::P256, - &keypair.signing_key.verifying_key().to_sec1_bytes(), - ) - .expect("formatting to did key should succeed"); + let formatted = + format_did_key(Algorithm::P256, &keypair.signing_key.verifying_key().to_sec1_bytes()) + .expect("formatting to did key should succeed"); assert_eq!(did, formatted); let (alg, public_key) = parse_did_key(&did).expect("parsing did key should succeed"); assert_eq!(alg, Algorithm::P256); assert_eq!( public_key, - keypair - .signing_key - .verifying_key() - .to_encoded_point(false) - .as_bytes() + keypair.signing_key.verifying_key().to_encoded_point(false).as_bytes() ); } @@ -182,11 +165,7 @@ mod tests { assert_eq!(alg, Algorithm::Secp256k1); assert_eq!( public_key, - keypair - .signing_key - .verifying_key() - .to_encoded_point(false) - .as_bytes() + keypair.signing_key.verifying_key().to_encoded_point(false).as_bytes() ); } @@ -239,21 +218,15 @@ mod tests { "verifying signature should succeed" ); assert!( - verifier - .verify(alg, &public_key, &msg[..7], &signature) - .is_err(), + verifier.verify(alg, &public_key, &msg[..7], &signature).is_err(), "verifying signature should fail with incorrect message" ); assert!( - verifier - .verify(alg, &public_key, &msg, &corrupted_signature) - .is_err(), + verifier.verify(alg, &public_key, &msg, &corrupted_signature).is_err(), "verifying signature should fail with incorrect signature" ); assert!( - verifier - .verify(Algorithm::Secp256k1, &public_key, &msg, &signature) - .is_err(), + verifier.verify(Algorithm::Secp256k1, &public_key, &msg, &signature).is_err(), "verifying signature should fail with incorrect algorithm" ); } @@ -278,21 +251,15 @@ mod tests { "verifying signature should succeed" ); assert!( - verifier - .verify(alg, &public_key, &msg[..7], &signature) - .is_err(), + verifier.verify(alg, &public_key, &msg[..7], &signature).is_err(), "verifying signature should fail with incorrect message" ); assert!( - verifier - .verify(alg, &public_key, &msg, &corrupted_signature) - .is_err(), + verifier.verify(alg, &public_key, &msg, &corrupted_signature).is_err(), "verifying signature should fail with incorrect signature" ); assert!( - verifier - .verify(Algorithm::P256, &public_key, &msg, &signature) - .is_err(), + verifier.verify(Algorithm::P256, &public_key, &msg, &signature).is_err(), "verifying signature should fail with incorrect algorithm" ); } diff --git a/atrium-crypto/src/verify.rs b/atrium-crypto/src/verify.rs index 371c772e..eae79708 100644 --- a/atrium-crypto/src/verify.rs +++ b/atrium-crypto/src/verify.rs @@ -88,20 +88,12 @@ impl Verifier { } signature = normalized } - Ok(ecdsa::signature::Verifier::verify( - &verifying_key, - msg, - &signature, - )?) + Ok(ecdsa::signature::Verifier::verify(&verifying_key, msg, &signature)?) } // signature may be DER-encoded. If `allow_malleable` is true, try to parse and use it. else if self.allow_malleable { let signature = ecdsa::der::Signature::from_bytes(bytes)?; - Ok(ecdsa::signature::Verifier::verify( - &verifying_key, - msg, - &signature, - )?) + Ok(ecdsa::signature::Verifier::verify(&verifying_key, msg, &signature)?) } else { Err(Error::InvalidSignature) } @@ -141,13 +133,7 @@ mod tests { let v = serde_json::from_reader::<_, Vec>(file) .expect("parsing test data should succeed"); v.into_iter() - .filter(|v| { - if let Some(s) = cond { - v.tags.contains(&s.to_string()) - } else { - true - } - }) + .filter(|v| if let Some(s) = cond { v.tags.contains(&s.to_string()) } else { true }) .collect() } @@ -176,15 +162,11 @@ mod tests { Algorithm::ES256K => assert_eq!(alg, crate::Algorithm::Secp256k1), } assert_eq!( - verifier - .verify(alg, &decoded_key, &message, &signature) - .is_ok(), + verifier.verify(alg, &decoded_key, &message, &signature).is_ok(), vector.valid_signature ); assert_eq!( - verifier - .verify(alg, &parsed_key, &message, &signature) - .is_ok(), + verifier.verify(alg, &parsed_key, &message, &signature).is_ok(), vector.valid_signature ); } @@ -215,12 +197,8 @@ mod tests { Algorithm::ES256K => assert_eq!(alg, crate::Algorithm::Secp256k1), } assert!(!vector.valid_signature); - assert!(verifier - .verify(alg, &decoded_key, &message, &signature) - .is_ok()); - assert!(verifier - .verify(alg, &parsed_key, &message, &signature) - .is_ok()); + assert!(verifier.verify(alg, &decoded_key, &message, &signature).is_ok()); + assert!(verifier.verify(alg, &parsed_key, &message, &signature).is_ok()); } } @@ -249,12 +227,8 @@ mod tests { Algorithm::ES256K => assert_eq!(alg, crate::Algorithm::Secp256k1), } assert!(!vector.valid_signature); - assert!(verifier - .verify(alg, &decoded_key, &message, &signature) - .is_ok()); - assert!(verifier - .verify(alg, &parsed_key, &message, &signature) - .is_ok()); + assert!(verifier.verify(alg, &decoded_key, &message, &signature).is_ok()); + assert!(verifier.verify(alg, &parsed_key, &message, &signature).is_ok()); } } } diff --git a/atrium-xrpc-client/src/isahc.rs b/atrium-xrpc-client/src/isahc.rs index 6c0e446b..6c3a0e51 100644 --- a/atrium-xrpc-client/src/isahc.rs +++ b/atrium-xrpc-client/src/isahc.rs @@ -36,10 +36,7 @@ pub struct IsahcClientBuilder { impl IsahcClientBuilder { /// Create a new [`IsahcClientBuilder`] for building a custom client. pub fn new(base_uri: impl AsRef) -> Self { - Self { - base_uri: base_uri.as_ref().into(), - client: None, - } + Self { base_uri: base_uri.as_ref().into(), client: None } } /// Sets the [`isahc::HttpClient`] to use. pub fn client(mut self, client: Client) -> Self { @@ -50,9 +47,7 @@ impl IsahcClientBuilder { pub fn build(self) -> IsahcClient { IsahcClient { base_uri: self.base_uri, - client: self - .client - .unwrap_or(Client::new().expect("failed to create isahc client")), + client: self.client.unwrap_or(Client::new().expect("failed to create isahc client")), } } } @@ -64,9 +59,8 @@ impl HttpClient for IsahcClient { request: Request>, ) -> Result>, Box> { let (head, body) = request.into_parts(); - let mut request_builder = isahc::http::Request::builder() - .method(head.method.as_str()) - .uri(head.uri.to_string()); + let mut request_builder = + isahc::http::Request::builder().method(head.method.as_str()).uri(head.uri.to_string()); for (k, v) in &head.headers { request_builder = request_builder.header(k.as_str(), v.as_ref()); } @@ -75,9 +69,7 @@ impl HttpClient for IsahcClient { for (k, v) in response.headers() { response_builder = response_builder.header(k.as_str(), v.as_ref()); } - response_builder - .body(response.bytes().await?.to_vec()) - .map_err(Into::into) + response_builder.body(response.bytes().await?.to_vec()).map_err(Into::into) } } diff --git a/atrium-xrpc-client/src/reqwest.rs b/atrium-xrpc-client/src/reqwest.rs index 22a97e90..75aed6a2 100644 --- a/atrium-xrpc-client/src/reqwest.rs +++ b/atrium-xrpc-client/src/reqwest.rs @@ -35,10 +35,7 @@ pub struct ReqwestClientBuilder { impl ReqwestClientBuilder { /// Create a new [`ReqwestClientBuilder`] for building a custom client. pub fn new(base_uri: impl AsRef) -> Self { - Self { - base_uri: base_uri.as_ref().into(), - client: None, - } + Self { base_uri: base_uri.as_ref().into(), client: None } } /// Sets the [`reqwest::Client`] to use. pub fn client(mut self, client: Client) -> Self { @@ -47,10 +44,7 @@ impl ReqwestClientBuilder { } /// Build an [`ReqwestClient`] using the configured options. pub fn build(self) -> ReqwestClient { - ReqwestClient { - base_uri: self.base_uri, - client: self.client.unwrap_or_default(), - } + ReqwestClient { base_uri: self.base_uri, client: self.client.unwrap_or_default() } } } @@ -66,9 +60,7 @@ impl HttpClient for ReqwestClient { for (k, v) in response.headers() { builder = builder.header(k, v); } - builder - .body(response.bytes().await?.to_vec()) - .map_err(Into::into) + builder.body(response.bytes().await?.to_vec()).map_err(Into::into) } } diff --git a/atrium-xrpc-client/src/tests.rs b/atrium-xrpc-client/src/tests.rs index e0cda2da..b9280541 100644 --- a/atrium-xrpc-client/src/tests.rs +++ b/atrium-xrpc-client/src/tests.rs @@ -34,9 +34,7 @@ async fn run_query( .send_xrpc::<_, (), _, _>(&XrpcRequest { method: Method::GET, nsid: path, - parameters: Some(Parameters { - query: "foo".into(), - }), + parameters: Some(Parameters { query: "foo".into() }), input: None, encoding: None, }) diff --git a/atrium-xrpc/src/lib.rs b/atrium-xrpc/src/lib.rs index c7fb33c4..e90327be 100644 --- a/atrium-xrpc/src/lib.rs +++ b/atrium-xrpc/src/lib.rs @@ -124,9 +124,7 @@ mod tests { json: true, body: r#"{"returnValue":42}"#.as_bytes().to_vec(), }; - let out = get_example(&client, Parameters {}) - .await - .expect("must be ok"); + let out = get_example(&client, Parameters {}).await.expect("must be ok"); assert_eq!(out.return_value, 42); } @@ -162,9 +160,7 @@ mod tests { let client = DummyClient { status: http::StatusCode::INTERNAL_SERVER_ERROR, json: true, - body: r#"{"error":"Unknown","message":"Something wrong"}"# - .as_bytes() - .to_vec(), + body: r#"{"error":"Unknown","message":"Something wrong"}"#.as_bytes().to_vec(), }; let result = get_example(&client, Parameters {}).await; let error = result.expect_err("must be error"); @@ -227,19 +223,11 @@ mod tests { #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)] async fn response_ok() { let body = r"data".as_bytes().to_vec(); - let client = DummyClient { - status: http::StatusCode::OK, - json: false, - body: body.clone(), - }; - let out = get_bytes( - &client, - Parameters { - query: "foo".into(), - }, - ) - .await - .expect("must be ok"); + let client = + DummyClient { status: http::StatusCode::OK, json: false, body: body.clone() }; + let out = get_bytes(&client, Parameters { query: "foo".into() }) + .await + .expect("must be ok"); assert_eq!(out, body); } @@ -251,13 +239,7 @@ mod tests { json: true, body: r"null".as_bytes().to_vec(), }; - let result = get_bytes( - &client, - Parameters { - query: "foo".into(), - }, - ) - .await; + let result = get_bytes(&client, Parameters { query: "foo".into() }).await; let error = result.expect_err("must be error"); match &error { crate::Error::UnexpectedResponseType => {} @@ -305,14 +287,9 @@ mod tests { #[tokio::test] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)] async fn response_ok() { - let client = DummyClient { - status: http::StatusCode::OK, - json: false, - body: Vec::new(), - }; - create_data(&client, Input { value: 42 }) - .await - .expect("must be ok"); + let client = + DummyClient { status: http::StatusCode::OK, json: false, body: Vec::new() }; + create_data(&client, Input { value: 42 }).await.expect("must be ok"); } #[tokio::test] @@ -372,9 +349,7 @@ mod tests { json: true, body: r#"{"returnValue":42}"#.as_bytes().to_vec(), }; - create_data(&client, "data".as_bytes().to_vec()) - .await - .expect("must be ok"); + create_data(&client, "data".as_bytes().to_vec()).await.expect("must be ok"); } #[tokio::test] diff --git a/atrium-xrpc/src/traits.rs b/atrium-xrpc/src/traits.rs index 3c9a76e2..1ece8c9b 100644 --- a/atrium-xrpc/src/traits.rs +++ b/atrium-xrpc/src/traits.rs @@ -87,19 +87,14 @@ pub trait XrpcClient: HttpClient { Vec::new() }; // Send - let (parts, body) = self - .send_http(builder.body(body)?) - .await - .map_err(Error::HttpClient)? - .into_parts(); + let (parts, body) = + self.send_http(builder.body(body)?).await.map_err(Error::HttpClient)?.into_parts(); if parts.status.is_success() { if parts .headers .get(http::header::CONTENT_TYPE) .and_then(|value| value.to_str().ok()) - .map_or(false, |content_type| { - content_type.starts_with("application/json") - }) + .map_or(false, |content_type| content_type.starts_with("application/json")) { Ok(OutputDataOrBytes::Data(serde_json::from_slice(&body)?)) } else { diff --git a/bsky-cli/src/runner.rs b/bsky-cli/src/runner.rs index b86cd07f..1081a28e 100644 --- a/bsky-cli/src/runner.rs +++ b/bsky-cli/src/runner.rs @@ -34,31 +34,19 @@ impl Runner { let agent = if is_login { BskyAgent::builder() - .config(Config { - endpoint: pds_host, - ..Default::default() - }) + .config(Config { endpoint: pds_host, ..Default::default() }) .build() .await? } else { let store = FileStore::new(&config_path); let agent = BskyAgent::builder() - .config( - Config::load(&store) - .await - .with_context(|| "Not logged in")?, - ) + .config(Config::load(&store).await.with_context(|| "Not logged in")?) .build() .await?; agent.to_config().await.save(&store).await?; agent }; - Ok(Self { - agent, - limit, - debug, - config_path, - }) + Ok(Self { agent, limit, debug, config_path }) } pub async fn run(&self, command: Command) -> Result<()> { let limit = self.limit; @@ -69,11 +57,7 @@ impl Runner { let preferences = self.agent.get_preferences(true).await?; self.agent.configure_labelers_from_preferences(&preferences); // Save config to file - self.agent - .to_config() - .await - .save(&FileStore::new(&self.config_path)) - .await?; + self.agent.to_config().await.save(&FileStore::new(&self.config_path)).await?; println!("Login successful! Saved config to {:?}", self.config_path); Ok(()) } @@ -468,12 +452,6 @@ impl Runner { Ok(()) } async fn handle(&self) -> Result { - Ok(self - .agent - .get_session() - .await - .with_context(|| "Not logged in")? - .data - .handle) + Ok(self.agent.get_session().await.with_context(|| "Not logged in")?.data.handle) } } diff --git a/bsky-sdk/src/agent.rs b/bsky-sdk/src/agent.rs index 8b95bf77..f8664e44 100644 --- a/bsky-sdk/src/agent.rs +++ b/bsky-sdk/src/agent.rs @@ -87,10 +87,7 @@ where pub async fn get_preferences(&self, enable_bsky_labeler: bool) -> Result { let mut prefs = Preferences::default(); if enable_bsky_labeler { - prefs - .moderation_prefs - .labelers - .push(ModerationPrefsLabeler::default()); + prefs.moderation_prefs.labelers.push(ModerationPrefsLabeler::default()); } let mut label_prefs = Vec::new(); for pref in self @@ -160,19 +157,13 @@ where prefs.moderation_prefs.hidden_posts = p.data.items; } Union::Refs(PreferencesItem::LabelersPref(p)) => { - prefs - .moderation_prefs - .labelers - .extend( - p.data - .labelers - .into_iter() - .map(|item| ModerationPrefsLabeler { - did: item.data.did, - labels: HashMap::default(), - is_default_labeler: false, - }), - ); + prefs.moderation_prefs.labelers.extend(p.data.labelers.into_iter().map( + |item| ModerationPrefsLabeler { + did: item.data.did, + labels: HashMap::default(), + is_default_labeler: false, + }, + )); } _ => { // TODO @@ -181,12 +172,7 @@ where } for pref in label_prefs { if let Some(did) = pref.data.labeler_did { - if let Some(l) = prefs - .moderation_prefs - .labelers - .iter_mut() - .find(|l| l.did == did) - { + if let Some(l) = prefs.moderation_prefs.labelers.iter_mut().find(|l| l.did == did) { l.labels.insert( pref.data.label, pref.data.visibility.parse().expect("invalid visibility"), @@ -296,11 +282,8 @@ mod tests { #[cfg(feature = "default-client")] #[tokio::test] async fn clone_agent() { - let agent = BskyAgent::builder() - .store(NoopStore) - .build() - .await - .expect("failed to build agent"); + let agent = + BskyAgent::builder().store(NoopStore).build().await.expect("failed to build agent"); let cloned = agent.clone(); agent.configure_endpoint(String::from("https://example.com")); diff --git a/bsky-sdk/src/agent/builder.rs b/bsky-sdk/src/agent/builder.rs index 663cbbb0..fa7af946 100644 --- a/bsky-sdk/src/agent/builder.rs +++ b/bsky-sdk/src/agent/builder.rs @@ -25,11 +25,7 @@ where { /// Create a new builder with the given XRPC client. pub fn new(client: T) -> Self { - Self { - config: Config::default(), - store: MemorySessionStore::default(), - client, - } + Self { config: Config::default(), store: MemorySessionStore::default(), client } } } @@ -50,11 +46,7 @@ where where S0: SessionStore + Send + Sync, { - BskyAgentBuilder { - config: self.config, - store, - client: self.client, - } + BskyAgentBuilder { config: self.config, store, client: self.client } } /// Set the XRPC client for the agent. /// @@ -63,11 +55,7 @@ where where T0: XrpcClient + Send + Sync, { - BskyAgentBuilder { - config: self.config, - store: self.store, - client, - } + BskyAgentBuilder { config: self.config, store: self.store, client } } pub async fn build(self) -> Result> { let agent = AtpAgent::new(self.client, self.store); @@ -97,9 +85,7 @@ where } } } - Ok(BskyAgent { - inner: Arc::new(agent), - }) + Ok(BskyAgent { inner: Arc::new(agent) }) } } @@ -159,10 +145,7 @@ mod tests { } // with store { - let agent = BskyAgentBuilder::default() - .store(MockSessionStore) - .build() - .await?; + let agent = BskyAgentBuilder::default().store(MockSessionStore).build().await?; assert_eq!(agent.get_endpoint().await, "https://bsky.social"); assert_eq!( agent.get_session().await.map(|session| session.data.handle), @@ -196,10 +179,7 @@ mod tests { } // with store { - let agent = BskyAgentBuilder::new(MockClient) - .store(MockSessionStore) - .build() - .await?; + let agent = BskyAgentBuilder::new(MockClient).store(MockSessionStore).build().await?; assert_eq!(agent.get_endpoint().await, "https://bsky.social"); assert_eq!( agent.get_session().await.map(|session| session.data.handle), diff --git a/bsky-sdk/src/agent/config/file.rs b/bsky-sdk/src/agent/config/file.rs index 681b8fbb..725cc55c 100644 --- a/bsky-sdk/src/agent/config/file.rs +++ b/bsky-sdk/src/agent/config/file.rs @@ -15,9 +15,7 @@ impl FileStore { /// [`Config`] data will be serialized and deserialized using the file extension. /// By default, this supports only `.json` files. pub fn new(path: impl AsRef) -> Self { - Self { - path: path.as_ref().to_path_buf(), - } + Self { path: path.as_ref().to_path_buf() } } } @@ -42,10 +40,7 @@ impl Saver for FileStore { config: &Config, ) -> core::result::Result<(), Box> { match self.path.extension().and_then(|ext| ext.to_str()) { - Some("json") => Ok(std::fs::write( - &self.path, - serde_json::to_string_pretty(config)?, - )?), + Some("json") => Ok(std::fs::write(&self.path, serde_json::to_string_pretty(config)?)?), #[cfg(feature = "config-toml")] Some("toml") => Ok(std::fs::write(&self.path, toml::to_string_pretty(config)?)?), _ => Err(anyhow!("Unsupported file format").into()), diff --git a/bsky-sdk/src/error.rs b/bsky-sdk/src/error.rs index 982f0934..cb79825f 100644 --- a/bsky-sdk/src/error.rs +++ b/bsky-sdk/src/error.rs @@ -27,10 +27,7 @@ pub enum Error { /// Generic error type for XRPC errors. #[derive(Error, Debug)] pub enum GenericXrpcError { - Response { - status: StatusCode, - error: Option, - }, + Response { status: StatusCode, error: Option }, Other(String), } diff --git a/bsky-sdk/src/lib.rs b/bsky-sdk/src/lib.rs index ef34ae15..948ccbd7 100644 --- a/bsky-sdk/src/lib.rs +++ b/bsky-sdk/src/lib.rs @@ -33,19 +33,11 @@ mod tests { Response>, Box, > { - if let Some(handle) = request - .uri() - .query() - .and_then(|s| s.strip_prefix("handle=")) - { + if let Some(handle) = request.uri().query().and_then(|s| s.strip_prefix("handle=")) { Ok(Response::builder() .status(200) .header(Header::ContentType, "application/json") - .body( - format!(r#"{{"did": "did:fake:{}"}}"#, handle) - .as_bytes() - .to_vec(), - )?) + .body(format!(r#"{{"did": "did:fake:{}"}}"#, handle).as_bytes().to_vec())?) } else { Ok(Response::builder().status(500).body(Vec::new())?) } diff --git a/bsky-sdk/src/moderation.rs b/bsky-sdk/src/moderation.rs index e6fe2696..b19411ed 100644 --- a/bsky-sdk/src/moderation.rs +++ b/bsky-sdk/src/moderation.rs @@ -31,11 +31,7 @@ impl Moderator { prefs: ModerationPrefs, label_defs: HashMap>, ) -> Self { - Self { - user_did, - prefs, - label_defs, - } + Self { user_did, prefs, label_defs } } /// Calculate the moderation decision for an account profile. pub fn moderate_profile(&self, profile: &SubjectProfile) -> ModerationDecision { diff --git a/bsky-sdk/src/moderation/decision.rs b/bsky-sdk/src/moderation/decision.rs index 75799833..95a74e60 100644 --- a/bsky-sdk/src/moderation/decision.rs +++ b/bsky-sdk/src/moderation/decision.rs @@ -236,16 +236,10 @@ impl ModerationDecision { } /// Check if the decision is by muted. pub fn is_muted(&self) -> bool { - self.causes - .iter() - .any(|c| matches!(c, ModerationCause::Muted(_))) + self.causes.iter().any(|c| matches!(c, ModerationCause::Muted(_))) } pub(crate) fn new() -> Self { - Self { - did: None, - is_me: false, - causes: Vec::new(), - } + Self { did: None, is_me: false, causes: Vec::new() } } pub(crate) fn merge(decisions: &[Self]) -> Self { assert!(!decisions.is_empty()); @@ -255,10 +249,7 @@ impl ModerationDecision { Self { did: decisions[0].did.clone(), is_me: decisions[0].is_me, - causes: decisions - .iter() - .flat_map(|d| d.causes.iter().cloned()) - .collect(), + causes: decisions.iter().flat_map(|d| d.causes.iter().cloned()).collect(), } } pub(crate) fn set_did(&mut self, did: Did) { @@ -268,25 +259,22 @@ impl ModerationDecision { self.is_me = is_me; } pub(crate) fn add_blocking(&mut self) { - self.causes - .push(ModerationCause::Blocking(Box::new(ModerationCauseOther { - source: ModerationCauseSource::User, - downgraded: false, - }))); + self.causes.push(ModerationCause::Blocking(Box::new(ModerationCauseOther { + source: ModerationCauseSource::User, + downgraded: false, + }))); } pub(crate) fn add_blocking_by_list(&mut self, list_view: &ListViewBasic) { - self.causes - .push(ModerationCause::Blocking(Box::new(ModerationCauseOther { - source: ModerationCauseSource::List(Box::new(list_view.clone())), - downgraded: false, - }))); + self.causes.push(ModerationCause::Blocking(Box::new(ModerationCauseOther { + source: ModerationCauseSource::List(Box::new(list_view.clone())), + downgraded: false, + }))); } pub(crate) fn add_blocked_by(&mut self) { - self.causes - .push(ModerationCause::BlockedBy(Box::new(ModerationCauseOther { - source: ModerationCauseSource::User, - downgraded: false, - }))); + self.causes.push(ModerationCause::BlockedBy(Box::new(ModerationCauseOther { + source: ModerationCauseSource::User, + downgraded: false, + }))); } pub(crate) fn add_label(&mut self, target: LabelTarget, label: &Label, moderator: &Moderator) { let Some(label_def) = Self::lookup_label_def(label, moderator) else { @@ -323,9 +311,7 @@ impl ModerationDecision { } // ignore 'unauthed' labels when the user is authed - if label_def - .flags - .contains(&LabelValueDefinitionFlag::Unauthed) + if label_def.flags.contains(&LabelValueDefinitionFlag::Unauthed) && moderator.user_did.is_some() { return; @@ -334,9 +320,7 @@ impl ModerationDecision { let behavior = label_def.behaviors.behavior_for(target); // establish the priority of the label let severity = Self::measure_moderation_behavior_severity(&behavior); - let priority = if label_def - .flags - .contains(&LabelValueDefinitionFlag::NoOverride) + let priority = if label_def.flags.contains(&LabelValueDefinitionFlag::NoOverride) || (label_def.flags.contains(&LabelValueDefinitionFlag::Adult) && !moderator.prefs.adult_content_enabled) { @@ -354,56 +338,49 @@ impl ModerationDecision { Priority::Priority8 }; - let no_override = label_def - .flags - .contains(&LabelValueDefinitionFlag::NoOverride) + let no_override = label_def.flags.contains(&LabelValueDefinitionFlag::NoOverride) || (label_def.flags.contains(&LabelValueDefinitionFlag::Adult) && !moderator.prefs.adult_content_enabled); - self.causes - .push(ModerationCause::Label(Box::new(ModerationCauseLabel { - source: if is_self || labeler.is_none() { - ModerationCauseSource::User - } else { - ModerationCauseSource::Labeler(label.src.clone()) - }, - label: label.clone(), - label_def, - target, - setting: label_pref, - behavior, - no_override, - priority, - downgraded: false, - }))); + self.causes.push(ModerationCause::Label(Box::new(ModerationCauseLabel { + source: if is_self || labeler.is_none() { + ModerationCauseSource::User + } else { + ModerationCauseSource::Labeler(label.src.clone()) + }, + label: label.clone(), + label_def, + target, + setting: label_pref, + behavior, + no_override, + priority, + downgraded: false, + }))); } pub(crate) fn add_muted(&mut self) { - self.causes - .push(ModerationCause::Muted(Box::new(ModerationCauseOther { - source: ModerationCauseSource::User, - downgraded: false, - }))); + self.causes.push(ModerationCause::Muted(Box::new(ModerationCauseOther { + source: ModerationCauseSource::User, + downgraded: false, + }))); } pub(crate) fn add_muted_by_list(&mut self, list_view: &ListViewBasic) { - self.causes - .push(ModerationCause::Muted(Box::new(ModerationCauseOther { - source: ModerationCauseSource::List(Box::new(list_view.clone())), - downgraded: false, - }))); + self.causes.push(ModerationCause::Muted(Box::new(ModerationCauseOther { + source: ModerationCauseSource::List(Box::new(list_view.clone())), + downgraded: false, + }))); } pub(crate) fn add_muted_word(&mut self) { - self.causes - .push(ModerationCause::MuteWord(Box::new(ModerationCauseOther { - source: ModerationCauseSource::User, - downgraded: false, - }))); + self.causes.push(ModerationCause::MuteWord(Box::new(ModerationCauseOther { + source: ModerationCauseSource::User, + downgraded: false, + }))); } pub(crate) fn add_hidden(&mut self) { - self.causes - .push(ModerationCause::Hidden(Box::new(ModerationCauseOther { - source: ModerationCauseSource::User, - downgraded: false, - }))); + self.causes.push(ModerationCause::Hidden(Box::new(ModerationCauseOther { + source: ModerationCauseSource::User, + downgraded: false, + }))); } pub(crate) fn downgrade(&mut self) { for cause in self.causes.iter_mut() { @@ -414,11 +391,7 @@ impl ModerationDecision { label: &Label, moderator: &Moderator, ) -> Option { - if label - .val - .chars() - .all(|c| c.is_ascii_lowercase() || c == '-') - { + if label.val.chars().all(|c| c.is_ascii_lowercase() || c == '-') { if let Some(def) = moderator .label_defs .get(&label.src) @@ -427,11 +400,7 @@ impl ModerationDecision { return Some(def.clone()); } } - label - .val - .parse::() - .ok() - .map(|known_value| known_value.definition()) + label.val.parse::().ok().map(|known_value| known_value.definition()) } fn measure_moderation_behavior_severity( behavior: &ModerationBehavior, diff --git a/bsky-sdk/src/moderation/labels.rs b/bsky-sdk/src/moderation/labels.rs index 66da9912..ae39b028 100644 --- a/bsky-sdk/src/moderation/labels.rs +++ b/bsky-sdk/src/moderation/labels.rs @@ -42,10 +42,7 @@ impl KnownLabelValue { severity: LabelValueDefinitionSeverity::Alert, defined_by: None, configurable: false, - flags: vec![ - LabelValueDefinitionFlag::NoOverride, - LabelValueDefinitionFlag::NoSelf, - ], + flags: vec![LabelValueDefinitionFlag::NoOverride, LabelValueDefinitionFlag::NoSelf], behaviors: InterpretedLabelValueDefinitionBehaviors { account: ModerationBehavior { profile_list: Some(ProfileListBehavior::Blur), diff --git a/bsky-sdk/src/moderation/mutewords.rs b/bsky-sdk/src/moderation/mutewords.rs index 2bcabfaf..2f4ce8e8 100644 --- a/bsky-sdk/src/moderation/mutewords.rs +++ b/bsky-sdk/src/moderation/mutewords.rs @@ -36,9 +36,7 @@ pub fn has_muted_word( let exception = langs .as_ref() .and_then(|langs| langs.first()) - .map_or(false, |lang| { - LANGUAGE_EXCEPTIONS.contains(&lang.as_ref().as_str()) - }); + .map_or(false, |lang| LANGUAGE_EXCEPTIONS.contains(&lang.as_ref().as_str())); let mut tags = Vec::new(); if let Some(outline_tags) = outline_tags { tags.extend(outline_tags.iter().map(|t| t.to_lowercase())); @@ -75,10 +73,7 @@ pub fn has_muted_word( if actor_target == "exclude-following" && actor .and_then(|actor| { - actor - .viewer - .as_ref() - .and_then(|viewer| viewer.following.as_ref()) + actor.viewer.as_ref().and_then(|viewer| viewer.following.as_ref()) }) .is_some() { @@ -151,9 +146,8 @@ pub fn has_muted_word( return true; } - let word_parts = re_internal_punctuation - .split(&word_trimmed_punctuation) - .collect::>(); + let word_parts = + re_internal_punctuation.split(&word_trimmed_punctuation).collect::>(); for word_part in word_parts { if word_part == muted_word { return true; diff --git a/bsky-sdk/src/moderation/subjects/profile.rs b/bsky-sdk/src/moderation/subjects/profile.rs index 9bad728e..69d88aae 100644 --- a/bsky-sdk/src/moderation/subjects/profile.rs +++ b/bsky-sdk/src/moderation/subjects/profile.rs @@ -8,10 +8,7 @@ impl Moderator { acc.set_did(subject.did().clone()); acc.set_is_me(self.user_did.as_ref() == Some(subject.did())); if let Some(labels) = subject.labels() { - for label in labels - .iter() - .filter(|l| l.uri.ends_with("/app.bsky.actor.profile/self")) - { + for label in labels.iter().filter(|l| l.uri.ends_with("/app.bsky.actor.profile/self")) { acc.add_label(LabelTarget::Profile, label, self); } } diff --git a/bsky-sdk/src/moderation/tests.rs b/bsky-sdk/src/moderation/tests.rs index df9218c4..d80dc8f7 100644 --- a/bsky-sdk/src/moderation/tests.rs +++ b/bsky-sdk/src/moderation/tests.rs @@ -120,23 +120,11 @@ fn label(src: &str, uri: &str, val: &str) -> Label { fn assert_ui(decision: &ModerationDecision, expected: &[ResultFlag], context: DecisionContext) { let ui = decision.ui(context); if expected.is_empty() { - assert!( - !ui.inform(), - "inform should be a no-op for context {context:?}" - ); - assert!( - !ui.alert(), - "alert should be a no-op for context {context:?}" - ); + assert!(!ui.inform(), "inform should be a no-op for context {context:?}"); + assert!(!ui.alert(), "alert should be a no-op for context {context:?}"); assert!(!ui.blur(), "blur should be a no-op for context {context:?}"); - assert!( - !ui.filter(), - "filter should be a no-op for context {context:?}" - ); - assert!( - !ui.no_override, - "no_override should be a no-op for context {context:?}" - ); + assert!(!ui.filter(), "filter should be a no-op for context {context:?}"); + assert!(!ui.no_override, "no_override should be a no-op for context {context:?}"); } else { assert_eq!( ui.inform(), @@ -282,16 +270,8 @@ fn prioritize_filters_and_blurs() { &profile_view_basic("bob.test", Some("Bob"), None), "Hello", Some(vec![ - label( - "did:web:labeler.test", - "at://did:web:bob.test/app.bsky.post/fake", - "porn", - ), - label( - "did:web:labeler.test", - "at://did:web:bob.test/app.bsky.post/fake", - "!hide", - ), + label("did:web:labeler.test", "at://did:web:bob.test/app.bsky.post/fake", "porn"), + label("did:web:labeler.test", "at://did:web:bob.test/app.bsky.post/fake", "!hide"), ]), )); for (cause, expected_val) in [ @@ -463,16 +443,8 @@ fn ignore_invalid_label_value_names() { &profile_view_basic("bob.test", Some("Bob"), None), "Hello", Some(vec![ - label( - "did:web:labeler.test", - "at://did:web:bob.test/app.bsky.post/fake", - "BadLabel", - ), - label( - "did:web:labeler.test", - "at://did:web:bob.test/app.bsky.post/fake", - "bad/label", - ), + label("did:web:labeler.test", "at://did:web:bob.test/app.bsky.post/fake", "BadLabel"), + label("did:web:labeler.test", "at://did:web:bob.test/app.bsky.post/fake", "bad/label"), ]), )); for context in DecisionContext::ALL { diff --git a/bsky-sdk/src/moderation/tests/behaviors.rs b/bsky-sdk/src/moderation/tests/behaviors.rs index 18f3df6f..10192d44 100644 --- a/bsky-sdk/src/moderation/tests/behaviors.rs +++ b/bsky-sdk/src/moderation/tests/behaviors.rs @@ -75,39 +75,18 @@ impl TestUser { muted_by_list: bool, } let def = match self { - Self::Bob => Definition { - blocking: true, - ..Default::default() - }, - Self::Carla => Definition { - blocked_by: true, - ..Default::default() - }, - Self::Dan => Definition { - muted: true, - ..Default::default() - }, - Self::Elise => Definition { - muted_by_list: true, - ..Default::default() - }, - Self::Fern => Definition { - blocking: true, - blocked_by: true, - ..Default::default() - }, - Self::Georgia => Definition { - blocking_by_list: true, - ..Default::default() - }, + Self::Bob => Definition { blocking: true, ..Default::default() }, + Self::Carla => Definition { blocked_by: true, ..Default::default() }, + Self::Dan => Definition { muted: true, ..Default::default() }, + Self::Elise => Definition { muted_by_list: true, ..Default::default() }, + Self::Fern => Definition { blocking: true, blocked_by: true, ..Default::default() }, + Self::Georgia => Definition { blocking_by_list: true, ..Default::default() }, _ => Definition::default(), }; ViewerStateData { blocked_by: if def.blocked_by { Some(true) } else { None }, blocking: if def.blocking || def.blocking_by_list { - Some(String::from( - "at://did:web:self.test/app.bsky.graph.block/fake", - )) + Some(String::from("at://did:web:self.test/app.bsky.graph.block/fake")) } else { None }, @@ -119,11 +98,7 @@ impl TestUser { followed_by: None, following: None, known_followers: None, - muted: if def.muted || def.muted_by_list { - Some(true) - } else { - None - }, + muted: if def.muted || def.muted_by_list { Some(true) } else { None }, muted_by_list: if def.muted_by_list { Some(list_view_basic("Fake list")) } else { @@ -173,16 +148,8 @@ impl Scenario { TestSubject::Post => moderator.moderate_post(&self.post()), }; if self.subject == TestSubject::Profile { - assert_ui( - &result, - &self.behaviors.profile_list, - DecisionContext::ProfileList, - ); - assert_ui( - &result, - &self.behaviors.profile_view, - DecisionContext::ProfileView, - ); + assert_ui(&result, &self.behaviors.profile_list, DecisionContext::ProfileList); + assert_ui(&result, &self.behaviors.profile_view, DecisionContext::ProfileView); } for context in [ DecisionContext::Avatar, @@ -229,18 +196,12 @@ impl Scenario { for val in &self.labels.profile { labels.push(label( "did:plc:fake-labeler", - &format!( - "at://did:web:{}/app.bsky.actor.profile/self", - self.author.as_ref() - ), + &format!("at://did:web:{}/app.bsky.actor.profile/self", self.author.as_ref()), val, )) } - let mut ret = profile_view_basic( - &format!("{}.test", self.author.as_ref()), - None, - Some(labels), - ); + let mut ret = + profile_view_basic(&format!("{}.test", self.author.as_ref()), None, Some(labels)); ret.viewer = Some(self.author.viewer_state()); ret } @@ -276,10 +237,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Filter, Blur, NoOverride], profile_view: vec![Blur, NoOverride], @@ -298,10 +256,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], @@ -316,10 +271,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - post: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { content_list: vec![Filter, Blur, NoOverride], content_view: vec![Blur, NoOverride], @@ -333,10 +285,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], @@ -351,10 +300,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], @@ -371,10 +317,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Blur], profile_view: vec![Blur], @@ -392,10 +335,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -410,10 +350,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - post: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { content_list: vec![Blur], content_view: vec![Blur], @@ -427,10 +364,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -445,10 +379,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -630,10 +561,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornHide, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Filter], avatar: vec![Blur], @@ -649,10 +577,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornHide, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -666,10 +591,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornHide, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - post: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { content_list: vec![Filter], content_media: vec![Blur], @@ -683,10 +605,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornHide, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -700,10 +619,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornHide, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Filter], avatar: vec![Blur], @@ -719,10 +635,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornWarn, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -736,10 +649,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornWarn, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -753,14 +663,8 @@ fn moderation_behaviors() { cfg: TestConfig::PornWarn, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - post: vec![String::from("porn")], - ..Default::default() - }, - behaviors: ExpectedBehaviors { - content_media: vec![Blur], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("porn")], ..Default::default() }, + behaviors: ExpectedBehaviors { content_media: vec![Blur], ..Default::default() }, }, ), ( @@ -769,10 +673,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornWarn, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -786,10 +687,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornWarn, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -803,10 +701,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornIgnore, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors::default(), }, ), @@ -816,10 +711,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornIgnore, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors::default(), }, ), @@ -829,10 +721,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornIgnore, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - post: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors::default(), }, ), @@ -842,10 +731,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornIgnore, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors::default(), }, ), @@ -855,10 +741,7 @@ fn moderation_behaviors() { cfg: TestConfig::PornIgnore, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors::default(), }, ), @@ -868,10 +751,7 @@ fn moderation_behaviors() { cfg: TestConfig::AdultDisabled, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Filter], avatar: vec![Blur, NoOverride], @@ -887,10 +767,7 @@ fn moderation_behaviors() { cfg: TestConfig::AdultDisabled, subject: TestSubject::Profile, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], @@ -904,10 +781,7 @@ fn moderation_behaviors() { cfg: TestConfig::AdultDisabled, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - post: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { content_list: vec![Filter], content_media: vec![Blur, NoOverride], @@ -921,10 +795,7 @@ fn moderation_behaviors() { cfg: TestConfig::AdultDisabled, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - profile: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], @@ -938,10 +809,7 @@ fn moderation_behaviors() { cfg: TestConfig::AdultDisabled, subject: TestSubject::Post, author: TestUser::Alice, - labels: TestLabels { - account: vec![String::from("porn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("porn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], @@ -956,10 +824,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::UserSelf, - labels: TestLabels { - account: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Blur], profile_view: vec![Blur], @@ -978,10 +843,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::UserSelf, - labels: TestLabels { - profile: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -996,10 +858,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::UserSelf, - labels: TestLabels { - post: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { content_list: vec![Blur], content_view: vec![Blur], @@ -1013,10 +872,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::UserSelf, - labels: TestLabels { - profile: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -1031,10 +887,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::UserSelf, - labels: TestLabels { - account: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -1051,10 +904,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::UserSelf, - labels: TestLabels { - post: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { content_list: vec![Blur], content_view: vec![Blur], @@ -1068,10 +918,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::UserSelf, - labels: TestLabels { - profile: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { profile: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -1086,10 +933,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::UserSelf, - labels: TestLabels { - account: vec![String::from("!warn")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!warn")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur], banner: vec![Blur], @@ -1269,10 +1113,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Profile, author: TestUser::Bob, - labels: TestLabels { - account: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { account: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { profile_list: vec![Filter, Blur, NoOverride], profile_view: vec![Blur, Alert, NoOverride], @@ -1396,10 +1237,7 @@ fn moderation_behaviors() { cfg: TestConfig::None, subject: TestSubject::Post, author: TestUser::Bob, - labels: TestLabels { - post: vec![String::from("!hide")], - ..Default::default() - }, + labels: TestLabels { post: vec![String::from("!hide")], ..Default::default() }, behaviors: ExpectedBehaviors { avatar: vec![Blur, NoOverride], banner: vec![Blur, NoOverride], diff --git a/bsky-sdk/src/moderation/tests/custom_labels.rs b/bsky-sdk/src/moderation/tests/custom_labels.rs index 71aea285..b29c3c0e 100644 --- a/bsky-sdk/src/moderation/tests/custom_labels.rs +++ b/bsky-sdk/src/moderation/tests/custom_labels.rs @@ -26,11 +26,7 @@ impl Scenario { &profile_view_basic( "bob.test", Some("Bob"), - Some(vec![label( - "did:web:labeler.test", - "did:web:bob.test", - "custom", - )]), + Some(vec![label("did:web:labeler.test", "did:web:bob.test", "custom")]), ) .into(), ); @@ -159,13 +155,8 @@ fn moderation_custom_labels() { content_list: vec![Filter, Blur], ..Default::default() }, - profile: ExpectedBehaviors { - ..Default::default() - }, - post: ExpectedBehaviors { - content_list: vec![Filter, Blur], - ..Default::default() - }, + profile: ExpectedBehaviors { ..Default::default() }, + post: ExpectedBehaviors { content_list: vec![Filter, Blur], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::Media, @@ -286,13 +277,8 @@ fn moderation_custom_labels() { content_list: vec![Filter], ..Default::default() }, - profile: ExpectedBehaviors { - ..Default::default() - }, - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + profile: ExpectedBehaviors { ..Default::default() }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, ]; for scenario in scenarios { diff --git a/bsky-sdk/src/moderation/tests/mutewords.rs b/bsky-sdk/src/moderation/tests/mutewords.rs index 6687f566..083f90c1 100644 --- a/bsky-sdk/src/moderation/tests/mutewords.rs +++ b/bsky-sdk/src/moderation/tests/mutewords.rs @@ -78,11 +78,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("This is a post #inlineTag").await?; assert!(has_muted_word( - &[muted_word( - "outlineTag", - MutedWordTarget::Tag, - ActorTarget::All - )], + &[muted_word("outlineTag", MutedWordTarget::Tag, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![String::from("outlineTag")]), @@ -94,11 +90,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("This is a post #inlineTag").await?; assert!(has_muted_word( - &[muted_word( - "inlineTag", - MutedWordTarget::Tag, - ActorTarget::All - )], + &[muted_word("inlineTag", MutedWordTarget::Tag, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![String::from("outlineTag")]), @@ -110,11 +102,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("This is a post #inlineTag").await?; assert!(has_muted_word( - &[muted_word( - "inlineTag", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("inlineTag", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![String::from("outlineTag")]), @@ -162,11 +150,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("hey").await?; assert!(!has_muted_word( - &[muted_word( - "politics", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("politics", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -178,11 +162,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("javascript").await?; assert!(has_muted_word( - &[muted_word( - "javascript", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("javascript", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -194,11 +174,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("This is a post about javascript").await?; assert!(has_muted_word( - &[muted_word( - "javascript", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("javascript", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -222,11 +198,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { { let rt = rich_text_with_detect_facets("Use your\n\tbrain, Eric").await?; assert!(has_muted_word( - &[muted_word( - "brain", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("brain", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -251,11 +223,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("We're federating, yay!").await?; // match: yay! assert!(has_muted_word( - &[muted_word( - "yay!", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("yay!", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -264,11 +232,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: yay assert!(has_muted_word( - &[muted_word( - "yay", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("yay", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -281,11 +245,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("We're federating, y!ppee!!").await?; // match: y!ppee assert!(has_muted_word( - &[muted_word( - "y!ppee", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("y!ppee", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -294,11 +254,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: y!ppee! assert!(has_muted_word( - &[muted_word( - "y!ppee!", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("y!ppee!", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -311,11 +267,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("Yay, Bluesky's mutewords work").await?; // match: Bluesky's assert!(has_muted_word( - &[muted_word( - "Bluesky's", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("Bluesky's", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -324,11 +276,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: Bluesky assert!(has_muted_word( - &[muted_word( - "Bluesky", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("Bluesky", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -337,11 +285,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: bluesky assert!(has_muted_word( - &[muted_word( - "bluesky", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("bluesky", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -350,11 +294,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: blueskys assert!(has_muted_word( - &[muted_word( - "blueskys", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("blueskys", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -367,11 +307,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("Why so S@assy?").await?; // match: S@assy assert!(has_muted_word( - &[muted_word( - "S@assy", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("S@assy", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -380,11 +316,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: s@assy assert!(has_muted_word( - &[muted_word( - "s@assy", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("s@assy", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -397,11 +329,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("New York Times").await?; // match: new york times assert!(has_muted_word( - &[muted_word( - "new york times", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("new york times", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -414,11 +342,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("Idk maybe a bot !command").await?; // match: !command assert!(has_muted_word( - &[muted_word( - "!command", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("!command", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -427,11 +351,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: command assert!(has_muted_word( - &[muted_word( - "command", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("command", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -441,11 +361,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { // no match: !command let rt = rich_text_with_detect_facets("Idk maybe a bot command").await?; assert!(!has_muted_word( - &[muted_word( - "!command", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("!command", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -458,11 +374,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("I'm e/acc pilled").await?; // match: e/acc assert!(has_muted_word( - &[muted_word( - "e/acc", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("e/acc", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -471,11 +383,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: acc assert!(has_muted_word( - &[muted_word( - "acc", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("acc", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -488,11 +396,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("I'm super-bad").await?; // match: super-bad assert!(has_muted_word( - &[muted_word( - "super-bad", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("super-bad", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -501,11 +405,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: super assert!(has_muted_word( - &[muted_word( - "super", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("super", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -514,11 +414,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: bad assert!(has_muted_word( - &[muted_word( - "bad", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("bad", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -527,11 +423,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: super bad assert!(has_muted_word( - &[muted_word( - "super bad", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("super bad", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -540,11 +432,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: superbad assert!(has_muted_word( - &[muted_word( - "superbad", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("superbad", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -557,11 +445,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("Weird post with idk_what_this_would_be").await?; // match: idk what this would be assert!(has_muted_word( - &[muted_word( - "idk what this would be", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("idk what this would be", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -570,11 +454,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // no match: idk what this would be for assert!(!has_muted_word( - &[muted_word( - "idk what this would be for", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("idk what this would be for", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -583,11 +463,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: idk assert!(has_muted_word( - &[muted_word( - "idk", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("idk", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -596,11 +472,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: idkwhatthiswouldbe assert!(has_muted_word( - &[muted_word( - "idkwhatthiswouldbe", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("idkwhatthiswouldbe", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -613,11 +485,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("Post with context(iykyk)").await?; // match: context(iykyk) assert!(has_muted_word( - &[muted_word( - "context(iykyk)", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("context(iykyk)", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -626,11 +494,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: context assert!(has_muted_word( - &[muted_word( - "context", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("context", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -639,11 +503,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: iykyk assert!(has_muted_word( - &[muted_word( - "iykyk", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("iykyk", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -652,11 +512,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: (iykyk) assert!(has_muted_word( - &[muted_word( - "(iykyk)", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("(iykyk)", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -685,11 +541,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { .await?; // match: stop worrying assert!(has_muted_word( - &[muted_word( - "stop worrying", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("stop worrying", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -698,11 +550,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { )); // match: turtles, or how assert!(has_muted_word( - &[muted_word( - "turtles, or how", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("turtles, or how", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -715,11 +563,7 @@ async fn has_muted_word_from_rich_text() -> crate::error::Result<()> { let rt = rich_text_with_detect_facets("私はカメが好きです、またはどのようにして心配するのをやめてインターネットを愛するようになったのか").await?; // match: インターネット assert!(has_muted_word( - &[muted_word( - "インターネット", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("インターネット", MutedWordTarget::Content, ActorTarget::All)], &rt.text, rt.facets.as_ref(), Some(&vec![]), @@ -735,32 +579,18 @@ fn facet_with_multiple_features() { // multiple tags { assert!(has_muted_word( - &[muted_word( - "bad", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("bad", MutedWordTarget::Content, ActorTarget::All)], "tags", Some(&vec![MainData { features: vec![ Union::Refs(MainFeaturesItem::Tag(Box::new( - TagData { - tag: String::from("good") - } - .into() + TagData { tag: String::from("good") }.into() ))), Union::Refs(MainFeaturesItem::Tag(Box::new( - TagData { - tag: String::from("bad") - } - .into() + TagData { tag: String::from("bad") }.into() ))) ], - index: ByteSliceData { - byte_end: 4, - byte_start: 0, - } - .into() + index: ByteSliceData { byte_end: 4, byte_start: 0 }.into() } .into()]), Some(&vec![]), @@ -771,11 +601,7 @@ fn facet_with_multiple_features() { // other features { assert!(has_muted_word( - &[muted_word( - "bad", - MutedWordTarget::Content, - ActorTarget::All - )], + &[muted_word("bad", MutedWordTarget::Content, ActorTarget::All)], "test", Some(&vec![MainData { features: vec![ @@ -787,17 +613,10 @@ fn facet_with_multiple_features() { ),])) }), Union::Refs(MainFeaturesItem::Tag(Box::new( - TagData { - tag: String::from("bad") - } - .into() + TagData { tag: String::from("bad") }.into() ))) ], - index: ByteSliceData { - byte_end: 4, - byte_start: 0, - } - .into() + index: ByteSliceData { byte_end: 4, byte_start: 0 }.into() } .into()]), Some(&vec![]), @@ -810,11 +629,7 @@ fn facet_with_multiple_features() { #[test] fn does_not_mute_own_post() { let prefs = &moderation_prefs("words", MutedWordTarget::Content, ActorTarget::All, None); - let post = &post_view( - &profile_view_basic("bob.test", Some("Bob"), None), - "Mute words!", - None, - ); + let post = &post_view(&profile_view_basic("bob.test", Some("Bob"), None), "Mute words!", None); // does mute if it isn't own post let moderator = Moderator::new( Some("did:web:alice.test".parse().expect("invalid did")), @@ -822,10 +637,7 @@ fn does_not_mute_own_post() { HashMap::new(), ); let result = moderator.moderate_post(post); - assert!( - result.ui(DecisionContext::ContentList).filter(), - "post should be filtered" - ); + assert!(result.ui(DecisionContext::ContentList).filter(), "post should be filtered"); // doesn't mute own post when muted word is in text let moderator = Moderator::new( Some("did:web:bob.test".parse().expect("invalid did")), @@ -833,10 +645,7 @@ fn does_not_mute_own_post() { HashMap::new(), ); let result = moderator.moderate_post(post); - assert!( - !result.ui(DecisionContext::ContentList).filter(), - "post should not be filtered" - ); + assert!(!result.ui(DecisionContext::ContentList).filter(), "post should not be filtered"); } #[cfg(feature = "rich-text")] @@ -848,11 +657,7 @@ async fn does_not_mute_own_tags() -> crate::error::Result<()> { let prefs = moderation_prefs("words", MutedWordTarget::Tag, ActorTarget::All, None); let rt = rich_text_with_detect_facets("Mute #words!").await?; - let mut post = post_view( - &profile_view_basic("bob.test", Some("Bob"), None), - &rt.text, - None, - ); + let mut post = post_view(&profile_view_basic("bob.test", Some("Bob"), None), &rt.text, None); if let Unknown::Other(data) = &mut post.record { if let Ipld::Map(m) = data.deref_mut() { if let Some(facets) = rt.facets { @@ -869,10 +674,7 @@ async fn does_not_mute_own_tags() -> crate::error::Result<()> { HashMap::new(), ); let result = moderator.moderate_post(&post); - assert!( - !result.ui(DecisionContext::ContentList).filter(), - "post should not be filtered" - ); + assert!(!result.ui(DecisionContext::ContentList).filter(), "post should not be filtered"); Ok(()) } @@ -887,21 +689,15 @@ fn timed_mute_words() { ActorTarget::All, Some(Datetime::new(now + Duration::from_secs(1))), ); - let post = &post_view( - &profile_view_basic("bob.test", Some("Bob"), None), - "Mute words!", - None, - ); + let post = + &post_view(&profile_view_basic("bob.test", Some("Bob"), None), "Mute words!", None); let moderator = Moderator::new( Some("did:web:alice.test".parse().expect("invalid did")), prefs.clone(), HashMap::new(), ); let result = moderator.moderate_post(post); - assert!( - result.ui(DecisionContext::ContentList).filter(), - "post should be filtered" - ); + assert!(result.ui(DecisionContext::ContentList).filter(), "post should be filtered"); } // expired word { @@ -912,32 +708,22 @@ fn timed_mute_words() { ActorTarget::All, Some(Datetime::new(now - Duration::from_secs(1))), ); - let post = &post_view( - &profile_view_basic("bob.test", Some("Bob"), None), - "Mute words!", - None, - ); + let post = + &post_view(&profile_view_basic("bob.test", Some("Bob"), None), "Mute words!", None); let moderator = Moderator::new( Some("did:web:alice.test".parse().expect("invalid did")), prefs.clone(), HashMap::new(), ); let result = moderator.moderate_post(post); - assert!( - !result.ui(DecisionContext::ContentList).filter(), - "post should not be filtered" - ); + assert!(!result.ui(DecisionContext::ContentList).filter(), "post should not be filtered"); } } #[test] fn actor_based_mute_words() { - let prefs = moderation_prefs( - "words", - MutedWordTarget::Content, - ActorTarget::ExcludeFollowing, - None, - ); + let prefs = + moderation_prefs("words", MutedWordTarget::Content, ActorTarget::ExcludeFollowing, None); // followed actor { let mut author = profile_view_basic("bob.test", Some("Bob"), None); @@ -951,10 +737,7 @@ fn actor_based_mute_words() { HashMap::new(), ); let result = moderator.moderate_post(&post_view(&author, "Mute words!", None)); - assert!( - !result.ui(DecisionContext::ContentList).filter(), - "post should not be filtered" - ); + assert!(!result.ui(DecisionContext::ContentList).filter(), "post should not be filtered"); } // non-followed actor { @@ -966,9 +749,6 @@ fn actor_based_mute_words() { HashMap::new(), ); let result = moderator.moderate_post(&post_view(&author, "Mute words!", None)); - assert!( - result.ui(DecisionContext::ContentList).filter(), - "post should be filtered" - ); + assert!(result.ui(DecisionContext::ContentList).filter(), "post should be filtered"); } } diff --git a/bsky-sdk/src/moderation/tests/quoteposts.rs b/bsky-sdk/src/moderation/tests/quoteposts.rs index 6e507f82..7480f11c 100644 --- a/bsky-sdk/src/moderation/tests/quoteposts.rs +++ b/bsky-sdk/src/moderation/tests/quoteposts.rs @@ -32,9 +32,7 @@ fn embed_record_view( reply_count: None, repost_count: None, uri: format!("at://{}/app.bsky.feed.post/fake", author.did.as_ref()), - value: record - .try_into_unknown() - .expect("failed to convert record to unknown"), + value: record.try_into_unknown().expect("failed to convert record to unknown"), } .into(), ))), @@ -44,11 +42,7 @@ fn embed_record_view( } fn quoted_post(profile_labels: Option>, post_labels: Option>) -> PostView { - let mut quoted = post_view( - &profile_view_basic("bob.test", Some("Bob"), None), - "Hello", - None, - ); + let mut quoted = post_view(&profile_view_basic("bob.test", Some("Bob"), None), "Hello", None); quoted.embed = Some(embed_record_view( &profile_view_basic("carla.test", Some("Carla"), profile_labels), &atrium_api::app::bsky::feed::post::RecordData { @@ -82,11 +76,7 @@ impl Scenario { // account { let result = moderator.moderate_post("ed_post( - Some(vec![label( - "did:web:labeler.test", - "did:web:carla.test", - "custom", - )]), + Some(vec![label("did:web:labeler.test", "did:web:carla.test", "custom")]), None, )); for context in DecisionContext::ALL { @@ -168,10 +158,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::Content, @@ -182,10 +169,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::Content, @@ -196,10 +180,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::Media, @@ -210,10 +191,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::Media, @@ -224,10 +202,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::Media, @@ -238,10 +213,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::None, @@ -252,10 +224,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::None, @@ -266,10 +235,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, Scenario { blurs: LabelValueDefinitionBlurs::None, @@ -280,10 +246,7 @@ fn moderation_quoteposts() { ..Default::default() }, profile: ExpectedBehaviors::default(), - post: ExpectedBehaviors { - content_list: vec![Filter], - ..Default::default() - }, + post: ExpectedBehaviors { content_list: vec![Filter], ..Default::default() }, }, ]; for scenario in scenarios { diff --git a/bsky-sdk/src/preference.rs b/bsky-sdk/src/preference.rs index 74967bb6..b303eccb 100644 --- a/bsky-sdk/src/preference.rs +++ b/bsky-sdk/src/preference.rs @@ -47,10 +47,7 @@ impl ThreadViewPreferenceData { impl Default for ThreadViewPreferenceData { fn default() -> Self { - Self { - sort: Self::SORT_OLDEST.to_string(), - prioritize_followed_users: true, - } + Self { sort: Self::SORT_OLDEST.to_string(), prioritize_followed_users: true } } } diff --git a/bsky-sdk/src/record.rs b/bsky-sdk/src/record.rs index dd7a59e7..9b61c70a 100644 --- a/bsky-sdk/src/record.rs +++ b/bsky-sdk/src/record.rs @@ -341,10 +341,7 @@ mod tests { #[tokio::test] async fn actor_profile() -> Result<()> { - let agent = BskyAgentBuilder::new(MockClient) - .store(MockSessionStore) - .build() - .await?; + let agent = BskyAgentBuilder::new(MockClient).store(MockSessionStore).build().await?; // create let output = atrium_api::app::bsky::actor::profile::RecordData { avatar: None, @@ -375,10 +372,7 @@ mod tests { #[tokio::test] async fn feed_post() -> Result<()> { - let agent = BskyAgentBuilder::new(MockClient) - .store(MockSessionStore) - .build() - .await?; + let agent = BskyAgentBuilder::new(MockClient).store(MockSessionStore).build().await?; // create let output = atrium_api::app::bsky::feed::post::RecordData { created_at: Datetime::now(), @@ -410,10 +404,7 @@ mod tests { #[tokio::test] async fn graph_follow() -> Result<()> { - let agent = BskyAgentBuilder::new(MockClient) - .store(MockSessionStore) - .build() - .await?; + let agent = BskyAgentBuilder::new(MockClient).store(MockSessionStore).build().await?; // create let output = atrium_api::app::bsky::graph::follow::RecordData { created_at: Datetime::now(), diff --git a/bsky-sdk/src/record/agent.rs b/bsky-sdk/src/record/agent.rs index 5199681e..30a2f626 100644 --- a/bsky-sdk/src/record/agent.rs +++ b/bsky-sdk/src/record/agent.rs @@ -79,10 +79,7 @@ where .collect::>(); let repo = parts[0].parse().or(Err(Error::InvalidAtUri))?; let collection = parts[1].parse().or(Err(Error::InvalidAtUri))?; - let rkey = parts[2] - .parse::() - .or(Err(Error::InvalidAtUri))? - .into(); + let rkey = parts[2].parse::().or(Err(Error::InvalidAtUri))?.into(); Ok(self .api .com diff --git a/bsky-sdk/src/rich_text.rs b/bsky-sdk/src/rich_text.rs index e3a98548..5c6a7d17 100644 --- a/bsky-sdk/src/rich_text.rs +++ b/bsky-sdk/src/rich_text.rs @@ -28,10 +28,7 @@ impl RichTextSegment { text: impl AsRef, facets: Option, ) -> Self { - Self { - text: text.as_ref().into(), - facet: facets, - } + Self { text: text.as_ref().into(), facet: facets } } /// Get the mention in the segment. pub fn mention(&self) -> Option { @@ -70,19 +67,13 @@ pub struct RichText { } impl RichText { - const BYTE_SLICE_ZERO: ByteSliceData = ByteSliceData { - byte_start: 0, - byte_end: 0, - }; + const BYTE_SLICE_ZERO: ByteSliceData = ByteSliceData { byte_start: 0, byte_end: 0 }; /// Create a new [`RichText`] with the given text and optional facets. pub fn new( text: impl AsRef, facets: Option>, ) -> Self { - RichText { - text: text.as_ref().into(), - facets, - } + RichText { text: text.as_ref().into(), facets } } /// Create a new [`RichText`] with the given text and automatically detect facets. #[cfg_attr(docsrs, doc(cfg(feature = "default-client")))] @@ -90,10 +81,7 @@ impl RichText { pub async fn new_with_detect_facets(text: impl AsRef) -> Result { use atrium_xrpc_client::reqwest::ReqwestClient; - let mut rt = Self { - text: text.as_ref().into(), - facets: None, - }; + let mut rt = Self { text: text.as_ref().into(), facets: None }; rt.detect_facets(ReqwestClient::new(String::new())).await?; Ok(rt) } @@ -103,10 +91,7 @@ impl RichText { text: impl AsRef, client: impl XrpcClient + Send + Sync, ) -> Result { - let mut rt = Self { - text: text.as_ref().into(), - facets: None, - }; + let mut rt = Self { text: text.as_ref().into(), facets: None }; rt.detect_facets(client).await?; Ok(rt) } @@ -220,10 +205,7 @@ impl RichText { /// Detect facets in the text and set them. pub async fn detect_facets(&mut self, client: impl XrpcClient + Send + Sync) -> Result<()> { let agent = BskyAgentBuilder::new(client) - .config(Config { - endpoint: PUBLIC_API_ENDPOINT.into(), - ..Default::default() - }) + .config(Config { endpoint: PUBLIC_API_ENDPOINT.into(), ..Default::default() }) .build() .await?; let facets_without_resolution = detect_facets(&self.text); diff --git a/bsky-sdk/src/rich_text/detection.rs b/bsky-sdk/src/rich_text/detection.rs index adbc0e2a..f224142d 100644 --- a/bsky-sdk/src/rich_text/detection.rs +++ b/bsky-sdk/src/rich_text/detection.rs @@ -40,16 +40,10 @@ pub fn detect_facets(text: &str) -> Vec { continue; }; facets.push(FacetWithoutResolution { - features: vec![FacetFeaturesItem::Mention(Box::new( - MentionWithoutResolution { - handle: m.as_str().into(), - }, - ))], - index: ByteSliceData { - byte_end: m.end(), - byte_start: m.start() - 1, - } - .into(), + features: vec![FacetFeaturesItem::Mention(Box::new(MentionWithoutResolution { + handle: m.as_str().into(), + }))], + index: ByteSliceData { byte_end: m.end(), byte_start: m.start() - 1 }.into(), }); } } @@ -73,10 +67,7 @@ pub fn detect_facets(text: &str) -> Vec { } else { m.as_str().into() }; - let mut index = ByteSliceData { - byte_end: m.end(), - byte_start: m.start(), - }; + let mut index = ByteSliceData { byte_end: m.end(), byte_start: m.start() }; // strip ending puncuation if (RE_ENDING_PUNCTUATION .get_or_init(|| Regex::new(r"[.,;:!?]$").expect("invalid regex")) diff --git a/bsky-sdk/src/rich_text/tests.rs b/bsky-sdk/src/rich_text/tests.rs index c1ad05a2..f670214a 100644 --- a/bsky-sdk/src/rich_text/tests.rs +++ b/bsky-sdk/src/rich_text/tests.rs @@ -24,15 +24,8 @@ pub async fn rich_text_with_detect_facets(text: &str) -> Result { fn facet(byte_start: usize, byte_end: usize) -> Main { MainData { - features: vec![Union::Unknown(UnknownData { - r#type: String::new(), - data: Ipld::Null, - })], - index: ByteSliceData { - byte_end, - byte_start, - } - .into(), + features: vec![Union::Unknown(UnknownData { r#type: String::new(), data: Ipld::Null })], + index: ByteSliceData { byte_end, byte_start }.into(), } .into() } @@ -68,10 +61,7 @@ fn insert() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 6); assert_eq!(facets[0].index.byte_end, 11); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "llo w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "llo w"); } // correctly adjusts facets (scenario B - inner) { @@ -82,10 +72,7 @@ fn insert() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 2); assert_eq!(facets[0].index.byte_end, 11); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "lltesto w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "lltesto w"); } // correctly adjusts facets (scenario C - after) { @@ -96,10 +83,7 @@ fn insert() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 2); assert_eq!(facets[0].index.byte_end, 7); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "llo w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "llo w"); } } @@ -191,10 +175,7 @@ fn delete() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 2); assert_eq!(facets[0].index.byte_end, 7); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "llo w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "llo w"); } // correctly adjusts facets (scenario C - partially after) { @@ -205,10 +186,7 @@ fn delete() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 2); assert_eq!(facets[0].index.byte_end, 4); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "ll" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "ll"); } // correctly adjusts facets (scenario D - entirely inner) { @@ -219,10 +197,7 @@ fn delete() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 2); assert_eq!(facets[0].index.byte_end, 5); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "l w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "l w"); } // correctly adjusts facets (scenario E - partially before) { @@ -233,10 +208,7 @@ fn delete() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 1); assert_eq!(facets[0].index.byte_end, 3); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - " w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], " w"); } // correctly adjusts facets (scenario F - entirely before) { @@ -247,19 +219,13 @@ fn delete() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 0); assert_eq!(facets[0].index.byte_end, 5); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "llo w" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "llo w"); } } #[test] fn delete_with_fat_unicode() { - let input = &RichText::new( - "one👨‍👩‍👧‍👧 two👨‍👩‍👧‍👧 three👨‍👩‍👧‍👧", - Some(vec![facet(29, 57)]), - ); + let input = &RichText::new("one👨‍👩‍👧‍👧 two👨‍👩‍👧‍👧 three👨‍👩‍👧‍👧", Some(vec![facet(29, 57)])); // correctly adjusts facets (scenario A - entirely outer) { let mut input = input.clone(); @@ -291,10 +257,7 @@ fn delete_with_fat_unicode() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 29); assert_eq!(facets[0].index.byte_end, 31); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "tw" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "tw"); } // correctly adjusts facets (scenario D - entirely inner) { @@ -305,10 +268,7 @@ fn delete_with_fat_unicode() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 29); assert_eq!(facets[0].index.byte_end, 55); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "t👨‍👩‍👧‍👧" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "t👨‍👩‍👧‍👧"); } // correctly adjusts facets (scenario E - partially before) { @@ -319,10 +279,7 @@ fn delete_with_fat_unicode() { assert_eq!(facets.len(), 1); assert_eq!(facets[0].index.byte_start, 28); assert_eq!(facets[0].index.byte_end, 54); - assert_eq!( - &input.text[facets[0].index.byte_start..facets[0].index.byte_end], - "o👨‍👩‍👧‍👧" - ); + assert_eq!(&input.text[facets[0].index.byte_start..facets[0].index.byte_end], "o👨‍👩‍👧‍👧"); } // correctly adjusts facets (scenario F - entirely before) { @@ -396,10 +353,8 @@ fn segments() { } // produces 5 segments with 3 facets covering each word { - let input = RichText::new( - "one two three", - Some(vec![facet(0, 3), facet(4, 7), facet(8, 13)]), - ); + let input = + RichText::new("one two three", Some(vec![facet(0, 3), facet(4, 7), facet(8, 13)])); assert_eq!( input.segments(), vec![ @@ -435,30 +390,16 @@ fn segments() { Some(vec![ MainData { features: vec![Union::Refs(MainFeaturesItem::Mention(Box::new( - MentionData { - did: "did:plc:123".parse().expect("invalid did"), - } - .into(), + MentionData { did: "did:plc:123".parse().expect("invalid did") }.into(), )))], - index: ByteSliceData { - byte_end: 3, - byte_start: 0, - } - .into(), + index: ByteSliceData { byte_end: 3, byte_start: 0 }.into(), } .into(), MainData { features: vec![Union::Refs(MainFeaturesItem::Link(Box::new( - LinkData { - uri: String::from("https://example.com"), - } - .into(), + LinkData { uri: String::from("https://example.com") }.into(), )))], - index: ByteSliceData { - byte_end: 7, - byte_start: 4, - } - .into(), + index: ByteSliceData { byte_end: 7, byte_start: 4 }.into(), } .into(), facet(8, 13), @@ -479,10 +420,8 @@ fn segments() { } // skips facets that incorrectly overlap (left edge) { - let input = RichText::new( - "one two three", - Some(vec![facet(0, 3), facet(2, 9), facet(8, 13)]), - ); + let input = + RichText::new("one two three", Some(vec![facet(0, 3), facet(2, 9), facet(8, 13)])); assert_eq!( input.segments(), vec![ @@ -494,10 +433,8 @@ fn segments() { } // skips facets that incorrectly overlap (right edge) { - let input = RichText::new( - "one two three", - Some(vec![facet(0, 3), facet(4, 9), facet(8, 13)]), - ); + let input = + RichText::new("one two three", Some(vec![facet(0, 3), facet(4, 9), facet(8, 13)])); assert_eq!( input.segments(), vec![ diff --git a/bsky-sdk/src/rich_text/tests/detection.rs b/bsky-sdk/src/rich_text/tests/detection.rs index 826f8a84..c5f4453e 100644 --- a/bsky-sdk/src/rich_text/tests/detection.rs +++ b/bsky-sdk/src/rich_text/tests/detection.rs @@ -320,13 +320,7 @@ async fn detect_facets_mentions_and_links() -> Result<()> { } for (input, expected) in test_cases { let rt = rich_text_with_detect_facets(input).await?; - assert_eq!( - rt.segments() - .iter() - .map(segment_to_output) - .collect::>(), - expected - ); + assert_eq!(rt.segments().iter().map(segment_to_output).collect::>(), expected); } Ok(()) } @@ -351,54 +345,30 @@ async fn detect_facets_tags() -> Result<()> { ("text # text", vec![]), ( "body #thisisa64characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - vec![( - "thisisa64characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - (5, 70), - )], - ), - ( - "body #thisisa65characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab", - vec![], + vec![("thisisa64characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", (5, 70))], ), + ("body #thisisa65characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab", vec![]), ( "body #thisisa64characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!", - vec![( - "thisisa64characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - (5, 70), - )], + vec![("thisisa64characterstring_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", (5, 70))], ), ("its a #double#rainbow", vec![("double#rainbow", (6, 21))]), ("##hashash", vec![("#hashash", (0, 9))]), ("##", vec![]), ("some #n0n3s@n5e!", vec![("n0n3s@n5e", (5, 15))]), - ( - "works #with,punctuation", - vec![("with,punctuation", (6, 23))], - ), + ("works #with,punctuation", vec![("with,punctuation", (6, 23))]), ( "strips trailing #punctuation, #like. #this!", - vec![ - ("punctuation", (16, 28)), - ("like", (30, 35)), - ("this", (37, 42)), - ], - ), - ( - "strips #multi_trailing___...", - vec![("multi_trailing", (7, 22))], + vec![("punctuation", (16, 28)), ("like", (30, 35)), ("this", (37, 42))], ), + ("strips #multi_trailing___...", vec![("multi_trailing", (7, 22))]), ( "works with #🦋 emoji, and #butter🦋fly", vec![("🦋", (11, 16)), ("butter🦋fly", (28, 42))], ), ( "#same #same #but #diff", - vec![ - ("same", (0, 5)), - ("same", (6, 11)), - ("but", (12, 16)), - ("diff", (17, 22)), - ], + vec![("same", (0, 5)), ("same", (6, 11)), ("but", (12, 16)), ("diff", (17, 22))], ), ("this #️⃣tag should not be a tag", vec![]), ("this ##️⃣tag should be a tag", vec![("#️⃣tag", (5, 16))]), @@ -413,23 +383,16 @@ async fn detect_facets_tags() -> Result<()> { ("match (ab\\u200B): #ab​", vec![("ab", (18, 21))]), ("no match (\\u20e2tag): #⃢tag", vec![]), ("no match (a\\u20e2b): #a⃢b", vec![("a", (21, 23))]), - ( - "match full width number sign (tag): #tag", - vec![("tag", (36, 42))], - ), - ( - "match full width number sign (tag): ##️⃣tag", - vec![("#️⃣tag", (36, 49))], - ), + ("match full width number sign (tag): #tag", vec![("tag", (36, 42))]), + ("match full width number sign (tag): ##️⃣tag", vec![("#️⃣tag", (36, 49))]), ("no match 1?: #1?", vec![]), ]; fn segment_to_output(segment: &RichTextSegment) -> Option<(&str, (usize, usize))> { segment.facet.as_ref().and_then(|facet| { facet.features.iter().find_map(|feature| match feature { - Union::Refs(MainFeaturesItem::Tag(tag)) => Some(( - tag.tag.as_ref(), - (facet.index.byte_start, facet.index.byte_end), - )), + Union::Refs(MainFeaturesItem::Tag(tag)) => { + Some((tag.tag.as_ref(), (facet.index.byte_start, facet.index.byte_end))) + } _ => None, }) }) @@ -438,10 +401,7 @@ async fn detect_facets_tags() -> Result<()> { for (input, expected) in test_cases { let rt = rich_text_with_detect_facets(input).await?; assert_eq!( - rt.segments() - .iter() - .filter_map(segment_to_output) - .collect::>(), + rt.segments().iter().filter_map(segment_to_output).collect::>(), expected ); }