diff --git a/atrium-api/src/app/bsky/actor/defs.rs b/atrium-api/src/app/bsky/actor/defs.rs index cd6dfbd2..c6eaf5ca 100644 --- a/atrium-api/src/app/bsky/actor/defs.rs +++ b/atrium-api/src/app/bsky/actor/defs.rs @@ -35,6 +35,12 @@ pub struct FeedViewPref { } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] +pub struct InterestsPref { + ///A list of tags which describe the account owner's interests gathered during onboarding. + pub tags: Vec, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] pub struct PersonalDetailsPref { ///The birth date of account owner. #[serde(skip_serializing_if = "Option::is_none")] @@ -148,4 +154,6 @@ pub enum PreferencesItem { FeedViewPref(Box), #[serde(rename = "app.bsky.actor.defs#threadViewPref")] ThreadViewPref(Box), + #[serde(rename = "app.bsky.actor.defs#interestsPref")] + InterestsPref(Box), } diff --git a/atrium-api/src/app/bsky/graph.rs b/atrium-api/src/app/bsky/graph.rs index 45cbcb8f..bfc8b2d9 100644 --- a/atrium-api/src/app/bsky/graph.rs +++ b/atrium-api/src/app/bsky/graph.rs @@ -11,6 +11,7 @@ pub mod get_list_blocks; pub mod get_list_mutes; pub mod get_lists; pub mod get_mutes; +pub mod get_relationships; pub mod get_suggested_follows_by_actor; pub mod list; pub mod listblock; diff --git a/atrium-api/src/app/bsky/graph/defs.rs b/atrium-api/src/app/bsky/graph/defs.rs index aec56107..4baf32e0 100644 --- a/atrium-api/src/app/bsky/graph/defs.rs +++ b/atrium-api/src/app/bsky/graph/defs.rs @@ -51,3 +51,22 @@ pub struct ListViewerState { } ///A list of actors to apply an aggregate moderation action (mute/block) on. pub struct Modlist; +///indicates that a handle or DID could not be resolved +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct NotFoundActor { + pub actor: String, + pub not_found: bool, +} +///lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Relationship { + pub did: String, + ///if the actor is followed by this DID, contains the AT-URI of the follow record + #[serde(skip_serializing_if = "Option::is_none")] + pub followed_by: Option, + ///if the actor follows this DID, this is the AT-URI of the follow record + #[serde(skip_serializing_if = "Option::is_none")] + pub following: Option, +} diff --git a/atrium-api/src/app/bsky/graph/get_relationships.rs b/atrium-api/src/app/bsky/graph/get_relationships.rs new file mode 100644 index 00000000..49b0f1ab --- /dev/null +++ b/atrium-api/src/app/bsky/graph/get_relationships.rs @@ -0,0 +1,30 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `app.bsky.graph.getRelationships` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Parameters { + pub actor: String, + #[serde(skip_serializing_if = "Option::is_none")] + pub others: Option>, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Output { + #[serde(skip_serializing_if = "Option::is_none")] + pub actor: Option, + pub relationships: Vec, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error { + ///the primary actor at-identifier could not be resolved + ActorNotFound(Option), +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "$type")] +pub enum OutputRelationshipsItem { + #[serde(rename = "app.bsky.graph.defs#relationship")] + AppBskyGraphDefsRelationship(Box), + #[serde(rename = "app.bsky.graph.defs#notFoundActor")] + AppBskyGraphDefsNotFoundActor(Box), +} diff --git a/atrium-api/src/app/bsky/unspecced.rs b/atrium-api/src/app/bsky/unspecced.rs index 8c97fb32..9c8d0529 100644 --- a/atrium-api/src/app/bsky/unspecced.rs +++ b/atrium-api/src/app/bsky/unspecced.rs @@ -1,8 +1,7 @@ // This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `app.bsky.unspecced` namespace. pub mod defs; -pub mod get_popular; pub mod get_popular_feed_generators; -pub mod get_timeline_skeleton; +pub mod get_tagged_suggestions; pub mod search_actors_skeleton; pub mod search_posts_skeleton; diff --git a/atrium-api/src/app/bsky/unspecced/get_popular.rs b/atrium-api/src/app/bsky/unspecced/get_popular.rs deleted file mode 100644 index a73216ae..00000000 --- a/atrium-api/src/app/bsky/unspecced/get_popular.rs +++ /dev/null @@ -1,22 +0,0 @@ -// This file is generated by atrium-codegen. DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getPopular` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct Parameters { - #[serde(skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub include_nsfw: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub limit: Option, -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct Output { - #[serde(skip_serializing_if = "Option::is_none")] - pub cursor: Option, - pub feed: Vec, -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} diff --git a/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs b/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs new file mode 100644 index 00000000..31060025 --- /dev/null +++ b/atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs @@ -0,0 +1,20 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `app.bsky.unspecced.getTaggedSuggestions` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Parameters {} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Output { + pub suggestions: Vec, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Suggestion { + pub subject: String, + pub subject_type: String, + pub tag: String, +} diff --git a/atrium-api/src/client.rs b/atrium-api/src/client.rs index b6c6de3b..f9cbeffa 100644 --- a/atrium-api/src/client.rs +++ b/atrium-api/src/client.rs @@ -1162,6 +1162,36 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } + ///Enumerates public relationships between one account, and a list of other accounts + pub async fn get_relationships( + &self, + params: crate::app::bsky::graph::get_relationships::Parameters, + ) -> Result< + crate::app::bsky::graph::get_relationships::Output, + atrium_xrpc::error::Error, + > { + let response = self + .xrpc + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + path: "app.bsky.graph.getRelationships".into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) + .await?; + match response { + atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Get suggested follows related to a given actor. pub async fn get_suggested_follows_by_actor( &self, @@ -1454,36 +1484,6 @@ where pub(crate) fn new(xrpc: std::sync::Arc) -> Self { Self { xrpc } } - ///DEPRECATED: will be removed soon. Use a feed generator alternative. - pub async fn get_popular( - &self, - params: crate::app::bsky::unspecced::get_popular::Parameters, - ) -> Result< - crate::app::bsky::unspecced::get_popular::Output, - atrium_xrpc::error::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - path: "app.bsky.unspecced.getPopular".into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), - } - } ///An unspecced view of globally popular feed generators. pub async fn get_popular_feed_generators( &self, @@ -1516,14 +1516,14 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } - ///DEPRECATED: a skeleton of a timeline. Unspecced and will be unavailable soon. - pub async fn get_timeline_skeleton( + ///Get a list of suggestions (feeds and users) tagged with categories + pub async fn get_tagged_suggestions( &self, - params: crate::app::bsky::unspecced::get_timeline_skeleton::Parameters, + params: crate::app::bsky::unspecced::get_tagged_suggestions::Parameters, ) -> Result< - crate::app::bsky::unspecced::get_timeline_skeleton::Output, + crate::app::bsky::unspecced::get_tagged_suggestions::Output, atrium_xrpc::error::Error< - crate::app::bsky::unspecced::get_timeline_skeleton::Error, + crate::app::bsky::unspecced::get_tagged_suggestions::Error, >, > { let response = self @@ -1536,7 +1536,7 @@ where >( &atrium_xrpc::XrpcRequest { method: http::Method::GET, - path: "app.bsky.unspecced.getTimelineSkeleton".into(), + path: "app.bsky.unspecced.getTaggedSuggestions".into(), parameters: Some(params), input: None, encoding: None, @@ -1649,6 +1649,38 @@ where pub(crate) fn new(xrpc: std::sync::Arc) -> Self { Self { xrpc } } + ///Administrative action to create a new, re-usable communication (email for now) template. + pub async fn create_communication_template( + &self, + input: crate::com::atproto::admin::create_communication_template::Input, + ) -> Result< + crate::com::atproto::admin::create_communication_template::Output, + atrium_xrpc::error::Error< + crate::com::atproto::admin::create_communication_template::Error, + >, + > { + let response = self + .xrpc + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + path: "com.atproto.admin.createCommunicationTemplate".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), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Delete a user account as an administrator. pub async fn delete_account( &self, @@ -1679,6 +1711,38 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } + ///Delete a communication template. + pub async fn delete_communication_template( + &self, + input: crate::com::atproto::admin::delete_communication_template::Input, + ) -> Result< + (), + atrium_xrpc::error::Error< + crate::com::atproto::admin::delete_communication_template::Error, + >, + > { + let response = self + .xrpc + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + path: "com.atproto.admin.deleteCommunicationTemplate".into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) + .await?; + match response { + atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Disable an account from receiving new invite codes, but does not invalidate existing codes. pub async fn disable_account_invites( &self, @@ -1837,6 +1901,36 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } + ///Get details about some accounts. + pub async fn get_account_infos( + &self, + params: crate::com::atproto::admin::get_account_infos::Parameters, + ) -> Result< + crate::com::atproto::admin::get_account_infos::Output, + atrium_xrpc::error::Error, + > { + let response = self + .xrpc + .send_xrpc::< + _, + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + path: "com.atproto.admin.getAccountInfos".into(), + parameters: Some(params), + input: None, + encoding: None, + }, + ) + .await?; + match response { + atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Get an admin view of invite codes. pub async fn get_invite_codes( &self, @@ -1989,6 +2083,37 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } + ///Get list of all communication templates. + pub async fn list_communication_templates( + &self, + ) -> Result< + crate::com::atproto::admin::list_communication_templates::Output, + atrium_xrpc::error::Error< + crate::com::atproto::admin::list_communication_templates::Error, + >, + > { + let response = self + .xrpc + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + path: "com.atproto.admin.listCommunicationTemplates".into(), + parameters: None, + input: None, + encoding: None, + }, + ) + .await?; + match response { + atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///List moderation events related to a subject. pub async fn query_moderation_events( &self, @@ -2177,6 +2302,38 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } + ///Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only. + pub async fn update_communication_template( + &self, + input: crate::com::atproto::admin::update_communication_template::Input, + ) -> Result< + crate::com::atproto::admin::update_communication_template::Output, + atrium_xrpc::error::Error< + crate::com::atproto::admin::update_communication_template::Error, + >, + > { + let response = self + .xrpc + .send_xrpc::< + (), + _, + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + path: "com.atproto.admin.updateCommunicationTemplate".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), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Update the service-specific admin status of a subject (account, record, or blob). pub async fn update_subject_status( &self, @@ -3595,6 +3752,35 @@ where pub(crate) fn new(xrpc: std::sync::Arc) -> Self { Self { xrpc } } + ///Check accounts location in signup queue. + pub async fn check_signup_queue( + &self, + ) -> Result< + crate::com::atproto::temp::check_signup_queue::Output, + atrium_xrpc::error::Error, + > { + let response = self + .xrpc + .send_xrpc::< + (), + (), + _, + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::GET, + path: "com.atproto.temp.checkSignupQueue".into(), + parameters: None, + input: None, + encoding: None, + }, + ) + .await?; + match response { + atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Fetch all labels from a labeler created after a certain date. pub async fn fetch_labels( &self, @@ -3685,6 +3871,38 @@ where _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), } } + ///Request a verification code to be sent to the supplied phone number + pub async fn request_phone_verification( + &self, + input: crate::com::atproto::temp::request_phone_verification::Input, + ) -> Result< + (), + atrium_xrpc::error::Error< + crate::com::atproto::temp::request_phone_verification::Error, + >, + > { + let response = self + .xrpc + .send_xrpc::< + (), + _, + (), + _, + >( + &atrium_xrpc::XrpcRequest { + method: http::Method::POST, + path: "com.atproto.temp.requestPhoneVerification".into(), + parameters: None, + input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), + encoding: Some(String::from("application/json")), + }, + ) + .await?; + match response { + atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), + _ => Err(atrium_xrpc::error::Error::UnexpectedResponseType), + } + } ///Transfer an account. pub async fn transfer_account( &self, diff --git a/atrium-api/src/com/atproto/admin.rs b/atrium-api/src/com/atproto/admin.rs index 6ef82347..9750b415 100644 --- a/atrium-api/src/com/atproto/admin.rs +++ b/atrium-api/src/com/atproto/admin.rs @@ -1,21 +1,26 @@ // This file is generated by atrium-codegen. DO NOT EDIT. //!Definitions for the `com.atproto.admin` namespace. +pub mod create_communication_template; pub mod defs; pub mod delete_account; +pub mod delete_communication_template; pub mod disable_account_invites; pub mod disable_invite_codes; pub mod emit_moderation_event; pub mod enable_account_invites; pub mod get_account_info; +pub mod get_account_infos; pub mod get_invite_codes; pub mod get_moderation_event; pub mod get_record; pub mod get_repo; pub mod get_subject_status; +pub mod list_communication_templates; pub mod query_moderation_events; pub mod query_moderation_statuses; pub mod search_repos; pub mod send_email; pub mod update_account_email; pub mod update_account_handle; +pub mod update_communication_template; pub mod update_subject_status; diff --git a/atrium-api/src/com/atproto/admin/create_communication_template.rs b/atrium-api/src/com/atproto/admin/create_communication_template.rs new file mode 100644 index 00000000..25433405 --- /dev/null +++ b/atrium-api/src/com/atproto/admin/create_communication_template.rs @@ -0,0 +1,19 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `com.atproto.admin.createCommunicationTemplate` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Input { + ///Content of the template, markdown supported, can contain variable placeholders. + pub content_markdown: String, + ///DID of the user who is creating the template. + #[serde(skip_serializing_if = "Option::is_none")] + pub created_by: Option, + ///Name of the template. + pub name: String, + ///Subject of the message, used in emails. + pub subject: String, +} +pub type Output = crate::com::atproto::admin::defs::CommunicationTemplateView; +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {} diff --git a/atrium-api/src/com/atproto/admin/defs.rs b/atrium-api/src/com/atproto/admin/defs.rs index 0fa8b491..6de4b83a 100644 --- a/atrium-api/src/com/atproto/admin/defs.rs +++ b/atrium-api/src/com/atproto/admin/defs.rs @@ -18,6 +18,8 @@ pub struct AccountView { pub invites: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub invites_disabled: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub related_records: Option>, } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] @@ -33,6 +35,23 @@ pub struct BlobView { } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] +pub struct CommunicationTemplateView { + ///Subject of the message, used in emails. + pub content_markdown: String, + pub created_at: String, + pub disabled: bool, + pub id: String, + ///DID of the user who last updated the template. + pub last_updated_by: String, + ///Name of the template. + pub name: String, + ///Content of the template, can contain markdown and variable placeholders. + #[serde(skip_serializing_if = "Option::is_none")] + pub subject: Option, + pub updated_at: String, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] pub struct ImageDetails { pub height: i32, pub width: i32, @@ -94,6 +113,14 @@ pub struct ModEventReport { pub comment: Option, pub report_type: crate::com::atproto::moderation::defs::ReasonType, } +///Resolve appeal on a subject +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct ModEventResolveAppeal { + ///Describe resolution. + #[serde(skip_serializing_if = "Option::is_none")] + pub comment: Option, +} ///Revert take down action on a subject #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] @@ -288,12 +315,18 @@ pub type SubjectReviewState = String; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct SubjectStatusView { + ///True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. + #[serde(skip_serializing_if = "Option::is_none")] + pub appealed: Option, ///Sticky comment on the subject. #[serde(skip_serializing_if = "Option::is_none")] pub comment: Option, ///Timestamp referencing the first moderation status impacting event was emitted on the subject pub created_at: String, pub id: i32, + ///Timestamp referencing when the author of the subject appealed a moderation action + #[serde(skip_serializing_if = "Option::is_none")] + pub last_appealed_at: Option, #[serde(skip_serializing_if = "Option::is_none")] pub last_reported_at: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -349,6 +382,10 @@ pub enum ModEventViewDetailEventEnum { ModEventEscalate(Box), #[serde(rename = "com.atproto.admin.defs#modEventMute")] ModEventMute(Box), + #[serde(rename = "com.atproto.admin.defs#modEventEmail")] + ModEventEmail(Box), + #[serde(rename = "com.atproto.admin.defs#modEventResolveAppeal")] + ModEventResolveAppeal(Box), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] @@ -383,6 +420,8 @@ pub enum ModEventViewEventEnum { ModEventMute(Box), #[serde(rename = "com.atproto.admin.defs#modEventEmail")] ModEventEmail(Box), + #[serde(rename = "com.atproto.admin.defs#modEventResolveAppeal")] + ModEventResolveAppeal(Box), } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] diff --git a/atrium-api/src/com/atproto/admin/delete_communication_template.rs b/atrium-api/src/com/atproto/admin/delete_communication_template.rs new file mode 100644 index 00000000..ccb4a037 --- /dev/null +++ b/atrium-api/src/com/atproto/admin/delete_communication_template.rs @@ -0,0 +1,10 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `com.atproto.admin.deleteCommunicationTemplate` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Input { + pub id: String, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {} diff --git a/atrium-api/src/app/bsky/unspecced/get_timeline_skeleton.rs b/atrium-api/src/com/atproto/admin/get_account_infos.rs similarity index 50% rename from atrium-api/src/app/bsky/unspecced/get_timeline_skeleton.rs rename to atrium-api/src/com/atproto/admin/get_account_infos.rs index 2e3140ca..a33e3898 100644 --- a/atrium-api/src/app/bsky/unspecced/get_timeline_skeleton.rs +++ b/atrium-api/src/com/atproto/admin/get_account_infos.rs @@ -1,22 +1,15 @@ // This file is generated by atrium-codegen. DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTimelineSkeleton` namespace. +//!Definitions for the `com.atproto.admin.getAccountInfos` namespace. #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Parameters { - #[serde(skip_serializing_if = "Option::is_none")] - pub cursor: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub limit: Option, + pub dids: Vec, } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Output { - #[serde(skip_serializing_if = "Option::is_none")] - pub cursor: Option, - pub feed: Vec, + pub infos: Vec, } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "error", content = "message")] -pub enum Error { - UnknownFeed(Option), -} +pub enum Error {} diff --git a/atrium-api/src/com/atproto/admin/list_communication_templates.rs b/atrium-api/src/com/atproto/admin/list_communication_templates.rs new file mode 100644 index 00000000..af13ffdf --- /dev/null +++ b/atrium-api/src/com/atproto/admin/list_communication_templates.rs @@ -0,0 +1,12 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `com.atproto.admin.listCommunicationTemplates` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Output { + pub communication_templates: Vec< + crate::com::atproto::admin::defs::CommunicationTemplateView, + >, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {} diff --git a/atrium-api/src/com/atproto/admin/query_moderation_events.rs b/atrium-api/src/com/atproto/admin/query_moderation_events.rs index 52f9dd3d..f5e41ad2 100644 --- a/atrium-api/src/com/atproto/admin/query_moderation_events.rs +++ b/atrium-api/src/com/atproto/admin/query_moderation_events.rs @@ -3,15 +3,35 @@ #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Parameters { + ///If specified, only events where all of these labels were added are returned + #[serde(skip_serializing_if = "Option::is_none")] + pub added_labels: Option>, + ///If specified, only events with comments containing the keyword are returned + #[serde(skip_serializing_if = "Option::is_none")] + pub comment: Option, + ///Retrieve events created after a given timestamp + #[serde(skip_serializing_if = "Option::is_none")] + pub created_after: Option, + ///Retrieve events created before a given timestamp + #[serde(skip_serializing_if = "Option::is_none")] + pub created_before: Option, #[serde(skip_serializing_if = "Option::is_none")] pub created_by: Option, #[serde(skip_serializing_if = "Option::is_none")] pub cursor: Option, + ///If true, only events with comments are returned + #[serde(skip_serializing_if = "Option::is_none")] + pub has_comment: Option, ///If true, events on all record types (posts, lists, profile etc.) owned by the did are returned #[serde(skip_serializing_if = "Option::is_none")] pub include_all_user_records: Option, #[serde(skip_serializing_if = "Option::is_none")] pub limit: Option, + ///If specified, only events where all of these labels were removed are returned + #[serde(skip_serializing_if = "Option::is_none")] + pub removed_labels: Option>, + #[serde(skip_serializing_if = "Option::is_none")] + pub report_types: Option>, ///Sort direction for the events. Defaults to descending order of created at timestamp. #[serde(skip_serializing_if = "Option::is_none")] pub sort_direction: Option, diff --git a/atrium-api/src/com/atproto/admin/query_moderation_statuses.rs b/atrium-api/src/com/atproto/admin/query_moderation_statuses.rs index bd19a0fb..9797bfe5 100644 --- a/atrium-api/src/com/atproto/admin/query_moderation_statuses.rs +++ b/atrium-api/src/com/atproto/admin/query_moderation_statuses.rs @@ -3,6 +3,9 @@ #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Parameters { + ///Get subjects in unresolved appealed status + #[serde(skip_serializing_if = "Option::is_none")] + pub appealed: Option, ///Search subjects by keyword from comments #[serde(skip_serializing_if = "Option::is_none")] pub comment: Option, diff --git a/atrium-api/src/com/atproto/admin/update_communication_template.rs b/atrium-api/src/com/atproto/admin/update_communication_template.rs new file mode 100644 index 00000000..d2401424 --- /dev/null +++ b/atrium-api/src/com/atproto/admin/update_communication_template.rs @@ -0,0 +1,26 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `com.atproto.admin.updateCommunicationTemplate` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Input { + ///Content of the template, markdown supported, can contain variable placeholders. + #[serde(skip_serializing_if = "Option::is_none")] + pub content_markdown: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub disabled: Option, + ///ID of the template to be updated. + pub id: String, + ///Name of the template. + #[serde(skip_serializing_if = "Option::is_none")] + pub name: Option, + ///Subject of the message, used in emails. + #[serde(skip_serializing_if = "Option::is_none")] + pub subject: Option, + ///DID of the user who is updating the template. + #[serde(skip_serializing_if = "Option::is_none")] + pub updated_by: Option, +} +pub type Output = crate::com::atproto::admin::defs::CommunicationTemplateView; +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {} diff --git a/atrium-api/src/com/atproto/moderation/defs.rs b/atrium-api/src/com/atproto/moderation/defs.rs index f6ad30f3..7d92c93d 100644 --- a/atrium-api/src/com/atproto/moderation/defs.rs +++ b/atrium-api/src/com/atproto/moderation/defs.rs @@ -1,5 +1,7 @@ // 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 struct ReasonAppeal; ///Misleading identity, affiliation, or content pub struct ReasonMisleading; ///Other: reports not falling under another report category diff --git a/atrium-api/src/com/atproto/server/create_account.rs b/atrium-api/src/com/atproto/server/create_account.rs index c49fba51..d65133e8 100644 --- a/atrium-api/src/com/atproto/server/create_account.rs +++ b/atrium-api/src/com/atproto/server/create_account.rs @@ -16,6 +16,10 @@ pub struct Input { pub plc_op: Option, #[serde(skip_serializing_if = "Option::is_none")] pub recovery_key: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub verification_code: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub verification_phone: Option, } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] diff --git a/atrium-api/src/com/atproto/server/describe_server.rs b/atrium-api/src/com/atproto/server/describe_server.rs index 4f638649..781cc788 100644 --- a/atrium-api/src/com/atproto/server/describe_server.rs +++ b/atrium-api/src/com/atproto/server/describe_server.rs @@ -8,6 +8,8 @@ pub struct Output { pub invite_code_required: Option, #[serde(skip_serializing_if = "Option::is_none")] pub links: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub phone_verification_required: Option, } #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "error", content = "message")] diff --git a/atrium-api/src/com/atproto/temp.rs b/atrium-api/src/com/atproto/temp.rs index d3d8b191..9fa24020 100644 --- a/atrium-api/src/com/atproto/temp.rs +++ b/atrium-api/src/com/atproto/temp.rs @@ -1,6 +1,8 @@ // 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; pub mod import_repo; pub mod push_blob; +pub mod request_phone_verification; pub mod transfer_account; diff --git a/atrium-api/src/com/atproto/temp/check_signup_queue.rs b/atrium-api/src/com/atproto/temp/check_signup_queue.rs new file mode 100644 index 00000000..d614f5db --- /dev/null +++ b/atrium-api/src/com/atproto/temp/check_signup_queue.rs @@ -0,0 +1,14 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `com.atproto.temp.checkSignupQueue` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Output { + pub activated: bool, + #[serde(skip_serializing_if = "Option::is_none")] + pub estimated_time_ms: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub place_in_queue: Option, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {} diff --git a/atrium-api/src/com/atproto/temp/request_phone_verification.rs b/atrium-api/src/com/atproto/temp/request_phone_verification.rs new file mode 100644 index 00000000..5c129fa6 --- /dev/null +++ b/atrium-api/src/com/atproto/temp/request_phone_verification.rs @@ -0,0 +1,10 @@ +// This file is generated by atrium-codegen. DO NOT EDIT. +//!Definitions for the `com.atproto.temp.requestPhoneVerification` namespace. +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct Input { + pub phone_number: String, +} +#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[serde(tag = "error", content = "message")] +pub enum Error {}