Skip to content

Commit

Permalink
Update API, based on the latest lexicon schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Nov 10, 2023
1 parent df8e760 commit 787accb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atrium-api/src/com/atproto/admin/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ pub struct AccountView {
pub did: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email_confirmed_at: Option<String>,
pub handle: String,
pub indexed_at: String,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -179,6 +181,8 @@ pub struct RepoViewDetail {
pub did: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email_confirmed_at: Option<String>,
pub handle: String,
pub indexed_at: String,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down
2 changes: 2 additions & 0 deletions atrium-api/src/com/atproto/server/get_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
pub struct Output {
pub did: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub did_doc: Option<crate::records::Record>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email_confirmed: Option<bool>,
Expand Down

0 comments on commit 787accb

Please sign in to comment.