A better Rust ATProto crate

codegen works, generates reasonable looking source

Orual 7daab148 85ef9905

Changed files
+3407 -725
crates
jacquard-api
src
app_bsky
actor
bookmark
embed
feed
graph
labeler
notification
richtext
unspecced
video
chat_bsky
com_atproto
admin
identity
label
lexicon
moderation
repo
server
sync
temp
tools_ozone
jacquard-lexicon
+1
Cargo.lock
···
name = "jacquard-lexicon"
version = "0.1.0"
dependencies = [
"heck 0.5.0",
"itertools",
"jacquard-common",
···
name = "jacquard-lexicon"
version = "0.1.0"
dependencies = [
+
"clap",
"heck 0.5.0",
"itertools",
"jacquard-common",
+6 -1
crates/jacquard-api/src/app_bsky.rs
···
pub mod actor;
pub mod bookmark;
pub mod embed;
···
pub mod notification;
pub mod richtext;
pub mod unspecced;
-
pub mod video;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod actor;
pub mod bookmark;
pub mod embed;
···
pub mod notification;
pub mod richtext;
pub mod unspecced;
+
pub mod video;
+109 -29
crates/jacquard-api/src/app_bsky/actor.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AdultContentPref<'a> {
pub enabled: bool,
}
///If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub guide: jacquard_common::CowStr<'a>,
}
///A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub active_progress_guide: std::option::Option<
-
jacquard_common::types::value::Data<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub nuxs: std::option::Option<Vec<crate::app_bsky::actor::Nux<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub queued_nudges: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ContentLabelPref<'a> {
#[serde(borrow)]
pub label: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labeler_did: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(borrow)]
pub visibility: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FeedViewPref<'a> {
#[serde(borrow)]
pub feed: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_quote_posts: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_replies: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_replies_by_like_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_replies_by_unfollowed: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_reposts: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct HiddenPostsPref<'a> {
#[serde(borrow)]
pub items: Vec<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InterestsPref<'a> {
#[serde(borrow)]
pub tags: Vec<jacquard_common::CowStr<'a>>,
}
///The subject's followers whom you also follow
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct KnownFollowers<'a> {
pub count: i64,
#[serde(borrow)]
-
pub followers: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelersPref<'a> {
#[serde(borrow)]
-
pub labelers: Vec<jacquard_common::types::value::Data<'a>>,
}
///A word that the account owner has muted.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MutedWord<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub actor_target: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub id: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub targets: Vec<crate::app_bsky::actor::MutedWordTarget<'a>>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum MutedWordTarget<'a> {
Content,
Tag,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> MutedWordTarget<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for MutedWordTarget<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for MutedWordTarget<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for MutedWordTarget<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for MutedWordTarget<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for MutedWordTarget<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MutedWordsPref<'a> {
#[serde(borrow)]
pub items: Vec<crate::app_bsky::actor::MutedWord<'a>>,
}
///A new user experiences (NUX) storage object
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Nux<'a> {
pub completed: bool,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub data: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PersonalDetailsPref<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub birth_date: std::option::Option<jacquard_common::types::string::Datetime>,
}
///Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PostInteractionSettingsPref<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub postgate_embedding_rules: std::option::Option<
Vec<jacquard_common::types::value::Data<'a>>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub threadgate_allow_rules: std::option::Option<
Vec<jacquard_common::types::value::Data<'a>>,
>,
}
pub type Preferences<'a> = Vec<jacquard_common::types::value::Data<'a>>;
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub activity_subscription: std::option::Option<
-
jacquard_common::types::value::Data<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub chat: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub feedgens: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub starter_packs: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub allow_subscriptions: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub allow_incoming: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ProfileView<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub associated: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
···
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub status: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub verification: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ProfileViewBasic<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub associated: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
···
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub status: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub verification: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ProfileViewDetailed<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub associated: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
···
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub status: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub verification: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub timeline_index: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub items: Vec<crate::app_bsky::actor::SavedFeed<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct StatusView<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<StatusViewRecordEmbed<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub is_active: std::option::Option<bool>,
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.external#view")]
ExternalView(Box<crate::app_bsky::embed::external::View<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadViewPref<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub prioritize_followed_users: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub sort: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Preferences for how verified accounts appear in the app.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationPrefs<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_badges: std::option::Option<bool>,
}
///Represents the verification information about the user this object is attached to.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationState<'a> {
#[serde(borrow)]
pub trusted_verifier_status: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub verifications: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub verified_status: jacquard_common::CowStr<'a>,
}
///An individual verification for an associated subject.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationView<'a> {
pub created_at: jacquard_common::types::string::Datetime,
pub is_valid: bool,
#[serde(borrow)]
pub issuer: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
///Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewerState<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub activity_subscription: std::option::Option<
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub known_followers: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub muted: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub muted_by_list: std::option::Option<crate::app_bsky::graph::ListViewBasic<'a>>,
-
}
-
pub mod get_preferences;
-
pub mod get_profile;
-
pub mod get_profiles;
-
pub mod get_suggestions;
-
pub mod profile;
-
pub mod put_preferences;
-
pub mod search_actors;
-
pub mod search_actors_typeahead;
-
pub mod status;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_preferences;
+
pub mod get_profile;
+
pub mod get_profiles;
+
pub mod get_suggestions;
+
pub mod profile;
+
pub mod put_preferences;
+
pub mod search_actors;
+
pub mod search_actors_typeahead;
+
pub mod status;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AdultContentPref<'a> {
pub enabled: bool,
}
+
///If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub guide: jacquard_common::CowStr<'a>,
}
+
///A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub active_progress_guide: std::option::Option<
+
crate::app_bsky::actor::BskyAppProgressGuide<'a>,
>,
+
///Storage for NUXs the user has encountered.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub nuxs: std::option::Option<Vec<crate::app_bsky::actor::Nux<'a>>>,
+
///An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub queued_nudges: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ContentLabelPref<'a> {
#[serde(borrow)]
pub label: jacquard_common::CowStr<'a>,
+
///Which labeler does this preference apply to? If undefined, applies globally.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labeler_did: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(borrow)]
pub visibility: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FeedViewPref<'a> {
+
///The URI of the feed, or an identifier which describes the feed.
#[serde(borrow)]
pub feed: jacquard_common::CowStr<'a>,
+
///Hide quote posts in the feed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_quote_posts: std::option::Option<bool>,
+
///Hide replies in the feed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_replies: std::option::Option<bool>,
+
///Hide replies in the feed if they do not have this number of likes.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_replies_by_like_count: std::option::Option<i64>,
+
///Hide replies in the feed if they are not by followed users.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_replies_by_unfollowed: std::option::Option<bool>,
+
///Hide reposts in the feed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_reposts: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct HiddenPostsPref<'a> {
+
///A list of URIs of posts the account owner has hidden.
#[serde(borrow)]
pub items: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InterestsPref<'a> {
+
///A list of tags which describe the account owner's interests gathered during onboarding.
#[serde(borrow)]
pub tags: Vec<jacquard_common::CowStr<'a>>,
}
+
///The subject's followers whom you also follow
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct KnownFollowers<'a> {
pub count: i64,
#[serde(borrow)]
+
pub followers: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelersPref<'a> {
#[serde(borrow)]
+
pub labelers: Vec<crate::app_bsky::actor::LabelerPrefItem<'a>>,
}
+
///A word that the account owner has muted.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MutedWord<'a> {
+
///Groups of users to apply the muted word to. If undefined, applies to all users.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub actor_target: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The date and time at which the muted word will expire and no longer be applied.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub id: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The intended targets of the muted word.
#[serde(borrow)]
pub targets: Vec<crate::app_bsky::actor::MutedWordTarget<'a>>,
+
///The muted word itself.
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum MutedWordTarget<'a> {
Content,
Tag,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> MutedWordTarget<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for MutedWordTarget<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for MutedWordTarget<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for MutedWordTarget<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for MutedWordTarget<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for MutedWordTarget<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MutedWordsPref<'a> {
+
///A list of words the account owner has muted.
#[serde(borrow)]
pub items: Vec<crate::app_bsky::actor::MutedWord<'a>>,
}
+
///A new user experiences (NUX) storage object
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Nux<'a> {
pub completed: bool,
+
///Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub data: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The date and time at which the NUX will expire and should be considered completed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PersonalDetailsPref<'a> {
+
///The birth date of account owner.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub birth_date: std::option::Option<jacquard_common::types::string::Datetime>,
}
+
///Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PostInteractionSettingsPref<'a> {
+
///Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub postgate_embedding_rules: std::option::Option<
Vec<jacquard_common::types::value::Data<'a>>,
>,
+
///Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub threadgate_allow_rules: std::option::Option<
Vec<jacquard_common::types::value::Data<'a>>,
>,
}
+
pub type Preferences<'a> = Vec<jacquard_common::types::value::Data<'a>>;
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub activity_subscription: std::option::Option<
+
crate::app_bsky::actor::ProfileAssociatedActivitySubscription<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub chat: std::option::Option<crate::app_bsky::actor::ProfileAssociatedChat<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub feedgens: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub starter_packs: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub allow_subscriptions: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub allow_incoming: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ProfileView<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub associated: std::option::Option<crate::app_bsky::actor::ProfileAssociated<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
···
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub status: std::option::Option<crate::app_bsky::actor::StatusView<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub verification: std::option::Option<crate::app_bsky::actor::VerificationState<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ProfileViewBasic<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub associated: std::option::Option<crate::app_bsky::actor::ProfileAssociated<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
···
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub status: std::option::Option<crate::app_bsky::actor::StatusView<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub verification: std::option::Option<crate::app_bsky::actor::VerificationState<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ProfileViewDetailed<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub associated: std::option::Option<crate::app_bsky::actor::ProfileAssociated<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
···
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub status: std::option::Option<crate::app_bsky::actor::StatusView<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub verification: std::option::Option<crate::app_bsky::actor::VerificationState<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub timeline_index: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub items: Vec<crate::app_bsky::actor::SavedFeed<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct StatusView<'a> {
+
///An optional embed associated with the status.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<StatusViewRecordEmbed<'a>>,
+
///The date when this status will expire. The application might choose to no longer return the status after expiration.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
+
///True if the status is not expired, false if it is expired. Only present if expiration was set.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub is_active: std::option::Option<bool>,
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
+
///The status for the account.
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.external#view")]
ExternalView(Box<crate::app_bsky::embed::external::View<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadViewPref<'a> {
+
///Show followed users at the top of all replies.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub prioritize_followed_users: std::option::Option<bool>,
+
///Sorting mode for threads.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub sort: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Preferences for how verified accounts appear in the app.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationPrefs<'a> {
+
///Hide the blue check badges for verified accounts and trusted verifiers.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hide_badges: std::option::Option<bool>,
}
+
///Represents the verification information about the user this object is attached to.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationState<'a> {
+
///The user's status as a trusted verifier.
#[serde(borrow)]
pub trusted_verifier_status: jacquard_common::CowStr<'a>,
+
///All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.
#[serde(borrow)]
+
pub verifications: Vec<crate::app_bsky::actor::VerificationView<'a>>,
+
///The user's status as a verified account.
#[serde(borrow)]
pub verified_status: jacquard_common::CowStr<'a>,
}
+
///An individual verification for an associated subject.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationView<'a> {
+
///Timestamp when the verification was created.
pub created_at: jacquard_common::types::string::Datetime,
+
///True if the verification passes validation, otherwise false.
pub is_valid: bool,
+
///The user who issued this verification.
#[serde(borrow)]
pub issuer: jacquard_common::types::string::Did<'a>,
+
///The AT-URI of the verification record.
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
///Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewerState<'a> {
+
///This property is present only in selected cases, as an optimization.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub activity_subscription: std::option::Option<
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
+
///This property is present only in selected cases, as an optimization.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub known_followers: std::option::Option<crate::app_bsky::actor::KnownFollowers<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub muted: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub muted_by_list: std::option::Option<crate::app_bsky::graph::ListViewBasic<'a>>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/actor/get_preferences.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferencesParams {}
···
pub struct GetPreferencesOutput<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::actor::Preferences<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferencesParams {}
···
pub struct GetPreferencesOutput<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::actor::Preferences<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/actor/get_profile.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetProfileParams<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::app_bsky::actor::ProfileViewDetailed<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetProfileParams<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::app_bsky::actor::ProfileViewDetailed<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/actor/get_profiles.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetProfilesParams<'a> {
#[serde(borrow)]
pub actors: Vec<jacquard_common::types::ident::AtIdentifier<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetProfilesOutput<'a> {
#[serde(borrow)]
pub profiles: Vec<crate::app_bsky::actor::ProfileViewDetailed<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetProfilesParams<'a> {
#[serde(borrow)]
pub actors: Vec<jacquard_common::types::ident::AtIdentifier<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetProfilesOutput<'a> {
#[serde(borrow)]
pub profiles: Vec<crate::app_bsky::actor::ProfileViewDetailed<'a>>,
+
}
+8 -1
crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestionsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rec_id: std::option::Option<i64>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestionsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Snowflake for this recommendation, use when submitting recommendation events.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rec_id: std::option::Option<i64>,
+
}
+12 -1
crates/jacquard-api/src/app_bsky/actor/profile.rs
···
///A declaration of a Bluesky account profile.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Profile<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::blob::Blob<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub banner: std::option::Option<jacquard_common::types::blob::Blob<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub description: std::option::Option<jacquard_common::CowStr<'a>>,
···
pub joined_via_starter_pack: std::option::Option<
crate::com_atproto::repo::strong_ref::StrongRef<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<ProfileRecordLabels<'a>>,
···
pub pinned_post: std::option::Option<
crate::com_atproto::repo::strong_ref::StrongRef<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ProfileRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///A declaration of a Bluesky account profile.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Profile<'a> {
+
///Small image to be displayed next to posts from account. AKA, 'profile picture'
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::blob::Blob<'a>>,
+
///Larger horizontal image to display behind profile view.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub banner: std::option::Option<jacquard_common::types::blob::Blob<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
+
///Free-form profile description text.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub description: std::option::Option<jacquard_common::CowStr<'a>>,
···
pub joined_via_starter_pack: std::option::Option<
crate::com_atproto::repo::strong_ref::StrongRef<'a>,
>,
+
///Self-label values, specific to the Bluesky application, on the overall account.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<ProfileRecordLabels<'a>>,
···
pub pinned_post: std::option::Option<
crate::com_atproto::repo::strong_ref::StrongRef<'a>,
>,
+
///Free-form pronouns text.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ProfileRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
+
}
+6 -1
crates/jacquard-api/src/app_bsky/actor/put_preferences.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutPreferencesInput<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::actor::Preferences<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutPreferencesInput<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::actor::Preferences<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/actor/search_actors.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsParams<'a> {
···
#[serde(borrow)]
pub term: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsParams<'a> {
···
#[serde(borrow)]
pub term: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsTypeaheadParams<'a> {
···
#[serde(borrow)]
pub term: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsTypeaheadOutput<'a> {
#[serde(borrow)]
pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsTypeaheadParams<'a> {
···
#[serde(borrow)]
pub term: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsTypeaheadOutput<'a> {
#[serde(borrow)]
pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>,
+
}
+10 -1
crates/jacquard-api/src/app_bsky/actor/status.rs
···
///A declaration of a Bluesky account status.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Status<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_minutes: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<StatusRecordEmbed<'a>>,
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum StatusRecordEmbed<'a> {
#[serde(rename = "app.bsky.embed.external")]
External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///A declaration of a Bluesky account status.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Status<'a> {
pub created_at: jacquard_common::types::string::Datetime,
+
///The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_minutes: std::option::Option<i64>,
+
///An optional embed associated with the status.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<StatusRecordEmbed<'a>>,
+
///The status for the account.
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum StatusRecordEmbed<'a> {
#[serde(rename = "app.bsky.embed.external")]
External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>),
+
}
+14 -4
crates/jacquard-api/src/app_bsky/bookmark.rs
···
///Object used to store bookmark data in stash.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Bookmark<'a> {
#[serde(borrow)]
pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub item: BookmarkViewRecordItem<'a>,
#[serde(borrow)]
pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
DefsNotFoundPost(Box<crate::app_bsky::feed::NotFoundPost<'a>>),
#[serde(rename = "app.bsky.feed.defs#postView")]
DefsPostView(Box<crate::app_bsky::feed::PostView<'a>>),
-
}
-
pub mod create_bookmark;
-
pub mod delete_bookmark;
-
pub mod get_bookmarks;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod create_bookmark;
+
pub mod delete_bookmark;
+
pub mod get_bookmarks;
+
///Object used to store bookmark data in stash.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Bookmark<'a> {
+
///A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.
#[serde(borrow)]
pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub item: BookmarkViewRecordItem<'a>,
+
///A strong ref to the bookmarked record.
#[serde(borrow)]
pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
DefsNotFoundPost(Box<crate::app_bsky::feed::NotFoundPost<'a>>),
#[serde(rename = "app.bsky.feed.defs#postView")]
DefsPostView(Box<crate::app_bsky::feed::PostView<'a>>),
+
}
+9 -2
crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnsupportedCollection")]
UnsupportedCollection(std::option::Option<String>),
}
impl std::fmt::Display for CreateBookmarkError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnsupportedCollection")]
UnsupportedCollection(std::option::Option<String>),
}
+
impl std::fmt::Display for CreateBookmarkError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -2
crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnsupportedCollection")]
UnsupportedCollection(std::option::Option<String>),
}
impl std::fmt::Display for DeleteBookmarkError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnsupportedCollection")]
UnsupportedCollection(std::option::Option<String>),
}
+
impl std::fmt::Display for DeleteBookmarkError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBookmarksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBookmarksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+12 -6
crates/jacquard-api/src/app_bsky/embed.rs
···
///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct AspectRatio<'a> {
pub height: i64,
pub width: i64,
-
}
-
pub mod external;
-
pub mod images;
-
pub mod record;
-
pub mod record_with_media;
-
pub mod video;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod external;
+
pub mod images;
+
pub mod record;
+
pub mod record_with_media;
+
pub mod video;
+
///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct AspectRatio<'a> {
pub height: i64,
pub width: i64,
+
}
+11 -3
crates/jacquard-api/src/app_bsky/embed/external.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
}
///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ExternalRecord<'a> {
#[serde(borrow)]
-
pub external: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct View<'a> {
#[serde(borrow)]
-
pub external: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub title: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
}
+
///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ExternalRecord<'a> {
#[serde(borrow)]
+
pub external: crate::app_bsky::embed::external::External<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct View<'a> {
#[serde(borrow)]
+
pub external: crate::app_bsky::embed::external::ViewExternal<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub title: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
+
}
+15 -3
crates/jacquard-api/src/app_bsky/embed/images.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Image<'a> {
#[serde(borrow)]
pub alt: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(borrow)]
pub image: jacquard_common::types::blob::Blob<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Images<'a> {
#[serde(borrow)]
-
pub images: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct View<'a> {
#[serde(borrow)]
-
pub images: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewImage<'a> {
#[serde(borrow)]
pub alt: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>,
#[serde(borrow)]
pub fullsize: jacquard_common::types::string::Uri<'a>,
#[serde(borrow)]
pub thumb: jacquard_common::types::string::Uri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Image<'a> {
+
///Alt text description of the image, for accessibility.
#[serde(borrow)]
pub alt: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(borrow)]
pub image: jacquard_common::types::blob::Blob<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Images<'a> {
#[serde(borrow)]
+
pub images: Vec<crate::app_bsky::embed::images::Image<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct View<'a> {
#[serde(borrow)]
+
pub images: Vec<crate::app_bsky::embed::images::ViewImage<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ViewImage<'a> {
+
///Alt text description of the image, for accessibility.
#[serde(borrow)]
pub alt: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>,
+
///Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.
#[serde(borrow)]
pub fullsize: jacquard_common::types::string::Uri<'a>,
+
///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
#[serde(borrow)]
pub thumb: jacquard_common::types::string::Uri<'a>,
+
}
+13 -1
crates/jacquard-api/src/app_bsky/embed/record.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: ViewRecordRecord<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")]
DefsStarterPackViewBasic(Box<crate::app_bsky::graph::StarterPackViewBasic<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub repost_count: std::option::Option<i64>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: ViewRecordRecord<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")]
DefsStarterPackViewBasic(Box<crate::app_bsky::graph::StarterPackViewBasic<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub repost_count: std::option::Option<i64>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
///The record data itself.
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/embed/record_with_media.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: crate::app_bsky::embed::record::Record<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.external")]
External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: crate::app_bsky::embed::record::View<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
VideoView(Box<crate::app_bsky::embed::video::View<'a>>),
#[serde(rename = "app.bsky.embed.external#view")]
ExternalView(Box<crate::app_bsky::embed::external::View<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: crate::app_bsky::embed::record::Record<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.external")]
External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record: crate::app_bsky::embed::record::View<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
VideoView(Box<crate::app_bsky::embed::video::View<'a>>),
#[serde(rename = "app.bsky.embed.external#view")]
ExternalView(Box<crate::app_bsky::embed::external::View<'a>>),
+
}
+11 -2
crates/jacquard-api/src/app_bsky/embed/video.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub file: jacquard_common::types::blob::Blob<'a>,
pub lang: jacquard_common::types::string::Language,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Video<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub alt: std::option::Option<jacquard_common::CowStr<'a>>,
···
pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub captions: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
#[serde(borrow)]
pub video: jacquard_common::types::blob::Blob<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub thumbnail: std::option::Option<jacquard_common::types::string::Uri<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub file: jacquard_common::types::blob::Blob<'a>,
pub lang: jacquard_common::types::string::Language,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Video<'a> {
+
///Alt text description of the video, for accessibility.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub alt: std::option::Option<jacquard_common::CowStr<'a>>,
···
pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub captions: std::option::Option<Vec<crate::app_bsky::embed::video::Caption<'a>>>,
+
///The mp4 video file. May be up to 100mb, formerly limited to 50mb.
#[serde(borrow)]
pub video: jacquard_common::types::blob::Blob<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub thumbnail: std::option::Option<jacquard_common::types::string::Uri<'a>>,
+
}
+61 -33
crates/jacquard-api/src/app_bsky/feed.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct BlockedPost<'a> {
#[serde(borrow)]
-
pub author: jacquard_common::types::value::Data<'a>,
pub blocked: bool,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FeedViewPost<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
-
pub post: jacquard_common::types::value::Data<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason: std::option::Option<FeedViewPostRecordReason<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub reply: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub req_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub event: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub item: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub req_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub repost_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub threadgate: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.recordWithMedia#view")]
RecordWithMediaView(Box<crate::app_bsky::embed::record_with_media::View<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReplyRef<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub grandparent_author: std::option::Option<
···
#[serde(borrow)]
pub root: ReplyRefRecordRoot<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SkeletonFeedPost<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub reason: std::option::Option<SkeletonFeedPostRecordReason<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub repost: jacquard_common::types::string::AtUri<'a>,
}
///Metadata about this post within the context of the thread it is in.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub root_author_like: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub parent: std::option::Option<ThreadViewPostRecordParent<'a>>,
#[serde(borrow)]
-
pub post: jacquard_common::types::value::Data<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub replies: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub thread_context: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
///Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub repost: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub thread_muted: std::option::Option<bool>,
-
}
-
pub mod describe_feed_generator;
-
pub mod generator;
-
pub mod get_actor_feeds;
-
pub mod get_actor_likes;
-
pub mod get_author_feed;
-
pub mod get_feed;
-
pub mod get_feed_generator;
-
pub mod get_feed_generators;
-
pub mod get_feed_skeleton;
-
pub mod get_likes;
-
pub mod get_list_feed;
-
pub mod get_post_thread;
-
pub mod get_posts;
-
pub mod get_quotes;
-
pub mod get_reposted_by;
-
pub mod get_suggested_feeds;
-
pub mod get_timeline;
-
pub mod like;
-
pub mod post;
-
pub mod postgate;
-
pub mod repost;
-
pub mod search_posts;
-
pub mod send_interactions;
-
pub mod threadgate;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod describe_feed_generator;
+
pub mod generator;
+
pub mod get_actor_feeds;
+
pub mod get_actor_likes;
+
pub mod get_author_feed;
+
pub mod get_feed;
+
pub mod get_feed_generator;
+
pub mod get_feed_generators;
+
pub mod get_feed_skeleton;
+
pub mod get_likes;
+
pub mod get_list_feed;
+
pub mod get_post_thread;
+
pub mod get_posts;
+
pub mod get_quotes;
+
pub mod get_reposted_by;
+
pub mod get_suggested_feeds;
+
pub mod get_timeline;
+
pub mod like;
+
pub mod post;
+
pub mod postgate;
+
pub mod repost;
+
pub mod search_posts;
+
pub mod send_interactions;
+
pub mod threadgate;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct BlockedPost<'a> {
#[serde(borrow)]
+
pub author: crate::app_bsky::feed::BlockedAuthor<'a>,
pub blocked: bool,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FeedViewPost<'a> {
+
///Context provided by feed generator that may be passed back alongside interactions.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
+
pub post: crate::app_bsky::feed::PostView<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason: std::option::Option<FeedViewPostRecordReason<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub reply: std::option::Option<crate::app_bsky::feed::ReplyRef<'a>>,
+
///Unique identifier per request that may be passed back alongside interactions.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub req_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::feed::GeneratorViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub event: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub item: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
+
///Unique identifier per request that may be passed back alongside interactions.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub req_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub repost_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::feed::ViewerState<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.recordWithMedia#view")]
RecordWithMediaView(Box<crate::app_bsky::embed::record_with_media::View<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReplyRef<'a> {
+
///When parent is a reply to another post, this is the author of that post.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub grandparent_author: std::option::Option<
···
#[serde(borrow)]
pub root: ReplyRefRecordRoot<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SkeletonFeedPost<'a> {
+
///Context that will be passed through to client and may be passed to feed generator back alongside interactions.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub reason: std::option::Option<SkeletonFeedPostRecordReason<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub repost: jacquard_common::types::string::AtUri<'a>,
}
+
///Metadata about this post within the context of the thread it is in.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub root_author_like: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub parent: std::option::Option<ThreadViewPostRecordParent<'a>>,
#[serde(borrow)]
+
pub post: crate::app_bsky::feed::PostView<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub replies: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub thread_context: std::option::Option<crate::app_bsky::feed::ThreadContext<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
///Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub repost: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub thread_muted: std::option::Option<bool>,
+
}
+8 -1
crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub terms_of_service: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub links: std::option::Option<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub terms_of_service: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub links: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/feed/generator.rs
···
///Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Generator<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub accepts_interactions: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<GeneratorRecordLabels<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum GeneratorRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Generator<'a> {
+
///Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub accepts_interactions: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
+
///Self-label values
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<GeneratorRecordLabels<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum GeneratorRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorFeedsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorFeedsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
+
}
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorLikesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BlockedByActor")]
BlockedByActor(std::option::Option<String>),
}
impl std::fmt::Display for GetActorLikesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorLikesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BlockedByActor")]
BlockedByActor(std::option::Option<String>),
}
+
impl std::fmt::Display for GetActorLikesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAuthorFeedParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BlockedByActor")]
BlockedByActor(std::option::Option<String>),
}
impl std::fmt::Display for GetAuthorFeedError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAuthorFeedParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BlockedByActor")]
BlockedByActor(std::option::Option<String>),
}
+
impl std::fmt::Display for GetAuthorFeedError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_feed.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnknownFeed")]
UnknownFeed(std::option::Option<String>),
}
impl std::fmt::Display for GetFeedError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnknownFeed")]
UnknownFeed(std::option::Option<String>),
}
+
impl std::fmt::Display for GetFeedError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -1
crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorParams<'a> {
#[serde(borrow)]
pub feed: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorOutput<'a> {
pub is_online: bool,
pub is_valid: bool,
#[serde(borrow)]
pub view: crate::app_bsky::feed::GeneratorView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorParams<'a> {
#[serde(borrow)]
pub feed: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorOutput<'a> {
+
///Indicates whether the feed generator service has been online recently, or else seems to be inactive.
pub is_online: bool,
+
///Indicates whether the feed generator service is compatible with the record declaration.
pub is_valid: bool,
#[serde(borrow)]
pub view: crate::app_bsky::feed::GeneratorView<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorsParams<'a> {
#[serde(borrow)]
pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorsOutput<'a> {
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorsParams<'a> {
#[serde(borrow)]
pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGeneratorsOutput<'a> {
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
+
}
+11 -2
crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedSkeletonParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::SkeletonFeedPost<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub req_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnknownFeed")]
UnknownFeed(std::option::Option<String>),
}
impl std::fmt::Display for GetFeedSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedSkeletonParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::SkeletonFeedPost<'a>>,
+
///Unique identifier per request that may be passed back alongside interactions.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub req_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnknownFeed")]
UnknownFeed(std::option::Option<String>),
}
+
impl std::fmt::Display for GetFeedSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+8 -1
crates/jacquard-api/src/app_bsky/feed/get_likes.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub created_at: jacquard_common::types::string::Datetime,
pub indexed_at: jacquard_common::types::string::Datetime,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetLikesParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub likes: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub created_at: jacquard_common::types::string::Datetime,
pub indexed_at: jacquard_common::types::string::Datetime,
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetLikesParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub likes: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListFeedParams<'a> {
···
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnknownList")]
UnknownList(std::option::Option<String>),
}
impl std::fmt::Display for GetListFeedError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListFeedParams<'a> {
···
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "UnknownList")]
UnknownList(std::option::Option<String>),
}
+
impl std::fmt::Display for GetListFeedError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+11 -2
crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.feed.defs#blockedPost")]
DefsBlockedPost(Box<crate::app_bsky::feed::BlockedPost<'a>>),
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "NotFound")]
NotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetPostThreadError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.feed.defs#blockedPost")]
DefsBlockedPost(Box<crate::app_bsky::feed::BlockedPost<'a>>),
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "NotFound")]
NotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetPostThreadError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_posts.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostsParams<'a> {
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostsOutput<'a> {
#[serde(borrow)]
pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostsParams<'a> {
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostsOutput<'a> {
#[serde(borrow)]
pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_quotes.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetQuotesParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetQuotesParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepostedByParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub reposted_by: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepostedByParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub reposted_by: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_timeline.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTimelineParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTimelineParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/feed/like.rs
···
///Record declaring a 'like' of a piece of subject content.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record declaring a 'like' of a piece of subject content.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>,
+
}
+22 -4
crates/jacquard-api/src/app_bsky/feed/post.rs
···
///Deprecated: use facets instead.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Entity<'a> {
#[serde(borrow)]
-
pub index: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub r#type: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
///Record containing a Bluesky post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Post<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<PostRecordEmbed<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub entities: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<PostRecordLabels<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub langs: std::option::Option<Vec<jacquard_common::types::string::Language>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub reply: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(borrow)]
pub text: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.recordWithMedia")]
RecordWithMedia(Box<crate::app_bsky::embed::record_with_media::RecordWithMedia<'a>>),
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub root: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
///Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct TextSlice<'a> {
pub end: i64,
pub start: i64,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Deprecated: use facets instead.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Entity<'a> {
#[serde(borrow)]
+
pub index: crate::app_bsky::feed::post::TextSlice<'a>,
+
///Expected values are 'mention' and 'link'.
#[serde(borrow)]
pub r#type: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
+
///Record containing a Bluesky post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Post<'a> {
+
///Client-declared timestamp when this post was originally created.
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<PostRecordEmbed<'a>>,
+
///DEPRECATED: replaced by app.bsky.richtext.facet.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub entities: std::option::Option<Vec<crate::app_bsky::feed::post::Entity<'a>>>,
+
///Annotations of text (mentions, URLs, hashtags, etc)
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>,
+
///Self-label values for this post. Effectively content warnings.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<PostRecordLabels<'a>>,
+
///Indicates human language of post primary text content.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub langs: std::option::Option<Vec<jacquard_common::types::string::Language>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub reply: std::option::Option<crate::app_bsky::feed::post::ReplyRef<'a>>,
+
///Additional hashtags, in addition to any included in post text and facets.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
+
///The primary post content. May be an empty string, if there are embeds.
#[serde(borrow)]
pub text: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.recordWithMedia")]
RecordWithMedia(Box<crate::app_bsky::embed::record_with_media::RecordWithMedia<'a>>),
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub root: crate::com_atproto::repo::strong_ref::StrongRef<'a>,
}
+
///Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct TextSlice<'a> {
pub end: i64,
pub start: i64,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/feed/postgate.rs
···
///Disables embedding of this post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(rename_all = "camelCase")]
pub struct Postgate<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub detached_embedding_uris: std::option::Option<
Vec<jacquard_common::types::string::AtUri<'a>>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embedding_rules: std::option::Option<
Vec<jacquard_common::types::value::Data<'a>>,
>,
#[serde(borrow)]
pub post: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Disables embedding of this post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(rename_all = "camelCase")]
pub struct Postgate<'a> {
pub created_at: jacquard_common::types::string::Datetime,
+
///List of AT-URIs embedding this post that the author has detached from.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub detached_embedding_uris: std::option::Option<
Vec<jacquard_common::types::string::AtUri<'a>>,
>,
+
///List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embedding_rules: std::option::Option<
Vec<jacquard_common::types::value::Data<'a>>,
>,
+
///Reference (AT-URI) to the post record.
#[serde(borrow)]
pub post: jacquard_common::types::string::AtUri<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/feed/repost.rs
···
///Record representing a 'repost' of an existing Bluesky post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record representing a 'repost' of an existing Bluesky post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>,
+
}
+11 -2
crates/jacquard-api/src/app_bsky/feed/search_posts.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchPostsParams<'a> {
···
#[serde(borrow)]
pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
#[serde(borrow)]
pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
impl std::fmt::Display for SearchPostsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchPostsParams<'a> {
···
#[serde(borrow)]
pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
#[serde(borrow)]
pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
+
impl std::fmt::Display for SearchPostsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/app_bsky/feed/send_interactions.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub interactions: Vec<crate::app_bsky::feed::Interaction<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct SendInteractionsOutput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub interactions: Vec<crate::app_bsky::feed::Interaction<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct SendInteractionsOutput<'a> {}
+11 -1
crates/jacquard-api/src/app_bsky/feed/threadgate.rs
···
///Allow replies from actors who follow you.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
}
///Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Threadgate<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub allow: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub hidden_replies: std::option::Option<
Vec<jacquard_common::types::string::AtUri<'a>>,
>,
#[serde(borrow)]
pub post: jacquard_common::types::string::AtUri<'a>,
}
///Allow replies from actors mentioned in your post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct MentionRule<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Allow replies from actors who follow you.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
}
+
///Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Threadgate<'a> {
+
///List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub allow: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
pub created_at: jacquard_common::types::string::Datetime,
+
///List of hidden reply URIs.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub hidden_replies: std::option::Option<
Vec<jacquard_common::types::string::AtUri<'a>>,
>,
+
///Reference (AT-URI) to the post record.
#[serde(borrow)]
pub post: jacquard_common::types::string::AtUri<'a>,
}
+
///Allow replies from actors mentioned in your post.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct MentionRule<'a> {}
+59 -37
crates/jacquard-api/src/app_bsky/graph.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ListPurpose<'a> {
AppBskyGraphDefsModlist,
···
AppBskyGraphDefsReferencelist,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> ListPurpose<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for ListPurpose<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for ListPurpose<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for ListPurpose<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for ListPurpose<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for ListPurpose<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub purpose: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub purpose: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub muted: std::option::Option<bool>,
}
///indicates that a handle or DID could not be resolved
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
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)
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Relationship<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub followed_by: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub list: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub list_items_sample: std::option::Option<
-
Vec<jacquard_common::types::value::Data<'a>>,
>,
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
-
pub mod block;
-
pub mod follow;
-
pub mod get_actor_starter_packs;
-
pub mod get_blocks;
-
pub mod get_followers;
-
pub mod get_follows;
-
pub mod get_known_followers;
-
pub mod get_list;
-
pub mod get_list_blocks;
-
pub mod get_list_mutes;
-
pub mod get_lists;
-
pub mod get_lists_with_membership;
-
pub mod get_mutes;
-
pub mod get_relationships;
-
pub mod get_starter_pack;
-
pub mod get_starter_packs;
-
pub mod get_starter_packs_with_membership;
-
pub mod get_suggested_follows_by_actor;
-
pub mod list;
-
pub mod listblock;
-
pub mod listitem;
-
pub mod mute_actor;
-
pub mod mute_actor_list;
-
pub mod mute_thread;
-
pub mod search_starter_packs;
-
pub mod starterpack;
-
pub mod unmute_actor;
-
pub mod unmute_actor_list;
-
pub mod unmute_thread;
-
pub mod verification;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod block;
+
pub mod follow;
+
pub mod get_actor_starter_packs;
+
pub mod get_blocks;
+
pub mod get_followers;
+
pub mod get_follows;
+
pub mod get_known_followers;
+
pub mod get_list;
+
pub mod get_list_blocks;
+
pub mod get_list_mutes;
+
pub mod get_lists;
+
pub mod get_lists_with_membership;
+
pub mod get_mutes;
+
pub mod get_relationships;
+
pub mod get_starter_pack;
+
pub mod get_starter_packs;
+
pub mod get_starter_packs_with_membership;
+
pub mod get_suggested_follows_by_actor;
+
pub mod list;
+
pub mod listblock;
+
pub mod listitem;
+
pub mod mute_actor;
+
pub mod mute_actor_list;
+
pub mod mute_thread;
+
pub mod search_starter_packs;
+
pub mod starterpack;
+
pub mod unmute_actor;
+
pub mod unmute_actor_list;
+
pub mod unmute_thread;
+
pub mod verification;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ListPurpose<'a> {
AppBskyGraphDefsModlist,
···
AppBskyGraphDefsReferencelist,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> ListPurpose<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for ListPurpose<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for ListPurpose<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for ListPurpose<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for ListPurpose<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for ListPurpose<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub purpose: crate::app_bsky::graph::ListPurpose<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::graph::ListViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub purpose: crate::app_bsky::graph::ListPurpose<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::graph::ListViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub muted: std::option::Option<bool>,
}
+
///indicates that a handle or DID could not be resolved
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
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)
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Relationship<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///if the actor is followed by this DID, contains the AT-URI of the follow record
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub followed_by: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
+
///if the actor follows this DID, this is the AT-URI of the follow record
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub list: std::option::Option<crate::app_bsky::graph::ListViewBasic<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub list_items_sample: std::option::Option<
+
Vec<crate::app_bsky::graph::ListItemView<'a>>,
>,
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/block.rs
···
///Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Block<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Block<'a> {
pub created_at: jacquard_common::types::string::Datetime,
+
///DID of the account to be blocked.
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/follow.rs
···
///Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorStarterPacksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorStarterPacksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_blocks.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_followers.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFollowersParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub subject: crate::app_bsky::actor::ProfileView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFollowersParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub subject: crate::app_bsky::actor::ProfileView<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_follows.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFollowsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub follows: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub subject: crate::app_bsky::actor::ProfileView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetFollowsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub follows: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub subject: crate::app_bsky::actor::ProfileView<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetKnownFollowersParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub subject: crate::app_bsky::actor::ProfileView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetKnownFollowersParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>,
#[serde(borrow)]
pub subject: crate::app_bsky::actor::ProfileView<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_list.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListParams<'a> {
···
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub items: Vec<crate::app_bsky::graph::ListItemView<'a>>,
#[serde(borrow)]
pub list: crate::app_bsky::graph::ListView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListParams<'a> {
···
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub items: Vec<crate::app_bsky::graph::ListItemView<'a>>,
#[serde(borrow)]
pub list: crate::app_bsky::graph::ListView<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListBlocksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists: Vec<crate::app_bsky::graph::ListView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListBlocksParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists: Vec<crate::app_bsky::graph::ListView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListMutesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists: Vec<crate::app_bsky::graph::ListView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListMutesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists: Vec<crate::app_bsky::graph::ListView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_lists.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListsParams<'a> {
···
#[serde(borrow)]
pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists: Vec<crate::app_bsky::graph::ListView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListsParams<'a> {
···
#[serde(borrow)]
pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists: Vec<crate::app_bsky::graph::ListView<'a>>,
+
}
+8 -1
crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs
···
///A list and an optional list item indicating membership of a target user to that list.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListsWithMembershipParams<'a> {
···
#[serde(borrow)]
pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists_with_membership: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///A list and an optional list item indicating membership of a target user to that list.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>,
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetListsWithMembershipParams<'a> {
···
#[serde(borrow)]
pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub lists_with_membership: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_mutes.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMutesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub mutes: Vec<crate::app_bsky::actor::ProfileView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMutesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub mutes: Vec<crate::app_bsky::actor::ProfileView<'a>>,
+
}
+10 -2
crates/jacquard-api/src/app_bsky/graph/get_relationships.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRelationshipsParams<'a> {
···
Vec<jacquard_common::types::ident::AtIdentifier<'a>>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub relationships: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ActorNotFound")]
ActorNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetRelationshipsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRelationshipsParams<'a> {
···
Vec<jacquard_common::types::ident::AtIdentifier<'a>>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub relationships: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ActorNotFound")]
ActorNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRelationshipsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPackParams<'a> {
#[serde(borrow)]
pub starter_pack: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPackOutput<'a> {
#[serde(borrow)]
pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPackParams<'a> {
#[serde(borrow)]
pub starter_pack: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPackOutput<'a> {
#[serde(borrow)]
pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksParams<'a> {
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksParams<'a> {
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>,
+
}
+8 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksWithMembershipParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub starter_packs_with_membership: Vec<jacquard_common::types::value::Data<'a>>,
}
///A starter pack and an optional list item indicating membership of a target user to that starter pack.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>,
#[serde(borrow)]
pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksWithMembershipParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub starter_packs_with_membership: Vec<jacquard_common::types::value::Data<'a>>,
}
+
///A starter pack and an optional list item indicating membership of a target user to that starter pack.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>,
#[serde(borrow)]
pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFollowsByActorParams<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFollowsByActorOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub is_fallback: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rec_id: std::option::Option<i64>,
#[serde(borrow)]
pub suggestions: Vec<crate::app_bsky::actor::ProfileView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFollowsByActorParams<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFollowsByActorOutput<'a> {
+
///If true, response has fallen-back to generic results, and is not scoped using relativeToDid
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub is_fallback: std::option::Option<bool>,
+
///Snowflake for this recommendation, use when submitting recommendation events.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rec_id: std::option::Option<i64>,
#[serde(borrow)]
pub suggestions: Vec<crate::app_bsky::actor::ProfileView<'a>>,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/graph/list.rs
···
///Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<ListRecordLabels<'a>>,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub purpose: crate::app_bsky::graph::ListPurpose<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ListRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<ListRecordLabels<'a>>,
+
///Display name for list; can not be empty.
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
///Defines the purpose of the list (aka, moderation-oriented or curration-oriented)
#[serde(borrow)]
pub purpose: crate::app_bsky::graph::ListPurpose<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ListRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/listblock.rs
···
///Record representing a block relationship against an entire an entire list of accounts (actors).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Listblock<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub subject: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record representing a block relationship against an entire an entire list of accounts (actors).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Listblock<'a> {
pub created_at: jacquard_common::types::string::Datetime,
+
///Reference (AT-URI) to the mod list record.
#[serde(borrow)]
pub subject: jacquard_common::types::string::AtUri<'a>,
+
}
+8 -1
crates/jacquard-api/src/app_bsky/graph/listitem.rs
···
///Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Listitem<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Listitem<'a> {
pub created_at: jacquard_common::types::string::Datetime,
+
///Reference (AT-URI) to the list record (app.bsky.graph.list).
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
+
///The account which is included on the list.
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/mute_actor.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteActorInput<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteActorInput<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteActorListInput<'a> {
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteActorListInput<'a> {
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/mute_thread.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteThreadInput<'a> {
#[serde(borrow)]
pub root: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteThreadInput<'a> {
#[serde(borrow)]
pub root: jacquard_common::types::string::AtUri<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacksParams<'a> {
···
#[serde(borrow)]
pub q: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacksParams<'a> {
···
#[serde(borrow)]
pub q: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>,
+
}
+12 -2
crates/jacquard-api/src/app_bsky/graph/starterpack.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
///Record defining a starter pack of actors and feeds for new users.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub feeds: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
///Record defining a starter pack of actors and feeds for new users.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub feeds: std::option::Option<
+
Vec<crate::app_bsky::graph::starterpack::FeedItem<'a>>,
+
>,
+
///Reference (AT-URI) to the list record.
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
+
///Display name for starter pack; can not be empty.
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteActorInput<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteActorInput<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteActorListInput<'a> {
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteActorListInput<'a> {
#[serde(borrow)]
pub list: jacquard_common::types::string::AtUri<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteThreadInput<'a> {
#[serde(borrow)]
pub root: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteThreadInput<'a> {
#[serde(borrow)]
pub root: jacquard_common::types::string::AtUri<'a>,
+
}
+10 -1
crates/jacquard-api/src/app_bsky/graph/verification.rs
···
///Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Verification<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Verification<'a> {
+
///Date of when the verification was created.
pub created_at: jacquard_common::types::string::Datetime,
+
///Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
+
///Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
///DID of the subject the verification applies to.
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+19 -5
crates/jacquard-api/src/app_bsky/labeler.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerPolicies<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub label_value_definitions: std::option::Option<
Vec<crate::com_atproto::label::LabelValueDefinition<'a>>,
>,
#[serde(borrow)]
pub label_values: Vec<crate::com_atproto::label::LabelValue<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub like_count: std::option::Option<i64>,
#[serde(borrow)]
pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason_types: std::option::Option<
Vec<crate::com_atproto::moderation::ReasonType<'a>>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_collections: std::option::Option<
Vec<jacquard_common::types::string::Nsid<'a>>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_types: std::option::Option<
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
-
}
-
pub mod get_services;
-
pub mod service;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_services;
+
pub mod service;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelerPolicies<'a> {
+
///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 = "std::option::Option::is_none")]
#[serde(borrow)]
pub label_value_definitions: std::option::Option<
Vec<crate::com_atproto::label::LabelValueDefinition<'a>>,
>,
+
///The label values which this labeler publishes. May include global or custom labels.
#[serde(borrow)]
pub label_values: Vec<crate::com_atproto::label::LabelValue<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::labeler::LabelerViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub like_count: std::option::Option<i64>,
#[serde(borrow)]
pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>,
+
///The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason_types: std::option::Option<
Vec<crate::com_atproto::moderation::ReasonType<'a>>,
>,
+
///Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_collections: std::option::Option<
Vec<jacquard_common::types::string::Nsid<'a>>,
>,
+
///The set of subject types (account, record, etc) this service accepts reports on.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_types: std::option::Option<
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub viewer: std::option::Option<crate::app_bsky::labeler::LabelerViewerState<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/labeler/get_services.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetServicesParams<'a> {
···
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetServicesOutput<'a> {
#[serde(borrow)]
pub views: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetServicesParams<'a> {
···
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetServicesOutput<'a> {
#[serde(borrow)]
pub views: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+10 -1
crates/jacquard-api/src/app_bsky/labeler/service.rs
···
///A declaration of the existence of labeler service.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub labels: std::option::Option<ServiceRecordLabels<'a>>,
#[serde(borrow)]
pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason_types: std::option::Option<
Vec<crate::com_atproto::moderation::ReasonType<'a>>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_collections: std::option::Option<
Vec<jacquard_common::types::string::Nsid<'a>>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_types: std::option::Option<
Vec<crate::com_atproto::moderation::SubjectType<'a>>,
>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ServiceRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///A declaration of the existence of labeler service.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub labels: std::option::Option<ServiceRecordLabels<'a>>,
#[serde(borrow)]
pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>,
+
///The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason_types: std::option::Option<
Vec<crate::com_atproto::moderation::ReasonType<'a>>,
>,
+
///Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_collections: std::option::Option<
Vec<jacquard_common::types::string::Nsid<'a>>,
>,
+
///The set of subject types (account, record, etc) this service accepts reports on.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_types: std::option::Option<
Vec<crate::com_atproto::moderation::SubjectType<'a>>,
>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ServiceRecordLabels<'a> {
#[serde(rename = "com.atproto.label.defs#selfLabels")]
DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>),
+
}
+37 -26
crates/jacquard-api/src/app_bsky/notification.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub post: bool,
pub reply: bool,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub include: jacquard_common::CowStr<'a>,
pub push: bool,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub list: bool,
pub push: bool,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub list: bool,
pub push: bool,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Preferences<'a> {
#[serde(borrow)]
-
pub chat: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub follow: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub like: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub like_via_repost: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub mention: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub quote: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub reply: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub repost: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub repost_via_repost: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub starterpack_joined: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub subscribed_post: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub unverified: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub verified: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename_all = "camelCase")]
pub struct SubjectActivitySubscription<'a> {
#[serde(borrow)]
-
pub activity_subscription: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
-
pub mod declaration;
-
pub mod get_preferences;
-
pub mod get_unread_count;
-
pub mod list_activity_subscriptions;
-
pub mod list_notifications;
-
pub mod put_activity_subscription;
-
pub mod put_preferences;
-
pub mod put_preferences_v2;
-
pub mod register_push;
-
pub mod unregister_push;
-
pub mod update_seen;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod declaration;
+
pub mod get_preferences;
+
pub mod get_unread_count;
+
pub mod list_activity_subscriptions;
+
pub mod list_notifications;
+
pub mod put_activity_subscription;
+
pub mod put_preferences;
+
pub mod put_preferences_v2;
+
pub mod register_push;
+
pub mod unregister_push;
+
pub mod update_seen;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub post: bool,
pub reply: bool,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub include: jacquard_common::CowStr<'a>,
pub push: bool,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub list: bool,
pub push: bool,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub list: bool,
pub push: bool,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Preferences<'a> {
#[serde(borrow)]
+
pub chat: crate::app_bsky::notification::ChatPreference<'a>,
#[serde(borrow)]
+
pub follow: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub like: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub like_via_repost: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub mention: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub quote: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub reply: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub repost: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub repost_via_repost: crate::app_bsky::notification::FilterablePreference<'a>,
#[serde(borrow)]
+
pub starterpack_joined: crate::app_bsky::notification::Preference<'a>,
#[serde(borrow)]
+
pub subscribed_post: crate::app_bsky::notification::Preference<'a>,
#[serde(borrow)]
+
pub unverified: crate::app_bsky::notification::Preference<'a>,
#[serde(borrow)]
+
pub verified: crate::app_bsky::notification::Preference<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename_all = "camelCase")]
pub struct SubjectActivitySubscription<'a> {
#[serde(borrow)]
+
pub activity_subscription: crate::app_bsky::notification::ActivitySubscription<'a>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/notification/declaration.rs
···
///A declaration of the user's choices related to notifications that can be produced by them.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Declaration<'a> {
#[serde(borrow)]
pub allow_subscriptions: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///A declaration of the user's choices related to notifications that can be produced by them.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Declaration<'a> {
+
///A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'.
#[serde(borrow)]
pub allow_subscriptions: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/notification/get_preferences.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferencesParams {}
···
pub struct GetPreferencesOutput<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::notification::Preferences<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferencesParams {}
···
pub struct GetPreferencesOutput<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::notification::Preferences<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetUnreadCountParams {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetUnreadCountOutput<'a> {
pub count: i64,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetUnreadCountParams {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetUnreadCountOutput<'a> {
pub count: i64,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListActivitySubscriptionsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub subscriptions: Vec<crate::app_bsky::actor::ProfileView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListActivitySubscriptionsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub subscriptions: Vec<crate::app_bsky::actor::ProfileView<'a>>,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/notification/list_notifications.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListNotificationsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(borrow)]
pub reason: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListNotificationsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
+
///The reason why this notification was delivered - e.g. your post was liked, or you received a new follower.
#[serde(borrow)]
pub reason: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/notification/put_preferences.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutPreferencesInput<'a> {
pub priority: bool,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutPreferencesInput<'a> {
pub priority: bool,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub verified: std::option::Option<crate::app_bsky::notification::Preference<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutPreferencesV2Output<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::notification::Preferences<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub verified: std::option::Option<crate::app_bsky::notification::Preference<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutPreferencesV2Output<'a> {
#[serde(borrow)]
pub preferences: crate::app_bsky::notification::Preferences<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/notification/register_push.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RegisterPushInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub age_restricted: std::option::Option<bool>,
#[serde(borrow)]
···
pub service_did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RegisterPushInput<'a> {
+
///Set to true when the actor is age restricted
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub age_restricted: std::option::Option<bool>,
#[serde(borrow)]
···
pub service_did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/notification/unregister_push.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub service_did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub service_did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/notification/update_seen.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateSeenInput<'a> {
pub seen_at: jacquard_common::types::string::Datetime,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateSeenInput<'a> {
pub seen_at: jacquard_common::types::string::Datetime,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/richtext.rs
···
-
pub mod facet;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod facet;
+11 -2
crates/jacquard-api/src/app_bsky/richtext/facet.rs
···
///Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub byte_end: i64,
pub byte_start: i64,
}
///Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
}
///Annotation of a sub-string within rich text.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub features: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
-
pub index: jacquard_common::types::value::Data<'a>,
}
///Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
///Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Tag<'a> {
#[serde(borrow)]
pub tag: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub byte_end: i64,
pub byte_start: i64,
}
+
///Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
}
+
///Annotation of a sub-string within rich text.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub features: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
+
pub index: crate::app_bsky::richtext::facet::ByteSlice<'a>,
}
+
///Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
///Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Tag<'a> {
#[serde(borrow)]
pub tag: jacquard_common::CowStr<'a>,
+
}
+53 -23
crates/jacquard-api/src/app_bsky/unspecced.rs
···
///Object used to store age assurance data in stash.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceEvent<'a> {
#[serde(borrow)]
pub attempt_id: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub email: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
///The computed state of the age assurance process, returned to the user in question on certain authenticated requests.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceState<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub last_initiated_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub topic: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub author: crate::app_bsky::feed::BlockedAuthor<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadItemPost<'a> {
pub hidden_by_threadgate: bool,
pub more_parents: bool,
pub more_replies: i64,
pub muted_by_viewer: bool,
pub op_thread: bool,
#[serde(borrow)]
pub post: crate::app_bsky::feed::PostView<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub topic: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub link: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub topic: jacquard_common::CowStr<'a>,
-
}
-
pub mod get_age_assurance_state;
-
pub mod get_config;
-
pub mod get_onboarding_suggested_starter_packs;
-
pub mod get_onboarding_suggested_starter_packs_skeleton;
-
pub mod get_popular_feed_generators;
-
pub mod get_post_thread_other_v2;
-
pub mod get_post_thread_v2;
-
pub mod get_suggested_feeds;
-
pub mod get_suggested_feeds_skeleton;
-
pub mod get_suggested_starter_packs;
-
pub mod get_suggested_starter_packs_skeleton;
-
pub mod get_suggested_users;
-
pub mod get_suggested_users_skeleton;
-
pub mod get_suggestions_skeleton;
-
pub mod get_tagged_suggestions;
-
pub mod get_trending_topics;
-
pub mod get_trends;
-
pub mod get_trends_skeleton;
-
pub mod init_age_assurance;
-
pub mod search_actors_skeleton;
-
pub mod search_posts_skeleton;
-
pub mod search_starter_packs_skeleton;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_age_assurance_state;
+
pub mod get_config;
+
pub mod get_onboarding_suggested_starter_packs;
+
pub mod get_onboarding_suggested_starter_packs_skeleton;
+
pub mod get_popular_feed_generators;
+
pub mod get_post_thread_other_v2;
+
pub mod get_post_thread_v2;
+
pub mod get_suggested_feeds;
+
pub mod get_suggested_feeds_skeleton;
+
pub mod get_suggested_starter_packs;
+
pub mod get_suggested_starter_packs_skeleton;
+
pub mod get_suggested_users;
+
pub mod get_suggested_users_skeleton;
+
pub mod get_suggestions_skeleton;
+
pub mod get_tagged_suggestions;
+
pub mod get_trending_topics;
+
pub mod get_trends;
+
pub mod get_trends_skeleton;
+
pub mod init_age_assurance;
+
pub mod search_actors_skeleton;
+
pub mod search_posts_skeleton;
+
pub mod search_starter_packs_skeleton;
+
///Object used to store age assurance data in stash.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceEvent<'a> {
+
///The unique identifier for this instance of the age assurance flow, in UUID format.
#[serde(borrow)]
pub attempt_id: jacquard_common::CowStr<'a>,
+
///The IP address used when completing the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The user agent used when completing the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The date and time of this write operation.
pub created_at: jacquard_common::types::string::Datetime,
+
///The email used for AA.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub email: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The IP address used when initiating the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The user agent used when initiating the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The status of the age assurance process.
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
+
///The computed state of the age assurance process, returned to the user in question on certain authenticated requests.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceState<'a> {
+
///The timestamp when this state was last updated.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub last_initiated_at: std::option::Option<jacquard_common::types::string::Datetime>,
+
///The status of the age assurance process.
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub topic: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub author: crate::app_bsky::feed::BlockedAuthor<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadItemPost<'a> {
+
///The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
pub hidden_by_threadgate: bool,
+
///This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
pub more_parents: bool,
+
///This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.
pub more_replies: i64,
+
///This is by an account muted by the viewer requesting it.
pub muted_by_viewer: bool,
+
///This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.
pub op_thread: bool,
#[serde(borrow)]
pub post: crate::app_bsky::feed::PostView<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub topic: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub link: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub topic: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_config.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub domains: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub live_now: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub domains: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub live_now: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksSkeletonOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksSkeletonOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>,
+
}
+11 -1
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadOtherV2Params<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub prioritize_followed_users: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadOtherV2Output<'a> {
#[serde(borrow)]
pub thread: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadItem<'a> {
pub depth: i64,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: ThreadItemRecordValue<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ThreadItemRecordValue<'a> {
#[serde(rename = "app.bsky.unspecced.defs#threadItemPost")]
DefsThreadItemPost(Box<crate::app_bsky::unspecced::ThreadItemPost<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadOtherV2Params<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub prioritize_followed_users: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadOtherV2Output<'a> {
+
///A flat list of other thread items. The depth of each item is indicated by the depth property inside the item.
#[serde(borrow)]
pub thread: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadItem<'a> {
+
///The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.
pub depth: i64,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: ThreadItemRecordValue<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub enum ThreadItemRecordValue<'a> {
#[serde(rename = "app.bsky.unspecced.defs#threadItemPost")]
DefsThreadItemPost(Box<crate::app_bsky::unspecced::ThreadItemPost<'a>>),
+
}
+12 -1
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadV2Params<'a> {
···
#[serde(borrow)]
pub sort: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadV2Output<'a> {
pub has_other_replies: bool,
#[serde(borrow)]
pub thread: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadItem<'a> {
pub depth: i64,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: ThreadItemRecordValue<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
DefsThreadItemNotFound(Box<crate::app_bsky::unspecced::ThreadItemNotFound<'a>>),
#[serde(rename = "app.bsky.unspecced.defs#threadItemBlocked")]
DefsThreadItemBlocked(Box<crate::app_bsky::unspecced::ThreadItemBlocked<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadV2Params<'a> {
···
#[serde(borrow)]
pub sort: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadV2Output<'a> {
+
///Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them.
pub has_other_replies: bool,
+
///A flat list of thread items. The depth of each item is indicated by the depth property inside the item.
#[serde(borrow)]
pub thread: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ThreadItem<'a> {
+
///The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.
pub depth: i64,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: ThreadItemRecordValue<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
DefsThreadItemNotFound(Box<crate::app_bsky::unspecced::ThreadItemNotFound<'a>>),
#[serde(rename = "app.bsky.unspecced.defs#threadItemBlocked")]
DefsThreadItemBlocked(Box<crate::app_bsky::unspecced::ThreadItemBlocked<'a>>),
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsOutput<'a> {
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsOutput<'a> {
#[serde(borrow)]
pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsSkeletonOutput<'a> {
#[serde(borrow)]
pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsSkeletonOutput<'a> {
#[serde(borrow)]
pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksSkeletonOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksSkeletonOutput<'a> {
#[serde(borrow)]
pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersOutput<'a> {
#[serde(borrow)]
pub actors: Vec<crate::app_bsky::actor::ProfileView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersOutput<'a> {
#[serde(borrow)]
pub actors: Vec<crate::app_bsky::actor::ProfileView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersSkeletonOutput<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersSkeletonOutput<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
+
}
+9 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestionsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rec_id: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub relative_to_did: std::option::Option<jacquard_common::types::string::Did<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestionsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Snowflake for this recommendation, use when submitting recommendation events.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rec_id: std::option::Option<i64>,
+
///DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub relative_to_did: std::option::Option<jacquard_common::types::string::Did<'a>>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTaggedSuggestionsParams {}
···
#[serde(borrow)]
pub suggestions: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub subject_type: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub tag: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTaggedSuggestionsParams {}
···
#[serde(borrow)]
pub suggestions: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub subject_type: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub tag: jacquard_common::CowStr<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTrendsParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTrendsOutput<'a> {
#[serde(borrow)]
pub trends: Vec<crate::app_bsky::unspecced::TrendView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTrendsParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetTrendsOutput<'a> {
#[serde(borrow)]
pub trends: Vec<crate::app_bsky::unspecced::TrendView<'a>>,
+
}
+13 -2
crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InitAgeAssuranceInput<'a> {
#[serde(borrow)]
pub country_code: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub language: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidInitiation")]
InvalidInitiation(std::option::Option<String>),
}
impl std::fmt::Display for InitAgeAssuranceError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InitAgeAssuranceInput<'a> {
+
///An ISO 3166-1 alpha-2 code of the user's location.
#[serde(borrow)]
pub country_code: jacquard_common::CowStr<'a>,
+
///The user's email address to receive assurance instructions.
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
+
///The user's preferred language for communication during the assurance process.
#[serde(borrow)]
pub language: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidInitiation")]
InvalidInitiation(std::option::Option<String>),
}
+
impl std::fmt::Display for InitAgeAssuranceError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+11 -2
crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
impl std::fmt::Display for SearchActorsSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
+
impl std::fmt::Display for SearchActorsSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+11 -2
crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchPostsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
#[serde(borrow)]
pub posts: Vec<crate::app_bsky::unspecced::SkeletonSearchPost<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
impl std::fmt::Display for SearchPostsSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchPostsSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
#[serde(borrow)]
pub posts: Vec<crate::app_bsky::unspecced::SkeletonSearchPost<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
+
impl std::fmt::Display for SearchPostsSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+11 -2
crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacksSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::unspecced::SkeletonSearchStarterPack<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
impl std::fmt::Display for SearchStarterPacksSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacksSkeletonParams<'a> {
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub hits_total: std::option::Option<i64>,
#[serde(borrow)]
pub starter_packs: Vec<crate::app_bsky::unspecced::SkeletonSearchStarterPack<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadQueryString")]
BadQueryString(std::option::Option<String>),
}
+
impl std::fmt::Display for SearchStarterPacksSkeletonError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+12 -4
crates/jacquard-api/src/app_bsky/video.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub message: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub progress: std::option::Option<i64>,
#[serde(borrow)]
pub state: jacquard_common::CowStr<'a>,
-
}
-
pub mod get_job_status;
-
pub mod get_upload_limits;
-
pub mod upload_video;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_job_status;
+
pub mod get_upload_limits;
+
pub mod upload_video;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub message: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Progress within the current processing state.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub progress: std::option::Option<i64>,
+
///The state of the video processing job. All values not listed as a known value indicate that the job is in process.
#[serde(borrow)]
pub state: jacquard_common::CowStr<'a>,
+
}
+7 -1
crates/jacquard-api/src/app_bsky/video/get_job_status.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetJobStatusParams<'a> {
#[serde(borrow)]
pub job_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetJobStatusOutput<'a> {
#[serde(borrow)]
pub job_status: crate::app_bsky::video::JobStatus<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetJobStatusParams<'a> {
#[serde(borrow)]
pub job_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetJobStatusOutput<'a> {
#[serde(borrow)]
pub job_status: crate::app_bsky::video::JobStatus<'a>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub remaining_daily_bytes: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub remaining_daily_videos: std::option::Option<i64>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub remaining_daily_bytes: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub remaining_daily_videos: std::option::Option<i64>,
+
}
+6 -1
crates/jacquard-api/src/app_bsky/video/upload_video.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub struct UploadVideoOutput<'a> {
#[serde(borrow)]
pub job_status: crate::app_bsky::video::JobStatus<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub struct UploadVideoOutput<'a> {
#[serde(borrow)]
pub job_status: crate::app_bsky::video::JobStatus<'a>,
+
}
+6 -1
crates/jacquard-api/src/chat_bsky.rs
···
pub mod actor;
pub mod convo;
-
pub mod moderation;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod actor;
pub mod convo;
+
pub mod moderation;
+11 -4
crates/jacquard-api/src/chat_bsky/actor.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub chat_disabled: std::option::Option<bool>,
#[serde(borrow)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
-
}
-
pub mod declaration;
-
pub mod delete_account;
-
pub mod export_account_data;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod declaration;
+
pub mod delete_account;
+
pub mod export_account_data;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>,
+
///Set to true when the actor cannot actively participate in conversations
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub chat_disabled: std::option::Option<bool>,
#[serde(borrow)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>,
+
}
+6 -1
crates/jacquard-api/src/chat_bsky/actor/declaration.rs
···
///A declaration of a Bluesky chat account.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Declaration<'a> {
#[serde(borrow)]
pub allow_incoming: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///A declaration of a Bluesky chat account.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Declaration<'a> {
#[serde(borrow)]
pub allow_incoming: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/chat_bsky/actor/delete_account.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct DeleteAccountOutput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct DeleteAccountOutput<'a> {}
+6 -1
crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct ExportAccountDataOutput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct ExportAccountDataOutput<'a> {}
+55 -26
crates/jacquard-api/src/chat_bsky/convo.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
pub unread_count: i64,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub sender: jacquard_common::types::value::Data<'a>,
pub sent_at: jacquard_common::types::string::Datetime,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: LogAddReactionRecordMessage<'a>,
#[serde(borrow)]
-
pub reaction: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub message: LogRemoveReactionRecordMessage<'a>,
#[serde(borrow)]
-
pub reaction: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MessageAndReactionView<'a> {
#[serde(borrow)]
-
pub message: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub reaction: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<MessageInputRecordEmbed<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>,
#[serde(borrow)]
pub text: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.record")]
Record(Box<crate::app_bsky::embed::record::Record<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<MessageViewRecordEmbed<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub reactions: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub sender: jacquard_common::types::value::Data<'a>,
pub sent_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub text: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.record#view")]
RecordView(Box<crate::app_bsky::embed::record::View<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReactionView<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
-
pub sender: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReactionViewSender<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
-
}
-
pub mod accept_convo;
-
pub mod add_reaction;
-
pub mod delete_message_for_self;
-
pub mod get_convo;
-
pub mod get_convo_availability;
-
pub mod get_convo_for_members;
-
pub mod get_log;
-
pub mod get_messages;
-
pub mod leave_convo;
-
pub mod list_convos;
-
pub mod mute_convo;
-
pub mod remove_reaction;
-
pub mod send_message;
-
pub mod send_message_batch;
-
pub mod unmute_convo;
-
pub mod update_all_read;
-
pub mod update_read;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod accept_convo;
+
pub mod add_reaction;
+
pub mod delete_message_for_self;
+
pub mod get_convo;
+
pub mod get_convo_availability;
+
pub mod get_convo_for_members;
+
pub mod get_log;
+
pub mod get_messages;
+
pub mod leave_convo;
+
pub mod list_convos;
+
pub mod mute_convo;
+
pub mod remove_reaction;
+
pub mod send_message;
+
pub mod send_message_batch;
+
pub mod unmute_convo;
+
pub mod update_all_read;
+
pub mod update_read;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
pub unread_count: i64,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub sender: crate::chat_bsky::convo::MessageViewSender<'a>,
pub sent_at: jacquard_common::types::string::Datetime,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: LogAddReactionRecordMessage<'a>,
#[serde(borrow)]
+
pub reaction: crate::chat_bsky::convo::ReactionView<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub message: LogRemoveReactionRecordMessage<'a>,
#[serde(borrow)]
+
pub reaction: crate::chat_bsky::convo::ReactionView<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MessageAndReactionView<'a> {
#[serde(borrow)]
+
pub message: crate::chat_bsky::convo::MessageView<'a>,
#[serde(borrow)]
+
pub reaction: crate::chat_bsky::convo::ReactionView<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<MessageInputRecordEmbed<'a>>,
+
///Annotations of text (mentions, URLs, hashtags, etc)
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>,
#[serde(borrow)]
pub text: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.record")]
Record(Box<crate::app_bsky::embed::record::Record<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub embed: std::option::Option<MessageViewRecordEmbed<'a>>,
+
///Annotations of text (mentions, URLs, hashtags, etc)
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
+
///Reactions to this message, in ascending order of creation time.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub reactions: std::option::Option<Vec<crate::chat_bsky::convo::ReactionView<'a>>>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub sender: crate::chat_bsky::convo::MessageViewSender<'a>,
pub sent_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub text: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "app.bsky.embed.record#view")]
RecordView(Box<crate::app_bsky::embed::record::View<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReactionView<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
+
pub sender: crate::chat_bsky::convo::ReactionViewSender<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReactionViewSender<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
}
+8 -1
crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AcceptConvoOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rev: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AcceptConvoOutput<'a> {
+
///Rev when the convo was accepted. If not present, the convo was already accepted.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rev: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+10 -2
crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageView<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ReactionInvalidValue")]
ReactionInvalidValue(std::option::Option<String>),
}
impl std::fmt::Display for AddReactionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageView<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ReactionInvalidValue")]
ReactionInvalidValue(std::option::Option<String>),
}
+
impl std::fmt::Display for AddReactionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::chat_bsky::convo::DeletedMessageView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::chat_bsky::convo::DeletedMessageView<'a>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoParams<'a> {
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoParams<'a> {
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoAvailabilityParams<'a> {
#[serde(borrow)]
pub members: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub convo: std::option::Option<crate::chat_bsky::convo::ConvoView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoAvailabilityParams<'a> {
#[serde(borrow)]
pub members: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub convo: std::option::Option<crate::chat_bsky::convo::ConvoView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoForMembersParams<'a> {
#[serde(borrow)]
pub members: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoForMembersOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoForMembersParams<'a> {
#[serde(borrow)]
pub members: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoForMembersOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_log.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetLogParams<'a> {
···
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub logs: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetLogParams<'a> {
···
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub logs: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_messages.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMessagesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub messages: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMessagesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub messages: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub convo_id: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub convo_id: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/list_convos.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListConvosParams<'a> {
···
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListConvosParams<'a> {
···
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteConvoOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct MuteConvoOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
+
}
+10 -2
crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageView<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ReactionInvalidValue")]
ReactionInvalidValue(std::option::Option<String>),
}
impl std::fmt::Display for RemoveReactionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageView<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ReactionInvalidValue")]
ReactionInvalidValue(std::option::Option<String>),
}
+
impl std::fmt::Display for RemoveReactionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/send_message.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageInput<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::chat_bsky::convo::MessageView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageInput<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::chat_bsky::convo::MessageView<'a>,
+
}
+8 -1
crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageInput<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub items: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SendMessageBatchOutput<'a> {
#[serde(borrow)]
pub items: Vec<crate::chat_bsky::convo::MessageView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message: crate::chat_bsky::convo::MessageInput<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub items: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SendMessageBatchOutput<'a> {
#[serde(borrow)]
pub items: Vec<crate::chat_bsky::convo::MessageView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteConvoOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub convo_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UnmuteConvoOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
+
}
+8 -1
crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateAllReadOutput<'a> {
pub updated_count: i64,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateAllReadOutput<'a> {
+
///The count of updated convos.
pub updated_count: i64,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/convo/update_read.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateReadOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub message_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateReadOutput<'a> {
#[serde(borrow)]
pub convo: crate::chat_bsky::convo::ConvoView<'a>,
+
}
+6 -1
crates/jacquard-api/src/chat_bsky/moderation.rs
···
pub mod get_actor_metadata;
pub mod get_message_context;
-
pub mod update_actor_access;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod get_actor_metadata;
pub mod get_message_context;
+
pub mod update_actor_access;
+8 -1
crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorMetadataParams<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub month: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub convos_started: i64,
pub messages_received: i64,
pub messages_sent: i64,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetActorMetadataParams<'a> {
#[serde(borrow)]
pub actor: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub month: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub convos_started: i64,
pub messages_received: i64,
pub messages_sent: i64,
+
}
+7 -1
crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMessageContextParams<'a> {
···
#[serde(borrow)]
pub message_id: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMessageContextOutput<'a> {
#[serde(borrow)]
pub messages: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMessageContextParams<'a> {
···
#[serde(borrow)]
pub message_id: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetMessageContextOutput<'a> {
#[serde(borrow)]
pub messages: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+6 -1
crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto.rs
···
pub mod admin;
pub mod identity;
pub mod label;
···
pub mod repo;
pub mod server;
pub mod sync;
-
pub mod temp;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod admin;
pub mod identity;
pub mod label;
···
pub mod repo;
pub mod server;
pub mod sync;
+
pub mod temp;
+27 -17
crates/jacquard-api/src/com_atproto/admin.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub threat_signatures: std::option::Option<
-
Vec<jacquard_common::types::value::Data<'a>>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record_uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub property: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
-
}
-
pub mod delete_account;
-
pub mod disable_account_invites;
-
pub mod disable_invite_codes;
-
pub mod enable_account_invites;
-
pub mod get_account_info;
-
pub mod get_account_infos;
-
pub mod get_invite_codes;
-
pub mod get_subject_status;
-
pub mod search_accounts;
-
pub mod send_email;
-
pub mod update_account_email;
-
pub mod update_account_handle;
-
pub mod update_account_password;
-
pub mod update_account_signing_key;
-
pub mod update_subject_status;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod delete_account;
+
pub mod disable_account_invites;
+
pub mod disable_invite_codes;
+
pub mod enable_account_invites;
+
pub mod get_account_info;
+
pub mod get_account_infos;
+
pub mod get_invite_codes;
+
pub mod get_subject_status;
+
pub mod search_accounts;
+
pub mod send_email;
+
pub mod update_account_email;
+
pub mod update_account_handle;
+
pub mod update_account_password;
+
pub mod update_account_signing_key;
+
pub mod update_subject_status;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub threat_signatures: std::option::Option<
+
Vec<crate::com_atproto::admin::ThreatSignature<'a>>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub record_uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub property: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/admin/delete_account.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteAccountInput<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteAccountInput<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DisableAccountInvitesInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub note: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DisableAccountInvitesInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::string::Did<'a>,
+
///Optional reason for disabled invites.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub note: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub codes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub codes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct EnableAccountInvitesInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub note: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct EnableAccountInvitesInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::string::Did<'a>,
+
///Optional reason for enabled invites.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub note: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/get_account_info.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfoParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::com_atproto::admin::AccountView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfoParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::com_atproto::admin::AccountView<'a>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfosParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfosOutput<'a> {
#[serde(borrow)]
pub infos: Vec<crate::com_atproto::admin::AccountView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfosParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfosOutput<'a> {
#[serde(borrow)]
pub infos: Vec<crate::com_atproto::admin::AccountView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetInviteCodesParams<'a> {
···
#[serde(borrow)]
pub sort: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetInviteCodesParams<'a> {
···
#[serde(borrow)]
pub sort: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+8 -1
crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectStatusParams<'a> {
···
#[serde(borrow)]
pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")]
DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectStatusParams<'a> {
···
#[serde(borrow)]
pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")]
DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>),
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/search_accounts.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccountsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccountsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+8 -1
crates/jacquard-api/src/com_atproto/admin/send_email.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SendEmailInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub subject: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SendEmailOutput<'a> {
pub sent: bool,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SendEmailInput<'a> {
+
///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub subject: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SendEmailOutput<'a> {
pub sent: bool,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/update_account_email.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateAccountEmailInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateAccountEmailInput<'a> {
+
///The handle or DID of the repo.
#[serde(borrow)]
pub account: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/admin/update_account_password.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub password: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub password: jacquard_common::CowStr<'a>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateAccountSigningKeyInput<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub signing_key: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateAccountSigningKeyInput<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///Did-key formatted public key
#[serde(borrow)]
pub signing_key: jacquard_common::types::string::Did<'a>,
+
}
+9 -1
crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")]
DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")]
DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>),
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")]
DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
#[serde(rename = "com.atproto.admin.defs#repoBlobRef")]
DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>),
+
}
+18 -10
crates/jacquard-api/src/com_atproto/identity.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct IdentityInfo<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub did_doc: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
-
}
-
pub mod get_recommended_did_credentials;
-
pub mod refresh_identity;
-
pub mod request_plc_operation_signature;
-
pub mod resolve_did;
-
pub mod resolve_handle;
-
pub mod resolve_identity;
-
pub mod sign_plc_operation;
-
pub mod submit_plc_operation;
-
pub mod update_handle;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_recommended_did_credentials;
+
pub mod refresh_identity;
+
pub mod request_plc_operation_signature;
+
pub mod resolve_did;
+
pub mod resolve_handle;
+
pub mod resolve_identity;
+
pub mod sign_plc_operation;
+
pub mod submit_plc_operation;
+
pub mod update_handle;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct IdentityInfo<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///The complete DID document for the identity.
#[serde(borrow)]
pub did_doc: jacquard_common::types::value::Data<'a>,
+
///The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
}
+10 -2
crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub identifier: jacquard_common::types::ident::AtIdentifier<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::com_atproto::identity::IdentityInfo<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DidDeactivated")]
DidDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for RefreshIdentityError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub identifier: jacquard_common::types::ident::AtIdentifier<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::com_atproto::identity::IdentityInfo<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DidDeactivated")]
DidDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for RefreshIdentityError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+5
crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs
···
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+11 -2
crates/jacquard-api/src/com_atproto/identity/resolve_did.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveDidParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveDidOutput<'a> {
#[serde(borrow)]
pub did_doc: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DidDeactivated")]
DidDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for ResolveDidError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveDidParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveDidOutput<'a> {
+
///The complete DID document for the identity.
#[serde(borrow)]
pub did_doc: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DidDeactivated")]
DidDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for ResolveDidError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveHandleParams<'a> {
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HandleNotFound")]
HandleNotFound(std::option::Option<String>),
}
impl std::fmt::Display for ResolveHandleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveHandleParams<'a> {
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HandleNotFound")]
HandleNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for ResolveHandleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveIdentityParams<'a> {
#[serde(borrow)]
pub identifier: jacquard_common::types::ident::AtIdentifier<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::com_atproto::identity::IdentityInfo<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DidDeactivated")]
DidDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for ResolveIdentityError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResolveIdentityParams<'a> {
#[serde(borrow)]
pub identifier: jacquard_common::types::ident::AtIdentifier<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::com_atproto::identity::IdentityInfo<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DidDeactivated")]
DidDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for ResolveIdentityError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -1
crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub services: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub token: std::option::Option<jacquard_common::CowStr<'a>>,
···
jacquard_common::types::value::Data<'a>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SignPlcOperationOutput<'a> {
#[serde(borrow)]
pub operation: jacquard_common::types::value::Data<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub services: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///A token received through com.atproto.identity.requestPlcOperationSignature
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub token: std::option::Option<jacquard_common::CowStr<'a>>,
···
jacquard_common::types::value::Data<'a>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SignPlcOperationOutput<'a> {
+
///A signed DID PLC operation.
#[serde(borrow)]
pub operation: jacquard_common::types::value::Data<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubmitPlcOperationInput<'a> {
#[serde(borrow)]
pub operation: jacquard_common::types::value::Data<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubmitPlcOperationInput<'a> {
#[serde(borrow)]
pub operation: jacquard_common::types::value::Data<'a>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/identity/update_handle.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateHandleInput<'a> {
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateHandleInput<'a> {
+
///The new handle.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
}
+40 -5
crates/jacquard-api/src/com_atproto/label.rs
···
///Metadata tag on an atproto resource (eg, repo or record).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Label<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>,
pub cts: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub exp: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub neg: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub sig: std::option::Option<bytes::Bytes>,
#[serde(borrow)]
pub src: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
#[serde(borrow)]
pub val: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub ver: std::option::Option<i64>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum LabelValue<'a> {
Hide,
···
Gore,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> LabelValue<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for LabelValue<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for LabelValue<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for LabelValue<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for LabelValue<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for LabelValue<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
///Declares a label value and its expected interpretations and behaviors.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelValueDefinition<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub adult_only: std::option::Option<bool>,
#[serde(borrow)]
pub blurs: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub default_setting: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub identifier: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub locales: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub severity: jacquard_common::CowStr<'a>,
}
///Strings which describe the label in the UI, localized into a specific language.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelValueDefinitionStrings<'a> {
#[serde(borrow)]
pub description: jacquard_common::CowStr<'a>,
pub lang: jacquard_common::types::string::Language,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SelfLabel<'a> {
#[serde(borrow)]
pub val: jacquard_common::CowStr<'a>,
}
///Metadata tags on an atproto record, published by the author within the record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SelfLabels<'a> {
#[serde(borrow)]
-
pub values: Vec<jacquard_common::types::value::Data<'a>>,
-
}
-
pub mod query_labels;
-
pub mod subscribe_labels;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod query_labels;
+
pub mod subscribe_labels;
+
///Metadata tag on an atproto resource (eg, repo or record).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Label<'a> {
+
///Optionally, CID specifying the specific version of 'uri' resource this label applies to.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>,
+
///Timestamp when this label was created.
pub cts: jacquard_common::types::string::Datetime,
+
///Timestamp at which this label expires (no longer applies).
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub exp: std::option::Option<jacquard_common::types::string::Datetime>,
+
///If true, this is a negation label, overwriting a previous label.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub neg: std::option::Option<bool>,
+
///Signature of dag-cbor encoded label.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub sig: std::option::Option<bytes::Bytes>,
+
///DID of the actor who created this label.
#[serde(borrow)]
pub src: jacquard_common::types::string::Did<'a>,
+
///AT URI of the record, repository (account), or other resource that this label applies to.
#[serde(borrow)]
pub uri: jacquard_common::types::string::Uri<'a>,
+
///The short string name of the value or type of this label.
#[serde(borrow)]
pub val: jacquard_common::CowStr<'a>,
+
///The AT Protocol version of the label object.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub ver: std::option::Option<i64>,
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum LabelValue<'a> {
Hide,
···
Gore,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> LabelValue<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for LabelValue<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for LabelValue<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for LabelValue<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for LabelValue<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for LabelValue<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
///Declares a label value and its expected interpretations and behaviors.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelValueDefinition<'a> {
+
///Does the user need to have adult content enabled in order to configure this label?
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub adult_only: std::option::Option<bool>,
+
///What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.
#[serde(borrow)]
pub blurs: jacquard_common::CowStr<'a>,
+
///The default setting for this label.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub default_setting: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).
#[serde(borrow)]
pub identifier: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub locales: Vec<crate::com_atproto::label::LabelValueDefinitionStrings<'a>>,
+
///How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
#[serde(borrow)]
pub severity: jacquard_common::CowStr<'a>,
}
+
///Strings which describe the label in the UI, localized into a specific language.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LabelValueDefinitionStrings<'a> {
+
///A longer description of what the label means and why it might be applied.
#[serde(borrow)]
pub description: jacquard_common::CowStr<'a>,
+
///The code of the language these strings are written in.
pub lang: jacquard_common::types::string::Language,
+
///A short human-readable name for the label.
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SelfLabel<'a> {
+
///The short string name of the value or type of this label.
#[serde(borrow)]
pub val: jacquard_common::CowStr<'a>,
}
+
///Metadata tags on an atproto record, published by the author within the record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SelfLabels<'a> {
#[serde(borrow)]
+
pub values: Vec<crate::com_atproto::label::SelfLabel<'a>>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/label/query_labels.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryLabelsParams<'a> {
···
#[serde(borrow)]
pub uri_patterns: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub labels: Vec<crate::com_atproto::label::Label<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryLabelsParams<'a> {
···
#[serde(borrow)]
pub uri_patterns: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub labels: Vec<crate::com_atproto::label::Label<'a>>,
+
}
+12 -2
crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub labels: Vec<crate::com_atproto::label::Label<'a>>,
pub seq: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubscribeLabelsParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub cursor: std::option::Option<i64>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "#info")]
Info(Box<jacquard_common::types::value::Data<'a>>),
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "FutureCursor")]
FutureCursor(std::option::Option<String>),
}
impl std::fmt::Display for SubscribeLabelsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub labels: Vec<crate::com_atproto::label::Label<'a>>,
pub seq: i64,
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubscribeLabelsParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub cursor: std::option::Option<i64>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "#info")]
Info(Box<jacquard_common::types::value::Data<'a>>),
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "FutureCursor")]
FutureCursor(std::option::Option<String>),
}
+
impl std::fmt::Display for SubscribeLabelsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/com_atproto/lexicon.rs
···
-
pub mod schema;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod schema;
+7 -1
crates/jacquard-api/src/com_atproto/lexicon/schema.rs
···
///Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Schema<'a> {
pub lexicon: i64,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Schema<'a> {
+
///Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system.
pub lexicon: i64,
+
}
+21 -2
crates/jacquard-api/src/com_atproto/moderation.rs
···
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ReasonType<'a> {
ComAtprotoModerationDefsReasonSpam,
···
ToolsOzoneReportDefsReasonCivicImpersonation,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> ReasonType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for ReasonType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for ReasonType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for ReasonType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for ReasonType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
///Tag describing a type of subject that might be reported.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum SubjectType<'a> {
···
Chat,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> SubjectType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for SubjectType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for SubjectType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for SubjectType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for SubjectType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for SubjectType<'a>
where
'de: 'a,
···
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
-
}
-
pub mod create_report;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod create_report;
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ReasonType<'a> {
ComAtprotoModerationDefsReasonSpam,
···
ToolsOzoneReportDefsReasonCivicImpersonation,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> ReasonType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for ReasonType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for ReasonType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for ReasonType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for ReasonType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
///Tag describing a type of subject that might be reported.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum SubjectType<'a> {
···
Chat,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> SubjectType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for SubjectType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for SubjectType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for SubjectType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for SubjectType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for SubjectType<'a>
where
'de: 'a,
···
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
+
}
+14 -1
crates/jacquard-api/src/com_atproto/moderation/create_report.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub reason_type: crate::com_atproto::moderation::ReasonType<'a>,
#[serde(borrow)]
pub subject: CreateReportInputRecordSubject<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.repo.strongRef")]
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub subject: CreateReportOutputRecordSubject<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.repo.strongRef")]
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
}
///Moderation tool information for tracing the source of the action
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModTool<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///Additional context about the content and violation.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Indicates the broad category of violation the report is for.
#[serde(borrow)]
pub reason_type: crate::com_atproto::moderation::ReasonType<'a>,
#[serde(borrow)]
pub subject: CreateReportInputRecordSubject<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.repo.strongRef")]
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub subject: CreateReportOutputRecordSubject<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.repo.strongRef")]
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
}
+
///Moderation tool information for tracing the source of the action
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModTool<'a> {
+
///Additional arbitrary metadata about the source
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome')
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
}
+14 -8
crates/jacquard-api/src/com_atproto/repo.rs
···
-
#[jacquard_derive::lexicon]
-
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
-
#[serde(rename_all = "camelCase")]
-
pub struct CommitMeta<'a> {
-
#[serde(borrow)]
-
pub cid: jacquard_common::types::string::Cid<'a>,
-
pub rev: jacquard_common::types::string::Tid,
-
}
pub mod apply_writes;
pub mod create_record;
pub mod delete_record;
···
pub mod put_record;
pub mod strong_ref;
pub mod upload_blob;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod apply_writes;
pub mod create_record;
pub mod delete_record;
···
pub mod put_record;
pub mod strong_ref;
pub mod upload_blob;
+
+
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
+
#[serde(rename_all = "camelCase")]
+
pub struct CommitMeta<'a> {
+
#[serde(borrow)]
+
pub cid: jacquard_common::types::string::Cid<'a>,
+
pub rev: jacquard_common::types::string::Tid,
+
}
+19 -2
crates/jacquard-api/src/com_atproto/repo/apply_writes.rs
···
///Operation which creates a new record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Create<'a> {
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Operation which deletes an existing record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
jacquard_common::types::string::Rkey<'a>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ApplyWritesInput<'a> {
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub validate: std::option::Option<bool>,
#[serde(borrow)]
pub writes: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub results: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
impl std::fmt::Display for ApplyWritesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
}
///Operation which updates an existing record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Operation which creates a new record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Create<'a> {
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
+
///NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Operation which deletes an existing record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
jacquard_common::types::string::Rkey<'a>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ApplyWritesInput<'a> {
+
///The handle or DID of the repo (aka, current account).
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
+
///If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
+
///Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub validate: std::option::Option<bool>,
#[serde(borrow)]
pub writes: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub results: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
+
impl std::fmt::Display for ApplyWritesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
}
+
///Operation which updates an existing record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+16 -2
crates/jacquard-api/src/com_atproto/repo/create_record.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateRecordInput<'a> {
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
···
jacquard_common::types::string::Rkey<'a>,
>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub validate: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
impl std::fmt::Display for CreateRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateRecordInput<'a> {
+
///The NSID of the record collection.
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
+
///The record itself. Must contain a $type field.
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
+
///The handle or DID of the repo (aka, current account).
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
+
///The Record Key.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
···
jacquard_common::types::string::Rkey<'a>,
>,
>,
+
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
+
///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub validate: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
+
impl std::fmt::Display for CreateRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+15 -2
crates/jacquard-api/src/com_atproto/repo/delete_record.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteRecordInput<'a> {
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(borrow)]
pub rkey: jacquard_common::types::string::RecordKey<
jacquard_common::types::string::Rkey<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub commit: std::option::Option<crate::com_atproto::repo::CommitMeta<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
impl std::fmt::Display for DeleteRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteRecordInput<'a> {
+
///The NSID of the record collection.
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
+
///The handle or DID of the repo (aka, current account).
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
+
///The Record Key.
#[serde(borrow)]
pub rkey: jacquard_common::types::string::RecordKey<
jacquard_common::types::string::Rkey<'a>,
>,
+
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
+
///Compare and swap with the previous record by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub commit: std::option::Option<crate::com_atproto::repo::CommitMeta<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
+
impl std::fmt::Display for DeleteRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -1
crates/jacquard-api/src/com_atproto/repo/describe_repo.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DescribeRepoParams<'a> {
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DescribeRepoOutput<'a> {
#[serde(borrow)]
pub collections: Vec<jacquard_common::types::string::Nsid<'a>>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub did_doc: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
pub handle_is_correct: bool,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DescribeRepoParams<'a> {
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DescribeRepoOutput<'a> {
+
///List of all the collections (NSIDs) for which this repo contains at least one record.
#[serde(borrow)]
pub collections: Vec<jacquard_common::types::string::Nsid<'a>>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///The complete DID document for this account.
#[serde(borrow)]
pub did_doc: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
///Indicates if handle is currently valid (resolves bi-directionally)
pub handle_is_correct: bool,
+
}
+10 -2
crates/jacquard-api/src/com_atproto/repo/get_record.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordParams<'a> {
···
jacquard_common::types::string::Rkey<'a>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RecordNotFound")]
RecordNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordParams<'a> {
···
jacquard_common::types::string::Rkey<'a>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RecordNotFound")]
RecordNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/com_atproto/repo/import_repo.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct ImportRepoInput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct ImportRepoInput<'a> {}
+8 -1
crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListMissingBlobsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
#[serde(borrow)]
pub record_uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListMissingBlobsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
#[serde(borrow)]
pub record_uri: jacquard_common::types::string::AtUri<'a>,
+
}
+8 -1
crates/jacquard-api/src/com_atproto/repo/list_records.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListRecordsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub reverse: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub records: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListRecordsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub reverse: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub records: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
+
}
+17 -2
crates/jacquard-api/src/com_atproto/repo/put_record.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutRecordInput<'a> {
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(borrow)]
pub rkey: jacquard_common::types::string::RecordKey<
jacquard_common::types::string::Rkey<'a>,
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub validate: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
impl std::fmt::Display for PutRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PutRecordInput<'a> {
+
///The NSID of the record collection.
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
+
///The record to write.
#[serde(borrow)]
pub record: jacquard_common::types::value::Data<'a>,
+
///The handle or DID of the repo (aka, current account).
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
+
///The Record Key.
#[serde(borrow)]
pub rkey: jacquard_common::types::string::RecordKey<
jacquard_common::types::string::Rkey<'a>,
>,
+
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>,
+
///Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>,
+
///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub validate: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidSwap")]
InvalidSwap(std::option::Option<String>),
}
+
impl std::fmt::Display for PutRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/com_atproto/repo/strong_ref.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/repo/upload_blob.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub struct UploadBlobOutput<'a> {
#[serde(borrow)]
pub blob: jacquard_common::types::blob::Blob<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub struct UploadBlobOutput<'a> {
#[serde(borrow)]
pub blob: jacquard_common::types::blob::Blob<'a>,
+
}
+31 -24
crates/jacquard-api/src/com_atproto/server.rs
···
-
#[jacquard_derive::lexicon]
-
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
-
#[serde(rename_all = "camelCase")]
-
pub struct InviteCode<'a> {
-
pub available: i64,
-
#[serde(borrow)]
-
pub code: jacquard_common::CowStr<'a>,
-
pub created_at: jacquard_common::types::string::Datetime,
-
#[serde(borrow)]
-
pub created_by: jacquard_common::CowStr<'a>,
-
pub disabled: bool,
-
#[serde(borrow)]
-
pub for_account: jacquard_common::CowStr<'a>,
-
#[serde(borrow)]
-
pub uses: Vec<jacquard_common::types::value::Data<'a>>,
-
}
-
#[jacquard_derive::lexicon]
-
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
-
#[serde(rename_all = "camelCase")]
-
pub struct InviteCodeUse<'a> {
-
pub used_at: jacquard_common::types::string::Datetime,
-
#[serde(borrow)]
-
pub used_by: jacquard_common::types::string::Did<'a>,
-
}
pub mod activate_account;
pub mod check_account_status;
pub mod confirm_email;
···
pub mod reset_password;
pub mod revoke_app_password;
pub mod update_email;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod activate_account;
pub mod check_account_status;
pub mod confirm_email;
···
pub mod reset_password;
pub mod revoke_app_password;
pub mod update_email;
+
+
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
+
#[serde(rename_all = "camelCase")]
+
pub struct InviteCode<'a> {
+
pub available: i64,
+
#[serde(borrow)]
+
pub code: jacquard_common::CowStr<'a>,
+
pub created_at: jacquard_common::types::string::Datetime,
+
#[serde(borrow)]
+
pub created_by: jacquard_common::CowStr<'a>,
+
pub disabled: bool,
+
#[serde(borrow)]
+
pub for_account: jacquard_common::CowStr<'a>,
+
#[serde(borrow)]
+
pub uses: Vec<crate::com_atproto::server::InviteCodeUse<'a>>,
+
}
+
+
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
+
#[serde(rename_all = "camelCase")]
+
pub struct InviteCodeUse<'a> {
+
pub used_at: jacquard_common::types::string::Datetime,
+
#[serde(borrow)]
+
pub used_by: jacquard_common::types::string::Did<'a>,
+
}
+5
crates/jacquard-api/src/com_atproto/server/activate_account.rs
···
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+6 -1
crates/jacquard-api/src/com_atproto/server/check_account_status.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub repo_rev: jacquard_common::CowStr<'a>,
pub valid_did: bool,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub repo_rev: jacquard_common::CowStr<'a>,
pub valid_did: bool,
+
}
+9 -2
crates/jacquard-api/src/com_atproto/server/confirm_email.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidEmail")]
InvalidEmail(std::option::Option<String>),
}
impl std::fmt::Display for ConfirmEmailError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidEmail")]
InvalidEmail(std::option::Option<String>),
}
+
impl std::fmt::Display for ConfirmEmailError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+17 -2
crates/jacquard-api/src/com_atproto/server/create_account.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateAccountInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub did: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub email: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub invite_code: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub password: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub plc_op: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub recovery_key: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub verification_phone: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateAccountOutput<'a> {
#[serde(borrow)]
pub access_jwt: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub did_doc: std::option::Option<jacquard_common::types::value::Data<'a>>,
···
#[serde(borrow)]
pub refresh_jwt: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "IncompatibleDidDoc")]
IncompatibleDidDoc(std::option::Option<String>),
}
impl std::fmt::Display for CreateAccountError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateAccountInput<'a> {
+
///Pre-existing atproto DID, being imported to a new account.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub did: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub email: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Requested handle for the account.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub invite_code: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Initial account password. May need to meet instance-specific password strength requirements.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub password: std::option::Option<jacquard_common::CowStr<'a>>,
+
///A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub plc_op: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///DID PLC rotation key (aka, recovery key) to be included in PLC creation operation.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub recovery_key: std::option::Option<jacquard_common::CowStr<'a>>,
···
#[serde(borrow)]
pub verification_phone: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateAccountOutput<'a> {
#[serde(borrow)]
pub access_jwt: jacquard_common::CowStr<'a>,
+
///The DID of the new account.
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///Complete DID document.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub did_doc: std::option::Option<jacquard_common::types::value::Data<'a>>,
···
#[serde(borrow)]
pub refresh_jwt: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "IncompatibleDidDoc")]
IncompatibleDidDoc(std::option::Option<String>),
}
+
impl std::fmt::Display for CreateAccountError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+13 -2
crates/jacquard-api/src/com_atproto/server/create_app_password.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub privileged: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateAppPasswordInput<'a> {
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub privileged: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AccountTakedown")]
AccountTakedown(std::option::Option<String>),
}
impl std::fmt::Display for CreateAppPasswordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub privileged: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateAppPasswordInput<'a> {
+
///A short name for the App Password, to help distinguish them.
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
///If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub privileged: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AccountTakedown")]
AccountTakedown(std::option::Option<String>),
}
+
impl std::fmt::Display for CreateAppPasswordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/com_atproto/server/create_invite_code.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub for_account: std::option::Option<jacquard_common::types::string::Did<'a>>,
pub use_count: i64,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateInviteCodeOutput<'a> {
#[serde(borrow)]
pub code: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub for_account: std::option::Option<jacquard_common::types::string::Did<'a>>,
pub use_count: i64,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateInviteCodeOutput<'a> {
#[serde(borrow)]
pub code: jacquard_common::CowStr<'a>,
+
}
+8 -1
crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub codes: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub for_accounts: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>,
pub use_count: i64,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateInviteCodesOutput<'a> {
#[serde(borrow)]
pub codes: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub codes: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub for_accounts: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>,
pub use_count: i64,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateInviteCodesOutput<'a> {
#[serde(borrow)]
pub codes: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+13 -2
crates/jacquard-api/src/com_atproto/server/create_session.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateSessionInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub allow_takendown: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub auth_factor_token: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub identifier: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub password: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub refresh_jwt: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AuthFactorTokenRequired")]
AuthFactorTokenRequired(std::option::Option<String>),
}
impl std::fmt::Display for CreateSessionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateSessionInput<'a> {
+
///When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub allow_takendown: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub auth_factor_token: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Handle or other identifier supported by the server for the authenticating user.
#[serde(borrow)]
pub identifier: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub password: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub refresh_jwt: jacquard_common::CowStr<'a>,
+
///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AuthFactorTokenRequired")]
AuthFactorTokenRequired(std::option::Option<String>),
}
+
impl std::fmt::Display for CreateSessionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/com_atproto/server/deactivate_account.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeactivateAccountInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub delete_after: std::option::Option<jacquard_common::types::string::Datetime>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeactivateAccountInput<'a> {
+
///A recommendation to server as to how long they should hold onto the deactivated account before deleting.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub delete_after: std::option::Option<jacquard_common::types::string::Datetime>,
+
}
+9 -2
crates/jacquard-api/src/com_atproto/server/delete_account.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidToken")]
InvalidToken(std::option::Option<String>),
}
impl std::fmt::Display for DeleteAccountError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidToken")]
InvalidToken(std::option::Option<String>),
}
+
impl std::fmt::Display for DeleteAccountError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+5
crates/jacquard-api/src/com_atproto/server/delete_session.rs
···
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+13 -1
crates/jacquard-api/src/com_atproto/server/describe_server.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub email: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub terms_of_service: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DescribeServerOutput<'a> {
#[serde(borrow)]
pub available_user_domains: Vec<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub contact: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub invite_code_required: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub links: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub phone_verification_required: std::option::Option<bool>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub email: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub terms_of_service: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DescribeServerOutput<'a> {
+
///List of domain suffixes that can be used in account handles.
#[serde(borrow)]
pub available_user_domains: Vec<jacquard_common::CowStr<'a>>,
+
///Contact information
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub contact: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///If true, an invite code must be supplied to create an account on this instance.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub invite_code_required: std::option::Option<bool>,
+
///URLs of service policy documents.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub links: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///If true, a phone verification token must be supplied to create an account on this instance.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub phone_verification_required: std::option::Option<bool>,
+
}
+10 -2
crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInviteCodesParams {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub include_used: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub codes: Vec<crate::com_atproto::server::InviteCode<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateCreate")]
DuplicateCreate(std::option::Option<String>),
}
impl std::fmt::Display for GetAccountInviteCodesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInviteCodesParams {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub include_used: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub codes: Vec<crate::com_atproto::server::InviteCode<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateCreate")]
DuplicateCreate(std::option::Option<String>),
}
+
impl std::fmt::Display for GetAccountInviteCodesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/com_atproto/server/get_service_auth.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetServiceAuthParams<'a> {
···
#[serde(borrow)]
pub lxm: std::option::Option<jacquard_common::types::string::Nsid<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadExpiration")]
BadExpiration(std::option::Option<String>),
}
impl std::fmt::Display for GetServiceAuthError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetServiceAuthParams<'a> {
···
#[serde(borrow)]
pub lxm: std::option::Option<jacquard_common::types::string::Nsid<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "BadExpiration")]
BadExpiration(std::option::Option<String>),
}
+
impl std::fmt::Display for GetServiceAuthError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/com_atproto/server/get_session.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub email_confirmed: std::option::Option<bool>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub email_confirmed: std::option::Option<bool>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+10 -2
crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub privileged: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub passwords: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AccountTakedown")]
AccountTakedown(std::option::Option<String>),
}
impl std::fmt::Display for ListAppPasswordsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub privileged: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub passwords: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AccountTakedown")]
AccountTakedown(std::option::Option<String>),
}
+
impl std::fmt::Display for ListAppPasswordsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/com_atproto/server/refresh_session.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub refresh_jwt: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AccountTakedown")]
AccountTakedown(std::option::Option<String>),
}
impl std::fmt::Display for RefreshSessionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub refresh_jwt: jacquard_common::CowStr<'a>,
+
///Hosting status of the account. If not specified, then assume 'active'.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "AccountTakedown")]
AccountTakedown(std::option::Option<String>),
}
+
impl std::fmt::Display for RefreshSessionError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+5
crates/jacquard-api/src/com_atproto/server/request_account_delete.rs
···
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+5
crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs
···
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+6 -1
crates/jacquard-api/src/com_atproto/server/request_email_update.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestEmailUpdateOutput<'a> {
pub token_required: bool,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestEmailUpdateOutput<'a> {
pub token_required: bool,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/server/request_password_reset.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestPasswordResetInput<'a> {
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestPasswordResetInput<'a> {
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
+
}
+9 -1
crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReserveSigningKeyInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub did: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReserveSigningKeyOutput<'a> {
#[serde(borrow)]
pub signing_key: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReserveSigningKeyInput<'a> {
+
///The DID to reserve a key for.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub did: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReserveSigningKeyOutput<'a> {
+
///The public key for the reserved signing key, in did:key serialization.
#[serde(borrow)]
pub signing_key: jacquard_common::CowStr<'a>,
+
}
+9 -2
crates/jacquard-api/src/com_atproto/server/reset_password.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidToken")]
InvalidToken(std::option::Option<String>),
}
impl std::fmt::Display for ResetPasswordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub token: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidToken")]
InvalidToken(std::option::Option<String>),
}
+
impl std::fmt::Display for ResetPasswordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeAppPasswordInput<'a> {
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeAppPasswordInput<'a> {
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
}
+10 -2
crates/jacquard-api/src/com_atproto/server/update_email.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub email: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub email_auth_factor: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub token: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "TokenRequired")]
TokenRequired(std::option::Option<String>),
}
impl std::fmt::Display for UpdateEmailError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub email: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub email_auth_factor: std::option::Option<bool>,
+
///Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub token: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "TokenRequired")]
TokenRequired(std::option::Option<String>),
}
+
impl std::fmt::Display for UpdateEmailError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+29 -17
crates/jacquard-api/src/com_atproto/sync.rs
···
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum HostStatus<'a> {
Active,
···
Banned,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> HostStatus<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for HostStatus<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for HostStatus<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for HostStatus<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for HostStatus<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for HostStatus<'a>
where
'de: 'a,
···
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
-
}
-
pub mod get_blob;
-
pub mod get_blocks;
-
pub mod get_checkout;
-
pub mod get_head;
-
pub mod get_host_status;
-
pub mod get_latest_commit;
-
pub mod get_record;
-
pub mod get_repo;
-
pub mod get_repo_status;
-
pub mod list_blobs;
-
pub mod list_hosts;
-
pub mod list_repos;
-
pub mod list_repos_by_collection;
-
pub mod notify_of_update;
-
pub mod request_crawl;
-
pub mod subscribe_repos;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_blob;
+
pub mod get_blocks;
+
pub mod get_checkout;
+
pub mod get_head;
+
pub mod get_host_status;
+
pub mod get_latest_commit;
+
pub mod get_record;
+
pub mod get_repo;
+
pub mod get_repo_status;
+
pub mod list_blobs;
+
pub mod list_hosts;
+
pub mod list_repos;
+
pub mod list_repos_by_collection;
+
pub mod notify_of_update;
+
pub mod request_crawl;
+
pub mod subscribe_repos;
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum HostStatus<'a> {
Active,
···
Banned,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> HostStatus<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for HostStatus<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for HostStatus<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for HostStatus<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for HostStatus<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for HostStatus<'a>
where
'de: 'a,
···
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
+
}
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_blob.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBlobParams<'a> {
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for GetBlobError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBlobParams<'a> {
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for GetBlobError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_blocks.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocksParams<'a> {
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for GetBlocksError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocksParams<'a> {
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for GetBlocksError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/com_atproto/sync/get_checkout.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetCheckoutParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct GetCheckoutOutput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetCheckoutParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct GetCheckoutOutput<'a> {}
+10 -2
crates/jacquard-api/src/com_atproto/sync/get_head.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetHeadParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub root: jacquard_common::types::string::Cid<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HeadNotFound")]
HeadNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetHeadError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetHeadParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub root: jacquard_common::types::string::Cid<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HeadNotFound")]
HeadNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetHeadError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+12 -2
crates/jacquard-api/src/com_atproto/sync/get_host_status.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetHostStatusParams<'a> {
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetHostStatusOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub account_count: std::option::Option<i64>,
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seq: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HostNotFound")]
HostNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetHostStatusError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetHostStatusParams<'a> {
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetHostStatusOutput<'a> {
+
///Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub account_count: std::option::Option<i64>,
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
+
///Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seq: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HostNotFound")]
HostNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetHostStatusError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetLatestCommitParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
pub rev: jacquard_common::types::string::Tid,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for GetLatestCommitError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetLatestCommitParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
pub rev: jacquard_common::types::string::Tid,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for GetLatestCommitError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_record.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordParams<'a> {
···
jacquard_common::types::string::Rkey<'a>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for GetRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordParams<'a> {
···
jacquard_common::types::string::Rkey<'a>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_repo.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub since: std::option::Option<jacquard_common::types::string::Tid>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for GetRepoError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub since: std::option::Option<jacquard_common::types::string::Tid>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRepoError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+12 -2
crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoStatusParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub active: bool,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rev: std::option::Option<jacquard_common::types::string::Tid>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoNotFound")]
RepoNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetRepoStatusError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoStatusParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub active: bool,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///Optional field, the current rev of the repo, if active=true
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub rev: std::option::Option<jacquard_common::types::string::Tid>,
+
///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoNotFound")]
RepoNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRepoStatusError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/com_atproto/sync/list_blobs.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListBlobsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub since: std::option::Option<jacquard_common::types::string::Tid>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
impl std::fmt::Display for ListBlobsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListBlobsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub since: std::option::Option<jacquard_common::types::string::Tid>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoDeactivated")]
RepoDeactivated(std::option::Option<String>),
}
+
impl std::fmt::Display for ListBlobsError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+11 -1
crates/jacquard-api/src/com_atproto/sync/list_hosts.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Host<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub account_count: std::option::Option<i64>,
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seq: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListHostsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub hosts: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Host<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub account_count: std::option::Option<i64>,
+
///hostname of server; not a URL (no scheme)
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
+
///Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub seq: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>,
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListHostsParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.
#[serde(borrow)]
pub hosts: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+10 -1
crates/jacquard-api/src/com_atproto/sync/list_repos.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListReposParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub repos: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub active: std::option::Option<bool>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub head: jacquard_common::types::string::Cid<'a>,
pub rev: jacquard_common::types::string::Tid,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListReposParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub repos: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub active: std::option::Option<bool>,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///Current repo commit CID
#[serde(borrow)]
pub head: jacquard_common::types::string::Cid<'a>,
pub rev: jacquard_common::types::string::Tid,
+
///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+8 -1
crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListReposByCollectionParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub repos: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Repo<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListReposByCollectionParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub repos: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Repo<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
}
+7 -1
crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct NotifyOfUpdateInput<'a> {
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct NotifyOfUpdateInput<'a> {
+
///Hostname of the current service (usually a PDS) that is notifying of update.
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
+
}
+10 -2
crates/jacquard-api/src/com_atproto/sync/request_crawl.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestCrawlInput<'a> {
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HostBanned")]
HostBanned(std::option::Option<String>),
}
impl std::fmt::Display for RequestCrawlError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestCrawlInput<'a> {
+
///Hostname of the current service (eg, PDS) that is requesting to be crawled.
#[serde(borrow)]
pub hostname: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "HostBanned")]
HostBanned(std::option::Option<String>),
}
+
impl std::fmt::Display for RequestCrawlError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+37 -3
crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs
···
///Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Account<'a> {
pub active: bool,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
pub seq: i64,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
pub time: jacquard_common::types::string::Datetime,
}
///Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Commit<'a> {
#[serde(borrow)]
pub blobs: Vec<jacquard_common::types::cid::CidLink<'a>>,
pub blocks: bytes::Bytes,
#[serde(borrow)]
pub commit: jacquard_common::types::cid::CidLink<'a>,
#[serde(borrow)]
-
pub ops: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub prev_data: std::option::Option<jacquard_common::types::cid::CidLink<'a>>,
pub rebase: bool,
#[serde(borrow)]
pub repo: jacquard_common::types::string::Did<'a>,
pub rev: jacquard_common::types::string::Tid,
pub seq: i64,
pub since: jacquard_common::types::string::Tid,
pub time: jacquard_common::types::string::Datetime,
pub too_big: bool,
}
///Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Identity<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>,
pub seq: i64,
pub time: jacquard_common::types::string::Datetime,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubscribeReposParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub cursor: std::option::Option<i64>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "#info")]
Info(Box<jacquard_common::types::value::Data<'a>>),
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ConsumerTooSlow")]
ConsumerTooSlow(std::option::Option<String>),
}
impl std::fmt::Display for SubscribeReposError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
}
///A repo operation, ie a mutation of a single record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct RepoOp<'a> {
#[serde(borrow)]
pub action: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub cid: jacquard_common::types::cid::CidLink<'a>,
#[serde(borrow)]
pub path: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub prev: std::option::Option<jacquard_common::types::cid::CidLink<'a>>,
}
///Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Sync<'a> {
pub blocks: bytes::Bytes,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
pub seq: i64,
pub time: jacquard_common::types::string::Datetime,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Account<'a> {
+
///Indicates that the account has a repository which can be fetched from the host that emitted this event.
pub active: bool,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
pub seq: i64,
+
///If active=false, this optional field indicates a reason for why the account is not active.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
pub time: jacquard_common::types::string::Datetime,
}
+
///Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Commit<'a> {
#[serde(borrow)]
pub blobs: Vec<jacquard_common::types::cid::CidLink<'a>>,
+
///CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list.
pub blocks: bytes::Bytes,
+
///Repo commit object CID.
#[serde(borrow)]
pub commit: jacquard_common::types::cid::CidLink<'a>,
#[serde(borrow)]
+
pub ops: Vec<crate::com_atproto::sync::subscribe_repos::RepoOp<'a>>,
+
///The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub prev_data: std::option::Option<jacquard_common::types::cid::CidLink<'a>>,
+
///DEPRECATED -- unused
pub rebase: bool,
+
///The repo this event comes from. Note that all other message types name this field 'did'.
#[serde(borrow)]
pub repo: jacquard_common::types::string::Did<'a>,
+
///The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event.
pub rev: jacquard_common::types::string::Tid,
+
///The stream sequence number of this message.
pub seq: i64,
+
///The rev of the last emitted commit from this repo (if any).
pub since: jacquard_common::types::string::Tid,
+
///Timestamp of when this message was originally broadcast.
pub time: jacquard_common::types::string::Datetime,
+
///DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.
pub too_big: bool,
}
+
///Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct Identity<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>,
pub seq: i64,
pub time: jacquard_common::types::string::Datetime,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubscribeReposParams {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub cursor: std::option::Option<i64>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "#info")]
Info(Box<jacquard_common::types::value::Data<'a>>),
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "ConsumerTooSlow")]
ConsumerTooSlow(std::option::Option<String>),
}
+
impl std::fmt::Display for SubscribeReposError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
}
+
///A repo operation, ie a mutation of a single record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct RepoOp<'a> {
#[serde(borrow)]
pub action: jacquard_common::CowStr<'a>,
+
///For creates and updates, the new record CID. For deletions, null.
#[serde(borrow)]
pub cid: jacquard_common::types::cid::CidLink<'a>,
#[serde(borrow)]
pub path: jacquard_common::CowStr<'a>,
+
///For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub prev: std::option::Option<jacquard_common::types::cid::CidLink<'a>>,
}
+
///Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Sync<'a> {
+
///CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'.
pub blocks: bytes::Bytes,
+
///The account this repo event corresponds to. Must match that in the commit object.
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///The rev of the commit. This value must match that in the commit object.
#[serde(borrow)]
pub rev: jacquard_common::CowStr<'a>,
+
///The stream sequence number of this message.
pub seq: i64,
+
///Timestamp of when this message was originally broadcast.
pub time: jacquard_common::types::string::Datetime,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/temp.rs
···
pub mod add_reserved_handle;
pub mod check_handle_availability;
pub mod check_signup_queue;
pub mod dereference_scope;
pub mod fetch_labels;
pub mod request_phone_verification;
-
pub mod revoke_account_credentials;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod add_reserved_handle;
pub mod check_handle_availability;
pub mod check_signup_queue;
pub mod dereference_scope;
pub mod fetch_labels;
pub mod request_phone_verification;
+
pub mod revoke_account_credentials;
+7 -1
crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub handle: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct AddReservedHandleOutput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub handle: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct AddReservedHandleOutput<'a> {}
+18 -3
crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CheckHandleAvailabilityParams<'a> {
···
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CheckHandleAvailabilityOutput<'a> {
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub result: CheckHandleAvailabilityOutputRecordResult<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "InvalidEmail")]
InvalidEmail(std::option::Option<String>),
}
impl std::fmt::Display for CheckHandleAvailabilityError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
}
///Indicates the provided handle is available.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResultUnavailable<'a> {
#[serde(borrow)]
-
pub suggestions: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Suggestion<'a> {
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub method: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CheckHandleAvailabilityParams<'a> {
···
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CheckHandleAvailabilityOutput<'a> {
+
///Echo of the input handle.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub result: CheckHandleAvailabilityOutputRecordResult<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "InvalidEmail")]
InvalidEmail(std::option::Option<String>),
}
+
impl std::fmt::Display for CheckHandleAvailabilityError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
}
+
///Indicates the provided handle is available.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ResultUnavailable<'a> {
+
///List of suggested handles based on the provided inputs.
#[serde(borrow)]
+
pub suggestions: Vec<
+
crate::com_atproto::temp::check_handle_availability::Suggestion<'a>,
+
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Suggestion<'a> {
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
///Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.
#[serde(borrow)]
pub method: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub estimated_time_ms: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub place_in_queue: std::option::Option<i64>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub estimated_time_ms: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub place_in_queue: std::option::Option<i64>,
+
}
+11 -2
crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DereferenceScopeParams<'a> {
#[serde(borrow)]
pub scope: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DereferenceScopeOutput<'a> {
#[serde(borrow)]
pub scope: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidScopeReference")]
InvalidScopeReference(std::option::Option<String>),
}
impl std::fmt::Display for DereferenceScopeError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DereferenceScopeParams<'a> {
#[serde(borrow)]
pub scope: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DereferenceScopeOutput<'a> {
+
///The full oauth permission scope
#[serde(borrow)]
pub scope: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "InvalidScopeReference")]
InvalidScopeReference(std::option::Option<String>),
}
+
impl std::fmt::Display for DereferenceScopeError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FetchLabelsParams {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub since: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FetchLabelsOutput<'a> {
#[serde(borrow)]
pub labels: Vec<crate::com_atproto::label::Label<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FetchLabelsParams {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub since: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FetchLabelsOutput<'a> {
#[serde(borrow)]
pub labels: Vec<crate::com_atproto::label::Label<'a>>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestPhoneVerificationInput<'a> {
#[serde(borrow)]
pub phone_number: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RequestPhoneVerificationInput<'a> {
#[serde(borrow)]
pub phone_number: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeAccountCredentialsInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::ident::AtIdentifier<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeAccountCredentialsInput<'a> {
#[serde(borrow)]
pub account: jacquard_common::types::ident::AtIdentifier<'a>,
+
}
+6 -1
crates/jacquard-api/src/lib.rs
···
pub mod app_bsky;
pub mod chat_bsky;
pub mod com_atproto;
-
pub mod tools_ozone;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod app_bsky;
pub mod chat_bsky;
pub mod com_atproto;
+
pub mod tools_ozone;
+6 -1
crates/jacquard-api/src/tools_ozone.rs
···
pub mod communication;
pub mod hosting;
pub mod moderation;
···
pub mod setting;
pub mod signature;
pub mod team;
-
pub mod verification;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
pub mod communication;
pub mod hosting;
pub mod moderation;
···
pub mod setting;
pub mod signature;
pub mod team;
+
pub mod verification;
+16 -5
crates/jacquard-api/src/tools_ozone/communication.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct TemplateView<'a> {
#[serde(borrow)]
pub content_markdown: jacquard_common::CowStr<'a>,
pub created_at: jacquard_common::types::string::Datetime,
pub disabled: bool,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub lang: std::option::Option<jacquard_common::types::string::Language>,
#[serde(borrow)]
pub last_updated_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject: std::option::Option<jacquard_common::CowStr<'a>>,
pub updated_at: jacquard_common::types::string::Datetime,
-
}
-
pub mod create_template;
-
pub mod delete_template;
-
pub mod list_templates;
-
pub mod update_template;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod create_template;
+
pub mod delete_template;
+
pub mod list_templates;
+
pub mod update_template;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct TemplateView<'a> {
+
///Subject of the message, used in emails.
#[serde(borrow)]
pub content_markdown: jacquard_common::CowStr<'a>,
pub created_at: jacquard_common::types::string::Datetime,
pub disabled: bool,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
+
///Message language.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub lang: std::option::Option<jacquard_common::types::string::Language>,
+
///DID of the user who last updated the template.
#[serde(borrow)]
pub last_updated_by: jacquard_common::types::string::Did<'a>,
+
///Name of the template.
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
///Content of the template, can contain markdown and variable placeholders.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject: std::option::Option<jacquard_common::CowStr<'a>>,
pub updated_at: jacquard_common::types::string::Datetime,
+
}
+15 -2
crates/jacquard-api/src/tools_ozone/communication/create_template.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateTemplateInput<'a> {
#[serde(borrow)]
pub content_markdown: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub lang: std::option::Option<jacquard_common::types::string::Language>,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub subject: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::communication::TemplateView<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateTemplateName")]
DuplicateTemplateName(std::option::Option<String>),
}
impl std::fmt::Display for CreateTemplateError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct CreateTemplateInput<'a> {
+
///Content of the template, markdown supported, can contain variable placeholders.
#[serde(borrow)]
pub content_markdown: jacquard_common::CowStr<'a>,
+
///DID of the user who is creating the template.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
+
///Message language.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub lang: std::option::Option<jacquard_common::types::string::Language>,
+
///Name of the template.
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
///Subject of the message, used in emails.
#[serde(borrow)]
pub subject: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::communication::TemplateView<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateTemplateName")]
DuplicateTemplateName(std::option::Option<String>),
}
+
impl std::fmt::Display for CreateTemplateError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/tools_ozone/communication/delete_template.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteTemplateInput<'a> {
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteTemplateInput<'a> {
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
+
}
+6 -1
crates/jacquard-api/src/tools_ozone/communication/list_templates.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub communication_templates: Vec<
crate::tools_ozone::communication::TemplateView<'a>,
>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub communication_templates: Vec<
crate::tools_ozone::communication::TemplateView<'a>,
>,
+
}
+16 -2
crates/jacquard-api/src/tools_ozone/communication/update_template.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateTemplateInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub content_markdown: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub disabled: std::option::Option<bool>,
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub lang: std::option::Option<jacquard_common::types::string::Language>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub name: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub updated_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::communication::TemplateView<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateTemplateName")]
DuplicateTemplateName(std::option::Option<String>),
}
impl std::fmt::Display for UpdateTemplateError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateTemplateInput<'a> {
+
///Content of the template, markdown supported, can contain variable placeholders.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub content_markdown: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub disabled: std::option::Option<bool>,
+
///ID of the template to be updated.
#[serde(borrow)]
pub id: jacquard_common::CowStr<'a>,
+
///Message language.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub lang: std::option::Option<jacquard_common::types::string::Language>,
+
///Name of the template.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub name: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Subject of the message, used in emails.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject: std::option::Option<jacquard_common::CowStr<'a>>,
+
///DID of the user who is updating the template.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub updated_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::communication::TemplateView<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateTemplateName")]
DuplicateTemplateName(std::option::Option<String>),
}
+
impl std::fmt::Display for UpdateTemplateError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/tools_ozone/hosting.rs
···
-
pub mod get_account_history;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_account_history;
+13 -1
crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub details: EventRecordDetails<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountHistoryParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub events: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct PasswordUpdated<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub email: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub details: EventRecordDetails<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountHistoryParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub events: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct PasswordUpdated<'a> {}
+164 -32
crates/jacquard-api/src/tools_ozone/moderation.rs
···
///Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AccountEvent<'a> {
pub active: bool,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
···
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
pub timestamp: jacquard_common::types::string::Datetime,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
///Statistics about a particular account subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AccountStats<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub appeal_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub escalate_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub report_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub suspend_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takedown_count: std::option::Option<i64>,
}
///Age assurance info coming directly from users. Only works on DID subjects.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceEvent<'a> {
#[serde(borrow)]
pub attempt_id: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
///Age assurance status override by moderators. Only works on DID subjects.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceOverrideEvent<'a> {
#[serde(borrow)]
pub comment: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub mime_type: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub moderation: std::option::Option<jacquard_common::types::value::Data<'a>>,
pub size: i64,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub tombstone: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub height: i64,
pub width: i64,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventAcknowledge<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub acknowledge_account_subjects: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Add a comment to a subject. An empty comment will clear any previously set sticky comment.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub sticky: std::option::Option<bool>,
}
///Divert a record's blobs to a 3rd party service for further scanning/tagging
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Keep a log of outgoing email to a user
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventEmail<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub content: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub subject_line: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Apply/Negate labels on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub create_label_vals: Vec<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_in_hours: std::option::Option<i64>,
#[serde(borrow)]
pub negate_label_vals: Vec<jacquard_common::CowStr<'a>>,
}
///Mute incoming reports on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub duration_in_hours: i64,
}
///Mute incoming reports from an account
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_in_hours: std::option::Option<i64>,
}
///Set priority score of the subject. Higher score means higher priority.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub score: i64,
}
///Report a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub is_reporter_muted: std::option::Option<bool>,
#[serde(borrow)]
pub report_type: crate::com_atproto::moderation::ReasonType<'a>,
}
///Resolve appeal on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventResolveAppeal<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Revert take down action on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventReverseTakedown<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Add/Remove a tag on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventTag<'a> {
#[serde(borrow)]
pub add: Vec<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub remove: Vec<jacquard_common::CowStr<'a>>,
}
///Take down a subject permanently or temporarily
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventTakedown<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub acknowledge_account_subjects: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_in_hours: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub policies: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
///Unmute action on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventUnmute<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
///Unmute incoming reports from an account
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventUnmuteReporter<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub id: i64,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub subject: ModEventViewRecordSubject<'a>,
#[serde(borrow)]
···
#[serde(borrow)]
pub subject_handle: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "chat.bsky.convo.defs#messageRef")]
DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub id: i64,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub subject: ModEventViewDetailRecordSubject<'a>,
#[serde(borrow)]
-
pub subject_blobs: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModTool<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Moderation<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub subject_status: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModerationDetail<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub subject_status: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
///Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub op: jacquard_common::CowStr<'a>,
pub timestamp: jacquard_common::types::string::Datetime,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
pub indexed_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
-
pub moderation: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub repo: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordViewDetail<'a> {
#[serde(borrow)]
-
pub blobs: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub cid: jacquard_common::types::string::Cid<'a>,
pub indexed_at: jacquard_common::types::string::Datetime,
···
#[serde(borrow)]
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(borrow)]
-
pub moderation: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub repo: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
///Statistics about a set of record subject items
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordsStats<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub appealed_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub escalated_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub pending_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub processed_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub reported_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub subject_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takendown_count: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub total_reports: std::option::Option<i64>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub invites_disabled: std::option::Option<bool>,
#[serde(borrow)]
-
pub moderation: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub related_records: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
Vec<crate::com_atproto::admin::ThreatSignature<'a>>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(borrow)]
-
pub moderation: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub related_records: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
Vec<crate::com_atproto::admin::ThreatSignature<'a>>,
>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReporterStats<'a> {
pub account_report_count: i64,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
pub labeled_account_count: i64,
pub labeled_record_count: i64,
pub record_report_count: i64,
pub reported_account_count: i64,
pub reported_record_count: i64,
pub takendown_account_count: i64,
pub takendown_record_count: i64,
}
///Account credentials revocation by moderators. Only works on DID subjects.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeAccountCredentialsEvent<'a> {
#[serde(borrow)]
pub comment: jacquard_common::CowStr<'a>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum SubjectReviewState<'a> {
ReviewOpen,
···
ReviewNone,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> SubjectReviewState<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for SubjectReviewState<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for SubjectReviewState<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for SubjectReviewState<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for SubjectReviewState<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for SubjectReviewState<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubjectStatusView<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub account_stats: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub age_assurance_state: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub age_assurance_updated_by: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub appealed: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub hosting: std::option::Option<SubjectStatusViewRecordHosting<'a>>,
pub id: i64,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub last_appealed_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub mute_until: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub priority_score: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub records_stats: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
-
pub review_state: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub subject: SubjectStatusViewRecordSubject<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takendown: std::option::Option<bool>,
pub updated_at: jacquard_common::types::string::Datetime,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "chat.bsky.convo.defs#messageRef")]
DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>),
}
///Detailed view of a subject. For record subjects, the author's repo and profile will be returned.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub profile: std::option::Option<SubjectViewRecordProfile<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub record: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub repo: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub status: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub subject: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub r#type: crate::com_atproto::moderation::SubjectType<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub height: i64,
pub length: i64,
pub width: i64,
-
}
-
pub mod emit_event;
-
pub mod get_account_timeline;
-
pub mod get_event;
-
pub mod get_record;
-
pub mod get_records;
-
pub mod get_repo;
-
pub mod get_reporter_stats;
-
pub mod get_repos;
-
pub mod get_subjects;
-
pub mod query_events;
-
pub mod query_statuses;
-
pub mod search_repos;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod emit_event;
+
pub mod get_account_timeline;
+
pub mod get_event;
+
pub mod get_record;
+
pub mod get_records;
+
pub mod get_repo;
+
pub mod get_reporter_stats;
+
pub mod get_repos;
+
pub mod get_subjects;
+
pub mod query_events;
+
pub mod query_statuses;
+
pub mod search_repos;
+
///Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AccountEvent<'a> {
+
///Indicates that the account has a repository which can be fetched from the host that emitted this event.
pub active: bool,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
···
pub status: std::option::Option<jacquard_common::CowStr<'a>>,
pub timestamp: jacquard_common::types::string::Datetime,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
+
///Statistics about a particular account subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AccountStats<'a> {
+
///Total number of appeals against a moderation action on the account
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub appeal_count: std::option::Option<i64>,
+
///Number of times the account was escalated
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub escalate_count: std::option::Option<i64>,
+
///Total number of reports on the account
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub report_count: std::option::Option<i64>,
+
///Number of times the account was suspended
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub suspend_count: std::option::Option<i64>,
+
///Number of times the account was taken down
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takedown_count: std::option::Option<i64>,
}
+
///Age assurance info coming directly from users. Only works on DID subjects.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceEvent<'a> {
+
///The unique identifier for this instance of the age assurance flow, in UUID format.
#[serde(borrow)]
pub attempt_id: jacquard_common::CowStr<'a>,
+
///The IP address used when completing the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The user agent used when completing the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The date and time of this write operation.
pub created_at: jacquard_common::types::string::Datetime,
+
///The IP address used when initiating the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The user agent used when initiating the AA flow.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The status of the age assurance process.
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
+
///Age assurance status override by moderators. Only works on DID subjects.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AgeAssuranceOverrideEvent<'a> {
+
///Comment describing the reason for the override.
#[serde(borrow)]
pub comment: jacquard_common::CowStr<'a>,
+
///The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.
#[serde(borrow)]
pub status: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub mime_type: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub moderation: std::option::Option<crate::tools_ozone::moderation::Moderation<'a>>,
pub size: i64,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub tombstone: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub height: i64,
pub width: i64,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventAcknowledge<'a> {
+
///If true, all other reports on content authored by this account will be resolved (acknowledged).
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub acknowledge_account_subjects: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Add a comment to a subject. An empty comment will clear any previously set sticky comment.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Make the comment persistent on the subject
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub sticky: std::option::Option<bool>,
}
+
///Divert a record's blobs to a 3rd party service for further scanning/tagging
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Keep a log of outgoing email to a user
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventEmail<'a> {
+
///Additional comment about the outgoing comm.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The content of the email sent to the user.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub content: std::option::Option<jacquard_common::CowStr<'a>>,
+
///The subject line of the email sent to the user.
#[serde(borrow)]
pub subject_line: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Apply/Negate labels on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub create_label_vals: Vec<jacquard_common::CowStr<'a>>,
+
///Indicates how long the label will remain on the subject. Only applies on labels that are being added.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_in_hours: std::option::Option<i64>,
#[serde(borrow)]
pub negate_label_vals: Vec<jacquard_common::CowStr<'a>>,
}
+
///Mute incoming reports on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Indicates how long the subject should remain muted.
pub duration_in_hours: i64,
}
+
///Mute incoming reports from an account
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Indicates how long the account should remain muted. Falsy value here means a permanent mute.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_in_hours: std::option::Option<i64>,
}
+
///Set priority score of the subject. Higher score means higher priority.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub score: i64,
}
+
///Report a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub is_reporter_muted: std::option::Option<bool>,
#[serde(borrow)]
pub report_type: crate::com_atproto::moderation::ReasonType<'a>,
}
+
///Resolve appeal on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventResolveAppeal<'a> {
+
///Describe resolution.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Revert take down action on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventReverseTakedown<'a> {
+
///Describe reasoning behind the reversal.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Add/Remove a tag on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventTag<'a> {
+
///Tags to be added to the subject. If already exists, won't be duplicated.
#[serde(borrow)]
pub add: Vec<jacquard_common::CowStr<'a>>,
+
///Additional comment about added/removed tags.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.
#[serde(borrow)]
pub remove: Vec<jacquard_common::CowStr<'a>>,
}
+
///Take down a subject permanently or temporarily
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventTakedown<'a> {
+
///If true, all other reports on content authored by this account will be resolved (acknowledged).
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub acknowledge_account_subjects: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Indicates how long the takedown should be in effect before automatically expiring.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub duration_in_hours: std::option::Option<i64>,
+
///Names/Keywords of the policies that drove the decision.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub policies: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
///Unmute action on a subject
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventUnmute<'a> {
+
///Describe reasoning behind the reversal.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
///Unmute incoming reports from an account
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModEventUnmuteReporter<'a> {
+
///Describe reasoning behind the reversal.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub id: i64,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub mod_tool: std::option::Option<crate::tools_ozone::moderation::ModTool<'a>>,
#[serde(borrow)]
pub subject: ModEventViewRecordSubject<'a>,
#[serde(borrow)]
···
#[serde(borrow)]
pub subject_handle: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "chat.bsky.convo.defs#messageRef")]
DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub id: i64,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub mod_tool: std::option::Option<crate::tools_ozone::moderation::ModTool<'a>>,
#[serde(borrow)]
pub subject: ModEventViewDetailRecordSubject<'a>,
#[serde(borrow)]
+
pub subject_blobs: Vec<crate::tools_ozone::moderation::BlobView<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModTool<'a> {
+
///Additional arbitrary metadata about the source
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///Name/identifier of the source (e.g., 'automod', 'ozone/workspace')
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Moderation<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub subject_status: std::option::Option<
+
crate::tools_ozone::moderation::SubjectStatusView<'a>,
+
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ModerationDetail<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub subject_status: std::option::Option<
+
crate::tools_ozone::moderation::SubjectStatusView<'a>,
+
>,
}
+
///Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub op: jacquard_common::CowStr<'a>,
pub timestamp: jacquard_common::types::string::Datetime,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cid: jacquard_common::types::string::Cid<'a>,
pub indexed_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
+
pub moderation: crate::tools_ozone::moderation::Moderation<'a>,
#[serde(borrow)]
+
pub repo: crate::tools_ozone::moderation::RepoView<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordViewDetail<'a> {
#[serde(borrow)]
+
pub blobs: Vec<crate::tools_ozone::moderation::BlobView<'a>>,
#[serde(borrow)]
pub cid: jacquard_common::types::string::Cid<'a>,
pub indexed_at: jacquard_common::types::string::Datetime,
···
#[serde(borrow)]
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(borrow)]
+
pub moderation: crate::tools_ozone::moderation::ModerationDetail<'a>,
#[serde(borrow)]
+
pub repo: crate::tools_ozone::moderation::RepoView<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
///Statistics about a set of record subject items
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RecordsStats<'a> {
+
///Number of items that were appealed at least once
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub appealed_count: std::option::Option<i64>,
+
///Number of items that were escalated at least once
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub escalated_count: std::option::Option<i64>,
+
///Number of item currently in "reviewOpen" or "reviewEscalated" state
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub pending_count: std::option::Option<i64>,
+
///Number of item currently in "reviewNone" or "reviewClosed" state
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub processed_count: std::option::Option<i64>,
+
///Number of items that were reported at least once
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub reported_count: std::option::Option<i64>,
+
///Total number of item in the set
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub subject_count: std::option::Option<i64>,
+
///Number of item currently taken down
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takendown_count: std::option::Option<i64>,
+
///Cumulative sum of the number of reports on the items in the set
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub total_reports: std::option::Option<i64>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub invites_disabled: std::option::Option<bool>,
#[serde(borrow)]
+
pub moderation: crate::tools_ozone::moderation::Moderation<'a>,
#[serde(borrow)]
pub related_records: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
Vec<crate::com_atproto::admin::ThreatSignature<'a>>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>,
#[serde(borrow)]
+
pub moderation: crate::tools_ozone::moderation::ModerationDetail<'a>,
#[serde(borrow)]
pub related_records: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
Vec<crate::com_atproto::admin::ThreatSignature<'a>>,
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ReporterStats<'a> {
+
///The total number of reports made by the user on accounts.
pub account_report_count: i64,
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
+
///The total number of accounts labeled as a result of the user's reports.
pub labeled_account_count: i64,
+
///The total number of records labeled as a result of the user's reports.
pub labeled_record_count: i64,
+
///The total number of reports made by the user on records.
pub record_report_count: i64,
+
///The total number of accounts reported by the user.
pub reported_account_count: i64,
+
///The total number of records reported by the user.
pub reported_record_count: i64,
+
///The total number of accounts taken down as a result of the user's reports.
pub takendown_account_count: i64,
+
///The total number of records taken down as a result of the user's reports.
pub takendown_record_count: i64,
}
+
///Account credentials revocation by moderators. Only works on DID subjects.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeAccountCredentialsEvent<'a> {
+
///Comment describing the reason for the revocation.
#[serde(borrow)]
pub comment: jacquard_common::CowStr<'a>,
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum SubjectReviewState<'a> {
ReviewOpen,
···
ReviewNone,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> SubjectReviewState<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for SubjectReviewState<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for SubjectReviewState<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for SubjectReviewState<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for SubjectReviewState<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for SubjectReviewState<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SubjectStatusView<'a> {
+
///Statistics related to the account subject
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub account_stats: std::option::Option<
+
crate::tools_ozone::moderation::AccountStats<'a>,
+
>,
+
///Current age assurance state of the subject.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub age_assurance_state: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Whether or not the last successful update to age assurance was made by the user or admin.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub age_assurance_updated_by: std::option::Option<jacquard_common::CowStr<'a>>,
+
///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 = "std::option::Option::is_none")]
pub appealed: std::option::Option<bool>,
+
///Sticky comment on the subject.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Timestamp referencing the first moderation status impacting event was emitted on the subject
pub created_at: jacquard_common::types::string::Datetime,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub hosting: std::option::Option<SubjectStatusViewRecordHosting<'a>>,
pub id: i64,
+
///Timestamp referencing when the author of the subject appealed a moderation action
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub last_appealed_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub mute_until: std::option::Option<jacquard_common::types::string::Datetime>,
+
///Numeric value representing the level of priority. Higher score means higher priority.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub priority_score: std::option::Option<i64>,
+
///Statistics related to the record subjects authored by the subject's account
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub records_stats: std::option::Option<
+
crate::tools_ozone::moderation::RecordsStats<'a>,
+
>,
#[serde(borrow)]
+
pub review_state: crate::tools_ozone::moderation::SubjectReviewState<'a>,
#[serde(borrow)]
pub subject: SubjectStatusViewRecordSubject<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takendown: std::option::Option<bool>,
+
///Timestamp referencing when the last update was made to the moderation status of the subject
pub updated_at: jacquard_common::types::string::Datetime,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "chat.bsky.convo.defs#messageRef")]
DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>),
}
+
///Detailed view of a subject. For record subjects, the author's repo and profile will be returned.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub profile: std::option::Option<SubjectViewRecordProfile<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub record: std::option::Option<
+
crate::tools_ozone::moderation::RecordViewDetail<'a>,
+
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub repo: std::option::Option<crate::tools_ozone::moderation::RepoViewDetail<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub status: std::option::Option<
+
crate::tools_ozone::moderation::SubjectStatusView<'a>,
+
>,
#[serde(borrow)]
pub subject: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub r#type: crate::com_atproto::moderation::SubjectType<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
pub height: i64,
pub length: i64,
pub width: i64,
+
}
+13 -2
crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub created_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub event: EmitEventInputRecordEvent<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub external_id: std::option::Option<jacquard_common::CowStr<'a>>,
···
Vec<jacquard_common::types::string::Cid<'a>>,
>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
Box<crate::tools_ozone::moderation::RevokeAccountCredentialsEvent<'a>>,
),
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.repo.strongRef")]
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::ModEventView<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateExternalId")]
DuplicateExternalId(std::option::Option<String>),
}
impl std::fmt::Display for EmitEventError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub created_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
pub event: EmitEventInputRecordEvent<'a>,
+
///An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub external_id: std::option::Option<jacquard_common::CowStr<'a>>,
···
Vec<jacquard_common::types::string::Cid<'a>>,
>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
Box<crate::tools_ozone::moderation::RevokeAccountCredentialsEvent<'a>>,
),
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "com.atproto.repo.strongRef")]
StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>),
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::ModEventView<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "DuplicateExternalId")]
DuplicateExternalId(std::option::Option<String>),
}
+
impl std::fmt::Display for EmitEventError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+15 -3
crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountTimelineParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub timeline: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoNotFound")]
RepoNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetAccountTimelineError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub day: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub summary: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub event_subject_type: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub event_type: jacquard_common::CowStr<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountTimelineParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub timeline: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoNotFound")]
RepoNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetAccountTimelineError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub day: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub summary: Vec<
+
crate::tools_ozone::moderation::get_account_timeline::TimelineItemSummary<'a>,
+
>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub event_subject_type: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub event_type: jacquard_common::CowStr<'a>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_event.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetEventParams {
pub id: i64,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetEventParams {
pub id: i64,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>,
+
}
+10 -2
crates/jacquard-api/src/tools_ozone/moderation/get_record.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::RecordViewDetail<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RecordNotFound")]
RecordNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordParams<'a> {
···
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::RecordViewDetail<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RecordNotFound")]
RecordNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRecordError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_records.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordsParams<'a> {
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordsOutput<'a> {
#[serde(borrow)]
pub records: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordsParams<'a> {
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRecordsOutput<'a> {
#[serde(borrow)]
pub records: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+10 -2
crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::RepoViewDetail<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoNotFound")]
RepoNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetRepoError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoParams<'a> {
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::moderation::RepoViewDetail<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RepoNotFound")]
RepoNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetRepoError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReporterStatsParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReporterStatsOutput<'a> {
#[serde(borrow)]
pub stats: Vec<crate::tools_ozone::moderation::ReporterStats<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReporterStatsParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReporterStatsOutput<'a> {
#[serde(borrow)]
pub stats: Vec<crate::tools_ozone::moderation::ReporterStats<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReposParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReposOutput<'a> {
#[serde(borrow)]
pub repos: Vec<jacquard_common::types::value::Data<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReposParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetReposOutput<'a> {
#[serde(borrow)]
pub repos: Vec<jacquard_common::types::value::Data<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectsParams<'a> {
#[serde(borrow)]
pub subjects: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectsOutput<'a> {
#[serde(borrow)]
pub subjects: Vec<crate::tools_ozone::moderation::SubjectView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectsParams<'a> {
#[serde(borrow)]
pub subjects: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectsOutput<'a> {
#[serde(borrow)]
pub subjects: Vec<crate::tools_ozone::moderation::SubjectView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/query_events.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryEventsParams<'a> {
···
#[serde(borrow)]
pub types: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub events: Vec<crate::tools_ozone::moderation::ModEventView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryEventsParams<'a> {
···
#[serde(borrow)]
pub types: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub events: Vec<crate::tools_ozone::moderation::ModEventView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryStatusesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takendown: std::option::Option<bool>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub subject_statuses: Vec<crate::tools_ozone::moderation::SubjectStatusView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryStatusesParams<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub takendown: std::option::Option<bool>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub subject_statuses: Vec<crate::tools_ozone::moderation::SubjectStatusView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchReposParams<'a> {
···
#[serde(borrow)]
pub term: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub repos: Vec<crate::tools_ozone::moderation::RepoView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchReposParams<'a> {
···
#[serde(borrow)]
pub term: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub repos: Vec<crate::tools_ozone::moderation::RepoView<'a>>,
+
}
+12 -1
crates/jacquard-api/src/tools_ozone/report.rs
···
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ReasonType<'a> {
ToolsOzoneReportDefsReasonAppeal,
···
ToolsOzoneReportDefsReasonCivicImpersonation,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> ReasonType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for ReasonType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for ReasonType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for ReasonType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for ReasonType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a>
where
'de: 'a,
···
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ReasonType<'a> {
ToolsOzoneReportDefsReasonAppeal,
···
ToolsOzoneReportDefsReasonCivicImpersonation,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> ReasonType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for ReasonType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for ReasonType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for ReasonType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for ReasonType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a>
where
'de: 'a,
···
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
+
}
+57 -13
crates/jacquard-api/src/tools_ozone/safelink.rs
···
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ActionType<'a> {
Block,
···
Whitelist,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> ActionType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for ActionType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for ActionType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for ActionType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for ActionType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for ActionType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
///An event for URL safety decisions
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Event<'a> {
#[serde(borrow)]
-
pub action: jacquard_common::types::value::Data<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub created_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
-
pub event_type: jacquard_common::types::value::Data<'a>,
pub id: i64,
#[serde(borrow)]
-
pub pattern: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub reason: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum EventType<'a> {
AddRule,
···
RemoveRule,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> EventType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for EventType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for EventType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for EventType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for EventType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for EventType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum PatternType<'a> {
Domain,
Url,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> PatternType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for PatternType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for PatternType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for PatternType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for PatternType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for PatternType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ReasonType<'a> {
Csam,
···
None,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> ReasonType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
impl<'a> From<&'a str> for ReasonType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
impl<'a> From<String> for ReasonType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
impl<'a> AsRef<str> for ReasonType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for ReasonType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
///Input for creating a URL safety rule
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UrlRule<'a> {
#[serde(borrow)]
-
pub action: jacquard_common::types::value::Data<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub created_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
-
pub pattern: jacquard_common::types::value::Data<'a>,
#[serde(borrow)]
-
pub reason: jacquard_common::types::value::Data<'a>,
pub updated_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
-
}
-
pub mod add_rule;
-
pub mod query_events;
-
pub mod query_rules;
-
pub mod remove_rule;
-
pub mod update_rule;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod add_rule;
+
pub mod query_events;
+
pub mod query_rules;
+
pub mod remove_rule;
+
pub mod update_rule;
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ActionType<'a> {
Block,
···
Whitelist,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> ActionType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for ActionType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for ActionType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for ActionType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for ActionType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for ActionType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
///An event for URL safety decisions
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Event<'a> {
#[serde(borrow)]
+
pub action: crate::tools_ozone::safelink::ActionType<'a>,
+
///Optional comment about the decision
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
+
///DID of the user who created this rule
#[serde(borrow)]
pub created_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
+
pub event_type: crate::tools_ozone::safelink::EventType<'a>,
+
///Auto-incrementing row ID
pub id: i64,
#[serde(borrow)]
+
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
+
pub reason: crate::tools_ozone::safelink::ReasonType<'a>,
+
///The URL that this rule applies to
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum EventType<'a> {
AddRule,
···
RemoveRule,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> EventType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for EventType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for EventType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for EventType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for EventType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for EventType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum PatternType<'a> {
Domain,
Url,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> PatternType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for PatternType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for PatternType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for PatternType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for PatternType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for PatternType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum ReasonType<'a> {
Csam,
···
None,
Other(jacquard_common::CowStr<'a>),
}
+
impl<'a> ReasonType<'a> {
pub fn as_str(&self) -> &str {
match self {
···
}
}
}
+
impl<'a> From<&'a str> for ReasonType<'a> {
fn from(s: &'a str) -> Self {
match s {
···
}
}
}
+
impl<'a> From<String> for ReasonType<'a> {
fn from(s: String) -> Self {
match s.as_str() {
···
}
}
}
+
impl<'a> AsRef<str> for ReasonType<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
+
impl<'a> serde::Serialize for ReasonType<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
···
serializer.serialize_str(self.as_str())
}
}
+
impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a>
where
'de: 'a,
···
Ok(Self::from(s))
}
}
+
///Input for creating a URL safety rule
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UrlRule<'a> {
#[serde(borrow)]
+
pub action: crate::tools_ozone::safelink::ActionType<'a>,
+
///Optional comment about the decision
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Timestamp when the rule was created
pub created_at: jacquard_common::types::string::Datetime,
+
///DID of the user added the rule.
#[serde(borrow)]
pub created_by: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
+
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
+
pub reason: crate::tools_ozone::safelink::ReasonType<'a>,
+
///Timestamp when the rule was last updated
pub updated_at: jacquard_common::types::string::Datetime,
+
///The URL or domain to apply the rule to
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
+
}
+13 -2
crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AddRuleInput<'a> {
#[serde(borrow)]
pub action: crate::tools_ozone::safelink::ActionType<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
···
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
pub reason: crate::tools_ozone::safelink::ReasonType<'a>,
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::safelink::Event<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RuleAlreadyExists")]
RuleAlreadyExists(std::option::Option<String>),
}
impl std::fmt::Display for AddRuleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AddRuleInput<'a> {
#[serde(borrow)]
pub action: crate::tools_ozone::safelink::ActionType<'a>,
+
///Optional comment about the decision
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Author DID. Only respected when using admin auth
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
···
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
pub reason: crate::tools_ozone::safelink::ReasonType<'a>,
+
///The URL or domain to apply the rule to
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::safelink::Event<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RuleAlreadyExists")]
RuleAlreadyExists(std::option::Option<String>),
}
+
impl std::fmt::Display for AddRuleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/query_events.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryEventsInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryEventsOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub events: Vec<crate::tools_ozone::safelink::Event<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryEventsInput<'a> {
+
///Cursor for pagination
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Maximum number of results to return
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
+
///Filter by pattern type
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Sort direction
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Filter by specific URLs or domains
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryEventsOutput<'a> {
+
///Next cursor for pagination. Only present if there are more results.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub events: Vec<crate::tools_ozone::safelink::Event<'a>>,
+
}
+16 -1
crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryRulesInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub actions: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryRulesOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub rules: Vec<crate::tools_ozone::safelink::UrlRule<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryRulesInput<'a> {
+
///Filter by action types
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub actions: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
+
///Filter by rule creator
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
+
///Cursor for pagination
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Maximum number of results to return
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub limit: std::option::Option<i64>,
+
///Filter by pattern type
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Filter by reason type
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub reason: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Sort direction
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Filter by specific URLs or domains
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QueryRulesOutput<'a> {
+
///Next cursor for pagination. Only present if there are more results.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub rules: Vec<crate::tools_ozone::safelink::UrlRule<'a>>,
+
}
+13 -2
crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RemoveRuleInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(borrow)]
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::safelink::Event<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RuleNotFound")]
RuleNotFound(std::option::Option<String>),
}
impl std::fmt::Display for RemoveRuleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RemoveRuleInput<'a> {
+
///Optional comment about why the rule is being removed
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Optional DID of the user. Only respected when using admin auth.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(borrow)]
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
+
///The URL or domain to remove the rule for
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::safelink::Event<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RuleNotFound")]
RuleNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for RemoveRuleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+13 -2
crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateRuleInput<'a> {
#[serde(borrow)]
pub action: crate::tools_ozone::safelink::ActionType<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
···
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
pub reason: crate::tools_ozone::safelink::ReasonType<'a>,
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::safelink::Event<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RuleNotFound")]
RuleNotFound(std::option::Option<String>),
}
impl std::fmt::Display for UpdateRuleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpdateRuleInput<'a> {
#[serde(borrow)]
pub action: crate::tools_ozone::safelink::ActionType<'a>,
+
///Optional comment about the update
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Optional DID to credit as the creator. Only respected for admin_token authentication.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
···
pub pattern: crate::tools_ozone::safelink::PatternType<'a>,
#[serde(borrow)]
pub reason: crate::tools_ozone::safelink::ReasonType<'a>,
+
///The URL or domain to update the rule for
#[serde(borrow)]
pub url: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::safelink::Event<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "RuleNotFound")]
RuleNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for UpdateRuleError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+6 -1
crates/jacquard-api/src/tools_ozone/server.rs
···
-
pub mod get_config;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod get_config;
+9 -1
crates/jacquard-api/src/tools_ozone/server/get_config.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pds: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub verifier_did: std::option::Option<jacquard_common::types::string::Did<'a>>,
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub role: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub pds: std::option::Option<jacquard_common::types::value::Data<'a>>,
+
///The did of the verifier used for verification.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub verifier_did: std::option::Option<jacquard_common::types::string::Did<'a>>,
···
#[serde(borrow)]
pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub role: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+14 -7
crates/jacquard-api/src/tools_ozone/set.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub name: jacquard_common::CowStr<'a>,
pub set_size: i64,
pub updated_at: jacquard_common::types::string::Datetime,
-
}
-
pub mod add_values;
-
pub mod delete_set;
-
pub mod delete_values;
-
pub mod get_values;
-
pub mod query_sets;
-
pub mod upsert_set;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod add_values;
+
pub mod delete_set;
+
pub mod delete_values;
+
pub mod get_values;
+
pub mod query_sets;
+
pub mod upsert_set;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub name: jacquard_common::CowStr<'a>,
pub set_size: i64,
pub updated_at: jacquard_common::types::string::Datetime,
+
}
+8 -1
crates/jacquard-api/src/tools_ozone/set/add_values.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AddValuesInput<'a> {
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct AddValuesInput<'a> {
+
///Name of the set to add values to
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
///Array of string values to add to the set
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
+
}
+10 -2
crates/jacquard-api/src/tools_ozone/set/delete_set.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteSetInput<'a> {
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "SetNotFound")]
SetNotFound(std::option::Option<String>),
}
impl std::fmt::Display for DeleteSetError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteSetInput<'a> {
+
///Name of the set to delete
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(rename = "SetNotFound")]
SetNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for DeleteSetError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+11 -2
crates/jacquard-api/src/tools_ozone/set/delete_values.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteValuesInput<'a> {
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "SetNotFound")]
SetNotFound(std::option::Option<String>),
}
impl std::fmt::Display for DeleteValuesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct DeleteValuesInput<'a> {
+
///Name of the set to delete values from
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
+
///Array of string values to delete from the set
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "SetNotFound")]
SetNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for DeleteValuesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+10 -2
crates/jacquard-api/src/tools_ozone/set/get_values.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetValuesParams<'a> {
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "SetNotFound")]
SetNotFound(std::option::Option<String>),
}
impl std::fmt::Display for GetValuesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GetValuesParams<'a> {
···
#[serde(borrow)]
pub name: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "SetNotFound")]
SetNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for GetValuesError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/set/query_sets.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QuerySetsParams<'a> {
···
#[serde(borrow)]
pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub sets: Vec<crate::tools_ozone::set::SetView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct QuerySetsParams<'a> {
···
#[serde(borrow)]
pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub sets: Vec<crate::tools_ozone::set::SetView<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/set/upsert_set.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::set::Set<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::tools_ozone::set::SetView<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::set::Set<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(flatten)]
#[serde(borrow)]
pub value: crate::tools_ozone::set::SetView<'a>,
+
}
+10 -4
crates/jacquard-api/src/tools_ozone/setting.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
-
}
-
pub mod list_options;
-
pub mod remove_options;
-
pub mod upsert_option;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod list_options;
+
pub mod remove_options;
+
pub mod upsert_option;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/setting/list_options.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListOptionsParams<'a> {
···
#[serde(borrow)]
pub scope: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub options: Vec<crate::tools_ozone::setting::Option<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListOptionsParams<'a> {
···
#[serde(borrow)]
pub scope: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub options: Vec<crate::tools_ozone::setting::Option<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/setting/remove_options.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub scope: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
-
pub struct RemoveOptionsOutput<'a> {}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub scope: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
+
pub struct RemoveOptionsOutput<'a> {}
+7 -1
crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpsertOptionOutput<'a> {
#[serde(borrow)]
pub option: crate::tools_ozone::setting::Option<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct UpsertOptionOutput<'a> {
#[serde(borrow)]
pub option: crate::tools_ozone::setting::Option<'a>,
+
}
+10 -4
crates/jacquard-api/src/tools_ozone/signature.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub property: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
-
}
-
pub mod find_correlation;
-
pub mod find_related_accounts;
-
pub mod search_accounts;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod find_correlation;
+
pub mod find_related_accounts;
+
pub mod search_accounts;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub property: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub value: jacquard_common::CowStr<'a>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FindCorrelationParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FindCorrelationOutput<'a> {
#[serde(borrow)]
pub details: Vec<crate::tools_ozone::signature::SigDetail<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FindCorrelationParams<'a> {
#[serde(borrow)]
pub dids: Vec<jacquard_common::types::string::Did<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct FindCorrelationOutput<'a> {
#[serde(borrow)]
pub details: Vec<crate::tools_ozone::signature::SigDetail<'a>>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccountsParams<'a> {
···
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccountsParams<'a> {
···
#[serde(borrow)]
pub values: Vec<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
+
}
+11 -5
crates/jacquard-api/src/tools_ozone/team.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub role: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
-
}
-
pub mod add_member;
-
pub mod delete_member;
-
pub mod list_members;
-
pub mod update_member;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod add_member;
+
pub mod delete_member;
+
pub mod list_members;
+
pub mod update_member;
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub role: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
+
}
+10 -2
crates/jacquard-api/src/tools_ozone/team/add_member.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub role: jacquard_common::CowStr<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::team::Member<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "MemberAlreadyExists")]
MemberAlreadyExists(std::option::Option<String>),
}
impl std::fmt::Display for AddMemberError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub role: jacquard_common::CowStr<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::team::Member<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "MemberAlreadyExists")]
MemberAlreadyExists(std::option::Option<String>),
}
+
impl std::fmt::Display for AddMemberError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+9 -2
crates/jacquard-api/src/tools_ozone/team/delete_member.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "CannotDeleteSelf")]
CannotDeleteSelf(std::option::Option<String>),
}
impl std::fmt::Display for DeleteMemberError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "CannotDeleteSelf")]
CannotDeleteSelf(std::option::Option<String>),
}
+
impl std::fmt::Display for DeleteMemberError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/team/list_members.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListMembersParams<'a> {
···
#[serde(borrow)]
pub roles: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub members: Vec<crate::tools_ozone::team::Member<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListMembersParams<'a> {
···
#[serde(borrow)]
pub roles: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub members: Vec<crate::tools_ozone::team::Member<'a>>,
+
}
+10 -2
crates/jacquard-api/src/tools_ozone/team/update_member.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub role: std::option::Option<jacquard_common::CowStr<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::team::Member<'a>,
}
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "MemberNotFound")]
MemberNotFound(std::option::Option<String>),
}
impl std::fmt::Display for UpdateMemberError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
-
Self::Unknown(_) => write!(f, "Unknown error"),
}
}
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub role: std::option::Option<jacquard_common::CowStr<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub value: crate::tools_ozone::team::Member<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(
serde::Serialize,
···
#[serde(rename = "MemberNotFound")]
MemberNotFound(std::option::Option<String>),
}
+
impl std::fmt::Display for UpdateMemberError<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
···
}
Ok(())
}
+
Self::Unknown(err) => write!(f, "Unknown error: {:?}", err),
}
}
+
}
+21 -4
crates/jacquard-api/src/tools_ozone/verification.rs
···
///Verification data for the associated subject.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationView<'a> {
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub issuer: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub issuer_repo: std::option::Option<VerificationViewRecordIssuerRepo<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub revoked_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub revoked_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_repo: std::option::Option<VerificationViewRecordSubjectRepo<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")]
DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>),
}
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
DefsRepoViewDetail(Box<crate::tools_ozone::moderation::RepoViewDetail<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")]
DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>),
-
}
-
pub mod grant_verifications;
-
pub mod list_verifications;
-
pub mod revoke_verifications;
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
+
pub mod grant_verifications;
+
pub mod list_verifications;
+
pub mod revoke_verifications;
+
///Verification data for the associated subject.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationView<'a> {
+
///Timestamp when the verification was created.
pub created_at: jacquard_common::types::string::Datetime,
+
///Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
+
///Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
///The user who issued this verification.
#[serde(borrow)]
pub issuer: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub issuer_repo: std::option::Option<VerificationViewRecordIssuerRepo<'a>>,
+
///Describes the reason for revocation, also indicating that the verification is no longer valid.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Timestamp when the verification was revoked.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub revoked_at: std::option::Option<jacquard_common::types::string::Datetime>,
+
///The user who revoked this verification.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub revoked_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
+
///The subject of the verification.
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub subject_repo: std::option::Option<VerificationViewRecordSubjectRepo<'a>>,
+
///The AT-URI of the verification record.
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
#[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")]
DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>),
}
+
#[jacquard_derive::open_union]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "$type")]
···
DefsRepoViewDetail(Box<crate::tools_ozone::moderation::RepoViewDetail<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")]
DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>),
+
}
+16 -1
crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs
···
///Error object for failed verifications.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GrantError<'a> {
#[serde(borrow)]
pub error: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GrantVerificationsInput<'a> {
#[serde(borrow)]
pub verifications: Vec<jacquard_common::types::value::Data<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
///Error object for failed verifications.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GrantError<'a> {
+
///Error message describing the reason for failure.
#[serde(borrow)]
pub error: jacquard_common::CowStr<'a>,
+
///The did of the subject being verified
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct GrantVerificationsInput<'a> {
+
///Array of verification requests to process
#[serde(borrow)]
pub verifications: Vec<jacquard_common::types::value::Data<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct VerificationInput<'a> {
+
///Timestamp for verification record. Defaults to current time when not specified.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
+
///Display name of the subject the verification applies to at the moment of verifying.
#[serde(borrow)]
pub display_name: jacquard_common::CowStr<'a>,
+
///Handle of the subject the verification applies to at the moment of verifying.
#[serde(borrow)]
pub handle: jacquard_common::types::string::Handle<'a>,
+
///The did of the subject being verified
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
+
}
+7 -1
crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs
···
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListVerificationsParams<'a> {
···
#[serde(borrow)]
pub subjects: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct ListVerificationsParams<'a> {
···
#[serde(borrow)]
pub subjects: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>,
+
}
+14 -1
crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs
···
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeVerificationsInput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeVerificationsOutput<'a> {
#[serde(borrow)]
pub failed_revocations: Vec<jacquard_common::types::value::Data<'a>>,
#[serde(borrow)]
pub revoked_verifications: Vec<jacquard_common::types::string::AtUri<'a>>,
}
///Error object for failed revocations
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeError<'a> {
#[serde(borrow)]
pub error: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
-
}
···
+
// @generated by jacquard-lexicon. DO NOT EDIT.
+
//
+
// This file was automatically generated from Lexicon schemas.
+
// Any manual changes will be overwritten on the next regeneration.
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeVerificationsInput<'a> {
+
///Reason for revoking the verification. This is optional and can be omitted if not needed.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>,
+
///Array of verification record uris to revoke
#[serde(borrow)]
pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeVerificationsOutput<'a> {
+
///List of verification uris that couldn't be revoked, including failure reasons
#[serde(borrow)]
pub failed_revocations: Vec<jacquard_common::types::value::Data<'a>>,
+
///List of verification uris successfully revoked
#[serde(borrow)]
pub revoked_verifications: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
///Error object for failed revocations
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct RevokeError<'a> {
+
///Description of the error that occurred during revocation.
#[serde(borrow)]
pub error: jacquard_common::CowStr<'a>,
+
///The AT-URI of the verification record that failed to revoke.
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
+
}
+5
crates/jacquard-lexicon/Cargo.toml
···
exclude.workspace = true
description.workspace = true
[dependencies]
heck = "0.5.0"
itertools = "0.14.0"
jacquard-common = { version = "0.1.0", path = "../jacquard-common" }
···
exclude.workspace = true
description.workspace = true
+
[[bin]]
+
name = "jacquard-codegen"
+
path = "src/bin/codegen.rs"
+
[dependencies]
+
clap = { workspace = true }
heck = "0.5.0"
itertools = "0.14.0"
jacquard-common = { version = "0.1.0", path = "../jacquard-common" }
+40
crates/jacquard-lexicon/src/bin/codegen.rs
···
···
+
use clap::Parser;
+
use jacquard_lexicon::codegen::CodeGenerator;
+
use jacquard_lexicon::corpus::LexiconCorpus;
+
use std::path::PathBuf;
+
+
#[derive(Parser, Debug)]
+
#[command(author, version, about = "Generate Rust code from Lexicon schemas")]
+
struct Args {
+
/// Directory containing Lexicon JSON files
+
#[arg(short = 'i', long)]
+
input: PathBuf,
+
+
/// Output directory for generated Rust code
+
#[arg(short = 'o', long)]
+
output: PathBuf,
+
+
/// Root module name (default: "crate")
+
#[arg(short = 'r', long, default_value = "crate")]
+
root_module: String,
+
}
+
+
fn main() -> miette::Result<()> {
+
let args = Args::parse();
+
+
println!("Loading lexicons from {:?}...", args.input);
+
let corpus = LexiconCorpus::load_from_dir(&args.input)?;
+
+
println!(
+
"Loaded {} lexicon documents",
+
corpus.iter().count()
+
);
+
+
println!("Generating code...");
+
let codegen = CodeGenerator::new(&corpus, args.root_module);
+
codegen.write_to_disk(&args.output)?;
+
+
println!("✨ Generated code to {:?}", args.output);
+
+
Ok(())
+
}
+92 -18
crates/jacquard-lexicon/src/codegen.rs
···
use crate::corpus::LexiconCorpus;
use crate::error::{CodegenError, Result};
use crate::lexicon::{
-
LexArrayItem, LexBlob, LexBoolean, LexBytes, LexCidLink, LexInteger, LexObject,
-
LexObjectProperty, LexRecord, LexRef, LexRefUnion, LexString, LexStringFormat, LexUnknown,
-
LexUserType, LexXrpcBody, LexXrpcBodySchema, LexXrpcError, LexXrpcParameters, LexXrpcProcedure,
-
LexXrpcQuery, LexXrpcSubscription, LexXrpcSubscriptionMessageSchema,
};
use heck::{ToPascalCase, ToSnakeCase};
use proc_macro2::TokenStream;
···
quote! { std::option::Option<#rust_type> }
};
let mut attrs = Vec::new();
if !is_required {
···
}
Ok(quote! {
#(#attrs)*
pub #field_ident: #rust_type,
})
···
let item_type = self.array_item_to_rust_type(nsid, &array.items)?;
Ok(quote! { Vec<#item_type> })
}
-
LexObjectProperty::Ref(ref_type) => self.ref_to_rust_type(&ref_type.r#ref),
LexObjectProperty::Union(_union) => {
// Generate unique union type name: StatusView + embed -> StatusViewRecordEmbed
let union_name =
···
}
/// Convert array item to Rust type
-
fn array_item_to_rust_type(&self, _nsid: &str, item: &LexArrayItem) -> Result<TokenStream> {
match item {
LexArrayItem::Boolean(_) => Ok(quote! { bool }),
LexArrayItem::Integer(_) => Ok(quote! { i64 }),
···
LexArrayItem::CidLink(_) => Ok(quote! { jacquard_common::types::cid::CidLink<'a> }),
LexArrayItem::Blob(_) => Ok(quote! { jacquard_common::types::blob::Blob<'a> }),
LexArrayItem::Unknown(_) => Ok(quote! { jacquard_common::types::value::Data<'a> }),
-
LexArrayItem::Ref(ref_type) => self.ref_to_rust_type(&ref_type.r#ref),
LexArrayItem::Union(_) => {
// For now, use Data
Ok(quote! { jacquard_common::types::value::Data<'a> })
···
}
/// Generate all code for the corpus, organized by file
pub fn generate_all(
&self,
-
) -> Result<std::collections::BTreeMap<std::path::PathBuf, TokenStream>> {
use std::collections::BTreeMap;
let mut file_contents: BTreeMap<std::path::PathBuf, Vec<TokenStream>> = BTreeMap::new();
// Generate code for all lexicons
for (nsid, doc) in self.corpus.iter() {
let file_path = self.nsid_to_file_path(nsid.as_ref());
for (def_name, def) in &doc.defs {
let tokens = self.generate_def(nsid.as_ref(), def_name.as_ref(), def)?;
file_contents
···
// Combine all tokens for each file
let mut result = BTreeMap::new();
for (path, tokens_vec) in file_contents {
-
result.insert(path, quote! { #(#tokens_vec)* });
}
Ok(result)
···
/// Generate parent module files with pub mod declarations
pub fn generate_module_tree(
&self,
-
file_map: &std::collections::BTreeMap<std::path::PathBuf, TokenStream>,
-
defs_only: &std::collections::BTreeMap<std::path::PathBuf, TokenStream>,
-
) -> std::collections::BTreeMap<std::path::PathBuf, TokenStream> {
use std::collections::{BTreeMap, BTreeSet};
// Track what modules each directory needs to declare
···
// If this file already exists in defs_only (e.g., from defs), merge the content
let module_tokens = quote! { #(#mods)* };
-
if let Some(existing) = defs_only.get(&mod_file_path) {
-
// Combine existing defs content with module declarations
-
result.insert(mod_file_path, quote! { #existing #module_tokens });
} else {
-
result.insert(mod_file_path, module_tokens);
}
}
···
}
// Write to disk
-
for (path, tokens) in all_files {
let full_path = output_dir.join(&path);
// Create parent directories
···
),
source: None,
})?;
-
let formatted = prettyplease::unparse(&file);
// Write file
std::fs::write(&full_path, formatted).map_err(|e| CodegenError::Other {
···
use crate::corpus::LexiconCorpus;
use crate::error::{CodegenError, Result};
use crate::lexicon::{
+
LexArrayItem, LexInteger, LexObject, LexObjectProperty, LexRecord, LexString, LexStringFormat,
+
LexUserType, LexXrpcBody, LexXrpcBodySchema, LexXrpcError, LexXrpcProcedure, LexXrpcQuery,
+
LexXrpcSubscription, LexXrpcSubscriptionMessageSchema,
};
use heck::{ToPascalCase, ToSnakeCase};
use proc_macro2::TokenStream;
···
quote! { std::option::Option<#rust_type> }
};
+
// Extract description from field type
+
let description = match field_type {
+
LexObjectProperty::Ref(r) => r.description.as_ref(),
+
LexObjectProperty::Union(u) => u.description.as_ref(),
+
LexObjectProperty::Bytes(b) => b.description.as_ref(),
+
LexObjectProperty::CidLink(c) => c.description.as_ref(),
+
LexObjectProperty::Array(a) => a.description.as_ref(),
+
LexObjectProperty::Blob(b) => b.description.as_ref(),
+
LexObjectProperty::Boolean(b) => b.description.as_ref(),
+
LexObjectProperty::Integer(i) => i.description.as_ref(),
+
LexObjectProperty::String(s) => s.description.as_ref(),
+
LexObjectProperty::Unknown(u) => u.description.as_ref(),
+
};
+
let doc = self.generate_doc_comment(description);
+
let mut attrs = Vec::new();
if !is_required {
···
}
Ok(quote! {
+
#doc
#(#attrs)*
pub #field_ident: #rust_type,
})
···
let item_type = self.array_item_to_rust_type(nsid, &array.items)?;
Ok(quote! { Vec<#item_type> })
}
+
LexObjectProperty::Ref(ref_type) => {
+
// Handle local refs (starting with #) by prepending the current NSID
+
let ref_str = if ref_type.r#ref.starts_with('#') {
+
format!("{}{}", nsid, ref_type.r#ref)
+
} else {
+
ref_type.r#ref.to_string()
+
};
+
self.ref_to_rust_type(&ref_str)
+
}
LexObjectProperty::Union(_union) => {
// Generate unique union type name: StatusView + embed -> StatusViewRecordEmbed
let union_name =
···
}
/// Convert array item to Rust type
+
fn array_item_to_rust_type(&self, nsid: &str, item: &LexArrayItem) -> Result<TokenStream> {
match item {
LexArrayItem::Boolean(_) => Ok(quote! { bool }),
LexArrayItem::Integer(_) => Ok(quote! { i64 }),
···
LexArrayItem::CidLink(_) => Ok(quote! { jacquard_common::types::cid::CidLink<'a> }),
LexArrayItem::Blob(_) => Ok(quote! { jacquard_common::types::blob::Blob<'a> }),
LexArrayItem::Unknown(_) => Ok(quote! { jacquard_common::types::value::Data<'a> }),
+
LexArrayItem::Ref(ref_type) => {
+
// Handle local refs (starting with #) by prepending the current NSID
+
let ref_str = if ref_type.r#ref.starts_with('#') {
+
format!("{}{}", nsid, ref_type.r#ref)
+
} else {
+
ref_type.r#ref.to_string()
+
};
+
self.ref_to_rust_type(&ref_str)
+
}
LexArrayItem::Union(_) => {
// For now, use Data
Ok(quote! { jacquard_common::types::value::Data<'a> })
···
}
/// Generate all code for the corpus, organized by file
+
/// Returns a map of file paths to (tokens, optional NSID)
pub fn generate_all(
&self,
+
) -> Result<std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)>> {
use std::collections::BTreeMap;
let mut file_contents: BTreeMap<std::path::PathBuf, Vec<TokenStream>> = BTreeMap::new();
+
let mut file_nsids: BTreeMap<std::path::PathBuf, String> = BTreeMap::new();
// Generate code for all lexicons
for (nsid, doc) in self.corpus.iter() {
let file_path = self.nsid_to_file_path(nsid.as_ref());
+
// Track which NSID this file is for
+
file_nsids.insert(file_path.clone(), nsid.to_string());
+
for (def_name, def) in &doc.defs {
let tokens = self.generate_def(nsid.as_ref(), def_name.as_ref(), def)?;
file_contents
···
// Combine all tokens for each file
let mut result = BTreeMap::new();
for (path, tokens_vec) in file_contents {
+
let nsid = file_nsids.get(&path).cloned();
+
result.insert(path, (quote! { #(#tokens_vec)* }, nsid));
}
Ok(result)
···
/// Generate parent module files with pub mod declarations
pub fn generate_module_tree(
&self,
+
file_map: &std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)>,
+
defs_only: &std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)>,
+
) -> std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)> {
use std::collections::{BTreeMap, BTreeSet};
// Track what modules each directory needs to declare
···
// If this file already exists in defs_only (e.g., from defs), merge the content
let module_tokens = quote! { #(#mods)* };
+
if let Some((existing_tokens, nsid)) = defs_only.get(&mod_file_path) {
+
// Put module declarations FIRST, then existing defs content
+
result.insert(
+
mod_file_path,
+
(quote! { #module_tokens #existing_tokens }, nsid.clone()),
+
);
} else {
+
result.insert(mod_file_path, (module_tokens, None));
}
}
···
}
// Write to disk
+
for (path, (tokens, nsid)) in all_files {
let full_path = output_dir.join(&path);
// Create parent directories
···
),
source: None,
})?;
+
let mut formatted = prettyplease::unparse(&file);
+
+
// Add blank lines between top-level items for better readability
+
let lines: Vec<&str> = formatted.lines().collect();
+
let mut result_lines = Vec::new();
+
+
for (i, line) in lines.iter().enumerate() {
+
result_lines.push(*line);
+
+
// Add blank line after closing braces that are at column 0 (top-level items)
+
if *line == "}" && i + 1 < lines.len() && !lines[i + 1].is_empty() {
+
result_lines.push("");
+
}
+
+
// Add blank line after last pub mod declaration before structs/enums
+
if line.starts_with("pub mod ") && i + 1 < lines.len() {
+
let next_line = lines[i + 1];
+
if !next_line.starts_with("pub mod ") && !next_line.is_empty() {
+
result_lines.push("");
+
}
+
}
+
}
+
+
formatted = result_lines.join("\n");
+
+
// Add header comment
+
let header = if let Some(nsid) = nsid {
+
format!(
+
"// @generated by jacquard-lexicon. DO NOT EDIT.\n//\n// Lexicon: {}\n//\n// This file was automatically generated from Lexicon schemas.\n// Any manual changes will be overwritten on the next regeneration.\n\n",
+
nsid
+
)
+
} else {
+
"// @generated by jacquard-lexicon. DO NOT EDIT.\n//\n// This file was automatically generated from Lexicon schemas.\n// Any manual changes will be overwritten on the next regeneration.\n\n".to_string()
+
};
+
formatted = format!("{}{}", header, formatted);
// Write file
std::fs::write(&full_path, formatted).map_err(|e| CodegenError::Other {
-6
crates/jacquard-lexicon/src/fs.rs
···
})?;
Ok(results)
}
-
-
pub(crate) fn find_dirs(path: &Path) -> Result<Vec<impl AsRef<Path>>> {
-
let mut results = Vec::new();
-
walk(path, &mut results, &mut |path| path.is_dir())?;
-
Ok(results)
-
}
···
})?;
Ok(results)
}