-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update API, based on the latest lexicon schemas (#99)
- Loading branch information
Showing
23 changed files
with
505 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Vec<String>>, | ||
} | ||
#[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<String>, | ||
pub relationships: Vec<OutputRelationshipsItem>, | ||
} | ||
#[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<String>), | ||
} | ||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(tag = "$type")] | ||
pub enum OutputRelationshipsItem { | ||
#[serde(rename = "app.bsky.graph.defs#relationship")] | ||
AppBskyGraphDefsRelationship(Box<crate::app::bsky::graph::defs::Relationship>), | ||
#[serde(rename = "app.bsky.graph.defs#notFoundActor")] | ||
AppBskyGraphDefsNotFoundActor(Box<crate::app::bsky::graph::defs::NotFoundActor>), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
atrium-api/src/app/bsky/unspecced/get_tagged_suggestions.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Suggestion>, | ||
} | ||
#[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, | ||
} |
Oops, something went wrong.