-
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 (#58)
* Update API, based on the latest lexicon schemas bluesky-social/atproto@cf848e8 * Fix agent and codegen * Add new files...
- Loading branch information
Showing
15 changed files
with
248 additions
and
6 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
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,11 @@ | ||
// This file is generated by atrium-codegen. DO NOT EDIT. | ||
#![doc = "Definitions for the `com.atproto.admin.getAccountInfo` namespace."] | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Parameters { | ||
pub did: String, | ||
} | ||
pub type Output = crate::com::atproto::admin::defs::AccountView; | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(tag = "error", content = "message")] | ||
pub enum Error {} |
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,32 @@ | ||
// This file is generated by atrium-codegen. DO NOT EDIT. | ||
#![doc = "Definitions for the `com.atproto.admin.getSubjectStatus` 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 blob: Option<String>, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub did: Option<String>, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub uri: Option<String>, | ||
} | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Output { | ||
pub subject: OutputSubjectEnum, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub takedown: Option<crate::com::atproto::admin::defs::StatusAttr>, | ||
} | ||
#[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(tag = "$type")] | ||
pub enum OutputSubjectEnum { | ||
#[serde(rename = "com.atproto.admin.defs#repoRef")] | ||
ComAtprotoAdminDefsRepoRef(Box<crate::com::atproto::admin::defs::RepoRef>), | ||
#[serde(rename = "com.atproto.repo.strongRef")] | ||
ComAtprotoRepoStrongRefMain(Box<crate::com::atproto::repo::strong_ref::Main>), | ||
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")] | ||
ComAtprotoAdminDefsRepoBlobRef(Box<crate::com::atproto::admin::defs::RepoBlobRef>), | ||
} |
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,39 @@ | ||
// This file is generated by atrium-codegen. DO NOT EDIT. | ||
#![doc = "Definitions for the `com.atproto.admin.updateSubjectStatus` namespace."] | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Input { | ||
pub subject: InputSubjectEnum, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub takedown: Option<crate::com::atproto::admin::defs::StatusAttr>, | ||
} | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Output { | ||
pub subject: OutputSubjectEnum, | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub takedown: Option<crate::com::atproto::admin::defs::StatusAttr>, | ||
} | ||
#[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(tag = "$type")] | ||
pub enum InputSubjectEnum { | ||
#[serde(rename = "com.atproto.admin.defs#repoRef")] | ||
ComAtprotoAdminDefsRepoRef(Box<crate::com::atproto::admin::defs::RepoRef>), | ||
#[serde(rename = "com.atproto.repo.strongRef")] | ||
ComAtprotoRepoStrongRefMain(Box<crate::com::atproto::repo::strong_ref::Main>), | ||
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")] | ||
ComAtprotoAdminDefsRepoBlobRef(Box<crate::com::atproto::admin::defs::RepoBlobRef>), | ||
} | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(tag = "$type")] | ||
pub enum OutputSubjectEnum { | ||
#[serde(rename = "com.atproto.admin.defs#repoRef")] | ||
ComAtprotoAdminDefsRepoRef(Box<crate::com::atproto::admin::defs::RepoRef>), | ||
#[serde(rename = "com.atproto.repo.strongRef")] | ||
ComAtprotoRepoStrongRefMain(Box<crate::com::atproto::repo::strong_ref::Main>), | ||
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")] | ||
ComAtprotoAdminDefsRepoBlobRef(Box<crate::com::atproto::admin::defs::RepoBlobRef>), | ||
} |
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
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,18 @@ | ||
// This file is generated by atrium-codegen. DO NOT EDIT. | ||
#![doc = "Definitions for the `com.atproto.server.reserveSigningKey` namespace."] | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Input { | ||
#[doc = "The did to reserve a new did:key for"] | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub did: Option<String>, | ||
} | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Output { | ||
#[doc = "Public signing key in the form of a did:key."] | ||
pub signing_key: String, | ||
} | ||
#[derive(serde :: Serialize, serde :: Deserialize, Debug, Clone, PartialEq, Eq)] | ||
#[serde(tag = "error", content = "message")] | ||
pub enum Error {} |
Oops, something went wrong.